/* Opsiteo, site vitrine. Aucune ressource externe. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --navy: #1a2b4a;
  --navy-deep: #132039;
  --navy-line: #33466c;
  --amber: #f59e0b;
  --amber-hi: #fbb53a;
  --on-navy: #ffffff;
  --on-navy-soft: #c9d3e6;

  --bg: #f4f6fa;
  --tint: #e8edf5;
  --surface: #ffffff;
  --ink: #14213a;
  --soft: #46546f;
  --line: #d5dce9;
  --amber-ink: #8a5200;
  --ok: #146c45;
  --ok-bg: #dff3e8;
  --no: #a8321a;
  --no-bg: #fde8e1;
  --focus: #1a2b4a;

  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: clamp(1.25rem, 5vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1424;
    --tint: #101b30;
    --surface: #15223b;
    --ink: #e8edf6;
    --soft: #a9b6cd;
    --line: #293a5c;
    --amber-ink: #f7b545;
    --ok: #7ad6a6;
    --ok-bg: #143a2b;
    --no: #ffab94;
    --no-bg: #47201a;
    --focus: #f59e0b;
    --navy-deep: #0f1a30;
    --mark-bg: #fff;
    --mark-fg: #1a2b4a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--navy); font-weight: 700;
  padding: 0.7rem 1rem; border-radius: var(--r-s); text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gut); }

.ic {
  width: 1.375rem; height: 1.375rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.url {
  font-family: var(--display); font-weight: 600; white-space: nowrap;
  color: var(--amber-ink);
}

/* Marque */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.mark { width: 2.25rem; height: 2.25rem; overflow: visible; flex: none; }
.mark-bg { fill: var(--mark-bg, #1a2b4a); }
.mark-fg { fill: var(--mark-fg, #fff); }
.mark-dot { fill: var(--amber); stroke: var(--mark-ring, var(--bg)); stroke-width: 2.5; }
.word { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.word span { color: var(--amber-ink); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn-sm { min-height: 2.75rem; padding: 0.45rem 1.05rem; font-size: 0.975rem; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-hi); }
.btn-ghost { color: var(--on-navy); border-color: rgba(255, 255, 255, 0.42); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-line { color: var(--on-navy); border-color: var(--amber); background: transparent; }
.btn-line:hover { background: var(--amber); color: var(--navy); }

/* En-tête */
.top {
  --focus: #f59e0b;
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid var(--navy-line);
}
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.top, .app-bar { --mark-bg: #fff; --mark-fg: #1a2b4a; --mark-ring: #1a2b4a; }
.top .word { color: #fff; }
.top .word span { color: var(--amber); }
.nav { display: none; gap: 0.25rem; margin-left: 1.5rem; }
.nav a, .quiet {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem;
  color: var(--on-navy-soft); text-decoration: none; font-size: 0.975rem; border-radius: var(--r-s);
}
.nav a:hover, .quiet:hover { color: #fff; text-decoration: underline; }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.quiet { display: none; }
@media (min-width: 30rem) { .quiet { display: inline-flex; } }
@media (min-width: 62rem) { .nav { display: flex; } }

/* Hero */
.hero {
  --focus: #f59e0b;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: var(--on-navy);
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.trace { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; opacity: 0.45; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stop circle { fill: var(--navy); stroke: var(--amber); stroke-width: 2.5; }
.stop .core { fill: var(--amber); stroke: none; }
.hero-in { display: grid; gap: 3rem; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.9rem, 9.5vw, 5.6rem); line-height: 0.96; letter-spacing: -0.045em;
  text-wrap: balance; max-width: 9.5em;
}
.lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--on-navy-soft); max-width: 34em; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.for { margin-top: 1.75rem; padding-left: 1rem; border-left: 3px solid var(--amber); font-size: 0.975rem; color: var(--on-navy-soft); max-width: 30em; }

.stage { position: relative; justify-self: center; width: min(100%, 20rem); }
.stage-note { margin-top: 0.9rem; text-align: center; font-size: 0.875rem; color: var(--on-navy-soft); }

.phone {
  position: relative; padding: 0.6rem; border-radius: 2.6rem;
  background: #0a1222; border: 1px solid #3a4d74;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
}
.screen {
  border-radius: 2.05rem; overflow: hidden; background: #f4f6fa; color: #14213a;
  --focus: #1a2b4a; font-size: 0.875rem; line-height: 1.4;
}
.app-bar { display: flex; align-items: center; gap: 0.65rem; padding: 1.5rem 1rem 0.9rem; background: #1a2b4a; color: #fff; }
.app-bar .mark { width: 1.9rem; height: 1.9rem; }
.app-t { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.app-s { font-size: 0.78rem; color: #c9d3e6; }
.qs { padding: 0.75rem; display: grid; gap: 0.6rem; }
.q { background: #fff; border: 1px solid #d5dce9; border-radius: var(--r-m); padding: 0.75rem; }
.q-t { font-weight: 600; }
.yn { margin-top: 0.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.yn button {
  min-height: 2.75rem; border-radius: 0.7rem; border: 1.5px solid #b9c3d6; background: #fff;
  font-family: var(--display); font-weight: 700; cursor: pointer; color: #14213a;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.yn button:hover { border-color: #1a2b4a; }
.yn [data-v="oui"][aria-pressed="true"] { background: #146c45; border-color: #146c45; color: #fff; }
.yn [data-v="non"][aria-pressed="true"] { background: #a8321a; border-color: #a8321a; color: #fff; }
.nc { display: none; margin-top: 0.6rem; padding: 0.65rem; border-radius: 0.7rem; background: #fde8e1; border-left: 3px solid #a8321a; }
.q[data-answer="non"] .nc { display: block; }
.nc-h { font-weight: 700; color: #8a2412; font-size: 0.8rem; }
.nc-j { margin-top: 0.3rem; }
.nc-k { display: block; font-size: 0.75rem; color: #5a4a44; }
.nc-row { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; }
.nc-row span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.5rem; border-radius: 999px; background: #fff; color: #14213a; }
.nc-row .ic { width: 0.95rem; height: 0.95rem; }
.nc-row .nc-ac { background: #f59e0b; color: #1a2b4a; }
.app-foot { padding: 0.2rem 1rem 1.1rem; text-align: center; font-size: 0.8rem; color: #46546f; }

.tour { display: none; }
@media (min-width: 62rem) {
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; }
  .stage { justify-self: end; margin-right: 1rem; }
  .tour {
    display: block; position: absolute; z-index: 2; left: -14.6rem; bottom: 3.5rem; width: 16rem;
    background: #fff; color: #14213a; border-radius: var(--r-m); padding: 0.9rem 1rem 1rem;
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.7); transform: rotate(-2.5deg);
    font-size: 0.85rem; line-height: 1.3;
  }
  .tour-h { font-family: var(--display); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.6rem; }
  .tour-l li { position: relative; display: grid; grid-template-columns: 2.7rem 1fr; column-gap: 1.6rem; padding-bottom: 0.7rem; }
  .tour-l li:last-child { padding-bottom: 0; }
  .tour-l .t { grid-row: span 2; font-weight: 600; color: #46546f; font-variant-numeric: tabular-nums; }
  .tour-l .n { font-weight: 700; }
  .tour-l .st { color: #46546f; font-size: 0.78rem; }
  .tour-l li::before {
    content: ""; position: absolute; left: 3.2rem; top: 0.25rem; width: 0.6rem; height: 0.6rem;
    border-radius: 50%; border: 2px solid #1a2b4a; background: #fff; z-index: 1;
  }
  .tour-l li::after { content: ""; position: absolute; left: 3.45rem; top: 0.8rem; bottom: -0.2rem; border-left: 2px dotted #9aa7c0; }
  .tour-l li:last-child::after { display: none; }
  .tour-l .done::before { background: #1a2b4a; }
  .tour-l .now::before { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3); }
  .tour-l .now .st { color: #8a5200; font-weight: 700; }
  .tour-l .hint .n, .tour-l .hint .t { color: #46546f; }
}

/* Sections */
.sec { padding-block: var(--sec); }
.sec-tint { background: var(--tint); }
.head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec h2, .final h2 {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance;
}
.head p { margin-top: 1.1rem; font-size: 1.125rem; color: var(--soft); max-width: 38em; }
.aside { margin-top: 2rem; font-size: 0.95rem; color: var(--soft); }

/* Constat */
.swap { border-top: 2px solid var(--ink); }
.swap-head { display: none; }
.swap-row { display: grid; gap: 0.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.swap-row p:first-child { color: var(--soft); }
.swap-row p:first-child::before { content: "Sans outil dédié"; display: block; font-size: 0.85rem; font-weight: 700; }
.swap-row p:last-child { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; padding-left: 1rem; border-left: 4px solid var(--amber); }
@media (min-width: 48rem) {
  .swap-head {
    display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; padding-block: 0.9rem;
    font-size: 0.925rem; font-weight: 700; color: var(--soft); border-bottom: 1px solid var(--line);
  }
  .swap-head span:last-child { color: var(--amber-ink); padding-left: 1.25rem; }
  .swap-row { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; padding-block: 1.75rem; }
  .swap-row p:first-child::before { content: none; }
  .swap-row p:last-child { font-size: clamp(1.3rem, 2.1vw, 1.65rem); padding-left: 1.25rem; }
}

/* Bento */
.bento { display: grid; gap: 1rem; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.tile h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.015em;
}
.tile h3 .ic { color: var(--amber-ink); }
.tile p { margin-top: 0.65rem; color: var(--soft); font-size: 1rem; }
.tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li { padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }

.tile > .tags { margin-top: auto; padding-top: 1.1rem; }
.chain li + li { position: relative; margin-left: 0.9rem; }
.chain li + li::before { content: ""; position: absolute; left: -1.1rem; top: 50%; width: 0.75rem; border-top: 2px dotted var(--soft); }
.chain .neg { background: var(--no-bg); border-color: var(--no); color: var(--no); }
.chain .act { background: var(--amber); border-color: var(--amber); color: #1a2b4a; }
.t-tour { padding: 0; overflow: hidden; }
.t-tour .tile-txt { padding: 1.5rem 1.5rem 1.25rem; }
.t-tour h3 { font-size: 1.55rem; }
.minimap { width: 100%; height: auto; margin-top: auto; background: var(--tint); border-top: 1px solid var(--line); }
.mm-road { fill: none; stroke: var(--surface); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.mm-trace { fill: none; stroke: var(--amber-ink); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.mm-pin circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.mm-pin path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mm-pin.done circle { fill: var(--navy); stroke: var(--ink); }
.mm-pin.now circle { fill: var(--amber); stroke: var(--surface); stroke-width: 4; }
.mm-pin.now .core { fill: var(--navy); stroke: none; }
.mm-pin.next circle { stroke-dasharray: 4 4; }

.t-resp { background: var(--navy); color: var(--on-navy); border-color: var(--navy-line); gap: 1.5rem; }
.t-resp h3 { font-size: 1.55rem; }
.t-resp h3 .ic { color: var(--amber); }
.t-resp p { color: var(--on-navy-soft); max-width: 36em; }
.feed { display: grid; gap: 0.5rem; font-size: 0.9rem; }
.feed li { display: grid; gap: 0.1rem; padding: 0.65rem 0.85rem; border-radius: var(--r-s); background: rgba(255, 255, 255, 0.07); border-left: 3px solid #7f93b8; }
.feed .who { font-weight: 700; }
.feed .what { color: var(--on-navy-soft); }
.feed .warn { border-left-color: var(--amber); }

@media (min-width: 40rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-tour, .t-resp { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
  .tile { grid-column: span 4; padding: 1.75rem; }
  .t-tour { grid-column: span 7; grid-row: span 2; padding: 0; }
  .t-tour .tile-txt { padding: 2rem 2rem 1.5rem; }
  .t-quiz, .t-cr { grid-column: span 5; }
  .t-resp { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; padding: 2.25rem; }
  .t-resp .tile-txt { flex: 1 1 55%; }
  .feed { flex: 0 1 24rem; }
}

/* Étapes */
.steps { display: grid; gap: 2rem; counter-reset: etape; }
.steps li { position: relative; counter-increment: etape; padding-left: 4.25rem; }
.steps li::before {
  content: counter(etape); position: absolute; left: 0; top: -0.15rem;
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
}
.steps li:last-child::before { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.steps li::after { content: ""; position: absolute; left: 1.45rem; top: 3.2rem; bottom: -1.9rem; border-left: 2px dotted var(--soft); }
.steps li:last-child::after { display: none; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.2; }
.steps p { margin-top: 0.5rem; color: var(--soft); max-width: 30em; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .steps li { padding-left: 0; padding-top: 4.5rem; }
  .steps li::before { top: 0; }
  .steps li::after { left: 3.5rem; right: -2rem; top: 1.45rem; bottom: auto; border-left: 0; border-top: 2px dotted var(--soft); }
}

@media (prefers-color-scheme: dark) { .steps li::before { border-color: var(--soft); } .steps li:last-child::before { border-color: var(--amber); } }

/* Hors connexion */
.sec-navy { --focus: #f59e0b; background: var(--navy); color: var(--on-navy); }
.split { display: grid; gap: 2.5rem; align-items: center; }
.split > div > p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--on-navy-soft); max-width: 34em; }
.sync { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--r-l); padding: 1.25rem; font-size: 0.95rem; }
.sync-bar { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #7ad6a6; padding-bottom: 1rem; border-bottom: 1px solid var(--navy-line); }
.sync li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--navy-line); }
.sync li:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.sync b { flex: none; font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.65rem; border-radius: 999px; }
.sync b.on { background: #143a2b; color: #7ad6a6; }
.sync b.off { background: #4a3608; color: #fbc864; }
.sync .off { display: none; }
.sync[data-state="offline"] .on { display: none; }
.sync[data-state="offline"] .off { display: inline-flex; }
.sync[data-state="offline"] .sync-bar { color: #fbc864; }
.sync[data-state="online"] li b.on { animation: pop 0.4s ease both; }
.sync[data-state="online"] li:nth-child(2) b.on { animation-delay: 0.18s; }
.sync[data-state="online"] li:nth-child(3) b.on { animation-delay: 0.36s; }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; } }

/* Données */
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts > div { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
.facts dt .ic { color: var(--amber-ink); }
.facts dd { margin-top: 0.5rem; color: var(--soft); max-width: 34em; }
@media (min-width: 48rem) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
}

/* Modules */
.roles { display: grid; gap: 1rem; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; }
.role h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.role li { position: relative; display: flex; align-items: center; min-height: 2.9rem; padding-right: 3.5rem; border-bottom: 1px solid var(--line); color: var(--soft); }
.role li:last-child { border-bottom: 0; }
.role li.is-on { color: var(--ink); font-weight: 600; }
.role li::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 2.5rem; height: 1.4rem; margin-top: -0.7rem;
  border-radius: 999px; background: transparent; border: 2px solid var(--soft);
}
.role li::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 0.8rem; height: 0.8rem; margin-top: -0.4rem;
  border-radius: 50%; background: var(--soft);
}
.role li.is-on::before { background: var(--amber); border-color: var(--amber); }
.role li.is-on::after { right: 0.3rem; background: var(--navy); }
@media (min-width: 52rem) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* FAQ */
.faq-wrap { display: grid; gap: 1rem; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 1.2rem 3rem 1.2rem 0; min-height: 3rem;
  font-family: var(--display); font-weight: 650; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 1.1rem; height: 2px; margin-top: -1px;
  background: var(--amber-ink); transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--amber-ink); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--soft); max-width: 42em; }
@media (min-width: 62rem) {
  .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .faq-wrap .head { position: sticky; top: 6rem; margin-bottom: 0; }
}

/* CTA final */
.final { --focus: #f59e0b; background: var(--navy); color: var(--on-navy); padding-block: var(--sec); }
.final-in { display: grid; gap: 3rem; align-items: start; }
.final h2 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); max-width: 11em; }
.final-main > p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--on-navy-soft); max-width: 32em; }
.final-main .btn { margin-top: 2rem; }
.final-main .mail { margin-top: 1rem; font-size: 1rem; }
.space { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--r-l); padding: 1.5rem; scroll-margin-top: 6rem; }
.space h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; }
.space > p { margin-top: 0.5rem; color: var(--on-navy-soft); font-size: 1rem; }
.space-form { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.space-form label { font-weight: 700; font-size: 0.95rem; }
.space-field {
  display: flex; align-items: center; background: #fff; color: #14213a;
  border: 2px solid #fff; border-radius: var(--r-s); padding-inline: 0.75rem; min-height: 3rem;
}
.space-field:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
.space-field input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0.5rem 0.15rem; font-weight: 700; color: #14213a; }
.space-field input:focus { outline: none; }
.space-field input::placeholder { color: #5d6a84; font-weight: 400; opacity: 1; }
.space-field .pre, .space-field .suf { flex: none; color: #46546f; font-size: 0.95rem; }
.space-field .pre { display: none; }
@media (min-width: 26rem) { .space-field .pre { display: inline; } }
.space-form[data-invalid] .space-field { border-color: #ff9d85; }
.space-msg { min-height: 1.4em; font-size: 0.95rem; font-weight: 600; color: #ffc0ae; }
.space-ns { margin-top: 1rem; font-size: 0.95rem; color: var(--on-navy-soft); }
.space-form .btn { justify-self: start; margin-top: 0.4rem; }
@media (min-width: 62rem) { .final-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }

/* Pied de page */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.975rem; }
.foot-in { display: grid; gap: 1.75rem; }
.foot-brand p { margin-top: 0.6rem; color: var(--soft); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.copy { color: var(--soft); }
@media (min-width: 56rem) {
  .foot-in { grid-template-columns: auto 1fr; align-items: start; column-gap: 4rem; }
  .foot-nav { justify-content: flex-end; }
  .copy { grid-column: 1 / -1; }
}

/* Pages légales */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--sec); }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.04em; }
.legal .maj { margin-top: 1rem; color: var(--soft); }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal p, .legal ul, .legal dl { margin-top: 0.9rem; max-width: 42em; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li { margin-top: 0.35rem; }
.legal dt { font-weight: 700; margin-top: 0.8rem; }
.legal dd { color: var(--soft); }
.legal a { color: var(--amber-ink); font-weight: 600; }
.todo { background: var(--amber); color: #1a2b4a; font-weight: 700; padding: 0.05em 0.4em; border-radius: 4px; white-space: nowrap; }
.note {
  margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: var(--r-m);
  border: 2px dashed var(--amber-ink); background: var(--surface); max-width: 42em;
}
.back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: 1.25rem; color: var(--soft); }

/* Mouvement : une seule séquence au chargement, puis des apparitions discrètes */
@media (prefers-reduced-motion: no-preference) {
  .js .trace { stroke-dashoffset: 1; animation: tracer 2.2s cubic-bezier(0.5, 0, 0.2, 1) 0.2s forwards; }
  .js .stop { opacity: 0; animation: poser 0.4s ease forwards; }
  .js .stop.s1 { animation-delay: 0.85s; }
  .js .stop.s2 { animation-delay: 1.4s; }
  .js .stop.s3 { animation-delay: 1.95s; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .steps .reveal:nth-child(2) { transition-delay: 0.12s; }
  .js .steps .reveal:nth-child(3) { transition-delay: 0.24s; }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes poser { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .top, .hero-map, .stage, .space, .skip { display: none; }
  .hero, .final, .sec-navy { background: #fff; color: #000; }
}
