/* Taxi 121 Théorie – website. Same palette as the app: charcoal frame, taxi yellow, warm cream. */
:root {
  --char: #1F2226; --char-2: #2B2E33; --char-line: #3A3E45;
  --yellow: #F5C518; --yellow-2: #FFD84A; --yellow-ink: #141414;
  --bg: #F5EFE2; --paper: #FFFCF6; --ink: #1A1A1A; --muted: #5F6368; --line: #E2D7C2;
  --on-dark: #F5EFE2; --on-dark-2: #B9BDC3;
  --r: 20px; --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --checker: repeating-linear-gradient(90deg, var(--yellow) 0 12px, var(--char) 12px 24px);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16181B; --paper: #202328; --ink: #EDEBE6; --muted: #A9ADB3; --line: #30343A; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.logo { display: block; width: auto; color: var(--on-dark); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--char); color: var(--on-dark); }
.bar::after { content: ""; display: block; height: 5px; background: var(--checker); }
.bar-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; text-decoration: none; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--on-dark-2); font-weight: 600; font-size: 15.5px; }
.menu a:hover { color: #fff; }
.langs { display: flex; gap: 4px; margin-left: auto; background: var(--char-2); border-radius: 12px; padding: 4px; }
.menu + .langs { margin-left: 0; }
.langs a { text-decoration: none; font-weight: 750; font-size: 13.5px; letter-spacing: .04em; padding: 6px 10px; border-radius: 9px; color: var(--on-dark-2); }
.langs a[aria-current] { background: var(--yellow); color: var(--yellow-ink); }

/* hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% 10%, #33363C 0%, var(--char) 60%); color: var(--on-dark); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.kick { margin: 0 0 14px; color: var(--yellow); font-weight: 750; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 850; color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-2); margin: 18px 0 28px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 16.5px; text-decoration: none; }
.btn svg { width: 22px; height: 22px; }
.btn.web { background: linear-gradient(180deg, var(--yellow-2), var(--yellow) 55%, #E9B60C); color: var(--yellow-ink); box-shadow: 0 6px 18px rgba(245, 197, 24, .25); }
.btn.web:hover { filter: brightness(1.04); }
.btn.store { border: 1.5px solid var(--char-line); color: var(--on-dark-2); background: rgba(255, 255, 255, .03); cursor: default; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--on-dark-2); font-size: 15px; }
.hero-ph { position: relative; height: 560px; }
.phone { border-radius: 38px; padding: 9px; background: #0E0F11; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #3A3E45; }
.phone img { border-radius: 30px; width: 100%; height: auto; }
.hero-ph .phone { position: absolute; width: 250px; }
.hero-ph .p1 { right: 150px; top: 10px; transform: rotate(-4deg); z-index: 2; }
.hero-ph .p2 { right: 0; top: 70px; transform: rotate(5deg); opacity: .92; }
.checker { height: 10px; background: var(--checker); }

/* stats */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 26px; padding-bottom: 26px; }
.stats b { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 850; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 15px; }

/* sections */
.sec { padding: 80px 0; }
.sec.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { margin-bottom: 10px; }
.sub { color: var(--muted); margin: 0 0 34px; font-size: 18px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.feat .ic { display: flex; width: 50px; height: 50px; border-radius: 15px; align-items: center; justify-content: center; font-size: 26px; background: rgba(245, 197, 24, .18); margin-bottom: 14px; }
.feat p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.shots { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 10px; scrollbar-width: thin; }
.shot { flex: none; width: 230px; margin: 0; scroll-snap-align: center; text-align: center; }
.shot .phone { border-radius: 34px; padding: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, .18), inset 0 0 0 1.5px #3A3E45; }
.shot .phone img { border-radius: 27px; }
.shot figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--muted); }

.route { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.route li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.route .n { display: flex; width: 58px; height: 58px; border-radius: 18px; background: var(--char); align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 0 0 3px var(--yellow); margin-bottom: 16px; }
.route p { color: var(--muted); margin: 6px 0 0; }

.sec.dark { background: var(--char); color: var(--on-dark); }
.sec.dark p { color: var(--on-dark-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.flags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.flags span { background: var(--char-2); border: 1px solid var(--char-line); border-radius: 99px; padding: 8px 14px; font-weight: 650; font-size: 15px; color: var(--on-dark); }
.lnk { color: var(--yellow); font-weight: 750; text-decoration: none; }
.lnk:hover { text-decoration: underline; }
.sec:not(.dark) .lnk, .doc .lnk { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 750; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: rgba(245, 197, 24, .25); display: grid; place-items: center; font-weight: 800; }
details[open] summary::after { content: "–"; background: var(--yellow); color: var(--yellow-ink); }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.final { background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); color: var(--yellow-ink); }
.final-in { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.final h2 { font-size: clamp(30px, 4vw, 44px); }
.final p { margin: 10px 0 24px; font-size: 18px; }
.final .btn.web { background: var(--char); color: #fff; box-shadow: none; }

.foot { background: var(--char); color: var(--on-dark-2); padding: 40px 0 34px; font-size: 14.5px; }
.foot::before { content: ""; display: block; height: 6px; background: var(--checker); margin: -40px 0 34px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--on-dark); text-decoration: none; font-weight: 650; }
.foot-links a:hover { color: var(--yellow); }
.disc { max-width: 52em; margin: 22px 0 8px; }
.copy { margin: 0; opacity: .7; }

/* legal pages */
.doc { padding-top: 40px; padding-bottom: 70px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin: 18px 0 6px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc p { margin: 0; color: var(--ink); }
.upd { color: var(--muted) !important; }
mark.ph { background: #FFE9A3; color: #5A4300; border-radius: 4px; padding: 0 4px; }

/* language chooser (site root) */
.choose { min-height: 100vh; display: grid; place-items: center; background: var(--char); color: var(--on-dark); }
.choose-in { width: min(440px, 100% - 40px); text-align: center; }
.choose-in .logo { margin: 0 auto 18px; height: 64px; }
.choose-l { display: grid; gap: 12px; margin-top: 22px; }
.choose-l a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--char-2); border: 2px solid var(--char-line); text-decoration: none; }
.choose-l a:hover { border-color: var(--yellow); }
.choose-l b { font-size: 21px; color: #fff; } .choose-l span { color: var(--on-dark-2); }

@media (max-width: 900px) {
  .menu { display: none; }
  .langs { margin-left: auto !important; }
  .hero-in { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 20px; }
  .hero-ph { height: 420px; }
  .hero-ph .phone { width: 200px; }
  .hero-ph .p1 { right: auto; left: calc(50% - 170px); }
  .hero-ph .p2 { right: calc(50% - 190px); top: 50px; }
  .feats, .route { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; gap: 34px; }
  .stats-in { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .feats, .route { grid-template-columns: 1fr; }
  .sec { padding: 56px 0; }
  .btn { width: 100%; justify-content: center; }
  .hero-ph { height: 360px; }
  .hero-ph .phone { width: 170px; }
  .hero-ph .p1 { left: calc(50% - 150px); }
  .hero-ph .p2 { right: calc(50% - 160px); }
  .shot { width: 210px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (prefers-color-scheme: dark) {
  .sec.dark { background: #0D0F11; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats, .sec.alt { background: #1B1E22; }
  mark.ph { background: #5A4300; color: #FFE9A3; }
}

/* screenshot row: all five fit on wide screens, swipe on small ones */
.shots { justify-content: safe center; }
@media (min-width: 901px) { .shot { width: clamp(170px, 16vw, 220px); } }

/* ---------- taxi scene (hero): city at night, road, a taxi driving across ---------- */
.street { position: relative; height: 150px; margin-top: -40px; pointer-events: none; }
.city { position: absolute; left: 0; right: 0; bottom: 46px; width: 100%; height: 110px; opacity: .9; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: linear-gradient(180deg, #17191C, #121315); border-top: 2px solid #2E3238; overflow: hidden; }
.lane { position: absolute; left: 0; right: 0; top: 24px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 70px); opacity: .7; animation: lane 1.1s linear infinite; }
@keyframes lane { to { background-position: -70px 0; } }
.drive { position: absolute; bottom: 14px; left: 0; width: 210px; z-index: 2; animation: drive 14s linear infinite; }
.cab { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes drive { 0% { transform: translateX(-260px); } 100% { transform: translateX(calc(100vw + 40px)); } }
.cab .rim { animation: spin .55s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.cab .sign { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { fill: #FFFFFF; } }
.cab .beam { opacity: .9; }
.cab { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); animation: bob .4s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-1.5px); } }

/* ---------- small taxi driving along the route above the three steps ---------- */
.route-wrap { position: relative; padding-top: 66px; }
.route-road { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 32px); }
.route-road .mini { position: absolute; top: -40px; width: 96px; animation: route 9s ease-in-out infinite; }
@keyframes route { 0% { left: 0; } 45%, 55% { left: calc(50% - 48px); } 100% { left: calc(100% - 96px); } }
.route-road .mini .beam { display: none; }

@media (max-width: 600px) {
  .street { height: 120px; margin-top: -10px; }
  .city { height: 80px; bottom: 44px; }
  .drive { width: 150px; }
  .route-wrap { padding-top: 0; }
  .route-road { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drive { animation: none; transform: translateX(8vw); }
  .lane, .cab, .cab .rim, .cab .sign, .route-road .mini { animation: none; }
}
