/* RoadDeck : page de présentation. Design plat, même identité que l'appli :
   graphite, surfaces, orange signal, vert « panneau de direction », Inter.
   Règle de la maison : aucune ombre, aucun halo, aucun flou, aucun dégradé lumineux. */

@font-face {
  font-family: "Inter RD";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  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: "Inter RD";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin.woff2) format("woff2");
  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 {
  --bg: #0a0b0d;
  --s1: #15181c;
  --s2: #1b1f24;
  --s3: #252a31;
  --line: #262b32;
  --line-2: #343a43;
  --text: #f4f6f8;
  --text-2: #b3bac4;
  --text-3: #8a929e;
  --accent: #ff8a1e;
  --accent-hi: #ffa64a;
  --accent-ink: #1f1000;
  --guide: #0c6e4a;
  --guide-2: #085a3c;
  --guide-hi: #3ddc97;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter RD", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
svg:not(.logo):not(.qrc) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #ffc285; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: .86em;
  background: var(--s3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: .08em .4em;
  color: var(--text);
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--accent-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand b { color: var(--accent); font-weight: 800; }
.logo { width: 32px; height: 32px; flex: none; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.top nav a { display: block; padding: 8px 12px; border-radius: var(--r-s); color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 550; }
.top nav a:hover { color: var(--text); background: var(--s1); }
.top .gh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.top .gh:hover { background: var(--s1); color: var(--text); }
.top .gh svg { width: 18px; height: 18px; }
@media (max-width: 920px) { .top nav { display: none; } .top .gh { margin-left: auto; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r-m);
  font-size: 17px; font-weight: 700; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-alt { background: var(--s1); color: var(--text); border-color: var(--line-2); }
.btn-alt:hover { background: var(--s2); color: var(--text); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Héro ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 600; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--guide-hi); display: inline-block; }
.hero h1 { font-size: clamp(46px, 7.4vw, 84px); font-weight: 850; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 b { color: var(--accent); font-weight: 850; }
.lead { font-size: clamp(19px, 2.1vw, 22px); color: var(--text-2); line-height: 1.5; margin-bottom: 30px; max-width: 34em; }
.lead strong { color: var(--text); font-weight: 650; }
.meta { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-3); font-size: 14.5px; }
.meta li { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 16px; height: 16px; color: var(--guide-hi); }

.devices { position: relative; padding-bottom: 8%; padding-right: 9%; }
.tablet { background: var(--s1); border: 1px solid var(--line-2); border-radius: 22px; padding: 10px; }
.tablet img, .phone img { border-radius: 13px; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 26%;
  background: var(--s1); border: 1px solid var(--line-2); border-radius: 26px; padding: 7px;
  outline: 8px solid var(--bg);
}
.phone img { border-radius: 20px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { display: block; color: var(--accent); font-size: 14px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.head p { color: var(--text-2); font-size: 19px; margin: 16px 0 0; }

/* Fonctions */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features li { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 24px 24px; }
.features h3 { margin: 18px 0 8px; }
.features p { color: var(--text-2); font-size: 16px; margin: 0; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); color: var(--accent); }
.ico.g { background: var(--guide); color: #fff; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 12px 12px 0; display: flex; flex-direction: column; }
.gallery a { display: block; border-radius: 10px; }
.gallery img { border-radius: 10px; width: 100%; }
.gallery figcaption { padding: 14px 6px 16px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.gallery figcaption b { color: var(--text); display: block; font-size: 16px; }
.g-wide { grid-column: span 8; }
.g-phone { grid-column: span 4; }
.g-tab { grid-column: span 5; }
.g-map { grid-column: span 7; }
.gallery figure > a { flex: 1; display: flex; align-items: center; justify-content: center; }
.g-phone > a, .g-tab > a { background: var(--bg); }
.g-phone img { max-width: 220px; }
.g-tab img { max-width: 410px; }
@media (max-width: 900px) {
  .g-wide, .g-phone, .g-tab, .g-map { grid-column: span 12; }
  .g-phone img { max-width: 300px; }
}

/* Écran cabine */
.cab-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.cab-top .head { margin: 0; }
.cab figure { margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(12px, 2vw, 28px); }
.cab figure img { width: 100%; }
.cab figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--text-3); font-size: 14.5px; padding: 16px 4px 0; }
.cab figcaption b { color: var(--text-2); font-weight: 600; }
.checks { list-style: none; padding: 0; display: grid; gap: 14px; margin: 0; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--text-2); }
.checks li b { color: var(--text); font-weight: 650; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--guide-hi); stroke-width: 2.4; }
@media (max-width: 960px) { .cab-top { grid-template-columns: 1fr; } }

/* En jeu : section mise en avant juste après le héro */
.ingame { background: #0e1013; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.shots figure { margin: 0; padding: 10px; }
.shots figure:first-child { grid-column: 1 / -1; padding: clamp(10px, 1.4vw, 16px); }
.shots img { border-radius: 10px; width: 100%; }
.shots a { display: block; border-radius: 10px; }
.shots figcaption { display: block; padding: 12px 4px 2px; }
.hero-shot { margin: 0; background: var(--s1); border: 1px solid var(--line-2); border-radius: 22px; padding: 10px; }
.hero-shot img { border-radius: 13px; width: 100%; }
.hero-shot figcaption { color: var(--text-3); font-size: 14px; padding: 10px 6px 2px; }

/* Installation */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps > li { counter-increment: step; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 22px 24px; display: flex; flex-direction: column; }
.steps .n { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.steps .n::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; flex: none;
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--text-2); font-size: 15.5px; margin: 0 0 .7em; }
.steps p:last-child { margin-bottom: 0; }
.shot { margin-top: auto; padding-top: 16px; }
.ui {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px;
  font-size: 14px; color: var(--text-2);
}
.ui .row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.ui .row + .row { margin-top: 4px; }
.ui .row.sel { background: var(--s3); color: var(--text); }
.ui .row svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui .row .z { color: var(--accent); }
.ui .bar { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; margin-top: 10px; }
.ui .bar i { display: block; height: 100%; width: 64%; background: var(--accent); }
.ui .url { white-space: nowrap; display: flex; align-items: center; gap: 8px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; color: var(--text); font-size: 14px; }
.ui .url svg { width: 16px; height: 16px; color: var(--guide-hi); fill: none; stroke: currentColor; stroke-width: 2; }
.ui.qr { display: flex; gap: 14px; align-items: center; }
.ui.qr .qrc { width: 64px; height: 64px; flex: none; border-radius: 4px; }
.ui .mod { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; background: var(--s2); color: var(--text); }
.ui .mod + .mod { margin-top: 6px; }
.ui .mod small { color: var(--text-3); }
.ui .tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--guide); color: #fff; white-space: nowrap; }
.ui .tag.off { background: var(--s3); color: var(--text-3); }
.ui.dlg { text-align: center; }
.ui.dlg b { display: block; color: var(--text); margin-bottom: 4px; }
.ui.dlg span { display: inline-block; margin-top: 10px; padding: 6px 22px; border-radius: 8px; background: var(--s3); color: var(--text); font-weight: 700; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.note { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-m); background: var(--s1); border: 1px solid var(--line); border-left: 4px solid var(--guide); color: var(--text-2); font-size: 15.5px; }
.note p:last-child { margin: 0; }

/* Compatibilité */
.compat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compat > div { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 26px 28px; }
.compat h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.compat h3 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compat .yes h3 svg { color: var(--guide-hi); }
.compat .no h3 svg { color: var(--accent); }
.compat ul { padding-left: 1.15em; display: grid; gap: 10px; color: var(--text-2); font-size: 16px; }
.compat li::marker { color: var(--text-3); }
.compat li b { color: var(--text); font-weight: 650; }
@media (max-width: 820px) { .compat { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-m); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 650; font-size: 17px; position: relative; border-radius: var(--r-m);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--s2); }
.faq .a { padding: 0 22px 18px; color: var(--text-2); font-size: 16px; }
.faq .a p:last-child { margin: 0; }

/* Contribuer */
.contrib { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.flow { list-style: none; padding: 0; display: grid; gap: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.flow li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 22px; color: var(--text-2); font-size: 15.5px; }
.flow li + li { border-top: 1px solid var(--line); }
.flow li b { color: var(--text); display: block; font-size: 16px; }
.flow code { white-space: nowrap; }
.flow .dot { width: 40px; height: 40px; border-radius: 10px; background: var(--s3); color: var(--accent); display: grid; place-items: center; }
.flow .dot.g { background: var(--guide); color: #fff; }
.flow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contrib .btns { margin-top: 26px; }
@media (max-width: 900px) { .contrib { grid-template-columns: 1fr; } }

/* Anglais */
.en { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); max-width: 900px; }
.en h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.en p { color: var(--text-2); }
.en p:last-child { margin: 0; }

/* Licence + pied de page */
.licence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.licence > div { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; color: var(--text-2); font-size: 16px; }
.licence h3 { color: var(--text); margin-bottom: 10px; }
.licence p:last-child { margin: 0; }
@media (max-width: 820px) { .licence { grid-template-columns: 1fr; } }

.cta { text-align: center; border-bottom: 0; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--text-2); font-size: 19px; margin-bottom: 28px; }
.cta .btns { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14.5px; }
footer .wrap { display: grid; gap: 18px; }
footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer p { margin: 0; max-width: 860px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .devices { max-width: 720px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .ui.qr { gap: 10px; padding: 12px; }
  .ui.qr .qrc { width: 52px; height: 52px; }
  .ui .url { font-size: 13px; padding: 7px 11px; gap: 6px; }
  .btns .btn { width: 100%; }
  .phone { outline-width: 5px; border-radius: 20px; padding: 5px; }
  .phone img { border-radius: 15px; }
  .tablet { padding: 6px; border-radius: 16px; }
  .tablet img { border-radius: 10px; }
}
