/* ========================================================================== */
/* 🎨 STYLES GLOBAUX - Atelier de Dorothée                                    */
/* ========================================================================== */

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

/* 🔧 Normalisation */
* {
    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 menu === */
.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;
}


/* === Social Icons in Header === */
.social-icons {
    display: flex;
    gap: 0.2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
    background: rgba(0,0,0,0.06);
    transform: scale(1.08);
}

/* Size of icons */
.icon {
    width: 22px;
    height: 22px;
}

/* Official Facebook blue */
.icon.fb {
    fill: #1877F2;
}

/* Official Instagram gradient simulation */
.icon.ig {
    fill: #DD2A7B;
}

/* Optional glow */
.social-link:hover .fb {
    filter: drop-shadow(0 0 6px rgba(24, 119, 242, 0.7));
}

.social-link:hover .ig {
    filter: drop-shadow(0 0 6px rgba(221, 42, 123, 0.7));
}



/* ========================================================================== */
/* 🏠 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(--dore);
    border-radius: 999px;
    color: var(--blanc) !important;
    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 — Max 2 par ligne                                         */
/* ========================================================================== */

.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 — Taille uniforme sans recadrage                                  */
/* ========================================================================== */

.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 si pas d'image */
.placeholder-card {
    width: 100%;
    height: 100%;
    color: var(--blanc);
    background: var(--dore-clair);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0; /* j’annule l’arrondi hérité visuel */
    overflow: visible; /* permet au contenu de dépasser */
}

/* ========================================================================== */
/* 📝 TEXTE DANS LA CARTE                                                     */
/* ========================================================================== */
.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) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dropdown version lien simple */
.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; /* une seule carte par ligne */
        gap: 1.2rem;
    }

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

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