/* =========================================================
   VN DESIGN — FX layer
   Transitions de pages, loader, reveals au scroll, micro-interactions.
   Chargé après style.css. Tout est désactivé si prefers-reduced-motion.
   ========================================================= */

:root {
  /* Couleurs alignées sur le logo officiel */
  --marine: #1A2341;
  --marine-light: #26315a;
  --marine-deep: #111830;
  --orange: #C4642F;
  --orange-dark: #A9521F;
  --orange-soft: #f2b88f;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

::selection { background: var(--orange); color: #fff; }

/* =========================================================
   1. RIDEAU DE TRANSITION + LOADER
   ========================================================= */

/* Couverture immédiate (avant que le JS n'injecte le rideau) pour éviter tout flash */
html.vt-enter::before,
html.vt-intro::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--marine);
  z-index: 10050;
}
html.vt-ready::before { display: none; }

.vt {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: none;
  overflow: hidden;
}
.vt.is-active { pointer-events: all; }

.vt-panel {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 115%, 0);
  will-change: transform;
}
.vt-panel::before,
.vt-panel::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  height: 22vh;
  border-radius: 50%;
  background: inherit;
}
.vt-panel::before { top: -11vh; }
.vt-panel::after { bottom: -11vh; }
.vt-p2::after { background: var(--marine); }

.vt-p1 { background: var(--orange); }
.vt-p2 { background: var(--marine); }

/* Grain subtil sur le panneau marine */
.vt-p2 .vt-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: screen;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vt-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #fff;
  text-align: center;
  padding: 24px;
}
.vt-roof { width: 150px; height: 118px; overflow: visible; }
.vt-grain { z-index: 1; }
.vt-center, .vt-counter, .vt-bar { z-index: 2; }
.vt-roof path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.vt-label {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.15;
  padding: 0 .1em .12em;
}
.vt-label span { display: inline-block; transform: translateY(110%); }
.vt-label em { color: var(--orange); }
.vt-sub {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  opacity: 0;
  transform: translateY(10px);
}
.vt-counter {
  position: absolute;
  right: 32px;
  bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: rgba(255,255,255,.08);
  font-variant-numeric: tabular-nums;
}
.vt-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

/* -- états -- */
.vt.is-covered .vt-panel { transform: none; transition: none; }

.vt.is-covering .vt-panel {
  transform: none;
  transition: transform .75s var(--ease-in-out);
}
.vt.is-covering .vt-p2 { transition-delay: .1s; }

.vt.is-covered .vt-roof path,
.vt.is-covering .vt-roof path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s var(--ease-out) .35s;
}
.vt.is-covering .vt-label span,
.vt.is-covered .vt-label span {
  transform: none;
  transition: transform .8s var(--ease-out) .45s;
}
.vt.is-covered .vt-sub,
.vt.is-covering .vt-sub {
  opacity: 1; transform: none;
  transition: opacity .6s ease .7s, transform .6s var(--ease-out) .7s;
}

.vt.is-revealing .vt-panel {
  transform: translate3d(0, -115%, 0);
  transition: transform .9s var(--ease-in-out);
}
.vt.is-revealing .vt-p1 { transition-delay: .12s; }
.vt.is-revealing .vt-center { opacity: 0; transform: translateY(-40px); transition: opacity .35s ease, transform .6s var(--ease-in-out); }
.vt.is-revealing .vt-roof path { stroke-dashoffset: 0; }
.vt.is-revealing .vt-label span { transform: none; }

/* Logo pendant l'intro */
.vt-logo {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  transform: scale(0);
  box-shadow: 0 0 0 0 rgba(196,100,47,.5);
}
.vt-logo img { width: 70%; height: auto; }
.vt.is-intro .vt-logo { transform: scale(1); transition: transform .8s var(--ease-back) .2s; animation: vtPulse 1.6s ease-out .9s; }
@keyframes vtPulse { to { box-shadow: 0 0 0 40px rgba(196,100,47,0); } }

/* =========================================================
   2. CURSEUR PERSONNALISÉ (desktop uniquement)
   ========================================================= */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
  .cursor, .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 10030;
    pointer-events: none;
    border-radius: 50%;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--orange);
  }
  .cursor {
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    border: 1.5px solid rgba(196,100,47,.65);
    display: grid; place-items: center;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out),
                background .3s ease, border-color .3s ease, opacity .3s ease;
  }
  .cursor-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; opacity: 0; transform: scale(.6);
    transition: opacity .25s ease, transform .35s var(--ease-out);
  }
  .cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(196,100,47,.12); border-color: var(--orange); }
  .cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--orange); border-color: var(--orange); }
  .cursor.is-view .cursor-label { opacity: 1; transform: none; }
  .cursor.is-drag { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--marine); border-color: var(--marine); }
  .cursor.is-drag .cursor-label { opacity: 1; transform: none; }
  .cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
  .cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
}

/* =========================================================
   3. HEADER : progression, masquage au scroll
   ========================================================= */
.site-header {
  transition: transform .5s var(--ease-out), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), #e08a52);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.main-nav a::after { transition: width .4s var(--ease-out); }
.main-nav a { transition: color .25s ease; }
.main-nav a:hover { color: var(--marine); }

/* Bouton "flip" : le texte glisse vers le haut au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--marine);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0;
  transition: transform .55s var(--ease-out), border-radius .55s var(--ease-out);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn-primary:hover { background: var(--orange); }
.btn-marine::before { background: var(--orange); }
.btn-marine:hover { background: var(--marine); }
.btn-outline::before { background: #fff; }
.btn-outline:hover { color: var(--marine); background: transparent; }
.btn-outline-dark:hover { background: transparent; }
.btn .btn-txt { display: inline-block; position: relative; }
.btn .btn-arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.magnetic { transition: transform .5s var(--ease-out); will-change: transform; }

/* =========================================================
   4. TEXTE DÉCOUPÉ (split) et reveals
   ========================================================= */
.js .split .w {
  display: inline-block;
  overflow: clip;
  vertical-align: top;
  padding: .06em .05em .14em;
  margin: -.06em -.05em -.14em;
}
.js .split .wi {
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotate(4deg);
  transform-origin: left top;
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
.js .split.is-in .wi { transform: none; }

/* Reveal générique (remplace l'ancien) */
.js .reveal { opacity: 1; transform: none; transition: none; }
.js [data-fx="up"] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity .9s ease, transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.js [data-fx="up"].is-in { opacity: 1; transform: none; }

.js [data-fx="fade"] { opacity: 0; transition: opacity 1.2s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-fx="fade"].is-in { opacity: 1; }

.js [data-fx="scale"] {
  opacity: 0;
  transform: scale(.92) translate3d(0, 30px, 0);
  transition: opacity .8s ease, transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-fx="scale"].is-in { opacity: 1; transform: none; }

/* Eyebrow : le trait s'allonge, les lettres s'espacent */
.js .eyebrow::before { transform: translateY(-50%) scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .1s; }
.js .eyebrow { letter-spacing: .4em; opacity: 0; transition: letter-spacing 1.2s var(--ease-out), opacity .8s ease; }
.js .eyebrow.is-in { letter-spacing: .14em; opacity: 1; }
.js .eyebrow.is-in::before { transform: translateY(-50%) scaleX(1); }

/* Révélation d'image : volet orange qui balaye puis découvre la photo */
.img-reveal { position: relative; overflow: hidden; }
.js .img-reveal img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.35);
  transition: clip-path 1.2s var(--ease-in-out) .35s, transform 1.8s var(--ease-out) .35s;
}
.js .img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 2;
  pointer-events: none;
}
.js .img-reveal.is-in::after { animation: wipe 1.3s var(--ease-in-out) forwards; animation-delay: calc(var(--i, 0) * 110ms); }
.js .img-reveal.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); transition-delay: calc(var(--i, 0) * 110ms + .5s); }
@keyframes wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Soulignement "coup de pinceau" sous les mots accentués (rappel du logo) */
.accent { position: relative; white-space: nowrap; }
.swoosh {
  position: absolute;
  left: -2%;
  bottom: -.22em;
  width: 104%;
  height: .38em;
  overflow: visible;
  pointer-events: none;
}
.swoosh path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .85;
  transition: stroke-dashoffset 1.2s var(--ease-out) .7s;
}
.is-in .swoosh path, .swoosh.is-in path { stroke-dashoffset: 0; }

/* Toit dessiné (motif du logo) */
.roof-line path {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-out) .2s;
}
.roof-line.is-in path { stroke-dashoffset: 0; }

/* =========================================================
   5. HERO D'ACCUEIL
   ========================================================= */
.hero {
  min-height: calc(100svh - var(--header-h));
  background: var(--marine) !important;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -8% 0 0;
  z-index: -1;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.18);
  transition: transform 3.2s var(--ease-out), filter 2s ease;
  filter: saturate(.6) brightness(.8);
}
.is-loaded .hero-media img { transform: scale(1.02); filter: none; }
.hero::before { z-index: 0; background:
  linear-gradient(90deg, rgba(17,24,48,.82) 0%, rgba(17,24,48,.45) 45%, rgba(17,24,48,.1) 75%),
  linear-gradient(180deg, rgba(26,35,65,.35) 0%, rgba(26,35,65,0) 40%, rgba(17,24,48,.9) 100%); }
.hero-inner { padding: 80px 24px 48px; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(600px circle at var(--hx, 70%) var(--hy, 40%), rgba(196,100,47,.22), transparent 60%);
  pointer-events: none;
  transition: background .2s;
}
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); max-width: 980px; letter-spacing: -.01em; line-height: 1.04; }
.hero .accent-hero { color: var(--orange); font-style: italic; }
.hero-roof {
  position: absolute;
  right: 4vw;
  top: 8%;
  width: min(36vw, 460px);
  z-index: 1;
  opacity: .5;
  pointer-events: none;
}
.hero-roof path { stroke-width: 2px; vector-effect: non-scaling-stroke; }
.js .hero-lede, .js .hero-cta, .js .hero-tags span, .js .hero-signature, .js .hero .eyebrow {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform 1.1s var(--ease-out);
}
.is-loaded .hero .eyebrow { opacity: 1; transform: none; letter-spacing: .14em; transition-delay: .15s; }
.is-loaded .hero-lede { opacity: 1; transform: none; transition-delay: .75s; }
.is-loaded .hero-cta { opacity: 1; transform: none; transition-delay: .9s; }
.is-loaded .hero-tags span { opacity: 1; transform: none; transition-delay: calc(1.05s + var(--i, 0) * 70ms); }
.is-loaded .hero-signature { opacity: 1; transform: none; transition-delay: 1.5s; }
.js .hero-tags { border-top-color: transparent; position: relative; }
.hero-tags::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: rgba(255,255,255,.25); transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease-out) 1s;
}
.is-loaded .hero-tags::before { transform: scaleX(1); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 14px;
  display: none;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--orange);
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@media (min-width: 1024px) { .scroll-cue { display: block; } }

/* =========================================================
   6. BANDEAU DÉFILANT (marquee)
   ========================================================= */
.marquee {
  background: var(--marine);
  color: #fff;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
  user-select: none;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1;
}
.marquee-item .o { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); font-style: italic; }
.marquee-item .star { color: var(--orange); font-size: .5em; }
.marquee.is-cream { background: var(--cream); color: var(--marine); border: 0; }
.marquee.is-cream .marquee-item .o { -webkit-text-stroke-color: rgba(26,35,65,.45); }

/* =========================================================
   7. CARTES : tilt 3D + reflet
   ========================================================= */
.tilt {
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .4s ease;
  position: relative;
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 3;
}
.tilt:hover::after { opacity: 1; }
.service-card:hover, .intro-card:hover { transform: none; }
.service-card { position: relative; }
.service-card::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
  z-index: 4;
}
.service-card:hover::before { transform: scaleX(1); }
.service-media img { transition: transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-in-out) .35s !important; }
.service-card:hover .service-media img { transform: scale(1.08) !important; }
.service-body h3 { transition: color .3s ease; }
.service-card:hover .service-body h3 { color: var(--orange); }
.service-num {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-serif); font-size: .85rem; color: #fff;
  background: rgba(26,35,65,.7); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 99px;
}

.intro-card { transition: transform .6s var(--ease-out), box-shadow .4s ease, border-color .3s ease; }
.intro-card:hover { border-color: rgba(196,100,47,.4); box-shadow: var(--shadow-lg); }
.intro-card .icon-wrap { transition: background .4s ease, transform .6s var(--ease-back); }
.intro-card:hover .icon-wrap { background: var(--orange); transform: rotate(-8deg) scale(1.08); }
.intro-card:hover .icon-wrap svg { stroke: #fff; }
.intro-card svg { transition: stroke .3s ease; }

/* =========================================================
   8. AVANT / APRÈS interactif
   ========================================================= */
.ba-slider {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: var(--marine);
  --pos: 50%;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0,0,0,.3);
}
.ba-knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.25);
  transition: transform .4s var(--ease-back);
}
.ba-knob svg { width: 26px; height: 26px; stroke: #fff; }
.ba-slider:hover .ba-knob { transform: scale(1.1); }
.ba-slider.is-dragging .ba-knob { transform: scale(.92); }
.ba-range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%;
  opacity: 0; margin: 0;
  cursor: ew-resize;
}
.ba-range:focus-visible + .ba-handle .ba-knob { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 20px; z-index: 3;
  font-size: .72rem; letter-spacing: .2em; font-weight: 700; text-transform: uppercase;
  padding: 8px 16px; border-radius: 99px;
  backdrop-filter: blur(8px);
  transition: opacity .3s ease;
  pointer-events: none;
}
.ba-tag.before { left: 20px; background: rgba(26,35,65,.75); color: #fff; }
.ba-tag.after { right: 20px; background: var(--orange); color: #fff; }
.ba-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: #fff; font-size: .8rem; font-weight: 600;
  background: rgba(17,24,48,.6); backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 99px; white-space: nowrap;
  pointer-events: none; transition: opacity .4s ease;
}
.ba-slider.was-used .ba-hint { opacity: 0; }

/* =========================================================
   9. MÉTHODE : ligne de progression liée au scroll
   ========================================================= */
.method-grid { position: relative; padding-top: 40px; }
.method-grid::before,
.method-grid::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: var(--border);
}
.method-grid::after { background: var(--orange); transform: scaleX(var(--mp, 0)); transform-origin: left; }
.method-step::before {
  content: "";
  position: absolute;
  top: -46px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--border);
  transition: background .4s ease, border-color .4s ease, transform .5s var(--ease-back);
}
.method-step.is-active::before { background: var(--orange); border-color: var(--orange); transform: scale(1.3); }
.method-num {
  font-size: clamp(3rem, 6vw, 4.6rem);
  opacity: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(196,100,47,.5);
  transition: color .6s ease, -webkit-text-stroke-color .6s ease;
}
.method-step.is-active .method-num { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
@media (max-width: 640px) {
  .method-grid { padding-top: 0; padding-left: 34px; }
  .method-grid::before, .method-grid::after { width: 2px; height: 100%; }
  .method-grid::after { transform: scaleY(var(--mp, 0)); transform-origin: top; }
  .method-step::before { top: 22px; left: -40px; }
}

/* =========================================================
   10. SECTIONS DIVERSES
   ========================================================= */
.realisations-block { overflow: hidden; }
.realisations-copy { position: relative; overflow: hidden; }
.realisations-copy::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 260px; height: 260px;
  border: 1px solid rgba(196,100,47,.25);
  border-radius: 50%;
  pointer-events: none;
}
.strip-cell { position: relative; overflow: hidden; }
.strip-cell.orange { background: linear-gradient(140deg, var(--orange), #a9521f); }
.zone-list li { transition: transform .3s var(--ease-out), color .3s ease; }
.zone-list li:hover { transform: translateX(6px); color: var(--orange); }

.faq-item { position: relative; transition: background .3s ease; }
.faq-item::before {
  content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 3px;
  background: var(--orange); transform: scaleY(0); transition: transform .5s var(--ease-out);
}
.faq-item[aria-expanded="true"]::before { transform: scaleY(1); }
.faq-q { transition: color .25s ease, padding-left .4s var(--ease-out); }
.faq-q:hover { color: var(--orange); padding-left: 10px; }
.faq-a { transition: max-height .6s var(--ease-out); }
.faq-q .plus {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .5s var(--ease-back), background .3s ease, color .3s ease, border-color .3s ease;
}
.faq-item[aria-expanded="true"] .plus { background: var(--orange); color: #fff; border-color: var(--orange); }

.cta-final { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, var(--orange) 0%, #b4552a 100%); }
.cta-final h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.cta-final .roof-line { position: absolute; left: 50%; top: 50%; width: min(90vw, 900px); transform: translate(-50%, -50%); z-index: -1; opacity: .18; }
.cta-final .roof-line path { stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.cta-final-contacts a { transition: transform .3s var(--ease-out), opacity .3s; }
.cta-final-contacts a:hover { transform: translateY(-3px); }

/* Page hero (pages intérieures) */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: center;
  padding: 110px 0 90px;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(196,100,47,.28), transparent 60%), var(--marine);
}
.page-hero .container { width: 100%; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 980px; margin: 0 auto .4em; line-height: 1.05; }
.page-hero .roof-line { position: absolute; left: 50%; top: 12%; width: min(80vw, 760px); transform: translateX(-50%); z-index: -1; opacity: .55; }
.page-hero .roof-line path { stroke-width: 2px; vector-effect: non-scaling-stroke; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  opacity: .14;
  background-size: cover; background-position: center;
  filter: grayscale(1);
  transform: scale(1.1);
}
.js .page-hero > .container > p:not(.eyebrow) { opacity: 0; transform: translateY(20px); transition: opacity 1s ease .7s, transform 1s var(--ease-out) .7s; }
.is-loaded .page-hero > .container > p:not(.eyebrow) { opacity: 1; transform: none; }
.page-hero .eyebrow { color: var(--orange-soft) !important; }

/* Prestations : lignes alternées image / texte */
.presta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.presta-row.is-reversed .presta-media { order: 2; }
.presta-media { position: relative; aspect-ratio: 4/3.4; border-radius: 8px; overflow: hidden; }
.presta-media img { width: 100%; height: 115%; object-fit: cover; }
.presta-num {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(196,100,47,.55);
  display: block;
  margin-bottom: 10px;
}
.presta-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.presta-copy ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.presta-copy li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.presta-copy li::before { content: ""; width: 18px; height: 2px; background: var(--orange); flex-shrink: 0; }
.presta-price {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 14px 22px; border-radius: 8px;
  background: var(--marine); color: rgba(255,255,255,.7);
  font-size: .85rem; margin-bottom: 18px;
}
.presta-price strong { font-family: var(--font-serif); font-size: 1.8rem; color: #fff; font-weight: 600; }
.presta-nav {
  position: sticky; top: var(--header-h-scrolled); z-index: 50;
  background: rgba(248,244,239,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.presta-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.presta-nav a {
  display: block; padding: 16px 18px; font-size: .88rem; font-weight: 600; color: var(--text-soft);
  white-space: nowrap; position: relative; transition: color .3s ease;
}
.presta-nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .4s var(--ease-out); }
.presta-nav a.is-current { color: var(--marine); }
.presta-nav a.is-current::after { transform: scaleX(1); }
@media (max-width: 860px) {
  .presta-row { grid-template-columns: 1fr; }
  .presta-row.is-reversed .presta-media { order: 0; }
  .presta-nav { top: 0; }
}

/* Tarifs */
.pricing-table tbody tr { transition: background .3s ease; }
.pricing-table tbody tr:hover { background: #fdf6f0; }
.pricing-table tbody td:first-child { position: relative; transition: padding-left .4s var(--ease-out); }
.pricing-table tbody tr:hover td:first-child { padding-left: 30px; }
.pricing-table tbody td:first-child::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.pricing-table tbody tr:hover td:first-child::before { transform: scaleX(1); }
.js .pricing-table tbody tr { opacity: 0; transform: translateX(-20px); transition: opacity .6s ease, transform .8s var(--ease-out), background .3s ease; transition-delay: calc(var(--i, 0) * 70ms + .2s); }
.js .pricing-block.is-in tbody tr { opacity: 1; transform: none; }

/* Réalisations : filtres animés */
.filter-btn { position: relative; overflow: hidden; isolation: isolate; transition: color .35s ease, border-color .35s ease; }
.filter-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--marine); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.filter-btn.is-active { background: var(--white); color: #fff; }
.filter-btn.is-active::before { transform: scaleY(1); }
.project-card { transition: opacity .45s ease, transform .6s var(--ease-out), box-shadow .4s ease; }
.project-card.is-out { opacity: 0; transform: scale(.9) translateY(20px); }
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-media img { transition: transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-in-out) .35s !important; }
.project-card:hover .project-media img { transform: scale(1.07) !important; }

/* Formulaire : labels et focus animés */
.form-field { position: relative; }
.form-field input, .form-field select, .form-field textarea { transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { box-shadow: 0 0 0 4px rgba(196,100,47,.14); }
.form-field label { transition: color .3s ease; }
.form-field:focus-within label { color: var(--orange); }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { animation: shake .45s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-success.is-visible { animation: popIn .7s var(--ease-back); }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }

/* Footer : grande signature */
.footer-signature {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 8vw, 6.6rem);
  line-height: 1;
  color: #fff;
  margin: 0 0 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  letter-spacing: -.01em;
}
.footer-signature em { color: var(--orange); }
.site-footer a { transition: color .3s ease; }
.site-footer ul a { position: relative; display: inline-block; transition: transform .35s var(--ease-out), color .3s ease; }
.site-footer ul a:hover { transform: translateX(6px); }

/* Retour en haut avec anneau de progression */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 95;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--marine);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .4s ease, transform .5s var(--ease-back), background .3s ease;
  box-shadow: 0 10px 30px rgba(17,24,48,.3);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange); }
.to-top svg.ring { position: absolute; inset: -3px; width: 60px; height: 60px; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.to-top:hover svg.ring circle { stroke: #fff; }
.to-top .arrow { width: 18px; height: 18px; stroke: currentColor; }
@media (max-width: 860px) { .to-top { bottom: 90px; right: 16px; width: 48px; height: 48px; } .to-top svg.ring { width: 54px; height: 54px; } }

/* Menu mobile plein écran animé */
.mobile-menu.is-open { animation: menuIn .6s var(--ease-out); }
@keyframes menuIn { from { clip-path: circle(0% at calc(100% - 40px) 0); } to { clip-path: circle(150% at calc(100% - 40px) 0); } }
.mobile-menu li { overflow: hidden; }
.mobile-menu li a { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; }
.mobile-menu.is-open li a { animation: linkUp .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + .15s); }
@keyframes linkUp { from { transform: translateY(100%); opacity: 0; } }

/* Grain global léger pour la matière */
.grain {
  position: fixed; inset: 0; z-index: 10020; pointer-events: none; opacity: .035;
  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)'/%3E%3C/svg%3E");
}

/* =========================================================
   11. ACCESSIBILITÉ : mouvements réduits
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .vt, .cursor, .cursor-dot, .grain, .scroll-cue { display: none !important; }
  html.vt-enter::before, html.vt-intro::before { display: none; }
  .js .split .wi, .js [data-fx], .js .eyebrow, .js .img-reveal img,
  .js .hero-lede, .js .hero-cta, .js .hero-tags span, .js .hero-signature, .js .hero .eyebrow,
  .js .pricing-table tbody tr, .js .page-hero > .container > p {
    opacity: 1 !important; transform: none !important; clip-path: none !important; letter-spacing: .14em;
  }
  .js .img-reveal::after { display: none; }
  .swoosh path, .roof-line path { stroke-dashoffset: 0 !important; }
  .marquee-track { transform: none !important; }
}

section[id] { scroll-margin-top: 130px; }

/* Ajustements de mise en page */
main section h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.01em; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 680px; }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
@media (min-width: 641px) and (max-width: 1099px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.projects-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 860px) { .mobile-menu .header-actions .btn-primary { display: inline-flex; } }
/* Header : évite le retour à la ligne de la navigation sur écrans intermédiaires */
@media (min-width: 861px) and (max-width: 1180px) {
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: .88rem; white-space: nowrap; }
  .header-actions .phone-btn { display: none; }
  .header-actions .btn-primary { padding: 12px 18px; font-size: .85rem; }
}
.main-nav a { white-space: nowrap; }

/* =========================================================
   12. PORTFOLIO
   ========================================================= */
.pf-section { padding-top: 64px; }
.pf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.pf-toolbar .filters { margin: 0; }
.pf-count { margin: 0; font-size: .9rem; white-space: nowrap; }
.pf-count strong { color: var(--orange); font-family: var(--font-serif); font-size: 1.3rem; }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pf-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  transition: opacity .45s ease, transform .6s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
}
.pf-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(196,100,47,.35); }
.pf-card.is-out { opacity: 0; transform: scale(.94) translateY(16px); }
.pf-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); --cut: 0%; }
.pf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-media .pf-after { transition: transform 1.2s var(--ease-out); }
.pf-card:hover .pf-after { transform: scale(1.05); }
.pf-media .pf-before {
  clip-path: inset(0 calc(100% - var(--cut)) 0 0);
  transition: clip-path .5s var(--ease-out);
  z-index: 1;
}
.pf-media.is-tracking .pf-before { transition: none; }
.pf-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px;
  background: #fff; z-index: 2; opacity: 0; transition: opacity .3s ease;
  box-shadow: 0 0 14px rgba(0,0,0,.35);
}
.pf-media.is-tracking::after { opacity: 1; }
.pf-badge, .pf-status {
  position: absolute; top: 14px; z-index: 3;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 99px;
}
.pf-badge { left: 14px; background: rgba(26,35,65,.82); color: #fff; backdrop-filter: blur(6px); }
.pf-status { right: 14px; background: #f3c14b; color: var(--marine); }
.pf-hover-hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-size: .75rem; color: #fff; background: rgba(17,24,48,.6); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 99px; opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.pf-hover-hint:empty { display: none; }
@media (hover: hover) { .pf-card:hover .pf-hover-hint { opacity: 1; transform: none; } }
@media (hover: none) { .pf-hover-hint { display: none; } }
.pf-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pf-body .project-tag { margin: 0; }
main section h2.pf-title, .pf-title { font-size: 1.35rem; margin: 0; line-height: 1.2; transition: color .3s ease; }
.pf-card:hover .pf-title { color: var(--orange); }
.pf-body p { font-size: .92rem; margin: 0; flex: 1; }
.pf-body .btn-link { align-self: flex-start; margin-top: 8px; font-size: .9rem; }

/* Carte mise en avant : pleine largeur, image à gauche */
.pf-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.pf-card.is-featured .pf-media { flex: 0 0 58%; aspect-ratio: 16 / 11; }
.pf-card.is-featured .pf-body { padding: clamp(28px, 4vw, 56px); justify-content: center; }
main section h2.pf-card.is-featured .pf-title, .pf-card.is-featured .pf-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.pf-card.is-featured .pf-body p { flex: 0; font-size: 1rem; }

@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 760px) {
  .pf-card.is-featured { flex-direction: column; }
  .pf-card.is-featured .pf-media { flex: none; aspect-ratio: 4 / 5; }
  .pf-card.is-featured .pf-body { padding: 22px 24px 26px; }
}
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-toolbar { flex-direction: column; align-items: stretch; }
  .pf-count { display: none; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -24px; padding: 4px 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}

/* Article de projet */
.pf-meta { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pf-chip {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.pf-chip.is-encours { background: #f3c14b; border-color: #f3c14b; color: var(--marine); }
.pf-hero h1 { font-size: clamp(2rem, 5.2vw, 4rem); }

.pf-article-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pf-visual { display: grid; gap: 28px; }
.ba-figure { margin: 0; }
.ba-figure figcaption { margin-top: 12px; font-size: .88rem; color: var(--text-soft); display: flex; align-items: center; gap: 10px; }
.ba-figure figcaption::before { content: ""; width: 18px; height: 2px; background: var(--orange); flex-shrink: 0; }
.ba-slider.is-portrait { aspect-ratio: 3 / 4; height: auto; min-height: 0; max-height: 84vh; width: 100%; border-radius: 10px; }
.pf-story { position: sticky; top: 110px; }
.pf-story h2 { margin-bottom: .6em; }
.pf-sub { font-size: 1.1rem; margin: 28px 0 14px; }
.pf-works { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.pf-works li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); line-height: 1.45; }
.pf-works li::before {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pf-story .btn { white-space: normal; text-align: left; }
@media (max-width: 900px) {
  .pf-article-grid { grid-template-columns: 1fr; }
  .pf-story { position: static; }
  .ba-slider.is-portrait { max-height: 78vh; }
}

.pf-note { max-width: 640px; }
.pf-gallery-group { margin-top: 48px; }
.pf-gallery-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pf-gallery-head h3 { margin: 0; font-size: 1.35rem; }
.pf-gallery-head .pf-chip { border-color: var(--border); color: var(--marine); }
.pf-gallery-head .pf-chip.is-avant { background: var(--marine); border-color: var(--marine); color: #fff; }
.pf-gallery-head .pf-chip.is-apres { background: var(--orange); border-color: var(--orange); color: #fff; }
.pf-gallery { columns: 3 240px; column-gap: 16px; }
.pf-shot {
  display: block; width: 100%; padding: 0; margin: 0 0 16px; border: 0; background: var(--white);
  border-radius: 8px; overflow: hidden; position: relative; cursor: zoom-in;
  break-inside: avoid; box-shadow: 0 6px 18px rgba(26,35,65,.08);
}
.pf-shot img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.pf-shot:hover img { transform: scale(1.05); }
.pf-shot-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .4s var(--ease-back);
}
.pf-shot-zoom svg { width: 18px; height: 18px; stroke: var(--marine); }
.pf-shot:hover .pf-shot-zoom, .pf-shot:focus-visible .pf-shot-zoom { opacity: 1; transform: none; }
@media (hover: none) { .pf-shot-zoom { opacity: 1; transform: none; width: 34px; height: 34px; } }
.pf-shot.is-cover { margin: 0; border-radius: 10px; }
@media (max-width: 480px) { .pf-gallery { columns: 2; column-gap: 10px; } .pf-shot { margin-bottom: 10px; } }

/* Projet précédent / suivant */
.pf-pager { display: grid; grid-template-columns: 1fr 1fr; }
.pf-pager-link { position: relative; min-height: 240px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: #fff; padding: 32px clamp(24px, 4vw, 56px); }
.pf-pager-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.pf-pager-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,24,48,.35), rgba(17,24,48,.88)); transition: background .4s ease; }
.pf-pager-link:hover img { transform: scale(1.06); }
.pf-pager-link:hover::before { background: linear-gradient(180deg, rgba(196,100,47,.45), rgba(17,24,48,.9)); }
.pf-pager-link span { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.2; max-width: 440px; }
.pf-pager-link small { display: block; font-family: var(--font-sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 8px; }
.pf-pager-link.is-next { justify-content: flex-end; text-align: right; }
@media (max-width: 640px) {
  .pf-pager { grid-template-columns: 1fr; }
  .pf-pager-link { min-height: 170px; }
  .pf-pager-link.is-next { justify-content: flex-start; text-align: left; }
}

/* Visionneuse plein écran */
.lb {
  position: fixed; inset: 0; z-index: 10035;
  background: rgba(13,18,36,.96);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  touch-action: pan-y;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: rgba(255,255,255,.8); font-size: .85rem; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 64px; }
.lb-img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 4px; transition: opacity .3s ease, transform .45s var(--ease-out); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-img.is-switching { opacity: 0; transform: scale(.97); }
.lb-caption { text-align: center; color: #fff; padding: 16px 20px 22px; font-family: var(--font-serif); font-size: 1.05rem; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.lb-btn:hover { background: var(--orange); border-color: var(--orange); }
.lb-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); } .lb-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-prev:hover, .lb-next:hover { transform: none; }
  .lb-caption { padding: 16px 76px 24px; font-size: .95rem; }
  .lb-img { max-height: calc(100svh - 170px); }
}
html.lb-lock, html.lb-lock body { overflow: hidden; }
.js .pf-grid > .pf-card.is-out { opacity: 0; transform: scale(.94) translateY(16px); }
.form-error-global { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); background: #fdecea; border: 1px solid #f3c2bd; color: #8c2a20; }
.form-error-global a { text-decoration: underline; }
