/* Base */:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* Concept : un site de service routier. Fond papier froid, encre bleu nuit, jaune de marquage routier utilisé uniquement pour les actions et le repère de page active. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #13203a;
  --muted: #55627a;
  --line: #d5dbe4;
  --accent: #f2b705;
  --accent-ink: #13203a;
  --deep: #13203a;
  --deep-ink: #eef2f8;
  --deep-muted: #a9b4c8;
  --ok: #1d7a4d;
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1626; --surface: #16213a; --ink: #eaf0fa; --muted: #9eabc2; --line: #2a3855;
    --accent: #f5c030; --accent-ink: #101a2e; --deep: #0a111e; --deep-ink: #eaf0fa; --deep-muted: #8e9bb4; --ok: #4cc58a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1626; --surface: #16213a; --ink: #eaf0fa; --muted: #9eabc2; --line: #2a3855;
  --accent: #f5c030; --accent-ink: #101a2e; --deep: #0a111e; --deep-ink: #eaf0fa; --deep-muted: #8e9bb4; --ok: #4cc58a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; max-width: 65ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--deep); color: var(--deep-ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand i { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; }
.brand i::after { content: ""; width: 3px; height: 14px; background: var(--accent-ink); border-radius: 2px; box-shadow: -7px 0 0 var(--accent-ink), 7px 0 0 var(--accent-ink); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
nav a.link { display: block; padding: 22px 10px 19px; text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--deep-muted); border-bottom: 3px solid transparent; }
nav a.link:hover { color: var(--deep-ink); }
nav a.link[aria-current="page"] { color: var(--deep-ink); border-bottom-color: var(--accent); }
nav a.link.cta-link { border: 2px solid var(--accent); border-radius: 8px; padding: 9px 14px; color: var(--deep-ink); margin-left: 4px; transition: background .2s, color .2s, transform .2s; }
nav a.link.cta-link:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
nav a.link.cta-link[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.burger { display: none; background: none; border: 1px solid var(--deep-muted); color: var(--deep-ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1180px) {
  .burger { display: block; }
  nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); border-top: 1px solid #ffffff22; display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  nav a.link { padding: 14px 4px; border-bottom: 1px solid #ffffff14; border-left: 3px solid transparent; padding-left: 12px; }
  nav a.link[aria-current="page"] { border-bottom-color: #ffffff14; border-left-color: var(--accent); }
  nav a.link.cta-link { border: 2px solid var(--accent); border-radius: 8px; padding: 12px; margin: 8px 0 0; text-align: center; }
  nav a.link.cta-link[aria-current="page"] { border-color: var(--accent); }
}


/* Langues */
.lang { display: flex; gap: 4px; margin-left: 8px; }
.lang button { background: none; border: 1px solid #ffffff44; color: var(--deep-ink); border-radius: 6px; padding: 6px 9px; font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s; }
.lang button:hover { background: #ffffff1a; }
.lang button[aria-pressed="true"] { background: var(--deep-ink); color: var(--deep); border-color: var(--deep-ink); }
@media (max-width: 1180px) { .lang { margin-left: auto; } .burger { margin-left: 4px; } }

/* Boutons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn.ghost:hover { background: #ffffff14; }

/* Pages */
main { min-height: 60vh; }
.page[hidden] { display: none !important; }
.sec { padding-block: 56px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 16px; }

/* Accueil */
.card-licence { background: #fbfcfe; color: #13203a; border-radius: 16px; padding: 20px; max-width: 420px; justify-self: center; width: 100%; box-shadow: 0 24px 50px -20px #000a; transform: rotate(-2deg); border: 1px solid #ffffff55; }
.card-licence .bar { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 3px solid #13203a; padding-bottom: 8px; }
.card-licence .body { display: grid; grid-template-columns: 86px 1fr; gap: 16px; margin-top: 16px; }
.card-licence .photo { aspect-ratio: 3/4; border-radius: 8px; background: repeating-linear-gradient(135deg, #dfe5ee 0 8px, #eef2f7 8px 16px); border: 1px solid #c3ccda; }
.card-licence dl { margin: 0; display: grid; gap: 6px; }
.card-licence dt { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: #5b6880; }
.card-licence dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.card-licence .cats { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-licence .cats span { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; border: 1.5px solid #13203a; border-radius: 6px; padding: 2px 8px; }
.card-licence .cats span.on { background: #f2b705; }
.card-licence small { display: block; margin-top: 14px; font-size: 0.7rem; color: #5b6880; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 32px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.step b { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.step p { color: var(--muted); font-size: 0.97rem; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: 24px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.service p { color: var(--muted); font-size: 0.97rem; }
.service ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; display: grid; gap: 4px; }
.tag { justify-self: start; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 24px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; }
td:first-child { font-family: var(--font-mono); font-weight: 500; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Formulaires */
.formbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-top: 32px; max-width: 760px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .formbox { padding: 20px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status { margin-top: 20px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 0.95rem; }
.status strong { display: block; margin-bottom: 4px; }
.status.err { border-color: #c0392b; }
.status.ok { border-color: var(--ok); }
.note { margin-top: 16px; font-size: 0.86rem; color: var(--muted); max-width: 760px; }


/* Slider */
.slider { background: var(--deep); color: var(--deep-ink); position: relative; overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
  background: radial-gradient(900px 420px at 85% 30%, var(--glow), transparent 70%); }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.s-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-block: 64px 36px; min-height: 480px; }
.slide .eyebrow { color: var(--deep-muted); display: flex; align-items: center; gap: 12px; }
.slide .eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; }
.s-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.8rem); line-height: 1.05; margin: 0; }
.s-title em { font-style: normal; color: var(--accent); }
.s-text { color: var(--deep-muted); font-size: 1.1rem; margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.visual { display: grid; justify-items: center; min-width: 0; }
@media (max-width: 860px) {
  .s-grid { grid-template-columns: 1fr; padding-block: 44px 28px; min-height: 0; }
  .visual { display: none; }
}
.panel, .card-licence, .mini { background: #fbfcfe; color: #13203a; }
.panel { width: 100%; max-width: 420px; border-radius: 16px; padding: 20px; box-shadow: 0 24px 50px -20px #000a; }
.bar { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 3px solid #13203a; padding-bottom: 8px; }
.ring-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.ring { width: 120px; height: 120px; }
.ring .trk { stroke: #dfe5ee; stroke-width: 10; }
.ring .val { stroke: #13203a; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 90; }
.ring .t1 { font-family: var(--font-display); font-weight: 800; font-size: 34px; fill: #13203a; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 0.92rem; font-weight: 500; }
.panel li { padding-left: 22px; position: relative; }
.panel li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: #f2b705; }
.fake-input { margin-top: 18px; border: 2px solid #13203a; border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.fake-input small { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: .1em; color: #5b6880; }
.fake-input span { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; letter-spacing: .06em; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #13203a; margin-left: 4px; vertical-align: -0.18em; animation: blink 1s steps(1) infinite; }
.result { margin-top: 16px; display: flex; gap: 14px; align-items: center; }
.result b { display: block; font-size: 0.98rem; }
.result span { font-size: 0.85rem; color: #5b6880; }
.check { width: 52px; height: 52px; flex: none; }
.check .c { stroke: #1d7a4d; stroke-width: 3.5; stroke-dasharray: 145; stroke-dashoffset: 0; }
.check .k { stroke: #1d7a4d; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.stack { position: relative; width: 100%; max-width: 420px; height: 270px; }
.mini { position: absolute; left: 0; right: 0; border-radius: 16px; padding: 22px; display: grid; gap: 4px; box-shadow: 0 24px 50px -20px #000a; }
.mini span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: #5b6880; }
.mini b { font-family: var(--font-display); font-size: 1.5rem; }
.mini em { font-style: normal; justify-self: start; margin-top: 10px; font-size: 0.8rem; font-weight: 600; background: #f2b705; padding: 3px 10px; border-radius: 6px; }
.mini.old { top: 0; transform: rotate(4deg); opacity: .5; }
.mini.new { top: 76px; transform: rotate(-2deg); }

.s-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 8px 26px; }
.dots { display: flex; gap: 8px; }
.dot { background: none; border: 0; padding: 14px 0; cursor: pointer; width: 54px; }
.dot i { display: block; height: 4px; border-radius: 2px; background: #ffffff33; position: relative; overflow: hidden; }
.dot i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.dot[aria-current="true"] i { background: #ffffff55; }
.s-btns { display: flex; gap: 8px; align-items: center; }
.count { font-family: var(--font-mono); font-size: 0.82rem; color: var(--deep-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.ctl { background: none; border: 1px solid #ffffff44; color: var(--deep-ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; min-width: 44px; transition: background .2s, border-color .2s; }
.ctl:hover { background: #ffffff14; border-color: #ffffff88; }
.road { height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 56px); background-size: 56px 6px; animation: road 1.6s linear infinite; opacity: .9; }

/* Animations */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(48px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-9px); } }
@keyframes ring { from { stroke-dashoffset: 302; } to { stroke-dashoffset: 90; } }
@keyframes draw { from { stroke-dashoffset: 145; } to { stroke-dashoffset: 0; } }
@keyframes drawk { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-60px) rotate(-8deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes road { to { background-position: 56px 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.page:not([hidden]) { animation: fade .5s ease both; }
.slide.is-active .copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.slide.is-active .copy > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .copy > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .copy > :nth-child(4) { animation-delay: .24s; }
.slide.is-active .visual { animation: slideIn .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.card-licence { animation: float 6s ease-in-out infinite; }
.slide.is-active .ring .val { animation: ring 1.4s .5s cubic-bezier(.3,.7,.2,1) both; }
.slide.is-active .check .c { animation: draw .8s .5s ease-out both; }
.slide.is-active .check .k { animation: drawk .5s 1.1s ease-out both; }
.slide.is-active .mini.new { animation: dropIn .8s .35s cubic-bezier(.2,.8,.2,1) both; }
.btn { transition: transform .2s, filter .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.step, .service { transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover, .service:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 28px -18px #0006; }
.faq details[open] p { animation: rise .35s both; }
@supports (animation-timeline: view()) {
  .step, .service, .band .wrap, .faq details {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
  }
  @keyframes reveal { from { opacity: .3; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide.is-active .ring .val { stroke-dashoffset: 90; }
}

/* FAQ avant le pied de page */
.faq-sec { background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.faq-sec .wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; padding-block: 64px; align-items: start; }
.faq-sec .faq { margin-top: 0; max-width: none; }
.faq-sec .faq details { background: var(--bg); }
.faq-sec .intro { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 860px) { .faq-sec .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; } .faq-sec .intro { position: static; } }


/* Images */
.banner { position: relative; height: clamp(150px, 22vw, 230px); background: #0f1b33; overflow: hidden; }
.banner svg { width: 100%; height: 100%; display: block; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 32px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 28px -18px #0006; }
.cat .ill { background: #fbfcfe; border-radius: 8px; aspect-ratio: 3 / 2; display: grid; place-items: center; }
.cat .ill svg { width: 82%; height: auto; }
.cat .lab { display: flex; align-items: baseline; gap: 10px; }
.cat .lab b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.cat .lab span { color: var(--muted); font-size: 0.92rem; }
.scene-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-block: 64px; }
.scene-fig { margin: 0; border-radius: 16px; overflow: hidden; background: #0f1b33; box-shadow: 0 24px 50px -24px #000a; }
.scene-fig svg { display: block; width: 100%; height: auto; }
.scene-band ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.scene-band li { padding-left: 30px; position: relative; color: var(--muted); }
.scene-band li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.scene-band li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 3px); width: 5px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(40deg); }
@media (max-width: 860px) { .scene-band .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; } }


/* Photos */
.photo-fig { position: relative; margin: 0; width: 100%; max-width: 460px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0f1b33; box-shadow: 0 24px 50px -20px #000a; }
.photo-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-fig figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.82rem; padding: 4px 10px; border-radius: 6px; }
.scene-fig img { display: block; width: 100%; height: auto; }


/* Sections avec photo */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 56px; }
.feature.alt { background: var(--surface); border-block: 1px solid var(--line); }
.feature.alt .wrap { grid-template-columns: 1fr 1fr; }
.feature.alt .feat-fig { order: 2; }
.feat-fig { margin: 0; border-radius: 16px; overflow: hidden; background: #0f1b33; box-shadow: 0 24px 50px -24px #000a; }
.feat-fig img { display: block; width: 100%; height: auto; }
.feat-fig.small { max-width: 380px; justify-self: center; width: 100%; }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 3px); width: 5px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(40deg); }
@media (max-width: 860px) {
  .feature .wrap, .feature.alt .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
  .feature.alt .feat-fig { order: 0; }
}


/* Pages légales */
.prose { max-width: 760px; margin-top: 28px; display: grid; gap: 12px; }
.prose h2 { font-size: 1.3rem; margin-top: 18px; }
.prose p { color: var(--muted); }


/* Retour en haut */
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--deep); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px #0008; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
.totop.show { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.totop:hover { filter: brightness(1.07); }


/* Page Conditions */
.cond-h { margin-top: 48px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.cond { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 8px; align-content: start; transition: transform .25s, border-color .25s, box-shadow .25s; }
.cond:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 28px -18px #0006; }
.cond h3 { font-size: 1.1rem; }
.cond p { color: var(--muted); font-size: 0.97rem; }
.doc-list { margin-top: 24px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 24px; }
.doc-list li { color: var(--ink); }


/* Conditions en bref (accueil) */
.ctabs { display: grid; grid-template-columns: minmax(240px, 1fr) 1.6fr; gap: 24px; margin-top: 32px; align-items: start; }
.ctab-list { display: grid; gap: 8px; }
.ctab { font: inherit; font-weight: 600; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.ctab::after { content: "→"; font-family: var(--font-mono); opacity: .5; }
.ctab:hover { border-color: var(--ink); transform: translateX(3px); }
.ctab[aria-selected="true"] { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.ctab[aria-selected="true"]::after { opacity: 1; color: var(--accent); }
.ctab-panels { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-height: 220px; align-content: start; }
.cpanel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cpanel p { font-size: 1.08rem; color: var(--muted); }
.cpanel:not([hidden]) { animation: rise .4s both; }
@media (max-width: 860px) {
  .ctabs { grid-template-columns: 1fr; gap: 16px; }
  .ctab-list { display: flex; flex-wrap: wrap; }
  .ctab::after { display: none; }
  .ctab:hover { transform: none; }
  .ctab-panels { padding: 22px; min-height: 0; }
}


/* Chargement */
.status.loading strong { display: flex; align-items: center; gap: 10px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pied de page */
footer { background: var(--deep); color: var(--deep-ink); margin-top: 24px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 52px 32px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
footer h3 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--deep-muted); font-weight: 500; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--deep-ink); font-size: 0.95rem; }
footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
footer p { color: var(--deep-muted); font-size: 0.93rem; }
.legal { border-top: 1px solid #ffffff22; padding-block: 24px 36px; display: grid; gap: 12px; }
.legal details { border: 1px solid #ffffff22; border-radius: 8px; }
.legal summary { cursor: pointer; padding: 12px 16px; font-size: 0.93rem; font-weight: 600; }
.legal details div { padding: 0 16px 16px; color: var(--deep-muted); font-size: 0.9rem; display: grid; gap: 10px; }
.legal details div p { max-width: 80ch; }
.copy { color: var(--deep-muted); font-size: 0.84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.theme { background: none; border: 1px solid var(--deep-muted); color: var(--deep-ink); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ===== Fond animé de l'accueil : route en perspective + lueurs qui dérivent ===== */
.bg-anim { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.slider > :not(.bg-anim) { position: relative; z-index: 1; }

.bg-orb { position: absolute; border-radius: 50%; will-change: transform; }
.bg-orb.a { width: 460px; height: 460px; left: -140px; top: -160px;
  background: radial-gradient(circle, rgba(242,183,5,.26), transparent 68%); animation: driftA 22s ease-in-out infinite alternate; }
.bg-orb.b { width: 560px; height: 560px; right: -180px; top: 6%;
  background: radial-gradient(circle, rgba(70,135,255,.26), transparent 68%); animation: driftB 28s ease-in-out infinite alternate; }

.bg-road { position: absolute; left: 0; right: 0; bottom: 0; height: 150%; overflow: hidden;
  transform-origin: 50% 100%; transform: perspective(640px) rotateX(60deg);
  background: linear-gradient(to top, rgba(255,255,255,.09), rgba(255,255,255,0) 70%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 85%); mask-image: linear-gradient(to top, #000 30%, transparent 85%); }
.bg-road::before { content: ""; position: absolute; left: calc(50% - 8px); width: 16px; top: -220px; bottom: 0;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 110px, transparent 110px 220px);
  opacity: .6; animation: laneMove 1.3s linear infinite; }
.bg-road::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 16%, rgba(255,255,255,.4) 16% calc(16% + 8px), transparent calc(16% + 8px) calc(84% - 8px), rgba(255,255,255,.4) calc(84% - 8px) 84%, transparent 84%); }

@keyframes laneMove { to { transform: translateY(220px); } }
@keyframes driftA { to { transform: translate(220px, 130px) scale(1.15); } }
@keyframes driftB { to { transform: translate(-260px, 100px) scale(.9); } }
@media (max-width: 860px) { .bg-road { height: 120%; } .bg-orb.a, .bg-orb.b { width: 340px; height: 340px; } }
@media (prefers-reduced-motion: reduce) { .bg-orb, .bg-road::before { animation: none; } }