/* =================================================================
   BRÛLOT — Torréfacteur Artisanal
   Feuille de style principale
   ================================================================= */

/* ---------- 1. VARIABLES & RESET ---------- */
:root {
    --espresso:   #2a1a12;
    --espresso-2: #3a261a;
    --cream:      #f6efe6;
    --cream-2:    #efe5d8;
    --caramel:    #c8915f;
    --gold:       #d8a974;
    --ink:        #1c120c;
    --muted:      #8a7766;
    --white:      #fffaf4;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
    --container: 1240px;
    --radius: 18px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
ul  { list-style: none; }

::selection { background: var(--caramel); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--caramel); border-radius: 10px; }

/* ---------- 2. TYPO HELPERS ---------- */
.section__eyebrow {
    font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--caramel); font-weight: 500; margin-bottom: 1rem;
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.05; font-weight: 500; letter-spacing: -.01em;
    color: var(--espresso); margin-bottom: 1.4rem;
}

/* ---------- 3. BOUTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem 2.1rem; border-radius: 100px;
    font-size: .92rem; font-weight: 500; letter-spacing: .03em;
    position: relative; overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
    will-change: transform;
}
.btn--primary {
    background: var(--espresso); color: var(--cream);
    box-shadow: 0 10px 30px -10px rgba(42,26,18,.6);
}
.btn--primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, var(--caramel), var(--gold));
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(200,145,95,.6); }
.btn--primary:hover::after { transform: translateY(0); }
.btn--ghost {
    background: transparent; color: var(--espresso);
    border: 1px solid rgba(42,26,18,.3);
}
.btn--ghost:hover { background: var(--espresso); color: var(--cream); transform: translateY(-3px); }
.btn--full { width: 100%; }

/* ---------- 4. PRELOADER ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--espresso); color: var(--gold);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.2rem; transition: opacity .8s ease, visibility .8s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__cup { position: relative; animation: floaty 2.5s ease-in-out infinite; }
.preloader__label {
    font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .3em;
    text-transform: uppercase; opacity: 0; animation: fadeUp .8s .3s forwards;
}
.preloader__steam { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.preloader__steam span {
    width: 4px; height: 16px; background: var(--gold); border-radius: 4px;
    opacity: 0; animation: steam 1.8s ease-in-out infinite;
}
.preloader__steam span:nth-child(2) { animation-delay: .3s; }
.preloader__steam span:nth-child(3) { animation-delay: .6s; }
@keyframes steam { 0% { opacity:0; transform: translateY(6px) scaleY(.6);} 40%{opacity:.8;} 100%{opacity:0; transform: translateY(-14px) scaleY(1.2);} }
@keyframes floaty { 0%,100%{transform: translateY(0);} 50%{transform: translateY(-8px);} }
@keyframes fadeUp { from{opacity:0; transform: translateY(12px);} to{opacity:1; transform:translateY(0);} }

/* ---------- 5. PROGRESSION & CURSEUR ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1000;
    background: linear-gradient(90deg, var(--caramel), var(--gold)); transition: width .1s linear;
}
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none;
    z-index: 9998; transform: translate(-50%, -50%);
    mix-blend-mode: difference; /* s'inverse selon le fond → toujours visible */
}
.cursor-dot { width: 9px; height: 9px; background: #fff; }
.cursor-ring {
    width: 40px; height: 40px; border: 1.5px solid #fff;
    transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-width .3s var(--ease);
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,.15); border-width: 2px; }
@media (hover: none) { .cursor-dot, .cursor-ring, .scroll-progress { display: none; } }

/* ---------- 6. REVEAL (apparition au scroll) ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- 7. NAVIGATION ---------- */
.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
    padding: 1.5rem 0; transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
    background: rgba(246,239,230,.85); backdrop-filter: blur(14px);
    padding: .9rem 0; box-shadow: 0 8px 30px -16px rgba(42,26,18,.4);
}
.nav__inner {
    max-width: var(--container); margin: 0 auto; padding: 0 5vw;
    display: flex; align-items: center; justify-content: space-between;
}
/* Couleurs par défaut : claires (la nav est posée sur le hero sombre) */
.nav__logo {
    font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
    color: var(--white); letter-spacing: .02em; display: flex; align-items: center; gap: .4rem;
    text-shadow: 0 1px 12px rgba(0,0,0,.35); transition: color .4s var(--ease), text-shadow .4s var(--ease);
}
.nav__logo-mark { font-size: 1.3rem; }
.nav__menu { display: flex; align-items: center; gap: 2.4rem; }
.nav__menu a:not(.nav__cta) {
    font-size: .95rem; font-weight: 400; color: var(--white); position: relative;
    text-shadow: 0 1px 12px rgba(0,0,0,.35); transition: color .4s var(--ease), text-shadow .4s var(--ease);
}
.nav__menu a:not(.nav__cta)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
    background: var(--gold); transition: width .35s var(--ease);
}
.nav__menu a:not(.nav__cta):hover { color: var(--gold); }
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
    background: var(--gold); color: var(--espresso) !important;
    padding: .65rem 1.4rem; border-radius: 100px; font-size: .95rem; font-weight: 500;
    transition: background .35s, transform .35s, color .35s;
}
.nav__cta:hover { background: var(--white); transform: translateY(-2px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 4px; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--white); transition: .35s var(--ease); }

/* Une fois scrollé (fond crème) : on repasse en sombre */
.nav.is-scrolled .nav__logo { color: var(--espresso); text-shadow: none; }
.nav.is-scrolled .nav__menu a:not(.nav__cta) { color: var(--espresso); text-shadow: none; }
.nav.is-scrolled .nav__menu a:not(.nav__cta):hover { color: var(--caramel); }
.nav.is-scrolled .nav__menu a:not(.nav__cta)::after { background: var(--caramel); }
.nav.is-scrolled .nav__cta { background: var(--espresso); color: var(--cream) !important; }
.nav.is-scrolled .nav__cta:hover { background: var(--caramel); }
.nav.is-scrolled .nav__burger span { background: var(--espresso); }

/* ---------- 8. HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
    position: absolute; inset: -10% 0; z-index: -2;
    background: url('../img/hero.webp') center/cover no-repeat;
    transform: scale(1.1);
}
.hero__overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, rgba(28,18,12,.88) 0%, rgba(28,18,12,.55) 50%, rgba(28,18,12,.35) 100%);
}
.hero__content { max-width: var(--container); margin: 0 auto; padding: 8rem 5vw 4rem; width: 100%; }
.hero__eyebrow { color: var(--gold); letter-spacing: .26em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1.5rem; }
.hero__title {
    font-family: var(--font-display); color: var(--white);
    font-size: clamp(3rem, 8.5vw, 7rem); line-height: 1; font-weight: 500; letter-spacing: -.015em;
    margin-bottom: 1.8rem;
}
.hero__title em { color: var(--gold); font-style: italic; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; }
@keyframes wordUp { to { transform: translateY(0); } }
.hero__sub { color: rgba(255,250,244,.82); font-size: 1.15rem; max-width: 540px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.hero__actions .btn--ghost:hover { background: var(--white); color: var(--espresso); }

.hero__scroll {
    position: absolute; bottom: 9rem; left: 5vw; display: flex; flex-direction: column;
    align-items: center; gap: .6rem; color: rgba(255,250,244,.7);
}
.hero__scroll-line { width: 1px; height: 50px; background: rgba(255,250,244,.4); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: var(--gold); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%{transform: translateY(-100%);} 100%{transform: translateY(200%);} }
.hero__scroll-text { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }

/* Marquee */
.marquee { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--gold); padding: .8rem 0; overflow: hidden; }
.marquee__track { display: flex; gap: 2rem; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.1rem; color: var(--espresso); font-weight: 500; letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. STATISTIQUES ---------- */
.stats { background: var(--espresso); color: var(--cream); padding: 4.5rem 5vw; }
.stats__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background: rgba(255,250,244,.12); }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--gold); font-weight: 600; line-height: 1; }
.stat__label { font-size: .82rem; letter-spacing: .08em; color: rgba(246,239,230,.7); text-transform: uppercase; }

/* ---------- 10. ORIGINES ---------- */
.origines {
    max-width: var(--container); margin: 0 auto; padding: 7rem 5vw;
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.origines__media { position: relative; min-height: 520px; }
.origines__img { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(42,26,18,.5); }
.origines__img img { transition: transform .8s var(--ease); }
.origines__img:hover img { transform: scale(1.06); }
.origines__img--1 { width: 68%; top: 0; left: 0; z-index: 2; }
.origines__img--2 { width: 52%; bottom: 0; right: 0; z-index: 1; }
.origines__badge {
    position: absolute; top: 42%; right: 4%; z-index: 3;
    background: var(--gold); color: var(--espresso); font-weight: 600;
    width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
    text-align: center; font-size: .82rem; letter-spacing: .04em; padding: .5rem;
    box-shadow: 0 14px 30px -10px rgba(200,145,95,.7); animation: floaty 4s ease-in-out infinite;
}
.origines__text p { color: #5a4a3c; margin-bottom: 1.1rem; }
.origines__list { margin-top: 1.8rem; display: grid; gap: .9rem; }
.origines__list li { padding-left: 1.8rem; position: relative; color: #5a4a3c; }
.origines__list li::before { content: '✦'; position: absolute; left: 0; color: var(--caramel); }
.origines__list strong { color: var(--espresso); font-weight: 600; }

/* ---------- 11. PROCESS ---------- */
.process { background: var(--cream-2); padding: 7rem 5vw; }
.process__head { max-width: var(--container); margin: 0 auto 3.5rem; text-align: center; }
.process__head .section__eyebrow { display: block; }
.process__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.process__card {
    background: var(--white); border-radius: var(--radius); padding: 2.4rem 1.8rem;
    position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
    border: 1px solid rgba(42,26,18,.06);
}
.process__card:hover { transform: translateY(-10px); box-shadow: 0 30px 50px -25px rgba(42,26,18,.4); }
.process__card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--caramel), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.process__card:hover::before { transform: scaleX(1); }
.process__step { font-family: var(--font-display); font-size: 3rem; color: rgba(200,145,95,.22); font-weight: 600; position: absolute; top: 1rem; right: 1.3rem; }
.process__icon { font-size: 2.3rem; margin-bottom: 1rem; }
.process__card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--espresso); margin-bottom: .5rem; font-weight: 600; }
.process__card p { color: #6a584a; font-size: .94rem; }

/* ---------- 12. CARTE / PRODUITS ---------- */
.carte { max-width: var(--container); margin: 0 auto; padding: 7rem 5vw; }
.carte__head { text-align: center; margin-bottom: 3.5rem; }
.carte__head .section__eyebrow { display: block; }
.carte__intro { color: #6a584a; max-width: 540px; margin: 0 auto; }
.carte__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.product {
    background: var(--white); border-radius: var(--radius); overflow: hidden; position: relative;
    display: flex; flex-direction: column;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
    border: 1px solid rgba(42,26,18,.06);
}
.product:hover { transform: translateY(-12px); box-shadow: 0 40px 60px -30px rgba(42,26,18,.5); }
.product--featured { border-color: var(--gold); box-shadow: 0 20px 50px -28px rgba(200,145,95,.6); }
.product__ribbon {
    position: absolute; top: 1.2rem; left: -3rem; z-index: 5; background: var(--caramel); color: var(--white);
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .4rem 3.4rem; transform: rotate(-45deg);
}
.product__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product:hover .product__img img { transform: scale(1.08); }
.product__tag {
    position: absolute; bottom: 1rem; left: 1rem; background: rgba(28,18,12,.78); color: var(--cream);
    backdrop-filter: blur(4px); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    padding: .4rem .9rem; border-radius: 100px;
}
.product__body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--espresso); font-weight: 600; }
.product__origin { color: var(--caramel); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8rem; }
.product__notes { color: #6a584a; font-size: .94rem; flex: 1; margin-bottom: 1.4rem; }
.product__foot { display: flex; align-items: center; justify-content: space-between; }
.product__price { font-family: var(--font-display); font-size: 1.6rem; color: var(--espresso); font-weight: 600; }
.product__btn { background: var(--espresso); color: var(--cream); padding: .6rem 1.2rem; border-radius: 100px; font-size: .86rem; font-weight: 500; transition: background .35s, transform .35s; }
.product__btn:hover { background: var(--caramel); transform: scale(1.05); }

/* ---------- 13. CITATION PARALLAX ---------- */
.quote { position: relative; padding: 9rem 5vw; overflow: hidden; display: flex; justify-content: center; }
.quote__bg { position: absolute; inset: -15% 0; z-index: -2; background: url('../img/quote.webp') center/cover; transform: scale(1.1); }
.quote__overlay { position: absolute; inset: 0; z-index: -1; background: rgba(28,18,12,.82); }
.quote__text {
    max-width: 880px; text-align: center; font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.3; font-style: italic; color: var(--cream);
}
.quote__text cite { display: block; font-style: normal; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 1.6rem; font-family: var(--font-body); }

/* ---------- 14. GALERIE ---------- */
.galerie { max-width: var(--container); margin: 0 auto; padding: 7rem 5vw; }
.galerie__head { text-align: center; margin-bottom: 3rem; }
.galerie__head .section__eyebrow { display: block; }
.galerie__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1.2rem; }
.galerie__item { position: relative; overflow: hidden; border-radius: var(--radius); }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.galerie__item:hover img { transform: scale(1.1); }
.galerie__item--tall { grid-row: span 2; }
.galerie__item--wide { grid-column: span 2; }
.galerie__item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 1.4rem; color: var(--white);
    font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
    background: linear-gradient(transparent, rgba(28,18,12,.8));
    transform: translateY(100%); transition: transform .5s var(--ease);
}
.galerie__item:hover figcaption { transform: translateY(0); }

/* ---------- 15. AVIS ---------- */
.avis { background: var(--espresso); color: var(--cream); padding: 7rem 5vw; }
.avis__head { text-align: center; margin-bottom: 3.5rem; }
.avis__head .section__title { color: var(--cream); }
.avis__head .section__eyebrow { display: block; color: var(--gold); }
.avis__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.avis__card {
    background: var(--espresso-2); border: 1px solid rgba(216,169,116,.18); border-radius: var(--radius);
    padding: 2.2rem; transition: transform .5s var(--ease), border-color .5s;
}
.avis__card:hover { transform: translateY(-8px); border-color: var(--gold); }
.avis__stars { color: var(--gold); letter-spacing: .15em; margin-bottom: 1rem; }
.avis__card p { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; line-height: 1.5; color: var(--cream); margin-bottom: 1.4rem; }
.avis__card footer { font-size: .88rem; color: rgba(246,239,230,.6); }
.avis__card strong { color: var(--gold); font-weight: 500; }

/* ---------- 16. CONTACT ---------- */
.contact { max-width: var(--container); margin: 0 auto; padding: 7rem 5vw; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4.5rem; align-items: start; }
.contact__left p { color: #6a584a; }
.contact__info { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__info li { display: flex; align-items: center; gap: .9rem; color: #5a4a3c; }
.contact__info span { font-size: 1.2rem; }

.contact__right { background: var(--white); padding: 2.6rem; border-radius: var(--radius); box-shadow: 0 30px 60px -35px rgba(42,26,18,.5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field { position: relative; margin-bottom: 1.4rem; }
.form__field input, .form__field textarea {
    width: 100%; padding: 1.1rem 1rem .5rem; background: var(--cream); border: 1px solid transparent;
    border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .3s, background .3s; resize: vertical;
}
.form__field textarea { padding-top: 1.4rem; }
.form__field label {
    position: absolute; left: 1rem; top: 1rem; color: var(--muted); font-size: 1rem;
    pointer-events: none; transition: .25s var(--ease);
}
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--caramel); background: var(--white); }
.form__field input:focus + label, .form__field input:not(:placeholder-shown) + label,
.form__field textarea:focus + label, .form__field textarea:not(:placeholder-shown) + label {
    top: .35rem; font-size: .72rem; color: var(--caramel); letter-spacing: .04em;
}
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__flash { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-size: .94rem; }
.form__flash--success { background: #e6f3e9; color: #2e6b3e; border: 1px solid #b7ddc1; }
.form__flash--error   { background: #fbe8e6; color: #a23a2c; border: 1px solid #f2c4bd; }

/* ---------- 17. FOOTER ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 5rem 5vw 2rem; }
.footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(246,239,230,.1); }
.footer__brand .nav__logo { color: var(--cream); margin-bottom: 1rem; }
.footer__brand p { color: rgba(246,239,230,.55); font-size: .92rem; max-width: 280px; }
.footer__col h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col a { display: block; color: rgba(246,239,230,.65); font-size: .92rem; margin-bottom: .6rem; transition: color .3s, padding-left .3s; }
.footer__col a:hover { color: var(--gold); padding-left: 6px; }
.footer__newsletter p { color: rgba(246,239,230,.55); font-size: .9rem; margin-bottom: 1rem; }
.footer__form { display: flex; background: rgba(246,239,230,.08); border-radius: 100px; overflow: hidden; padding: .3rem; }
.footer__form input { flex: 1; background: none; border: none; padding: .6rem 1rem; color: var(--cream); font-family: inherit; }
.footer__form input:focus { outline: none; }
.footer__form input::placeholder { color: rgba(246,239,230,.4); }
.footer__form button { background: var(--gold); color: var(--ink); width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; transition: background .3s, transform .3s; }
.footer__form button:hover { background: var(--caramel); transform: scale(1.08); }
.footer__bottom { max-width: var(--container); margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(246,239,230,.5); }
.footer__credits a:hover { color: var(--gold); }

/* ---------- 18. TO-TOP ---------- */
.to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 800; width: 50px; height: 50px;
    background: var(--espresso); color: var(--cream); border-radius: 50%; font-size: 1.3rem;
    display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: .4s var(--ease); box-shadow: 0 10px 25px -10px rgba(42,26,18,.6);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--caramel); transform: translateY(-4px); }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 980px) {
    .origines { grid-template-columns: 1fr; gap: 3rem; }
    .origines__media { min-height: 420px; max-width: 480px; margin: 0 auto; width: 100%; }
    .process__grid { grid-template-columns: repeat(2, 1fr); }
    .carte__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .avis__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
    .stat:nth-child(2)::after { display: none; }
    .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav__menu {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--espresso);
        flex-direction: column; justify-content: center; gap: 2rem; padding: 3rem;
        transform: translateX(100%); transition: transform .5s var(--ease); z-index: 950;
    }
    .nav__menu.is-open { transform: translateX(0); }
    /* Dans le menu mobile (fond sombre), les liens restent clairs quel que soit le scroll */
    .nav__menu a:not(.nav__cta),
    .nav.is-scrolled .nav__menu a:not(.nav__cta) { color: var(--cream); font-size: 1.2rem; text-shadow: none; }
    .nav__cta, .nav.is-scrolled .nav__cta { color: var(--espresso) !important; background: var(--gold); font-size: 1.2rem; }
    .nav__burger { display: flex; z-index: 960; }
    .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cream); }
    .nav__burger.is-open span:nth-child(2) { opacity: 0; }
    .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cream); }
    .hero__scroll { display: none; }
    .process__grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .galerie__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .galerie__item--wide { grid-column: span 2; }
    .form__row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; text-align: center; }
    body { cursor: auto; }
}
