:root {
  --bg: #090c14; --card: #141823; --raised: #1e2331; --line: rgba(255,255,255,.07);
  --fg: #eef1f7; --muted: #8f9cb3; --board: #ffd11a; --board-bg: #05060a; --accent: #3d7aff;
  --ok: #34c759; --late: #ff9f0a; --cancel: #ff453a;
  --cond: "SF Pro Display Condensed", "SF Compact Display", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  padding: 0 max(16px, env(safe-area-inset-left)) env(safe-area-inset-bottom); overflow-x: hidden; }
a { color: var(--board); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.top { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; font-size: 19px; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a.pill { color: #111; background: var(--board); padding: 7px 14px; border-radius: 999px; font-weight: 700; }
@media (max-width: 640px) { .top nav a:not(.pill) { display: none; } }

main { max-width: 1120px; margin: 0 auto; }
section { padding: 56px 0; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--board); margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 19px; max-width: 640px; }
.note { color: var(--muted); font-size: 14px; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 32px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 0 0 18px; font-weight: 800; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 8px; } .hero-visual { min-height: 0; } .phone { width: min(260px, 64vw); } }

.store { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 10px; padding: 13px 22px; border-radius: 14px;
  background: #fff; color: #000; font-weight: 700; font-size: 17px; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store.mail { background: var(--board); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone { width: min(300px, 70vw); border-radius: 44px; padding: 10px; background: #1b1f2a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.55); }
.phone img { border-radius: 34px; width: 100%; height: auto; }
.phone.small { width: 100%; border-radius: 34px; padding: 7px; }
.phone.small img { border-radius: 28px; }

.board { position: absolute; left: -24px; bottom: 28px; width: min(400px, 92vw); background: var(--board-bg); border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 0 0 1px rgba(255,209,26,.18), 0 24px 60px rgba(0,0,0,.6); font-family: var(--cond); }
.board-head { display: flex; justify-content: space-between; color: var(--board); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.board-row { display: grid; grid-template-columns: 54px 1fr 40px 86px; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,209,26,.08); font-size: 16px; color: #f6f1d8; }
.board-labels { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; border-top: 0; }
.board-row .h { color: var(--board); font-weight: 800; font-variant-numeric: tabular-nums; }
.board-row .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .p { text-align: center; font-weight: 800; color: #111; background: var(--board); border-radius: 6px; }
.board-row .s { font-weight: 700; text-align: right; }
.s.ok { color: var(--ok); } .s.late { color: var(--late); } .s.cancel { color: var(--cancel); }
@media (max-width: 860px) { .board { position: relative; left: auto; bottom: auto; margin-top: -60px; } .hero-visual { flex-direction: column; align-items: center; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.grid article { background: var(--card); border-radius: 22px; padding: 22px; border: 1px solid var(--line); }
.grid h3 { font-size: 19px; margin: 14px 0 6px; }
.grid p { color: var(--muted); margin: 0; font-size: 16px; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,122,255,.14); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip figure { margin: 0; }
.strip figcaption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 12px; }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(4, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .strip figure { scroll-snap-align: center; } }

.more ul, .countries ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more li, .countries li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; }
.countries .flag { margin-right: 8px; }
.countries .note { margin-top: 18px; }
.countries ul.logos { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.countries ul.logos li { background: #fff; border: 0; border-radius: 14px; padding: 0 14px; height: 64px; display: flex; align-items: center; justify-content: center; }
.countries ul.logos img { max-width: 100%; max-height: 34px; object-fit: contain; }
@media (max-width: 520px) { .countries ul.logos { grid-template-columns: repeat(3, 1fr); } .countries ul.logos li { height: 56px; padding: 0 10px; } }

.card { background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); }
.premium .card { background: linear-gradient(160deg, #1d2440, var(--card) 60%); }
.premium ul { padding-left: 20px; } .premium li { margin: 6px 0; }

.doc { max-width: 760px; padding: 24px 0 48px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc p, .doc li { color: #d5dae5; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

footer { max-width: 1120px; margin: 40px auto 0; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
footer .links a { color: var(--fg); }
footer .lang { display: inline-flex; align-items: center; gap: 10px; }
footer select { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; }
.doc section { padding: 0; }

/* Page presse */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.facts dt { color: var(--muted, #96a0b6); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.press-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.press-dl a { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.press-dl img { border-radius: 14px; max-height: 140px; width: auto; }
.press-shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 700px) { .press-shots { grid-template-columns: repeat(3, 1fr); } }
.press-shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); }

/* Pages gare */
.station .live-board { position: static; left: auto; bottom: auto; width: 100%; margin: 8px 0; }
.station .live-board .board-row { grid-template-columns: 54px 1fr 44px 90px; }
.station .live-board .d b { color: var(--board); font-weight: 700; margin-right: 6px; }
.station .dests, .station .station-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.station .app-cta { margin-top: 28px; }
.station .live-board .board-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .station .live-board .board-row { grid-template-columns: 44px 1fr 36px 72px; font-size: 14px; gap: 6px; } }
.route .table-wrap { overflow-x: auto; }
.route .timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.route .timetable th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; }
.route .timetable td { padding: 7px 8px; border-top: 1px solid var(--line); }
.route .timetable td.h { color: var(--board); font-weight: 700; }
.route .live-board .d small { margin-left: 6px; font-size: 12px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.popular { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.popular .station-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.route .timetable .late { color: #ff9f43; font-weight: 700; }
.route .timetable tr.cancel td { color: #ff6b6b; text-decoration: line-through; }
.guide h2 { margin-top: 32px; }
.guide .timetable { margin: 8px 0 16px; }
.guide ul li { margin: 4px 0; }
