/* =====================================================================
   Chez Pat — café à Martigny-Croix
   Ambiance : café artisanal chaleureux des Alpes.
   Crème · espresso · terracotta · caramel · sauge.
   ===================================================================== */

:root {
    --cream:      #f6ecdb;
    --cream-2:    #fbf4e8;
    --paper:      #fffaf1;
    --espresso:   #2c1d14;
    --espresso-2: #4a3526;
    --mocha:      #8a6b50;
    --mocha-soft: #b29a82;

    --terracotta:      #c75b39;
    --terracotta-deep: #a8472a;
    --caramel:         #dd9b3f;
    --sage:            #7e8c57;

    --line:   rgba(44, 29, 20, .14);
    --line-2: rgba(44, 29, 20, .08);

    --radius:    22px;
    --radius-sm: 14px;
    --shadow:    0 18px 40px -22px rgba(44, 29, 20, .5);
    --shadow-lg: 0 40px 80px -30px rgba(44, 29, 20, .55);
    --ease:      cubic-bezier(.22, 1, .36, 1);

    --f-script:  "Caveat", cursive;
    --f-display: "Fraunces", Georgia, serif;
    --f-body:    "Mulish", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--espresso);
    background:
        radial-gradient(1200px 720px at 82% -8%, rgba(221, 155, 63, .22), transparent 60%),
        radial-gradient(900px 600px at 6% 4%, rgba(126, 140, 87, .14), transparent 55%),
        linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 45%, var(--cream) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.grain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: .5; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--terracotta-deep); text-decoration: none; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* Helpers typographiques */
.script  { font-family: var(--f-script); font-weight: 600; color: var(--terracotta); }
.eyebrow { font-family: var(--f-body); font-weight: 700; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta-deep); }
.title   { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(1.9rem, 4.4vw, 3rem); margin: .5rem 0 1rem; }
.muted   { color: var(--mocha); }

/* ------------------------------ Boutons ------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--f-body); font-weight: 700; font-size: 1rem;
    padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { color: #fff7ec; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep)); box-shadow: 0 14px 28px -12px rgba(199, 91, 57, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(199, 91, 57, .8); }
.btn--ghost { color: var(--espresso); background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta-deep); transform: translateY(-2px); }

/* ------------------------------- Chips -------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
    color: var(--espresso-2); background: var(--paper); border: 1px solid var(--line);
}
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(126,140,87,.25); }

/* Emplacements photo */
.photo-ph {
    display: grid; place-content: center; gap: .4rem; text-align: center;
    border: 2px dashed rgba(199, 91, 57, .45); border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(221,155,63,.16), rgba(199,91,57,.1));
    color: var(--terracotta-deep); font-weight: 600;
}
.photo-ph span { font-size: 1.8rem; }
.photo-ph p { margin: 0; font-size: .9rem; }

/* Quand une vraie photo est présente : on retire le cadre en pointillés
   et le fond dégradé, l'image remplit alors proprement le cadre arrondi. */
.photo-ph:has(> img) {
    display: block;
    border: 0;
    background: none;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: var(--radius);
}
.photo-ph > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .9rem clamp(1.1rem, 4vw, 2.5rem);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled {
    background: rgba(251, 244, 232, .85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--line-2), 0 10px 30px -20px rgba(44,29,20,.5);
    padding-top: .6rem; padding-bottom: .6rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--espresso); }
.nav__cup { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff7ec; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep)); box-shadow: var(--shadow); }
.nav__name { font-family: var(--f-script); font-weight: 700; font-size: 1.8rem; line-height: 1; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link {
    position: relative; padding: .5rem .85rem; border-radius: 999px;
    color: var(--espresso-2); font-weight: 600; font-size: .98rem;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
    content: ""; position: absolute; left: 50%; bottom: .28rem; width: 0; height: 2px;
    background: var(--terracotta); border-radius: 2px; transform: translateX(-50%);
    transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--terracotta-deep); }
.nav__link.is-active { color: var(--terracotta-deep); }
.nav__link.is-active::after { width: 18px; }
.nav__cta {
    margin-left: .4rem; padding: .55rem 1.15rem; border-radius: 999px; font-weight: 700;
    color: #fff7ec; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
    box-shadow: 0 10px 22px -12px rgba(199,91,57,.8); transition: transform .25s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
    position: relative; z-index: 2; min-height: 100svh;
    display: flex; align-items: center; padding: 7rem 0 4rem; overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(246,236,219,0) 58%, var(--cream) 100%),
        linear-gradient(100deg, rgba(251,244,232,.87), rgba(251,244,232,.82) 45%, rgba(246,236,219,.72) 100%),
        url("../img/fond.jpg");
    background-size: 100% 100%, cover, cover;
    background-position: center, center, center top;
    background-repeat: no-repeat;
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: -1; opacity: .32; }
.hero__blob--1 { width: 540px; height: 540px; right: -160px; top: -120px; background: radial-gradient(circle at 40% 40%, rgba(221,155,63,.5), transparent 65%); }
.hero__blob--2 { width: 460px; height: 460px; left: -160px; bottom: -160px; background: radial-gradient(circle at 60% 40%, rgba(126,140,87,.35), transparent 65%); }

.hero__inner { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__hello { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; margin: 0 0 -.4rem; transform: rotate(-4deg); display: inline-block; }
.hero__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(3.6rem, 12vw, 7rem); line-height: .9; letter-spacing: -.03em; margin: .2rem 0 0; color: var(--espresso); }
.hero__tagline { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--espresso-2); margin: 1.3rem 0 0; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.6rem 0 0; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 480px; }

/* Photo de Patricia — cadre type polaroïd, mise en avant */
.hero__photo {
    position: relative; z-index: 2;
    width: min(82%, 340px);
    padding: 12px 12px 14px;
    background: #fffdf8;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-3deg);
    animation: float 7s ease-in-out infinite;
}
.photo-ph--hero {
    position: relative; inset: auto; width: 100%; margin: 0;
    transform: none; box-shadow: none; border-radius: 12px; z-index: 1;
}
.photo-ph--hero > img { border-radius: 12px; }

/* Signature « Patricia » sous la photo */
.hero__badge {
    position: absolute; z-index: 3; right: -10px; bottom: 4px; margin: 0;
    padding: .3rem 1.15rem; font-size: 1.85rem; line-height: 1; color: #fff7ec;
    background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
    border-radius: 999px; box-shadow: 0 12px 24px -12px rgba(199,91,57,.9);
    transform: rotate(-4deg);
}

/* Décor : anneau pointillé + halo coloré + petits emblèmes */
.hero__ring {
    position: absolute; z-index: 0; top: -26px; right: -30px;
    width: 210px; height: 210px; border: 2px dashed rgba(199,91,57,.40);
    border-radius: 50%; pointer-events: none;
}
.hero__halo {
    position: absolute; z-index: 0; left: -42px; bottom: -6px;
    width: 230px; height: 230px; border-radius: 50%;
    background: radial-gradient(circle at 45% 45%, rgba(126,140,87,.34), transparent 70%);
    filter: blur(4px); pointer-events: none;
}
.hero__bean { position: absolute; z-index: 3; font-size: 1.5rem; pointer-events: none; animation: float 6s ease-in-out infinite; }
.hero__bean--1 { top: 2%; left: 4%; animation-delay: .6s; }
.hero__bean--2 { bottom: 6%; right: 0; font-size: 1.25rem; color: var(--terracotta); animation-delay: 1.4s; }

.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(44,29,20,.35); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; margin-left: -2px; width: 4px; height: 8px; border-radius: 2px; background: var(--terracotta); animation: wheel 1.8s ease-in-out infinite; }

/* =====================================================================
   Le café
   ===================================================================== */
.about { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.photo-ph--tall { aspect-ratio: 4/5; }
.about__badge {
    position: absolute; right: -14px; bottom: -22px;
    font-size: 1.7rem; line-height: 1.05; text-align: center; color: #fff7ec;
    background: var(--sage); padding: 1rem 1.3rem; border-radius: 50% 50% 50% 8px;
    box-shadow: var(--shadow); transform: rotate(-6deg);
}
.about__points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; }
.about__points li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--espresso-2); }
.about__points span { font-size: 1.2rem; }

/* =====================================================================
   Événements
   ===================================================================== */
.events { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section-head__sub { color: var(--mocha); margin: 0; }

.events__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.event {
    display: flex; gap: 1.1rem; padding: 1.3rem; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.event:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(199,91,57,.4); }
.event__date {
    flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-content: center; text-align: center;
    color: #fff7ec; background: linear-gradient(150deg, var(--terracotta), var(--terracotta-deep)); box-shadow: var(--shadow);
}
.event__day { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.event__mon { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.event__body { min-width: 0; }
.event__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta-deep); background: rgba(199,91,57,.12); padding: .2rem .6rem; border-radius: 999px; }
.event__tag--alt { color: #8a5a14; background: rgba(221,155,63,.2); }
.event__tag--sage { color: #4f5a30; background: rgba(126,140,87,.2); }
.event__title { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin: .5rem 0 .2rem; }
.event__meta { font-size: .88rem; color: var(--mocha); margin: 0 0 .5rem; font-weight: 600; }
.event__body p:last-child { margin: 0; color: var(--espresso-2); font-size: .95rem; }
.events__note { text-align: center; margin-top: 2rem; font-size: 1.05rem; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1rem 0 1.8rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: .9rem; }
.contact__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 1.2rem; }
.contact__list strong { font-family: var(--f-display); }
.contact__list em { font-size: .82rem; }

.hours__title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .5rem; }
.hours__table { width: 100%; border-collapse: collapse; max-width: 360px; }
.hours__table td { padding: .5rem .2rem; border-bottom: 1px dashed var(--line); font-weight: 600; }
.hours__table td:last-child { text-align: right; color: var(--espresso-2); }
.hours__table .closed { color: var(--terracotta-deep); }

.contact__right { display: grid; gap: 1.4rem; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 280px; border: 0; filter: sepia(.12) saturate(1.05); }
.map__link { position: absolute; right: 10px; bottom: 10px; font-size: .8rem; font-weight: 700; color: #fff7ec; background: rgba(44,29,20,.75); padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(4px); }

/* Formulaires */
.cform, .gform { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.cform__title, .gform__title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 1rem; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.field span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mocha); }
.field input, .field textarea {
    width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--espresso);
    padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream-2);
    outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(199,91,57,.18); background: var(--paper); }
.cform__status, .gform__status { margin: .8rem 0 0; font-weight: 700; font-size: .92rem; min-height: 1.2em; }
.is-ok { color: var(--sage); } .is-err { color: var(--terracotta-deep); }

/* =====================================================================
   Livre d'or
   ===================================================================== */
.guest { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.guest__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.glass { background: var(--paper); }
.gform { position: sticky; top: 96px; }

.guest__list { display: grid; gap: 1rem; }
.gcard {
    position: relative; padding: 1.2rem 1.3rem 1.3rem; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
    animation: rise .5s var(--ease) both;
}
.gcard::before { content: "\201C"; position: absolute; top: -.2rem; left: .8rem; font-family: var(--f-display); font-size: 3.4rem; color: rgba(199,91,57,.25); line-height: 1; }
.gcard__msg { margin: .4rem 0 .8rem; padding-left: 1.6rem; color: var(--espresso-2); font-style: italic; }
.gcard__foot { display: flex; align-items: center; gap: .6rem; }
.gcard__avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; color: #fff7ec; background: linear-gradient(135deg, var(--caramel), var(--terracotta)); }
.gcard__who { font-family: var(--f-display); font-weight: 600; }
.gcard__date { font-size: .8rem; color: var(--mocha); }
.guest__empty { color: var(--mocha); text-align: center; padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius); }

/* =====================================================================
   Footer + retour haut
   ===================================================================== */
.footer { position: relative; z-index: 2; background: var(--espresso); color: var(--cream); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.footer a { color: var(--cream); opacity: .82; transition: opacity .2s var(--ease); }
.footer a:hover { opacity: 1; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.footer__brand { font-family: var(--f-script); color: var(--caramel); font-size: 2.2rem; line-height: 1; display: block; }
.footer .muted { color: rgba(246,236,219,.6); }
.footer__nav, .footer__social { display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; }
.footer__bottom { text-align: center; margin: 2.5rem 0 0; font-size: .85rem; color: rgba(246,236,219,.55); }
.heart { color: var(--terracotta); }

.totop { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; color: #fff7ec; background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep)); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.totop svg { display: block; }
.totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.totop.is-visible:hover { transform: translateY(-3px); }

/* =====================================================================
   Révélations au défilement
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scaleY(.7); } 30% { opacity: .8; } 100% { opacity: 0; transform: translateY(-46px) scaleY(1.3); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
    .hero__inner, .about__grid, .contact__grid, .guest__grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 360px; order: -1; }
    .hero__photo { width: min(74%, 290px); margin: .5rem auto 0; }
    .about__media { max-width: 420px; }
    .gform { position: static; }
}

@media (max-width: 760px) {
    .nav__links {
        position: fixed; inset: 0 0 auto 0; top: 0; padding: 5.5rem 1.5rem 2rem;
        flex-direction: column; align-items: stretch; gap: .4rem;
        background: rgba(251,244,232,.98); backdrop-filter: blur(16px);
        box-shadow: var(--shadow-lg); transform: translateY(-110%); transition: transform .4s var(--ease);
    }
    .nav.is-open .nav__links { transform: translateY(0); }
    .nav__link { padding: .8rem 1rem; font-size: 1.1rem; border-bottom: 1px solid var(--line-2); }
    .nav__link::after { display: none; }
    .nav__cta { margin: .6rem 0 0; text-align: center; }
    .nav__burger { display: flex; }
    .cform__row { grid-template-columns: 1fr; }
    .about__points { grid-template-columns: 1fr; }
}

/* =====================================================================
   Galerie — aperçu (accueil)
   ===================================================================== */
.gallery-teaser { position: relative; z-index: 2; padding: clamp(2rem, 6vw, 4rem) 0; }
.teaser__strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .8rem; }
.teaser__item { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.teaser__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.teaser__item:hover img { transform: scale(1.06); }
.teaser__empty { text-align: center; padding: 2.5rem; border: 2px dashed rgba(199,91,57,.4); border-radius: var(--radius); color: var(--terracotta-deep); }
.teaser__empty span { font-size: 2rem; display: block; margin-bottom: .4rem; }
.teaser__empty p { margin: 0; font-weight: 600; }

/* =====================================================================
   Page Galerie
   ===================================================================== */
.galpage { position: relative; z-index: 2; }
.galpage__head { position: relative; overflow: hidden; padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(1.5rem, 4vw, 3rem); text-align: center; }
.galpage__title { font-size: clamp(2.4rem, 7vw, 4rem); margin: .3rem 0 0; }
.galpage__sub { color: var(--mocha); max-width: 46ch; margin: 1rem auto 0; }
.galpage__body { padding-bottom: clamp(3rem, 8vw, 6rem); }

.ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(.8rem, 2vw, 1.3rem); }
.gitem { margin: 0; }
.gitem__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.gitem__btn:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gitem__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gitem__btn:hover img { transform: scale(1.07); }
.gitem__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .8rem .7rem; text-align: left; color: #fff7ec; font-weight: 600; font-size: .9rem; background: linear-gradient(0deg, rgba(44,29,20,.85), transparent); }

.gal-empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.gal-empty span { font-size: 2.6rem; }
.gal-empty h2 { font-family: var(--f-display); font-weight: 600; margin: .6rem 0 .3rem; }
.gal-empty .btn { margin-top: 1.2rem; }

/* =====================================================================
   Visionneuse (lightbox)
   ===================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(28,18,12,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb__img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); transform: scale(.96); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.lightbox.is-open .lb__img { transform: scale(1); opacity: 1; }
.lb__img.is-swapping { opacity: 0; transform: scale(.98); }
.lb__caption { display: flex; align-items: center; gap: 1rem; color: var(--cream); font-weight: 600; }
.lb__count { color: var(--caramel); }
.lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); cursor: pointer; color: #fff7ec; background: rgba(255,255,255,.08); border-radius: 50%; backdrop-filter: blur(6px); transition: background .25s var(--ease), transform .25s var(--ease); }
.lb__btn:hover { background: var(--terracotta); transform: scale(1.08); }
.lb__close { top: clamp(1rem,3vw,1.6rem); right: clamp(1rem,3vw,1.6rem); width: 50px; height: 50px; font-size: 1.9rem; line-height: 1; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.3rem; }
.lb__nav:hover { transform: translateY(-50%) scale(1.08); }
.lb__prev { left: clamp(.6rem,3vw,1.6rem); } .lb__next { right: clamp(.6rem,3vw,1.6rem); }

/* Lien espace gérante (footer) */
.footer__admin { opacity: .55; }
.footer__admin:hover { opacity: 1; color: var(--caramel); }
