/* ============================= */
/*        GLOBAL LAYOUT          */
/* ============================= */

.area-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.wrapper-row h1 {
    margin-bottom: 10px;
    font-size: 28px;
}

.wrapper-row h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* ============================= */
/*         SORT SELECT           */
/* ============================= */

fieldset {
    border: none;
    margin-bottom: 25px;
    padding: 0;
}

fieldset label {
    font-weight: 600;
    margin-right: 10px;
}

fieldset select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border 0.2s ease;
}

fieldset select:hover {
    border-color: #999;
}

/* ============================= */
/*         RECIPE CARDS          */
/* ============================= */

.tile.searchResult {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile.searchResult:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.tile_content h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.tile_content h2 a {
    text-decoration: none;
    color: #2c3e50;
}

.tile_content h2 a:hover {
    color: #c0392b;
}

.tile_content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.tile_content ul li {
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}

.tile_content div {
    font-size: 14px;
    margin-top: 8px;
}

/* ============================= */
/*          RATING STYLE         */
/* ============================= */

.tile_content div:first-of-type {
    font-weight: 600;
    color: #f39c12;
}

/* ============================= */
/*          PAGINATION           */
/* ============================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination strong {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.pagination a {
    background-color: #ecf0f1;
    color: #2c3e50;
    transition: background 0.2s ease;
}

.pagination a:hover {
    background-color: #d0d7da;
}

.pagination strong {
    background-color: #c0392b;
    color: white;
}

/* ============================= */
/*         RESPONSIVE            */
/* ============================= */

@media (max-width: 768px) {

    .area-main {
        padding: 10px;
    }

    .tile.searchResult {
        padding: 15px;
    }

    .tile_content h2 {
        font-size: 18px;
    }

    fieldset select {
        width: 100%;
        margin-top: 8px;
    }
}


/* ============================= */
/*        RECIPE CARD LAYOUT     */
/* ============================= */


.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}



.recipe-card {
    padding: 30px 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 20px;
}

.recipe-card:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
}


.recipe-ingredients-inline {
    grid-column: 1 / 3;  /* 🔥 prend toute la largeur */
    grid-row: 2;
    font-size: 14px;
    margin-top: 5px;
}


/* ============================= */
/*        IMAGE SECTION          */
/* ============================= */

.recipe-image {
    grid-column: 1;
    grid-row: 1;
}


.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/*        CONTENT SECTION        */
/* ============================= */


.recipe-content {
    grid-column: 2;
    grid-row: 1 /3;
}


.recipe-content h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
}

.recipe-content h2 a {
    text-decoration: none;
    color: #2c3e50;
}

.recipe-content h2 a:hover {
    color: #c0392b;
}

/* ============================= */
/*        RATING STYLE           */
/* ============================= */

.recipe-rating {
    font-weight: 600;
    color: #f39c12;
    margin-bottom: 10px;
}

/* ============================= */
/*        META LIST              */
/* ============================= */

.recipe-meta {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.recipe-meta li {
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}

/* ============================= */
/*        AUTHOR STYLE           */
/* ============================= */

.recipe-author {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* ============================= */
/*        RESPONSIVE             */
/* ============================= */

@media (max-width: 768px) {







