/* ============================================
   STYLES GLOBAUX
   ============================================ */

body {
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #f4f1eb;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    margin: 0 0 12px 0;
}

main {
    flex: 1;
}

.section-titre {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.section-titre::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #6b8e23;
    margin: 10px auto 0;
    border-radius: 3px;
}



/* ============================================
   HEADER / NAV
   ============================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    background: #3d5010;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo {
    font-family: "Damion", cursive;
    font-size: 30px;
    letter-spacing: 1px;
}

.menu ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 15px;
    padding: 7px 16px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.menu a.active {
    background: #6b8e23;
    color: white;
    font-weight: 700;
}



/* ============================================
   HAMBURGER
   ============================================ */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}



/* ============================================
   HERO
   ============================================ */

.hero {
    text-align: center;
    padding: 90px 20px 80px;
    background: linear-gradient(150deg, #4a6515 0%, #7aaa25 60%, #8db82e 100%);
    color: white;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.hero-brand {
    font-family: "Damion", cursive;
    font-size: 54px;
}

.hero p {
    font-size: 17px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: #4a6515;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}



/* ============================================
   CARDS (index - recettes populaires)
   ============================================ */

.plats-semaine {
    padding: 60px 40px;
    background: #faf8f3;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.card {
    background: white;
    width: 220px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 16px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
}

.card p {
    font-size: 13px;
    color: #888;
    margin: 0;
}



/* ============================================
   FEATURES (index - section "pourquoi")
   ============================================ */

.features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 60px 40px;
    background: #eef3e0;
}

.feature {
    background: white;
    padding: 32px 28px;
    width: 220px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.feature-num {
    font-size: 36px;
    font-weight: 900;
    color: #6b8e23;
    margin-bottom: 10px;
    font-family: "Lato", sans-serif;
    line-height: 1;
}

.feature h3 {
    font-size: 16px;
    color: #3d5010;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}



/* ============================================
   LISTING - CATALOGUE
   ============================================ */

.page-header {
    text-align: center;
    padding: 50px 40px 20px;
    background: #faf8f3;
    border-bottom: 1px solid #e8e4db;
    margin-bottom: 10px;
}

.page-header h1 {
    font-size: 28px;
    color: #3d5010;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.page-header a {
    color: #6b8e23;
    text-decoration: none;
    font-weight: 600;
}

.page-header a:hover {
    text-decoration: underline;
}

.galerie-recettes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 40px 50px;
}

.recette {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recette:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.recette img {
    width: 190px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

.recette-info {
    padding: 20px 24px;
    flex: 1;
}

.recette-info h2 {
    font-size: 18px;
    color: #3d5010;
    margin-bottom: 6px;
}

.recette-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.btn-recette {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    background: #6b8e23;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-recette:hover {
    background: #4a6515;
}



/* ============================================
   PAGE CARD (form + résultats)
   ============================================ */

.page-card {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    padding: 40px 50px;
    text-align: center;
}

.page-card h1 {
    font-size: 26px;
    color: #3d5010;
}

.page-card-desc {
    color: #777;
    font-size: 15px;
    margin-bottom: 0;
    margin-top: -4px;
}



/* ============================================
   FORMULAIRE
   ============================================ */

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px auto 0;
    text-align: left;
}

.form label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form input:focus {
    outline: none;
    border-color: #6b8e23;
    box-shadow: 0 0 0 3px rgba(107,142,35,0.15);
}

.form button {
    padding: 12px;
    border: none;
    background: #6b8e23;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

.form button:hover {
    background: #4a6515;
    transform: translateY(-1px);
}



/* ============================================
   RECHERCHE - RÉSULTATS
   ============================================ */

.recherche-info {
    background: #f0f7e0;
    border-left: 4px solid #6b8e23;
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    margin: 16px 0;
    font-size: 14px;
    text-align: left;
    color: #444;
}

.nb-resultats {
    color: #6b8e23;
    font-weight: 700;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.table th {
    background: #6b8e23;
    color: white;
    padding: 13px 16px;
    font-size: 14px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover td {
    background: #f8fbf0;
}

.lien-retour {
    display: inline-block;
    margin-top: 24px;
    color: #6b8e23;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #6b8e23;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.lien-retour:hover {
    background: #6b8e23;
    color: white;
}



/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #2a2a2a;
    color: rgba(255,255,255,0.6);
    padding: 36px 40px 24px;
    font-size: 14px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: "Damion", cursive;
    font-size: 26px;
    color: white;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
}



/* ============================================
   RESPONSIVE 576px
   ============================================ */

@media (max-width: 576px) {

    .header {
        flex-wrap: wrap;
        padding: 14px 20px;
        gap: 10px;
    }

    .burger {
        display: flex;
    }

    .menu {
        width: 100%;
        display: none;
    }

    .menu.open {
        display: block;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

    .hero {
        padding: 60px 20px 50px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-brand {
        font-size: 38px;
    }

    .plats-semaine {
        padding: 40px 20px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }

    .features {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .feature {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }

    .titre-page {
        padding: 30px 20px 10px;
    }

    .galerie-recettes {
        padding: 20px 20px 40px;
    }

    .recette {
        flex-direction: column;
    }

    .recette img {
        width: 100%;
        height: 180px;
    }

    .page-card {
        margin: 20px 16px;
        padding: 30px 24px;
    }

    .table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }

    .page-header {
        padding: 30px 20px 16px;
    }

    .footer {
        padding: 30px 20px 20px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

}
