/* Site public Trenora (accueil, gares, perturbations, à propos). Jetons repris de DESIGN.md, direction B « carte vivante ». */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/fonts/barlow-latin-700-normal.woff2) format('woff2'); }
:root {
  --primary: #4B30C2; --primary-hover: #3C24A3; --primary-soft: #E7E3FA; --quai: #FFD23F;
  --bg: #F4F3FA; --surface: #FFFFFF; --ink: #1A1830; --ink-2: #2B2840; --ink-soft: #4C4A63; --ink-muted: #64627A; --line: #DEDCEB;
  --ok: #1F9D68; --ok-soft: #D8F2E6; --ok-ink: #146B47; --late: #E58A1A; --late-soft: #FCEBD3; --late-ink: #9A5200;
  --heavy: #D43A3A; --heavy-soft: #FADADA; --heavy-ink: #9B1F1F; --off: #8A889C; --off-soft: #ECEBF2;
  --shadow: 0 2px 8px rgba(26,24,48,.12), 0 1px 2px rgba(26,24,48,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Barlow, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); } a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tn { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.btn { height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border: 0; border-radius: 9999px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--ink); border-radius: 14px; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); } .pill.late { background: var(--late-soft); color: var(--late-ink); }
.pill.heavy { background: var(--heavy-soft); color: var(--heavy-ink); } .pill.off { background: var(--off-soft); color: var(--ink-soft); }
.pill.voie { background: var(--primary-soft); color: var(--primary); } .pill.live { background: var(--quai); color: var(--ink); }
.voie-badge { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.card { background: var(--surface); border-radius: 22px; padding: 22px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--bg); }
.seg button { height: 40px; padding: 0 18px; border: 0; border-radius: 9999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.seg.on-white { background: var(--surface); }
.seg.on-white button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }
section { scroll-margin-top: 80px; }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.site-head .logo img { height: 28px; display: block; }
.site-head nav { flex-grow: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.site-head nav a { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 9999px; color: var(--ink); text-decoration: none; font-size: 15px; }
.site-head nav a:hover { background: var(--bg); }
.site-head nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; background: var(--late-soft); color: var(--late-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 9999px; background: var(--bg); }
.langs a { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 9999px; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.site-head .install { height: 40px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; }
.narrow-only { display: none !important; }
/* Accueil : l'en-tête flotte sur la carte (boutons blancs), puis redevient une barre blanche au défilement. */
@media (min-width: 761px) {
  .site-head.over { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .2s, border-color .2s; }
  .site-head.over.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
  .site-head.over:not(.scrolled) nav a, .site-head.over:not(.scrolled) .langs { background: #fff; box-shadow: var(--shadow); }
  .site-head.over:not(.scrolled) nav { gap: 6px; }
  .site-head.over + main .hero .wrap { padding-top: 96px; }
  .site-head.over + main .hero .legend { top: 84px; }
}

/* Héros carte vivante */
.hero { position: relative; min-height: 840px; overflow: hidden; background: #C9D6E3; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .legend { position: absolute; right: 24px; top: 24px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.92); font-size: 13px; box-shadow: var(--shadow); z-index: 2; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 9999px; display: inline-block; }
.legend i.ring { box-sizing: border-box; border: 2px solid var(--ink); background: #fff; }
.featured { position: absolute; z-index: 2; display: none; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(26,24,48,.15); font-size: 13px; color: var(--ink-soft); text-decoration: none; transform: translate(18px, -50%); white-space: nowrap; }
.featured strong { font-size: 14px; color: var(--ink); }
.hero .wrap { position: relative; z-index: 3; padding-top: 40px; padding-bottom: 120px; pointer-events: none; }
.search-card { pointer-events: auto; width: 480px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 30px 70px rgba(26,24,48,.2); }
.live-dot { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ok-ink); }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 9999px; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.search-card h1 { font-size: 48px; font-weight: 700; line-height: 1; }
.search-card .seg { display: grid; grid-template-columns: 1fr 1fr; }
.field { position: relative; display: flex; flex-direction: column; border: 2px solid var(--primary); border-radius: 18px; overflow: hidden; background: #fff; }
.field label { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; }
.field input { flex-grow: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 19px; }
.suggest { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.suggest[hidden] { display: none; }
.suggest a { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 18px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a:focus { background: var(--primary-soft); outline: 0; }
.suggest small { display: block; font-size: 13px; color: var(--ink-soft); }
.hint { font-size: 13px; color: var(--ink-muted); }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.step .num { flex-shrink: 0; width: 26px; height: 26px; font-size: 13px; background: var(--primary-soft); color: var(--primary); }
.step[hidden] { display: none; }
.suggest a .pill { justify-self: end; }
.mode-wait[hidden], .mode-trip[hidden] { display: none; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 3; display: flex; align-items: center; background: var(--ink); color: #EDECF5; overflow: hidden; }
.ticker b.tag { position: relative; z-index: 1; flex-shrink: 0; height: 56px; display: flex; align-items: center; padding: 0 20px; background: var(--quai); color: var(--ink); font-size: 13px; letter-spacing: .06em; }
.ticker .run { display: flex; gap: 40px; padding-left: 24px; white-space: nowrap; font-size: 15px; animation: ticker 60s linear infinite; }
.ticker .run strong { color: var(--quai); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .run { animation: none; } }

.stats { margin: 32px 0 40px; --min: 260px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 2px 8px rgba(26,24,48,.08); color: var(--ink); text-decoration: none; }
.stat .big { font-size: 44px; font-weight: 700; line-height: 1; }
.stat.dark { background: var(--ink); color: #fff; } .stat.dark .label { color: var(--quai); } .stat.dark .muted { color: #CFCDE0; }

/* Sections */
.band { padding: 88px 0; } .band.white { background: #fff; } .band.tight { padding: 64px 0; }
.band h2 { font-size: 48px; font-weight: 700; line-height: 1.02; }
.lead { font-size: 19px; line-height: 1.45; color: var(--ink-soft); max-width: 680px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* Collage « touche un train » */
.collage { position: relative; min-height: 520px; border-radius: 28px; overflow: hidden; background: #E9E8F3; }
.collage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.collage .panel { position: absolute; width: 360px; max-width: calc(100% - 48px); display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(26,24,48,.18); }
.collage .panel.train { left: 24px; top: 24px; } .collage .panel.station { right: 24px; bottom: 24px; padding: 0; gap: 0; overflow: hidden; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); }
.kpis > span { display: flex; flex-direction: column; min-width: 0; } .kpis b { font-size: 22px; } .kpis b small { font-size: 13px; color: var(--ink-muted); }
.kpis .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liftline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--ink-soft); }
.rowline { display: grid; grid-template-columns: 54px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); text-decoration: none; }

/* Frise « vu des deux côtés » */
.duo-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 24px; font-size: 15px; font-weight: 600; }
.duo-head span:first-child { justify-self: end; }
.duo-head span { display: flex; align-items: center; gap: 10px; }
.duo-head i { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); } .duo-head i.soft { background: var(--primary-soft); border: 1px solid var(--primary); }
.duo { list-style: none; margin: 0; padding: 0; }
.duo li { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.duo .side { max-width: 440px; display: flex; flex-direction: column; gap: 8px; padding: 18px; font-size: 17px; font-weight: 600; }
.duo .thomas { justify-self: end; width: 100%; border-radius: 20px 6px 20px 20px; background: var(--ink); color: #fff; }
.duo .sophie { border-radius: 6px 20px 20px 20px; background: var(--primary-soft); }
.duo .rail { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 40px; }
.duo .rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px; background: var(--rail, var(--primary)); }
.duo li:first-child .rail::before { top: 14px; } .duo li:last-child .rail::before { bottom: auto; height: 14px; }
.duo .rail i { position: relative; width: 28px; height: 28px; border-radius: 9999px; background: #fff; border: 5px solid var(--ink); }
.duo .rail i.now { background: var(--late); border-color: var(--quai); box-shadow: 0 0 0 3px #fff; }
.duo .rail b { position: relative; padding: 2px 8px; background: #fff; font-size: 30px; }
.duo .rail small { position: relative; padding: 0 8px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.bubble { align-self: flex-end; max-width: 90%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--primary); font-size: 14px; font-weight: 400; }
.notif { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 400; }
.notif::before { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); }
.lock { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 16px; background: #000; font-size: 15px; font-weight: 400; }
.lock strong { color: var(--quai); }
.inner { padding: 8px 12px; border-radius: 12px; background: var(--ink-2); font-size: 14px; font-weight: 400; color: #CFCDE0; }

/* Blocs « plus que l'horaire » */
.feature { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 28px; border-radius: 24px; background: var(--bg); }
.feature > div:first-child { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 24px; } .feature p { font-size: 16px; color: var(--ink-soft); }
.feature .demo { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; font-size: 14px; }
.train-schema { display: flex; gap: 2px; } .train-schema span { flex-grow: 1; height: 18px; border-radius: 2px; background: var(--line); }
.train-schema .bar { background: #A898FF; } .train-schema .head { flex: 0 0 12px; background: var(--ink-soft); border-radius: 8px 2px 2px 8px; } .train-schema .tail { flex: 0 0 12px; background: var(--ink-soft); border-radius: 2px 8px 8px 2px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; } .bars span { flex-grow: 1; border-radius: 2px; }

/* Tableaux */
.table { display: flex; flex-direction: column; }
.table .tr { display: grid; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); text-decoration: none; }
.table .tr:last-child { border-bottom: 0; }
.table .th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 0 0 10px; }
.regions .tr { grid-template-columns: minmax(0, 1fr) 180px 70px 150px; }
.regions .tr a { font-size: 15px; font-weight: 600; text-decoration: none; } .regions .tr a:hover { text-decoration: underline; }
.heavy-t { color: var(--heavy-ink); } .late-t { color: var(--late-ink); } a.muted { color: var(--ink-muted); font-weight: 400 !important; }
.meter { display: flex; align-items: center; gap: 8px; } .meter span { flex-grow: 1; height: 8px; border-radius: 9999px; background: var(--off-soft); overflow: hidden; } .meter span i { display: block; height: 8px; border-radius: 9999px; }
.feed { border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(26,24,48,.08); }
.feed .tr { grid-template-columns: 64px 110px minmax(0, 1fr) auto; padding: 14px 20px; }
.feed .empty { padding: 20px; color: var(--ink-muted); }
.boards { --min: 280px; }
.board-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(26,24,48,.08); }
.board-card h3 { font-size: 18px; } .board-card .line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.board-card .dep, .board-card .arr { display: flex; flex-direction: column; gap: 6px; }
.board-card .line > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card .line em { font-style: normal; font-weight: 600; white-space: nowrap; } .board-card .line em.ok { color: var(--ok-ink); } .board-card .line em.late { color: var(--late-ink); } .board-card .line em.none { color: var(--ink-muted); font-weight: 400; }
.boards-wrap[data-board="dep"] .arr, .boards-wrap[data-board="arr"] .dep { display: none; }

/* App */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checks li { display: flex; gap: 12px; } .checks svg { flex-shrink: 0; width: 26px; height: 26px; padding: 6px; border-radius: 9999px; background: var(--ok-soft); color: var(--ok-ink); }
.phone { width: 250px; height: 500px; border: 9px solid var(--ink); border-radius: 40px; background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; padding: 70px 14px 14px; color: #fff; }
.phone .clock { font-size: 54px; font-weight: 700; text-align: center; line-height: 1; }
.widget { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 8px 24px rgba(26,24,48,.15); }
.widget b { font-size: 34px; }
.widgets { width: 200px; display: flex; flex-direction: column; gap: 12px; }
.band.cta-band { padding-top: 0; }

/* FAQ et pied de page */
.faq details { padding: 18px 0; border-top: 1px solid var(--line); } .faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; } .faq p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 32px; background: var(--ink); color: #fff; }
.cta h2 { font-size: 44px; } .cta p { color: #CFCDE0; font-size: 17px; margin-top: 8px; }
.cta .btn { background: #fff; color: var(--ink); border-radius: 16px; } .cta .btn:hover { background: var(--primary-soft); }
.site-foot { background: #fff; border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); font-size: 14px; color: var(--ink-muted); }
.site-foot .col { display: flex; flex-direction: column; gap: 10px; }
.site-foot .col a { color: var(--ink-soft); text-decoration: none; font-size: 15px; } .site-foot .col a:hover { color: var(--primary); text-decoration: underline; }
.site-foot .brand span { max-width: 300px; line-height: 1.5; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-langs > * { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9999px; background: var(--bg); font-size: 13px; }
.site-foot .foot-langs a[aria-current] { background: var(--ink); color: #fff; font-weight: 600; } .foot-langs span { color: var(--ink-muted); opacity: .7; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-head .wrap { flex-wrap: wrap; }
  .site-head .logo { margin-right: auto; }
  .menu-btn { order: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; cursor: pointer; }
  .site-head .langs { order: 1; }
  .site-head nav { order: 3; display: none; width: 100%; flex-direction: column; gap: 2px; padding: 4px 0 8px; }
  .menu-toggle:checked ~ nav { display: flex; }
  .site-head nav a { height: 48px; font-size: 17px; padding: 0 12px; border-radius: 12px; }
  .narrow-only { display: flex !important; } .wide-only, .stats .stat.dark { display: none !important; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; } .stat { padding: 16px; } .stat .big { font-size: 34px; }
  .collage-band { display: none; }
  .feature { padding: 20px; gap: 12px; } .feature p { display: none; } .feature h3 { font-size: 20px; }
  .site-head .install { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero canvas { position: relative; height: 300px; }
  .hero .legend { display: none; }
  .hero canvas, .hero .wrap { min-width: 0; width: 100%; }
  .hero .wrap { margin-top: -56px; padding: 0 12px 0; }
  .search-card { padding: 20px; border-radius: 24px; }
  .search-card h1 { font-size: 32px; }
  .search-card .seg button { padding: 0 8px; font-size: 14px; white-space: nowrap; }
  .ticker { position: relative; height: 44px; margin-top: 16px; } .ticker b.tag { height: 44px; padding: 0 12px; }
  .band { padding: 44px 0; } .band h2 { font-size: 30px; } .band.tight { padding: 40px 0; }
  .stats { margin: 24px 0 28px; }
  .widgets { width: 100%; flex-direction: row; } .widgets .widget { flex: 1 1 0; min-width: 0; } .widget b { font-size: 28px; }
  .phone { width: 230px; height: 440px; padding-top: 56px; }
  .collage .panel.station { display: none; }
  /* Frise sur mobile : une heure, puis ce que vit Thomas, puis ce que vit Sophie. */
  .duo-head { display: none; }
  .duo { display: flex; flex-direction: column; gap: 22px; }
  .duo li { display: flex; flex-direction: column; gap: 8px; }
  .duo .rail { order: -1; flex-direction: row; align-items: baseline; gap: 8px; padding: 0; }
  .duo .rail::before, .duo .rail i { display: none; }
  .duo .rail b { font-size: 26px; padding: 0; background: none; } .duo .rail small { padding: 0; background: none; }
  .duo .side { max-width: none; width: 100%; font-size: 15px; padding: 14px 16px; border-radius: 16px; }
  .duo .side::before { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .duo .thomas::before { content: "Thomas"; color: var(--quai); } .duo .sophie::before { content: "Sophie"; color: var(--primary); }
  .bubble { align-self: flex-start; }
  /* Fil sur mobile : l'heure à gauche, puis la sorte d'événement, le texte et la région ou les trains concernés. */
  .feed .tr { grid-template-columns: 56px minmax(0, 1fr); row-gap: 4px; padding: 14px 16px; align-items: start; }
  .feed .tr > :first-child { grid-row: span 3; } .feed .tr > :not(:first-child) { grid-column: 2; } .feed .tr .region { font-size: 13px !important; }
  .regions .tr { grid-template-columns: minmax(0, 1fr) 110px 86px; } .regions .tr > :nth-child(3) { display: none; } .regions .tr a { font-size: 13px; }
  .cta { padding: 28px; } .cta h2 { font-size: 30px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 32px; padding-bottom: 32px; }
  .site-foot .brand, .site-foot .col:last-child { grid-column: 1 / -1; }
}

/* Pages intérieures (gare, gares, perturbations, à propos) */
.langs span { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 9999px; font-size: 13px; color: var(--ink-muted); opacity: .6; cursor: default; }
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 32px; }
.crumbs { font-size: 14px; color: var(--ink-muted); } .crumbs a { color: var(--ink-muted); }
.station-title { display: flex; align-items: center; gap: 14px; font-size: 48px; line-height: 1; }
.station-title i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 9999px; border: 5px solid var(--ink); background: #fff; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 9999px; background: var(--bg); color: var(--ink); font-size: 14px; text-decoration: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; } .chip.heavy { background: var(--heavy-soft); color: var(--heavy-ink); font-weight: 600; } .chip.late { background: var(--late-soft); color: var(--late-ink); font-weight: 600; }
a.chip:hover { background: var(--primary-soft); color: var(--primary); }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; }
.main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.side-col { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.h2s { font-size: 22px; } .h3 { font-size: 18px; } .h2s small, .h3 small { font-size: 15px; font-weight: 400; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink); text-decoration: none; }
.kv small { display: block; font-size: 13px; color: var(--ink-muted); } .kv > :first-child { flex-shrink: 0; max-width: 60%; } .kv.now { font-weight: 600; } .kv > :last-child { text-align: right; }
.src { font-size: 12px; color: var(--ink-muted); }
.big { font-size: 30px; font-weight: 700; line-height: 1.1; } .big small { font-size: 14px; font-weight: 400; color: var(--ink-muted); }
.soft { background: var(--primary-soft) !important; border-radius: 16px; padding: 16px; }
.board-block[data-board="dep"] .board.arr, .board-block[data-board="arr"] .board.dep { display: none; }
.board .tr { grid-template-columns: 74px minmax(0, 1fr) 150px 110px 46px; padding: 12px 0; }
.board .time { display: flex; flex-direction: column; } .board .time b { font-size: 20px; } .board .time b.late { color: var(--late-ink); } .board .time b.gone { color: var(--ink-muted); text-decoration: line-through; }
.board .time s { font-size: 13px; color: var(--ink-muted); } .board .place strong { font-size: 16px; } .board .pill { justify-self: start; } .board .voie-badge { justify-self: end; }
a.tr:hover { background: var(--bg); }
.dest { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 15px; }
.dest:hover { background: var(--primary-soft); }
.checks.small { font-size: 15px; gap: 8px; } .checks.small svg { width: 22px; height: 22px; padding: 5px; }
.near { margin-top: 24px; font-size: 15px; color: var(--ink-muted); }
.filter { display: flex; align-items: center; gap: 10px; width: 420px; max-width: 100%; height: 52px; padding: 0 16px; border: 2px solid var(--primary); border-radius: 16px; background: #fff; }
.filter input { flex-grow: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; background: transparent; }
.station-list { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 24px; font-size: 15px; }
.station-list li { break-inside: avoid; padding: 3px 0; } .station-list li.major a { font-weight: 700; } .station-list a { color: var(--ink); text-decoration: none; } .station-list a:hover { color: var(--primary); text-decoration: underline; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; } .tile b { font-size: 34px; }
.tile.ok { background: var(--ok-soft); color: var(--ok-ink); } .tile.late { background: var(--late-soft); color: var(--late-ink); } .tile.soft { background: var(--primary-soft); color: var(--primary); }
.tile .label { color: inherit; } .tile span:last-child { font-size: 13px; }
.alert-text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); white-space: pre-line; }
.check-train { display: flex; flex-wrap: wrap; gap: 8px; width: 460px; max-width: 100%; }
.check-train label { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 2px solid var(--primary); border-radius: 16px; }
.check-train input { flex-grow: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; background: transparent; }
.check-train .btn { border-radius: 16px; height: 52px; }
.filters { flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; } .steps strong { font-size: 18px; }
.num { width: 36px; height: 36px; border-radius: 9999px; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.figure { font-size: 44px; color: var(--quai); }
.sources .tr { grid-template-columns: 240px minmax(0, 1fr) 100px; font-size: 15px; align-items: start; }
@media (max-width: 760px) {
  .station-title { font-size: 32px; } .page-hero h1 { font-size: 34px !important; }
  .board .tr { grid-template-columns: 58px minmax(0, 1fr) 40px; } .board .tr > :nth-child(3), .board .tr > :nth-child(4) { display: none; }
  .side-col { max-width: none; } .sources .tr { grid-template-columns: 1fr; gap: 4px; }
}
details.alert-text summary { cursor: pointer; list-style: none; } details.alert-text summary::-webkit-details-marker { display: none; }
details.alert-text .more { color: var(--primary); font-weight: 600; } details.alert-text[open] summary { display: none; }
.alert.off-region { display: none !important; }
.region-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 18px; font-weight: 600; }
.install-help { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 28px; color: var(--ink); box-shadow: 0 30px 70px rgba(26,24,48,.3); }
.install-help::backdrop { background: rgba(26,24,48,.45); }
.install-help h2 { font-size: 26px; margin-bottom: 14px; } .install-help ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.4; }
.install-help p { font-size: 14px; margin-bottom: 18px; } .install-help .btn { width: 100%; }
.big-filter { width: 560px; height: 60px; } .big-filter input { font-size: 19px; }
.hubs { --min: 270px; } .hub-head { display: flex; flex-direction: column; gap: 2px; } .hub-head .muted { font-size: 13px; }
.hubs .board-card { gap: 10px; } .hubs .board-card:hover { box-shadow: 0 8px 24px rgba(26,24,48,.14); }
.regions-list { display: flex; flex-direction: column; gap: 10px; }
details.region-block { border-radius: 18px; background: #fff; box-shadow: 0 2px 8px rgba(26,24,48,.06); }
details.region-block summary { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 18px 56px 18px 22px; cursor: pointer; list-style: none; }
details.region-block summary::-webkit-details-marker { display: none; }
details.region-block summary::after { content: ""; position: absolute; right: 26px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .15s; }
details.region-block[open] summary::after { transform: rotate(-135deg); }
.rname { font-size: 19px; font-weight: 700; } .rmajors { flex-basis: 100%; font-size: 14px; color: var(--ink-soft); }
.letters { columns: 4 210px; column-gap: 28px; padding: 4px 22px 24px; border-top: 1px solid var(--line); }
.letter { break-inside: avoid; padding-top: 14px; } .letter b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--primary); }
.letter ul { list-style: none; margin: 0; padding: 0; font-size: 15px; } .letter li { padding: 3px 0; }
.letter a { color: var(--ink); text-decoration: none; } .letter a:hover { color: var(--primary); text-decoration: underline; } .letter li.major a { font-weight: 700; }
.letter[hidden], .letter li[hidden], .region-block[hidden], .hubs-block[hidden] { display: none; }
@media (max-width: 760px) { .big-filter { height: 54px; } details.region-block summary { padding: 16px 50px 16px 18px; } .letters { padding: 0 18px 18px; } }
