*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #F5F1EA; --cream-dark: #EDE8DF;
    --black: #0D0D0D; --charcoal: #1C1C1C;
    --warm-gray: #8C887F; --gold: #B8956A;
    --gold-light: #E4D4BC; --white: #FFFFFF;
    --border: rgba(0,0,0,0.09); --border-gold: rgba(184,149,106,0.3);
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--black); font-weight: 300; overflow-x: hidden; }

/* ===================== NAV ===================== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 3rem;
    background: rgba(245,241,234,0.94); backdrop-filter: blur(14px);
    border-bottom: 0.5px solid var(--border);
    overflow: visible;
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; letter-spacing: 0.2em; color: var(--black); text-decoration: none; }
.nav-logo span { color: var(--gold); }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul a { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); text-decoration: none; transition: color 0.2s; }
nav ul a:hover { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--black); display: block; transition: transform 0.22s ease, opacity 0.22s ease; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-logo-img {
    height: 58px; width: auto; display: block;
    filter: brightness(0);
    position: absolute; top: 50%; transform: translateY(-50%);
}

/* ===================== HERO ===================== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 3rem 4rem; }
.hero-text { max-width: 620px; text-align: center; }
.bismillah { text-align: center; font-size: 2rem; display: block; color: var(--gold); margin-bottom: 1.5rem; }
.hero-tag { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--warm-gray); margin-bottom: 1.2rem; display: block; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5.5vw, 4.5rem); font-weight: 300; line-height: 1.08; margin-bottom: 1rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-devise { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic; color: var(--warm-gray); margin: 0 auto 2rem; padding-left: 1rem; border-left: 2px solid var(--gold-light); max-width: 460px; text-align: left; }
.hero-desc { font-size: 0.88rem; line-height: 1.9; color: var(--warm-gray); margin: 0 auto 2rem; max-width: 460px; }
.hero-divider { width: 30px; height: 1px; background: var(--gold); margin: 0 auto 2rem; opacity: 0.5; }

.btn-primary { display: inline-block; padding: 0.9rem 2.5rem; background: var(--black); color: var(--white); font-family: 'Jost', sans-serif; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: background 0.25s; }
.btn-primary:hover { background: var(--gold); }

/* ===================== SECTIONS BASE ===================== */
.section-header { text-align: center; padding: 5rem 2rem 2.5rem; }
.section-tag { font-size: 0.67rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; line-height: 1.15; }
.section-sub { font-size: 0.85rem; color: var(--warm-gray); line-height: 1.8; margin-top: 1rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===================== COLLECTION ===================== */
#collection {
    scroll-margin-top: 1.8rem;
    padding: 0 3rem 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#collection .section-header { padding: 3rem 2rem 1.5rem; }
#collection .section-title { font-size: clamp(1.4rem, 2.5vw, 2rem); }
#collection .section-sub { font-size: 0.78rem; margin-top: 0.5rem; }

/* GALERIE DE COLLECTIONS (page d'accueil) */
.collections-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}
.collection-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}
.collection-card:hover { transform: translateY(-4px); }
.collection-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background: #E2DDD5;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-radius: 8px;
}
.collection-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: var(--gold);
    color: var(--white);
    font-family: 'Jost', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.42rem 0.85rem;
    border-radius: 3px;
    animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(184,149,106,0.65); transform: scale(1); }
    70%  { box-shadow: 0 0 0 12px rgba(184,149,106,0); transform: scale(1.06); }
    100% { box-shadow: 0 0 0 0 rgba(184,149,106,0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .collection-card-badge { animation: none; }
}
.collection-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.collection-card:hover .collection-card-img img { transform: scale(1.04); }
.collection-card-img-future {
    background: repeating-linear-gradient(45deg, var(--cream-dark), var(--cream-dark) 8px, var(--border) 8px, var(--border) 9px);
}
.collection-card-future { cursor: default; }
.collection-card-future:hover { transform: none; }
.collection-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 300; margin-bottom: 0.4rem; text-align: center; }
.collection-card-link { display: block; text-align: center; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.collection-card-future .collection-card-link { color: var(--warm-gray); }

/* ===================== ACCESSOIRES ===================== */
#accessoires {
    scroll-margin-top: 1.8rem;
    padding: 2rem 3rem 6rem;
}
#accessoires .section-header { padding: 3rem 2rem 1.5rem; }
#accessoires .section-title { font-size: clamp(1.4rem, 2.5vw, 2rem); }
#accessoires .section-sub { font-size: 0.78rem; margin-top: 0.5rem; }

.accessories-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

.collection-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--warm-gray);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    border: 0.5px dashed var(--border);
}

.collection-tabs { display: flex; justify-content: center; border: 0.5px solid var(--border); width: fit-content; margin: 0 auto 1rem; }
.tab-btn { padding: 0.65rem 2rem; font-family: 'Jost', sans-serif; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; background: transparent; border: none; cursor: pointer; color: var(--warm-gray); transition: all 0.2s; }
.tab-btn.active { background: var(--black); color: var(--white); }
.tab-btn:hover:not(.active) { color: var(--black); }

/* Grille adaptative : jamais de carte isolée, que ce soit 1, 2, 3 ou 5 produits */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: start; gap: 2rem; }
.product-card { cursor: pointer; transition: transform 0.3s; text-decoration: none; color: inherit; display: block; }
.product-card:hover { transform: translateY(-4px); }
.product-img { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1rem; background: #E2DDD5; border-radius: 8px; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; margin-bottom: 0.25rem; }
.product-meta { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--warm-gray); }
.product-swatches { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.swatch-dot {
    width: 17px; height: 17px; border-radius: 50%;
    border: 1.5px solid transparent;
    outline: 1px solid rgba(0,0,0,0.08);
    outline-offset: 1px;
    padding: 0; cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}
.swatch-dot:hover { transform: scale(1.15); }
.swatch-dot.active { border-color: var(--gold); }

/* SAVIEZ-VOUS — textes réutilisés dans collection.html (voir css/collection.css pour le conteneur) */
.savez-label-side { font-size: 0.67rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: block; }
.savez-title-side { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; color: var(--white); line-height: 1.3; margin-bottom: 1.5rem; }
.savez-title-side em { font-style: italic; color: var(--gold); }
.savez-text-side { font-size: 0.83rem; line-height: 1.9; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.savez-divider-side { width: 25px; height: 1px; background: var(--gold); margin: 1.5rem 0; opacity: 0.5; }
.savez-quote-side { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ===================== FORMULAIRE ===================== */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.form-control { background: rgba(255,255,255,0.05); border: 0.5px solid rgba(255,255,255,0.12); color: var(--white); font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 300; padding: 0.75rem 1rem; outline: none; transition: border-color 0.2s; width: 100%; }
.form-control:focus { border-color: var(--gold); }
.form-control option { background: #1C1C1C; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-order { padding: 1rem; background: var(--gold); color: var(--white); border: none; cursor: pointer; font-family: 'Jost', sans-serif; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.2s; margin-top: 0.5rem; width: 100%; }
.btn-order:hover { background: #a5835a; }

/* ===================== CONTACT ===================== */
#contact-section { background: var(--black); color: var(--white); padding: 6rem 3rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-col-tag { font-size: 0.67rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.8rem; }
.contact-col-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; color: var(--white); margin-bottom: 2rem; line-height: 1.2; }
.contact-col-desc { font-size: 0.83rem; line-height: 1.9; color: rgba(255,255,255,0.45); }
.contact-col:not(:last-child) { border-right: 0.5px solid rgba(255,255,255,0.08); padding-right: 4rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }

.order-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.order-detail-icon { color: var(--gold); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.order-detail-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.65; }
.order-detail-text strong { color: rgba(255,255,255,0.8); font-weight: 400; display: block; }

.instagram-link { display: flex; align-items: center; gap: 0.8rem; color: var(--gold); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 1.2rem; transition: opacity 0.2s; }
.instagram-link:hover { opacity: 0.7; }

/* ===================== FOOTER ===================== */
footer { background: #111; color: rgba(255,255,255,0.3); text-align: center; padding: 3rem; font-size: 0.7rem; letter-spacing: 0.1em; }
footer .footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; display: block; }
footer .footer-devise { font-style: italic; color: var(--gold); margin-bottom: 1rem; font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; }

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid rgba(255,255,255,0.08);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
}

.legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.legal-links a { color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.legal-links a:hover { color: var(--gold); }

/* ===================== ANIMATIONS ===================== */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.75s, transform 0.75s; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    /* NAV */
    nav { padding: 1.2rem 1.5rem; }
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 73px; left: 0; right: 0;
        background: var(--cream);
        border-bottom: 0.5px solid var(--border);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    nav ul.nav-open { max-height: 320px; opacity: 1; }
    nav ul li { width: 100%; }
    nav ul a { display: block; padding: 1rem 1.5rem; font-size: 0.78rem; }
    .nav-hamburger { display: flex; }
    .nav-logo-img { position: static; transform: none; height: 45px; }

    /* HERO */
    .hero { padding: 7rem 1.5rem 2rem; gap: 1rem; min-height: auto; }
    .bismillah { font-size: 1.3rem; text-align: right; }

    /* COLLECTION */
    #collection { padding: 0 1.5rem 3rem; scroll-margin-top: 60px;}
    .collections-gallery { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 1.5rem; }
    .products-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); justify-content: center; gap: 1rem; }
    .collection-tabs { margin: 0 auto 1.5rem; }

    /* ACCESSOIRES */
    #accessoires { padding: 0 1.5rem 3rem; scroll-margin-top: 60px; }
    .accessories-gallery { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 1.5rem; }

    /* CONTACT */
    #contact-section { padding: 3rem 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-col:not(:last-child) { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.08); padding-right: 0; padding-bottom: 2.5rem; }

    /* FOOTER */
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
    .legal-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

    /* FORM */
    .form-row { grid-template-columns: 1fr; }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1000;
    max-width: 560px;
    margin: 0 auto;
    background: var(--charcoal);
    color: var(--white);
    padding: 1.2rem 1.4rem;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.cookie-banner-text { font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.cookie-banner-actions { display: flex; justify-content: flex-end; gap: 0.7rem; }
.cookie-banner-actions button {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 0.55rem 1.2rem;
    border-radius: 3px;
    cursor: pointer;
    border: 0.5px solid rgba(255,255,255,0.25);
    background: transparent;
    color: var(--white);
}
.cookie-banner-accept { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--white) !important; }
@media (max-width: 480px) {
    .cookie-banner { left: 0.8rem; right: 0.8rem; bottom: 0.8rem; padding: 1rem; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions button { flex: 1; }
}