/* ========================================================================== */
/* 🎨 PALETTE & BASE    #7E9B78;                                                      */
/* ========================================================================== */

:root {
    --sauge: #7E9B78;
    --sauge-clair: #BFCDBA;
    --sauge-fonce: #6C8562;
    --dore: #C7A557;
    --dore-clair: #c8b17b;
    --blanc: #f5f2fa;
    --texte: #2E2E2E;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--blanc);
    color: var(--texte);
}

/* ========================================================================== */
/* 🧭 HEADER                                                                  */
/* ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--blanc);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--texte);
    gap: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.header-text h1 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
}

.header-text p {
    margin: .2rem 0 0;
    font-size: .92rem;
    color: #555;
}

/* Navigation */
.nav {
    display: flex;
    gap: .8rem;
}

.nav a {
    text-decoration: none;
    padding: .4rem .8rem;
    border-radius: 50px;
    transition: .2s;
    color: var(--texte);
}

.nav a:hover {
    background: var(--sauge);
    color: var(--blanc);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--texte);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: var(--sauge);
    color: var(--blanc);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--blanc);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.6rem 0;
    z-index: 25;
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--texte);
    text-decoration: none;
}

.dropdown-content a:hover {
    background: var(--sauge);
    color: var(--blanc);
}

.dropdown:hover .dropdown-content {
    display: block;
}


.footer .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin: 1rem auto;
    padding: 0;
}

.footer .social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.footer .social-link:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.08);
}

.footer .icon {
    width: 24px;
    height: 24px;
    display: block;
}

.footer .icon.fb {
    fill: #1877F2;
}

.footer .icon.ig {
    fill: #DD2A7B;
}
/* ========================================================================== */
/* 🏠 CONTENU PRINCIPAL                                                       */
/* ========================================================================== */

.main {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1.5rem 3rem;
}

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

.hero {
    background: linear-gradient(135deg, var(--sauge), var(--sauge-fonce));
    border-radius: 25px;
    padding: 3rem 2rem;
    color: var(--blanc);
    margin-bottom: 3rem;
}

.hero h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.6rem;
    background: var(--sauge);
    border-radius: 999px;
    color: var(--blanc);
    font-weight: 600;
    text-decoration: none;
}

/* ========================================================================== */
/* 🧁 TITRES & SECTIONS                                                       */
/* ========================================================================== */

.section {
    margin-bottom: 2.5rem;
}

.page-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 1.6rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================================================== */
/* 🧩 GRILLE CARTES                                                           */
/* ========================================================================== */

.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* ========================================================================== */
/* 🧺 CARTE CRÉATION                                                          */
/* ========================================================================== */

.card-creation {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: .2s ease-in-out;
}

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

/* Image */
.card-img-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blanc);
    border-radius: 18px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.placeholder-card {
    width: 100%;
    height: 100%;
    color: var(--blanc);
    background: var(--dore-clair);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Texte */
.card-body {
    padding: 1rem;
}

.card-body h3 {
    margin: .4rem 0;
    font-family: "Playfair Display", serif;
}

.card-body p {
    margin: .2rem 0;
    color: #555;
}

.card-footer {
    margin-top: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .9rem;
}

.categorie {
    font-size: .85rem;
    color: #777;
}

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

.footer {
    background: #1f1f1f;
    padding: 2rem 1.5rem;
    color: var(--blanc);
    text-align: center;
    font-size: .9rem;
}

.footer a {
    color: var(--sauge-clair);
}

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

@media (max-width: 768px) {
    /* On garde l'alignement horizontal mais on autorise le passage à la ligne */
    .header-inner {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: space-between;
        align-items: center; /* Aligne verticalement le hamburger avec le texte */
    }

    .hamburger {
        display: block;
        order: 2; /* Force le bouton à être après le logo/texte */
        padding: 5px;
        line-height: 1;
    }

    .logo-title {
        order: 1;
        flex: 1; /* Permet au texte de prendre la place disponible */
    }

    /* Le menu de navigation doit prendre toute la largeur pour passer en dessous */
    .nav.mobile-hidden, 
    .nav.mobile-visible {
        order: 3; /* Apparaît après le duo texte/hamburger */
        width: 100%;
        display: none; /* Caché par défaut */
        flex-direction: column;
        
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .nav.mobile-visible {
        display: flex; /* S'affiche quand on clique */
    }
}

.link-dropdown {
    display: inline-block;
}

.link-dropdown .nav-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.link-dropdown .dropdown-content {
    min-width: 200px;
}

@media (max-width: 480px) {
    .creations-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card-creation {
        max-width: 100%;
    }

    .card-img-wrapper {
        height: 220px;
    }
}

/* ========================================================================== */
/* 📱 MENU HAMBURGER                                                          */
/* ========================================================================== */

.hamburger {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--texte);
}

.nav.mobile-hidden {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0;
}

.nav.mobile-visible {
    display: flex;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: none;
    }
}

/* ========================================================================== */
/* 🌿 COULEUR SAUGE POUR LES INFOS PRODUIT                                    */
/* ========================================================================== */


.card-body .dates-sauge {
    color: var(--sauge-fonce);
    font-weight: 600;
}
.card-body .formats-sauge {
    color: var(--sauge-fonce);
    font-weight: 600;
}
.card-body .prix-sauge {
    color: var(--sauge-fonce);
    font-weight: 600;
}
.card-body .description {
    font-style: italic;
}
/*
body {
    border: 10px solid red !important;
}
    */
.nav-links-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.note {
    font-size: 0.65rem;
    color: #777;
    font-style: italic;
    margin-left: 5px;
}
/* ============================= */
/* 👩‍🍳 PAGE QUI SUIS-JE         */
/* ============================= */

.presentation-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.presentation-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.presentation-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.presentation-text {
    flex: 2;
    min-width: 280px;
}

.presentation-text h2 {
    font-family: "Playfair Display", serif;
    margin-bottom: 1rem;
}

.presentation-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
