:root {
  /* Charte 360photo : noir profond et argent brossé (carte de visite) */
  --encre: #0a0a0b;
  --encre-2: #141416;
  --papier: #ecebe8;
  --papier-doux: rgba(236, 235, 232, .62);
  --trait: rgba(236, 235, 232, .14);
  --ambre: #bfc4cb;                /* argent : accent des étiquettes */
  --argent: linear-gradient(100deg, #8a8f96 0%, #f3f4f6 34%, #a4a9b0 52%, #e6e8eb 72%, #7c8188 100%);
  --rouge: #d63c27;
  --rail: 64px;
  --courbe: cubic-bezier(.16, 1, .3, 1);
  --geant: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--encre);
  color: var(--papier);
  font: 400 17px/1.55 var(--geant);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ambre); color: var(--encre); }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.etiquette { color: var(--ambre); margin: 0 0 22px; }
.masque { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.masque > span { display: inline-block; }
.titre-section {
  font: 800 clamp(34px, 5.4vw, 76px)/.95 var(--geant);
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.titre-section em { text-transform: none; font-size: .9em; color: var(--papier-doux); }

/* ---------- Logo 360photo (signature en argent brossé) ---------- */
.marque {
  display: block; aspect-ratio: 1400 / 455; background: var(--argent);
  -webkit-mask: url("img/signature.png") center / contain no-repeat; mask: url("img/signature.png") center / contain no-repeat;
}
.marque-geante { width: clamp(260px, 58vw, 860px); max-width: 100%; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .55)); }

/* ---------- Grain argentique ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.anim .grain { animation: grain 1s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Mire (curseur de mise au point) ---------- */
.mire { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anim .mire {
    display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    transition: width .35s var(--courbe), height .35s var(--courbe), margin .35s var(--courbe), opacity .3s;
    background:
      linear-gradient(var(--papier), var(--papier)) 0 0 / 8px 1px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 0 0 / 1px 8px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 100% 0 / 8px 1px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 100% 0 / 1px 8px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 0 100% / 8px 1px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 0 100% / 1px 8px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 100% 100% / 8px 1px no-repeat,
      linear-gradient(var(--papier), var(--papier)) 100% 100% / 1px 8px no-repeat;
    mix-blend-mode: difference;
  }
  .mire i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--ambre); }
  .mire.sur-photo { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .mire.sur-lien { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .anim body, .anim a, .anim button { cursor: none; }
  .anim input, .anim textarea, .anim select { cursor: auto; }
}

/* ---------- Viseur de chargement ---------- */
.viseur { display: none; }
.anim .viseur {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden;
}
.viseur-photo {
  position: absolute; inset: -6%;
  background: url("img/hero-m.webp") center / cover;
  filter: blur(26px) brightness(.55) saturate(1.2);
  transform: scale(1.12);
}
.viseur-photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 30%, rgba(0, 0, 0, .9) 100%);
}
.viseur-cadre {
  position: relative; width: min(64vw, 620px); aspect-ratio: 3 / 2;
  font: 500 11px/1 var(--mono); letter-spacing: .3em; color: rgba(236, 235, 232, .78);
}
.coin { position: absolute; width: 26px; height: 26px; border-color: rgba(236, 235, 232, .7); border-style: solid; border-width: 0; }
.c1 { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.c2 { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.c3 { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.c4 { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.viseur-nom { position: absolute; left: 4%; top: 14%; text-transform: uppercase; }
.viseur-crochets {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 72px; transform: translate(-50%, -50%);
  border: 1px solid rgba(236, 235, 232, .7); border-top: 0; border-bottom: 0;
}
.viseur-crochets::before, .viseur-crochets::after {
  content: ""; position: absolute; left: -1px; right: -1px; height: 7px; border: 1px solid rgba(236, 235, 232, .7); border-bottom: 0;
}
.viseur-crochets::before { top: 0; }
.viseur-crochets::after { bottom: 0; transform: scaleY(-1); }
.viseur-point { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--ambre); opacity: 0; }
.viseur-donnees {
  position: absolute; left: 0; right: 0; bottom: 8%;
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 4vw, 48px);
}
.viseur-reglette { display: flex; gap: 5px; align-items: flex-end; }
.viseur-reglette i { width: 1px; height: 9px; background: rgba(236, 235, 232, .55); }
.viseur-reglette i:nth-child(3n) { height: 14px; }
.viseur-reglette i.on { background: var(--rouge); }
.viseur-pct { color: var(--rouge); min-width: 4ch; text-align: center; }
.viseur-aide { position: absolute; left: 0; right: 0; top: calc(100% + 28px); text-align: center; color: rgba(236, 235, 232, .5); }
.obturateur { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; z-index: 2; transform: scaleY(0); }
.o-haut { top: 0; transform-origin: top; }
.o-bas { bottom: 0; transform-origin: bottom; }
.flash { position: absolute; inset: 0; background: #fff6e6; opacity: 0; z-index: 3; pointer-events: none; }
html.charge .viseur { pointer-events: none; }

/* ---------- Intro : objectif 3D ---------- */
.objectif { display: none; }
.intro .objectif {
  display: block; position: fixed; inset: 0; z-index: 101; overflow: hidden; cursor: default;
  background: radial-gradient(ellipse 75% 60% at 50% 42%, #18191c 0%, #070708 58%, #000 100%);
}
.intro .viseur-cadre, .intro .viseur-photo { visibility: hidden; }
.objectif canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.objectif-legende {
  position: absolute; left: 16px; right: 16px; bottom: clamp(70px, 13vh, 130px);
  display: grid; justify-items: center; gap: 14px; pointer-events: none;
}
.objectif-legende .marque { width: clamp(200px, 30vw, 420px); clip-path: inset(0 100% 0 0); filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .7)); }
.objectif-legende .mono { color: var(--papier-doux); opacity: 0; text-align: center; }
.objectif-hud { position: absolute; left: clamp(16px, 3vw, 40px); top: clamp(18px, 3.5vh, 36px); color: rgba(236, 235, 232, .55); }
.objectif-hud::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--rouge); vertical-align: 1px; }
@media (max-aspect-ratio: 3/4) {
  .objectif-legende { bottom: 22vh; }
}
/* Version vidéo réseaux sociaux : hors des zones couvertes par l'interface TikTok / Reels */
.objectif.film .objectif-legende { bottom: 23vh; }
.objectif.film .objectif-legende .marque { width: 64vw; }
.objectif.film .objectif-hud { top: 11vh; left: 7vw; }
.objectif-fin {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 28px;
  padding: 0 16px; text-align: center; pointer-events: none;
}
.objectif-phrase {
  /* Marges internes : le dégradé argent ne se peint que dans la boîte, il faut y faire entrer les jambages (g, p) */
  margin: 0; padding: .06em .14em .22em; opacity: 0;
  font: italic 400 clamp(40px, 13vw, 110px)/1.08 var(--serif); letter-spacing: -.01em;
  background: var(--argent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.objectif-bientot { margin: 0; opacity: 0; color: var(--papier); font-size: 21px; }
/* Vidéo révélation : rafale de photos plein cadre, volets d'obturateur, écran de fin */
.objectif.revelation .objectif-legende { display: none; }
.objectif-rafale { position: absolute; inset: 0; opacity: 0; overflow: hidden; background: #000; }
.objectif-rafale img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.objectif-rafale::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(rgba(0, 0, 0, .35), transparent 18%, transparent 82%, rgba(0, 0, 0, .35));
}
.objectif-cadre { position: absolute; inset: 15vh 7vw 20vh; z-index: 1; pointer-events: none; }
.objectif-cadre i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .85); }
.objectif-cadre i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.objectif-cadre i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.objectif-cadre i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.objectif-cadre i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.objectif-cadre span { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; color: rgba(255, 255, 255, .8); }
.objectif.revelation .objectif-hud { z-index: 2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.objectif-volet i { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transform: scaleY(0); }
.objectif-volet i:first-child { top: 0; transform-origin: top; }
.objectif-volet i:last-child { bottom: 0; transform-origin: bottom; }
.objectif-flash { position: absolute; inset: 0; background: #fff8ec; opacity: 0; pointer-events: none; }
.objectif-fin.rv { gap: 26px; }
.objectif-fin.rv .objectif-phrase { font-size: 11vw; }
.rv-marque { width: 72vw; clip-path: inset(0 100% 0 0); }
.rv-ligne { margin: 0; opacity: 0; color: var(--papier-doux); font-size: 16px; }
.rv-cta { color: var(--papier); font-size: 17px; text-transform: none; letter-spacing: .1em; }
.objectif-pseudo { color: var(--papier) !important; letter-spacing: .16em; text-transform: none; font-size: 13px; }
.objectif.film .objectif-legende { gap: 12px; }
.objectif-passer {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(10px, 3.5vh, 28px);
  background: none; border: 1px solid var(--trait); border-radius: 999px; padding: 9px 16px;
  color: var(--papier-doux); cursor: pointer; transition: border-color .3s, color .3s;
}
.objectif-passer:hover, .objectif-passer:focus-visible { border-color: var(--papier); color: var(--papier); }
.objectif-noir { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* ---------- Rail de navigation ---------- */
.rail {
  position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid var(--trait); background: rgba(10, 10, 11, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.rail-logo {
  padding: 18px 10px; border-bottom: 1px solid var(--trait); width: 100%; display: flex; flex-direction: column; align-items: center; flex: none;
}
.rail-picto { width: 42px; opacity: .92; }
.rail-signature { display: none; }
.rail-logo:focus-visible { outline: 1px solid var(--ambre); outline-offset: -4px; }
.rail-nav { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; }
.rail-nav a {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex: 1 1 0; min-height: 0; padding: 0; width: 100%; max-height: 150px;
  font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--papier-doux); border-top: 1px solid var(--trait);
  transition: color .3s, background .3s;
}
.rail-nav a:last-child { border-bottom: 1px solid var(--trait); }
.rail-nav { justify-content: center; }
.rail-nav a b { font-weight: 500; color: var(--ambre); }
.rail-nav a:hover, .rail-nav a.actif { color: var(--encre); background: var(--papier); }
.rail-nav a.actif b, .rail-nav a:hover b { color: var(--rouge); }
.rail-compteur { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--papier-doux); padding: 20px 0; flex: none; }
@media (max-height: 640px) { .rail-compteur { display: none; } .rail-logo { padding: 12px 10px; } }
@media (max-height: 560px) and (min-width: 761px) { .rail-nav a span { display: none; } }
.rail-menu { display: none; }
.menu-mobile[hidden] { display: none; }

main, .pied { margin-left: var(--rail); }

/* ---------- 1. Accroche ---------- */
.accroche { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.accroche-photo, .accroche-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.accroche-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 11, .92) 0%, rgba(10, 10, 11, .25) 45%, rgba(10, 10, 11, .1) 70%, rgba(10, 10, 11, .55) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, .6) 0%, rgba(10, 10, 11, .15) 55%, transparent 75%),
    radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, .45) 100%);
}
.accroche-coins span { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(236, 235, 232, .55); }
.accroche-coins span:nth-child(1) { left: 28px; top: 28px; border-left-width: 1px; border-top-width: 1px; }
.accroche-coins span:nth-child(2) { right: 28px; top: 28px; border-right-width: 1px; border-top-width: 1px; }
.accroche-coins span:nth-child(3) { left: 28px; bottom: 28px; border-left-width: 1px; border-bottom-width: 1px; }
.accroche-coins span:nth-child(4) { right: 28px; bottom: 28px; border-right-width: 1px; border-bottom-width: 1px; }
.exif { position: absolute; display: flex; gap: 28px; color: rgba(236, 235, 232, .75); }
.exif-haut { top: 40px; left: 64px; right: 64px; justify-content: space-between; }
.accroche-texte { position: absolute; left: clamp(24px, 5vw, 72px); right: clamp(24px, 5vw, 72px); bottom: clamp(70px, 10vh, 110px); }
.surtitre { color: var(--papier); margin: 0 0 12px; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.nom-geant { margin: 0 0 0 -.5vw; line-height: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nom-geant .masque { padding: .5vw 0 1vw; }
.accroche-phrase { margin: 18px 0 0; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; max-width: 22ch; color: var(--papier); }
.defiler {
  position: absolute; right: clamp(24px, 5vw, 72px); bottom: 44px; text-decoration: none; color: var(--papier-doux);
  display: flex; gap: 10px; align-items: center;
}
.anim .defiler span { animation: tombe 1.8s var(--courbe) infinite; }
@keyframes tombe { 0% { transform: translateY(-4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ---------- 2. Manifeste ---------- */
.manifeste { position: relative; }
.manifeste-pin {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 55% 45% at 50% 55%, rgba(200, 206, 214, .09), transparent 70%);
}
.manifeste-mots { position: relative; width: 100%; }
.mot-ligne {
  display: block; font: 800 clamp(46px, min(11.5vw, 19vh), 180px)/.86 var(--geant); letter-spacing: -.05em; text-transform: uppercase;
  white-space: nowrap;
}
.mot-ligne.echo { position: absolute; left: 0; right: 0; top: 0; color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 232, .22); }
.mot-ligne.echo ~ .mot-ligne.echo { top: .86em; }
.manifeste-sous { margin: 40px auto 0; max-width: 52ch; color: var(--ambre); line-height: 1.9; }

/* ---------- 3. Séries ---------- */
.series { position: relative; border-top: 1px solid var(--trait); }
.series-pin {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh;
}
.series-visuel { position: relative; overflow: hidden; background: var(--encre-2); }
.series-visuel figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--courbe); }
.series-visuel figure.on { opacity: 1; }
.series-visuel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--courbe), filter 1s var(--courbe); filter: blur(10px); }
.series-visuel figure.on img { transform: scale(1); filter: blur(0); }
.series-visuel figcaption { position: absolute; left: 24px; bottom: 22px; color: rgba(236, 235, 232, .8); }
.series-liste { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 80px); }
.series-liste ol { list-style: none; margin: 0; padding: 0; }
.serie {
  border-top: 1px solid var(--trait); position: relative;
}
.serie:last-child { border-bottom: 1px solid var(--trait); }
.serie button {
  all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 10px;
  padding: 13px 0; cursor: pointer;
}
.serie-num { font: 500 12px/1 var(--mono); color: var(--papier-doux); }
.serie-titre {
  font: 700 clamp(28px, 3.6vw, 54px)/1 var(--geant); letter-spacing: -.035em; color: rgba(236, 235, 232, .28);
  transition: color .5s var(--courbe), transform .5s var(--courbe); transform-origin: left;
}
.serie-sous { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--papier-doux); opacity: 0; transition: opacity .4s; }
.serie.on .serie-titre { color: var(--papier); }
.serie.on .serie-sous { opacity: 1; }
.serie.on .serie-num { color: var(--rouge); }
.serie button:focus-visible { outline: 1px solid var(--ambre); outline-offset: 4px; }
.serie-texte {
  font-size: 15px; color: var(--papier-doux); max-width: 44ch; margin: 0 0 0 calc(3.2em + 10px);
  max-height: 0; overflow: hidden; transition: max-height .6s var(--courbe), margin .6s var(--courbe);
}
.serie.on .serie-texte { max-height: 9em; margin-bottom: 18px; }
.serie-voir { display: inline-block; margin-top: 10px; color: var(--ambre); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.series-compte { margin: 26px 0 0; color: var(--papier-doux); }
.serie-couv { display: none; }

/* ---------- 4. L'instant ---------- */
.instant-pin {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
}
.instant-photo { margin: 0; width: min(46vw, 640px); aspect-ratio: 3 / 2; overflow: hidden; }
.instant-photo img { width: 100%; height: 100%; object-fit: cover; }
.instant-texte {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-align: center;
  font: 500 clamp(26px, 4.6vw, 70px)/1 var(--geant); letter-spacing: .2em; text-transform: lowercase;
  color: var(--papier); text-shadow: 0 2px 30px rgba(0, 0, 0, .8), 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; padding: 0 16px;
}
.instant-texte .mot { display: inline-block; margin: 0 .28em; }

/* ---------- En mouvement (vidéo) ---------- */
.mouvement { padding: 130px clamp(24px, 5vw, 80px) 120px; border-top: 1px solid var(--trait); }
.mouvement[hidden] { display: none; }
.mouvement-tete { max-width: 900px; }
.mouvement-texte { color: var(--papier-doux); max-width: 56ch; margin: -14px 0 40px; }
.mouvement-video { display: block; width: 100%; max-height: 82vh; background: #000; border: 1px solid var(--trait); }

/* Bandeau de l'aperçu (ouvert depuis l'admin) */
.bandeau-apercu {
  position: fixed; z-index: 130; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0;
  background: var(--papier); color: var(--encre); padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  max-width: calc(100% - 32px); text-align: center;
}

/* ---------- 5. Planche contact ---------- */
.planche { padding: 130px clamp(24px, 5vw, 80px) 120px; border-top: 1px solid var(--trait); }
.planche-tete { max-width: 900px; }
.planche-aide { color: var(--papier-doux); margin: -14px 0 50px; line-height: 1.8; }
.planche-film {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0;
  background: #050403; padding: 34px 18px; position: relative;
  border-radius: 2px;
}
.planche-film::before, .planche-film::after {
  content: ""; position: absolute; left: 18px; right: 18px; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(236, 235, 232, .16) 10px 22px, transparent 22px 30px);
  border-radius: 2px;
}
.planche-film::before { top: 11px; }
.planche-film::after { bottom: 11px; }
.vue {
  all: unset; box-sizing: border-box; position: relative; display: block; cursor: pointer; padding: 22px 8px 26px;
}
.vue-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--encre-2); }
.vue-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; /* photos verticales : garder les visages */ filter: sepia(.15) contrast(1.05); transition: transform .8s var(--courbe), filter .5s; }
.vue:hover .vue-img img, .vue:focus-visible .vue-img img { transform: scale(1.05); filter: none; }
.vue:focus-visible { outline: 1px solid var(--ambre); outline-offset: -2px; }
.vue-num { position: absolute; left: 10px; bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--ambre); }
.vue-num::after { content: " ▸"; }
.vue-serie { position: absolute; right: 10px; bottom: 6px; font: 400 10px/1 var(--mono); letter-spacing: .1em; color: rgba(236, 235, 232, .38); text-transform: uppercase; }
.vue-cercle { position: absolute; left: -2px; top: 8px; width: calc(100% + 4px); height: calc(100% - 22px); pointer-events: none; overflow: visible; }
.vue-cercle path { fill: none; stroke: var(--rouge); stroke-width: 3; stroke-linecap: round; opacity: .9; }

/* ---------- 6. Prestations ---------- */
.prestations { padding: 130px clamp(24px, 5vw, 80px); border-top: 1px solid var(--trait); }
.prestation {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(150px, .7fr); gap: 32px; align-items: end;
  padding: 34px 0; border-top: 1px solid var(--trait);
}
.prestation:last-child { border-bottom: 1px solid var(--trait); }
.prestation h3 { margin: 0; font: 800 clamp(32px, 4.4vw, 64px)/.9 var(--geant); letter-spacing: -.04em; text-transform: uppercase; }
.prestation p { margin: 0; color: var(--papier-doux); max-width: 46ch; }
.prestation-chiffre { text-align: right; }
.prestation-chiffre b { display: block; font: 800 clamp(44px, 5vw, 72px)/.85 var(--geant); letter-spacing: -.04em; color: var(--ambre); }
.prestation-chiffre span { color: var(--papier-doux); }
.prestations-note { margin: 34px 0 0; color: var(--papier-doux); }

/* ---------- 7. À propos ---------- */
.apropos {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center;
  padding: 130px clamp(24px, 5vw, 80px); border-top: 1px solid var(--trait);
}
.apropos-photo { margin: 0; position: relative; }
.apropos-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.apropos-photo figcaption { margin-top: 12px; color: var(--papier-doux); }
.apropos-texte p { color: var(--papier-doux); max-width: 52ch; margin: 0 0 18px; }
.apropos-texte p:first-child { color: var(--papier); font-size: 20px; }
.apropos-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1px solid var(--trait); }
.apropos-chiffres div { padding: 22px 12px 0 0; }
.apropos-chiffres dt { font: 800 clamp(40px, 4.4vw, 64px)/.9 var(--geant); letter-spacing: -.04em; }
.apropos-chiffres dd { margin: 8px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--papier-doux); }

/* ---------- 8. Contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  padding: 150px clamp(24px, 5vw, 80px) 130px; border-top: 1px solid var(--trait);
}
.contact-lueur {
  position: absolute; left: 50%; top: 32%; width: 120vw; height: 70vh; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(200, 208, 220, .2), rgba(200, 208, 220, .05) 40%, transparent 70%);
  pointer-events: none;
}
.contact > :not(.contact-lueur) { position: relative; }
.contact-titre {
  margin: 0; font: 800 clamp(64px, 15vw, 230px)/.85 var(--geant); letter-spacing: -.055em;
  color: #f6f7f9;
  text-shadow: 0 0 22px rgba(255, 255, 255, .5), 0 0 70px rgba(205, 212, 222, .4), 0 0 140px rgba(160, 172, 190, .35);
}
.contact-titre .masque { padding-top: .16em; }
.contact-sous { font-size: clamp(22px, 2.6vw, 34px); margin: 24px auto 64px; max-width: 26ch; line-height: 1.15; }
.formulaire {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; max-width: 860px; margin: 0 auto; text-align: left;
}
.formulaire label { display: flex; flex-direction: column; gap: 10px; }
.formulaire label > span { color: var(--papier-doux); }
.formulaire .large { grid-column: 1 / -1; }
.formulaire input, .formulaire select, .formulaire textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(236, 235, 232, .3); border-radius: 0;
  padding: 10px 0; font-size: 18px; outline: none; transition: border-color .3s; width: 100%;
}
.formulaire select option { background: var(--encre); }
.formulaire textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { border-color: var(--ambre); }
.formulaire [aria-invalid="true"] { border-color: var(--rouge); }
.formulaire-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--courbe);
}
.btn:hover { transform: translateY(-2px); }
.btn-plein { background: var(--papier); color: var(--encre); border: 0; }
.btn-plein:hover { background: var(--ambre); }
.btn-ligne { border: 1px solid rgba(236, 235, 232, .35); }
.btn-ligne:hover { border-color: var(--papier); }
.btn:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; }
.formulaire-msg { margin: 0; color: var(--ambre); min-height: 1em; }

.contact-direct {
  list-style: none; margin: 70px auto 0; padding: 0; max-width: 860px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); text-align: left;
}
.contact-direct li { background: var(--encre); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-direct span { color: var(--ambre); }
.contact-direct a { text-decoration: none; overflow-wrap: anywhere; font-size: 16px; }
.contact-direct a:hover { color: var(--ambre); }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--trait); padding: 40px clamp(24px, 5vw, 80px) 30px; overflow: hidden; }
.pied-marque { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 48px); padding: 30px 0 10px; }
.pied-marque img { width: clamp(70px, 12vw, 170px); opacity: .35; }
.pied-marque .marque { width: clamp(200px, 50vw, 720px); opacity: .35; }
.pied-ligne { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 30px; color: var(--papier-doux); }
.pied-ligne a { text-decoration: none; }

/* ---------- Visionneuse ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 120; background: rgba(5, 4, 3, .96);
  display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center;
}
.visionneuse[hidden] { display: none; }
.vis-cadre { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.vis-cadre img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); width: auto; object-fit: contain; }
.vis-cadre figcaption { color: var(--papier-doux); text-align: center; line-height: 1.6; padding: 0 12px; }
.vis-fleche, .vis-fermer { background: none; border: 0; cursor: pointer; color: var(--papier); }
.vis-fleche { font-size: 28px; height: 100%; }
.vis-fleche:hover { color: var(--ambre); }
.vis-fermer { position: absolute; top: 18px; right: 22px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 12px; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 760px) {
  :root { --rail: 0px; }
  body { font-size: 16px; }
  .rail {
    right: 0; bottom: auto; width: auto; height: 58px; flex-direction: row; justify-content: space-between;
    border-right: 0; border-bottom: 1px solid var(--trait); padding: 0 8px 0 18px;
  }
  .rail-logo { flex-direction: row; gap: 10px; border: 0; padding: 0; width: auto; }
  .rail-picto { width: 38px; }
  .rail-signature { display: block; width: 92px; }
  .rail-nav, .rail-compteur { display: none; }
  .rail-menu {
    display: block; background: none; border: 1px solid var(--trait); border-radius: 999px; padding: 10px 18px;
    font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  }
  .viseur-cadre { width: 86vw; aspect-ratio: 3 / 4; letter-spacing: .16em; }
  .viseur-donnees { gap: 14px; }
  .viseur-reglette { gap: 3px; }
  .mot-ligne { font-size: 15vw; }
  .menu-mobile {
    position: fixed; z-index: 49; top: 58px; left: 0; right: 0; bottom: 0; background: var(--encre);
    display: flex; flex-direction: column; justify-content: center; padding: 24px;
  }
  .menu-mobile a {
    text-decoration: none; font: 800 clamp(36px, 11vw, 56px)/1 var(--geant); letter-spacing: -.04em; text-transform: uppercase;
    padding: 14px 0; border-bottom: 1px solid var(--trait); display: flex; gap: 14px; align-items: baseline;
  }
  .menu-mobile a b { font: 500 12px/1 var(--mono); color: var(--ambre); }
  .exif-haut { top: 78px; left: 24px; right: 24px; gap: 12px; }
  .exif-haut span:nth-child(2) { display: none; }
  .accroche-coins span:nth-child(1), .accroche-coins span:nth-child(2) { top: 70px; }
  .accroche-coins span { width: 18px; height: 18px; }
  .accroche-coins span:nth-child(1), .accroche-coins span:nth-child(3) { left: 14px; }
  .accroche-coins span:nth-child(2), .accroche-coins span:nth-child(4) { right: 14px; }
  .defiler { display: none; }
  .accroche-texte { bottom: 48px; }
  .marque-geante { width: 88vw; }

  .series-pin { grid-template-columns: 1fr; min-height: 0; }
  .series-visuel { display: none; }
  .series-liste { padding: 72px 24px 80px; }
  .serie { border: 0; margin-bottom: 44px; }
  .serie:last-child { border: 0; }
  .serie-couv { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 4px; cursor: pointer; }
  .serie-couv img { width: 100%; height: 100%; object-fit: cover; }
  .serie-sous { opacity: 1; grid-column: 2; }
  .serie button { grid-template-columns: 2.6em 1fr; row-gap: 6px; padding: 14px 0 8px; }
  .serie-titre { color: var(--papier); }
  .serie-texte, .serie.on .serie-texte { margin: 0 0 0 calc(2.6em + 10px); max-height: none; }

  .instant-photo { width: 78vw; aspect-ratio: 4 / 5; }

  .planche, .prestations, .apropos { padding-top: 96px; padding-bottom: 96px; }
  .planche-film { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 30px 6px; }
  .planche-film::before, .planche-film::after { left: 6px; right: 6px; }
  .vue { padding: 16px 4px 24px; }
  .vue-serie { display: none; }

  .prestation { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .prestation-chiffre { text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .prestation-chiffre b { display: inline; font-size: 44px; }

  .apropos { grid-template-columns: 1fr; }
  .apropos-photo img { aspect-ratio: 4 / 5; }
  .apropos-chiffres div { padding-right: 6px; }
  .apropos-chiffres dd { font-size: 10px; letter-spacing: .08em; }

  .contact { padding-top: 110px; }
  .formulaire { grid-template-columns: 1fr; }
  .contact-direct { grid-template-columns: 1fr; margin-top: 56px; }
  .formulaire-actions .btn { flex: 1 1 100%; }

  .visionneuse { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 60px 0 10px; }
  .vis-cadre { grid-row: 1; grid-column: 1; }
  .vis-cadre img { max-height: calc(100svh - 190px); }
  .vis-fleche { grid-row: 2; height: 56px; width: 50%; }
  .vis-prec { grid-column: 1; justify-self: start; }
  .vis-suiv { grid-column: 1; justify-self: end; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .series-pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prestation { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .prestation-chiffre { grid-column: 1 / -1; text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .prestation-chiffre b { display: inline; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .accroche { min-height: 420px; }
  .marque-geante { width: auto; height: 34vh; }
  .accroche-phrase { font-size: 20px; }
}
