/* =========================================================
   Kaskadio — site styles
   Matched to the Prochain Arrêt extension's Paris interface:
   navy line color, white header band with a line stripe,
   black boxes with yellow digits, pale information panels,
   Fira Sans.
   ========================================================= */

@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/FiraSans-400.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/FiraSans-500.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/FiraSans-600.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/FiraSans-700.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/FiraSans-800.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --navy: #1b2475;
  --navy-hover: #283394;
  --yellow: #f2c418;
  --black: #0b0b0b;
  --box: #171717;
  --page: #eef1f6;
  --panel: #ffffff;
  --panel-2: #e9eef8;
  --ink: #141b5c;
  --ink-2: #4a5078;
  --ink-3: #5d6385;
  --rule: #d3d8e4;
  --heading: #1b2475;
  --link: #1b2475;
  --focus: #1b2475;
  --line: #1b2475;
  --track: #1b2475;
  --badge-bg: #1b2475;
  --badge-ink: #ffffff;
  --btn-bg: #1b2475;
  --btn-ink: #ffffff;
  --btn-hover: #283394;
  --shadow: 0 1px 2px rgba(18, 21, 74, 0.08), 0 8px 24px rgba(18, 21, 74, 0.08);
  --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b0b0b;
    --panel: #15171d;
    --panel-2: #1d2029;
    --ink: #eef0f7;
    --ink-2: #b4b9cc;
    --ink-3: #9aa0b4;
    --rule: #2c303b;
    --heading: #ffffff;
    --link: #f2c418;
    --focus: #8fa2ff;
    --line: #2a3490;
    --track: #f2c418;
    --badge-bg: #f2c418;
    --badge-ink: #0b0b0b;
    --btn-bg: #f2c418;
    --btn-ink: #0b0b0b;
    --btn-hover: #ffd84a;
    --shadow: none;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  border-bottom: 8px solid var(--line);
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

code {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--panel-2);
  font: 500 0.88em/1.4 var(--mono);
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font: 600 0.85em/1.4 var(--font);
  text-align: center;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--wrap), 100% - 64px); } }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 8px 12px; border-radius: 4px; background: var(--panel); color: var(--ink); }
.skip:focus { left: 16px; }

h1, h2, h3 { color: var(--heading); text-wrap: balance; }

/* ---------- Header: the white band of the platform screens, line stripe under it ---------- */
.site-head { background: var(--panel); border-bottom: 6px solid var(--line); }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }

.nav a {
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--heading); font-weight: 700; box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 4px 4px 0 0; }

.nav .lang {
  margin-left: 8px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 420px) {
  .nav a { padding: 8px 9px; }
  .nav .lang { margin-left: 4px; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--rule); background: var(--panel); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* "Coming soon": the yellow-on-black time box */
.btn-soon { background: var(--box); color: var(--yellow); cursor: default; }
.btn-soon small { color: #c9ccd8; font-size: 13px; font-weight: 500; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Home: hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.kicker img { width: 22px; height: 22px; }

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tagline { margin: 12px 0 0; color: var(--ink-2); font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; line-height: 1.3; }
.lead { max-width: 34em; margin: 20px 0 0; color: var(--ink-2); font-size: 18px; }

/* ---------- Home: the waiting-time screen mock ---------- */
.screen {
  overflow: hidden;
  border-radius: 10px;
  background: var(--black);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.scr-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #ffffff; color: #1b2475; }
.scr-head img { width: 36px; height: 36px; flex: none; }

.scr-dest {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(16px, 2.1vw, 21px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scr-dest::first-letter { text-transform: uppercase; }

.scr-clock {
  flex: none;
  padding: 4px 10px 3px;
  border-radius: 4px;
  background: var(--box);
  color: var(--yellow);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.1;
}

.colon { display: inline-block; margin: 0 1px; animation: blink 2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .colon { animation: none; } }

.scr-stripe { height: 6px; background: #1b2475; }

.scr-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 560px) { .scr-body { grid-template-columns: minmax(0, 1fr); } }

.scr-rows { margin: 0; padding: 0; list-style: none; }

.scr-row {
  display: grid;
  grid-template-columns: 2.4em auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-bottom: 1px solid #262626;
}

.scr-row:last-child { border-bottom: 0; }
.scr-rank { color: #ffffff; font-size: 15px; font-weight: 600; }
.scr-rank sup { font-size: 0.65em; }

.line-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 24%;
  background: var(--c, #1b2475);
  color: var(--ci, #ffffff);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.scr-what { min-width: 0; }
.scr-what b { display: block; overflow: hidden; color: var(--yellow); font-size: clamp(16px, 2vw, 20px); font-weight: 600; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.scr-what span { display: block; overflow: hidden; color: #9aa0b4; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }

.scr-eta { color: var(--yellow); font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.scr-eta small { margin-left: 3px; color: #c9ccd8; font-size: 0.4em; font-weight: 600; letter-spacing: 0; }
.scr-row.first { padding-block: 20px; }
.scr-row.first .scr-eta { font-size: clamp(38px, 5.8vw, 62px); }

.scr-info { padding: 14px 16px; background: #e9eef8; color: #111111; }
.scr-info h3 { margin: 0 0 6px; color: #1b2475; font-size: 15px; font-weight: 700; }
.scr-info ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.35; }
.scr-info li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #cdd5e6; }
.scr-info li::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid #1b2475; border-radius: 3px; }
.scr-info li.done { color: #5d6385; text-decoration: line-through; }
.scr-info li.done::before { background: #1b2475; }

.screen-caption { margin: 10px 2px 0; color: var(--ink-3); font-size: 13px; text-align: right; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--heading);
}

.section-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.eyebrow { color: var(--ink-3); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* How it works: a strip map, one station per step */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }

.stop { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 12px; text-align: center; }

.stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 6px;
  background: var(--track);
}

.stop-dot { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border: 6px solid var(--track); border-radius: 50%; background: var(--panel); }
.stop.here .stop-dot { border-color: var(--box); background: var(--yellow); }
.stop h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; }
.stop p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

@media (max-width: 760px) {
  .strip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stop { flex-direction: row; align-items: flex-start; gap: 16px; padding: 0; text-align: left; }
  .stop:not(:last-child)::after { top: 30px; bottom: -28px; left: 15px; right: auto; width: 6px; height: auto; }
  .stop h3 { margin: 4px 0 4px; }
}

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Google data panel: the screens' information panel, with a line-colored edge */
.data-panel {
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--rule);
  border-left: 8px solid var(--navy);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.data-panel > p:first-child { margin-top: 0; }
.data-panel p { color: var(--ink-2); }

.facts { margin: 20px 0 0; }
.fact { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.fact dt { color: var(--heading); font-weight: 700; }
.fact dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.limited { margin: 22px 0 0; padding: 14px 16px; border-radius: 6px; background: var(--panel-2); color: var(--ink); font-size: 15.5px; }
.limited strong { color: var(--heading); }

.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc-hero { padding: 48px 0 4px; }
.doc { max-width: 780px; }
.doc-hero h1 { margin: 0; font-size: clamp(36px, 5.6vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.doc-hero .lead { margin-top: 14px; }

.updated {
  display: inline-block;
  margin: 18px 0 0;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--box);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.doc-body { padding: 8px 0 64px; }
.doc-body h2 { margin: 44px 0 12px; padding-top: 14px; border-top: 3px solid var(--heading); font-size: 25px; font-weight: 700; line-height: 1.2; }
.doc-body h3 { margin: 26px 0 8px; font-size: 18.5px; font-weight: 700; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body strong { color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body li::marker { color: var(--heading); }

.toc { margin: 28px 0 0; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
.toc p { margin: 0 0 6px; color: var(--ink-3); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }

.summary-box { margin: 24px 0 0; padding: 18px 20px; border-left: 6px solid var(--navy); border-radius: 6px; background: var(--panel-2); }
.summary-box ul { margin: 0; padding-left: 20px; }
.summary-box li { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { color: var(--heading); font-weight: 700; white-space: nowrap; }
td { color: var(--ink-2); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--panel-2); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Support */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--black);
  color: #ffffff;
}

.contact-card .label { margin: 0 0 4px; color: #c9ccd8; font-size: 14px; }
.contact-card .mail { color: var(--yellow); font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-card .mail:hover { text-decoration: underline; }
.contact-card .note { max-width: 22em; margin: 0; color: #c9ccd8; font-size: 15px; }

.faq details { margin: 10px 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--heading); font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ink-3); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 16px 6px; }
.faq details > div p, .faq details > div li { margin-top: 0; }

/* 404 */
.terminus { padding: 72px 0 80px; text-align: center; }
.terminus .screen { max-width: 560px; margin: 0 auto 28px; text-align: left; }
.terminus h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
.terminus p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-foot { margin-top: 24px; padding: 40px 0 28px; background: var(--black); color: #c9ccd8; }
.site-foot .brand { color: #ffffff; }
.site-foot .brand-badge { background: var(--yellow); color: var(--black); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot-grid p { max-width: 30em; margin: 12px 0 0; font-size: 15px; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-nav a { color: #ffffff; font-size: 15px; text-decoration: none; }
.foot-nav a:hover { color: var(--yellow); text-decoration: underline; }
.foot-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid #262626; color: #9aa0b4; font-size: 13px; }
.foot-note p { margin: 0; }
