/* Polices hébergées sur le site (licence SIL OFL 1.1) : aucune requête vers Google. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0B0D0E;
  --void: #050607;
  --ivory: #F7F7F3;
  --graphite: #8A9094;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

header.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
  background: linear-gradient(rgba(5,6,7,.92), rgba(5,6,7,.6) 60%, rgba(5,6,7,0));
}
header.top .brand img { height: 26px; width: auto; display: block; }
header.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.lang { color: var(--graphite); letter-spacing: .08em; }
.lang b { color: var(--ivory); font-weight: 500; }
.btn {
  text-decoration: none; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(247,247,243,.35); background: rgba(247,247,243,.04);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s;
}
.btn:hover { background: rgba(247,247,243,.12); border-color: rgba(247,247,243,.7); }

#labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.agent-label {
  position: absolute; transform: translate(14px, -50%); white-space: nowrap;
  font-size: 12px; letter-spacing: .06em; color: rgba(247,247,243,.82);
  transition: opacity .3s;
}
.agent-label b { font-weight: 600; letter-spacing: .02em; color: var(--ivory); margin-right: 6px; }

/* Les vidéos des agents servent de source aux écrans de la scène 3D :
   ce cadre invisible donne seulement leur place à l'écran. */
#cast {
  position: fixed; z-index: 0; pointer-events: none; opacity: 0;
  right: 2vw; top: 50%; transform: translateY(-46%);
  width: min(58vw, 980px); aspect-ratio: 16 / 9;
}
#cast video { position: absolute; inset: 0; width: 100%; height: 100%; }

main#story { position: relative; z-index: 3; }
.stage { height: 100vh; position: relative; }
.stage.agent { height: 130vh; }

.hero-copy {
  position: absolute; left: clamp(16px, 6vw, 96px); bottom: clamp(64px, 14vh, 140px);
  max-width: 640px;
}
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--graphite); margin: 0 0 18px; }
h1 {
  font-weight: 300; font-size: clamp(40px, 6vw, 84px); line-height: 1.02;
  letter-spacing: -0.03em; margin: 0;
}
h1 span { color: rgba(247,247,243,.55); }
.sub { font-size: clamp(16px, 1.5vw, 19px); color: rgba(247,247,243,.72); line-height: 1.55; margin: 22px 0 0; max-width: 30em; }
.hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--graphite); margin: 0;
}
.hint::after {
  content: ""; display: block; width: 1px; height: 34px; margin: 12px auto 0;
  background: linear-gradient(var(--graphite), transparent);
}

.agent .panel {
  position: sticky; top: 32vh;
  margin-left: clamp(16px, 6vw, 96px); max-width: 420px;
  opacity: 0; transform: translateY(24px);
}
.tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--graphite); margin: 0 0 16px; }
.tag b { color: var(--ivory); letter-spacing: .1em; }
.big { font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; }
.small { color: rgba(247,247,243,.7); font-size: 17px; line-height: 1.55; margin: 0 0 14px; }
.fict { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); margin: 0; }

@media (max-width: 760px) {
  .btn { font-size: 13px; padding: 9px 14px; }
  .hero-copy { bottom: 90px; right: 16px; }
  #cast { right: 0; left: 0; top: 16vh; transform: none; width: 100vw; }
  .agent .panel { top: 58vh; margin-right: 16px; }
  .agent-label { font-size: 11px; }
}

/* ── Fin de parcours : confiance, contact, pied de page ─────────────────── */
.lang { text-decoration: none; color: var(--graphite); letter-spacing: .12em; }
.lang:hover { color: var(--ivory); }
.btn.primary { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn.primary:hover { background: #fff; }

.block {
  position: relative; min-height: 100vh;
  padding: 16vh clamp(16px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.block h2 {
  font-weight: 300; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06;
  letter-spacing: -0.025em; margin: 0 0 48px; max-width: 14em;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(247,247,243,.14); border: 1px solid rgba(247,247,243,.14);
}
.trust-grid > div {
  background: rgba(5,6,7,.72); padding: 28px 24px 32px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.trust-grid .num { font-size: 12px; letter-spacing: .2em; color: var(--graphite); margin: 0 0 18px; }
.trust-grid h3 { font-weight: 500; font-size: 20px; margin: 0 0 10px; letter-spacing: -0.01em; }
.trust-grid p { margin: 0; color: rgba(247,247,243,.72); font-size: 15px; line-height: 1.55; }

.contact { align-items: center; text-align: center; }
.contact h2 { margin-bottom: 20px; max-width: none; }
.contact .lead { color: rgba(247,247,243,.72); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 34em; margin: 0 0 36px; }
.contact .cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact .btn { padding: 14px 24px; font-size: 15px; }

footer {
  position: relative; z-index: 3; background: var(--void);
  border-top: 1px solid rgba(247,247,243,.12);
  padding: 40px clamp(16px, 6vw, 96px) 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 48px;
  color: rgba(247,247,243,.6); font-size: 14px; line-height: 1.6;
}
footer img { height: 24px; width: auto; }
footer h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,247,243,.85); font-weight: 500; margin: 0 0 10px; }
footer p { margin: 0 0 8px; max-width: 46em; }
footer a { color: rgba(247,247,243,.85); }

/* Sans WebGL : logo fixe, aucun effet. */
.fallback-logo { display: none; }
body.no-webgl .fallback-logo {
  display: block; position: fixed; z-index: 0; width: min(60vw, 420px);
  right: 6vw; top: 50%; transform: translateY(-50%); opacity: .5;
}
body.no-webgl .agent .panel { opacity: 1 !important; transform: none !important; }

@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 20px; }
  .block { padding: 12vh 16px; }
}

/* ── Vidéo, fonctionnement, captures, pilote, FAQ ───────────────────────── */
.block .lead { color: rgba(247,247,243,.72); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 34em; margin: -28px 0 36px; }

.action .film {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(247,247,243,.18);
  box-shadow: 0 0 0 1px rgba(5,6,7,.6), 0 40px 120px -40px rgba(247,247,243,.18);
  background: #000; max-width: 1200px;
}
.action video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { border-top: 1px solid rgba(247,247,243,.25); padding-top: 22px; }
.steps .num { font-size: 12px; letter-spacing: .2em; color: var(--graphite); }
.steps h3 { font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.015em; margin: 14px 0 10px; }
.steps p { margin: 0; color: rgba(247,247,243,.7); font-size: 16px; line-height: 1.55; }

.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1600px; }
.shot-row figure { margin: 0; }
.shot-row img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid rgba(247,247,243,.22);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(247,247,243,.18);
  transform: rotateY(-10deg) rotateX(4deg); transform-origin: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.shot-row figure:nth-child(2) img { transform: rotateX(4deg) translateY(-14px); }
.shot-row figure:nth-child(3) img { transform: rotateY(10deg) rotateX(4deg); }
.shot-row figure:hover img { transform: none; }
.shot-row figcaption { margin-top: 16px; font-size: 14px; color: rgba(247,247,243,.72); }
.shots .note { margin: 28px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }

.pilot { align-items: center; }
.pilot-card {
  max-width: 760px; text-align: center; padding: clamp(32px, 5vw, 64px);
  border-radius: 22px; border: 1px solid rgba(239,170,22,.45);
  background: radial-gradient(120% 120% at 50% 0%, rgba(239,170,22,.12), rgba(5,6,7,.78) 60%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pilot-card .eyebrow { color: #efaa16; }
.pilot-card h2 { margin: 0 auto 18px; }
.pilot-card .lead { margin: 0 auto 32px; }

.faq-list { max-width: 820px; border-top: 1px solid rgba(247,247,243,.18); }
.faq-list details { border-bottom: 1px solid rgba(247,247,243,.18); background: rgba(5,6,7,.55); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 4px; position: relative;
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 400;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--graphite); font-size: 22px; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0 0 22px 4px; color: rgba(247,247,243,.72); line-height: 1.6; max-width: 44em; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; }
  .shot-row img, .shot-row figure:nth-child(2) img, .shot-row figure:nth-child(3) img { transform: none; }
}

/* Moins d'effets « gabarit » : pas de petites capitales espacées. */
.tag { text-transform: none; letter-spacing: 0; font-size: 15px; color: rgba(247,247,243,.6); }
.tag b { letter-spacing: 0; }
.pilot-tag { color: #efaa16; font-size: 15px; margin: 0 0 14px; }

/* Pages légales : lecture simple, sans scène 3D. */
.legal-page { background: var(--void); }
.legal { max-width: 720px; margin: 0 auto; padding: 140px 24px 96px; color: rgba(247,247,243,.82); line-height: 1.65; font-size: 17px; }
.legal h1 { font-weight: 300; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ivory); }
.legal .updated { color: var(--graphite); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-weight: 500; font-size: 19px; color: var(--ivory); margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; }

/* ── Typographie : titres en Newsreader, texte en Schibsted Grotesk ────── */
h1, .big, .block h2, .legal h1, .steps h3 {
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.012em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.0; }
h1 span { font-style: italic; color: rgba(247,247,243,.62); }
.big { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; }
.block h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.04; }
.steps h3 { font-size: clamp(24px, 2.4vw, 32px); }
.trust-grid h3, .faq-list summary { font-family: var(--sans); font-weight: 500; letter-spacing: -0.005em; }
.sub, .lead, .small, .steps p, .trust-grid p, .faq-list p { font-weight: 400; }
.btn { font-weight: 500; letter-spacing: 0; }
