/* Taxi des Remparts — site de démonstration La Balise.
   Aucune règle inline dans la page : la CSP du domaine (style-src 'self') les bloquerait. */

@font-face { font-family: "Fraunces"; src: url("/exemples/taxi/fonts/fraunces-soft.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/exemples/taxi/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/exemples/taxi/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* Contrastes (WCAG) : cream/night 15.6 · amber/night 10.4 · mist/night 8.9 · ink/cream 15.0 · muted/cream 5.6 · night/amber 10.4 */
:root {
  --night: #121A2B;
  --night-2: #1B2540;
  --night-3: #27334F;
  --cream: #F6F1E7;
  --card: #FFFCF6;
  --sand: #EAE2D2;
  --ink: #121A2B;
  --muted: #586072;
  --mist: #AEB7C8;
  --amber: #FFB627;
  --amber-2: #FFC550;
  --amber-dark: #855C00;     /* ambre lisible en texte : 4,6:1 au moins sur les fonds clairs */
  --ok: #3DBE7A;
  --line: rgba(18, 26, 43, .13);
  --line-night: rgba(246, 241, 231, .13);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(18, 26, 43, .05), 0 24px 46px -30px rgba(18, 26, 43, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 500 17px/1.6 var(--font); }
main, .foot { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100, "opsz" 96; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--amber); }
.medical h2 em, .book h2 em { color: var(--amber-dark); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.medical :focus-visible, .book :focus-visible { outline-color: var(--night); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
small { font-size: .82em; }

/* ---------- Bandeau démo ---------- */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; background: #0B111D; color: var(--mist); font-size: 13px; text-align: center; }
.demo-bar strong { color: var(--cream); }
.demo-bar a { color: var(--amber); font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border: 0; border-radius: 14px; font: 800 16px/1.1 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, color .2s ease; }
.btn-amber { background: var(--amber); color: var(--night); box-shadow: 0 0 0 0 rgba(255, 182, 39, .5), 0 14px 26px -14px rgba(255, 182, 39, .8); }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-2px); }
.btn-amber:active { transform: translateY(1px) scale(.98); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-line-light { background: var(--night); color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(18, 26, 43, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.top.is-scrolled { border-color: var(--line-night); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: grid; }
.brand-name { font: 600 22px/1 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; }
.brand-sub { margin-top: 3px; font-size: 13px; color: var(--mist); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--mist); font-weight: 700; font-size: 15px; text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--cream); }
.top-call { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--amber); color: var(--night); font-weight: 800; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .2s ease; }
.top-call:hover { background: var(--amber-2); }
.top-call .lamp { background: var(--night); box-shadow: none; animation: none; }
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 190, 122, .25), 0 0 14px rgba(61, 190, 122, .9); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgba(61, 190, 122, .08), 0 0 20px rgba(61, 190, 122, .6); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 50px 0 86px; background: radial-gradient(900px 500px at 85% 20%, rgba(255, 182, 39, .14), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(39, 51, 79, .9), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); font-size: 14px; font-weight: 700; }
.hero h1 { margin-top: 22px; font-size: clamp(46px, 6vw, 84px); }
.hero-lead { margin-top: 22px; max-width: 32em; font-size: 19px; color: var(--mist); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.quick-btn { padding: 10px 14px; border: 0; border-radius: 999px; background: var(--night-2); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-night); font: 700 14px/1.1 var(--font); cursor: pointer; transition: background-color .2s ease, transform .25s var(--ease); }
.quick-btn:hover { background: var(--night-3); transform: translateY(-2px); }
.quick-btn.is-on { background: var(--amber); color: var(--night); box-shadow: none; }

.estimate { padding: 22px; border-radius: 26px; background: var(--cream); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); }
.tab { padding: 11px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 800 15px/1 var(--font); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tab[aria-selected="true"] { background: var(--night); color: var(--cream); }
.route { position: relative; display: grid; gap: 8px; margin-top: 16px; }
.swap { position: absolute; right: 14px; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--night); color: var(--amber); font-size: 20px; cursor: pointer; transition: transform .4s var(--ease); }
.swap:hover { transform: rotate(180deg); }
.field { display: block; }
.field > span { display: block; margin: 0 0 5px 2px; font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); font: 700 16px var(--font); box-shadow: inset 0 0 0 1.5px rgba(18, 26, 43, .25); }
.route .field select { padding-right: 64px; }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--night), 0 0 0 4px rgba(255, 182, 39, .45); }
.est-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(18, 26, 43, .25); }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 9px; background: var(--sand); color: var(--ink); font: 800 20px/1 var(--font); cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font: 600 22px/1 var(--serif); }
.result { margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--night); color: var(--cream); }
.road { position: relative; height: 18px; margin-bottom: 14px; background: linear-gradient(90deg, var(--mist) 50%, transparent 50%) 0 50% / 18px 2px repeat-x; }
.road-car { position: absolute; top: 2px; left: 0; width: 26px; height: 14px; border-radius: 6px 9px 3px 3px; background: var(--amber); box-shadow: 0 0 12px rgba(255, 182, 39, .7); transition: left 1.1s var(--ease); }
.road-car::before { content: ""; position: absolute; left: 9px; top: -4px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: var(--cream); }
.trip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.trip div { padding: 8px 10px; border-radius: 10px; background: var(--night-2); }
.trip dt { font-size: 12px; color: var(--mist); }
.trip dd { margin: 2px 0 0; font-weight: 800; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0; font: 600 46px/1 var(--serif); font-variation-settings: "SOFT" 100; font-variant-numeric: tabular-nums; color: var(--amber); }
.price small { font: 600 14px/1.3 var(--font); color: var(--mist); }
.price.is-medical { font-size: 30px; }
.medical-note { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(61, 190, 122, .14); color: #CFF2DF; font-size: 14px; }
.medical-note[hidden] { display: none; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.result .fine { color: var(--mist); }

/* ---------- Promesses ---------- */
.promises { padding: 0 0 90px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.promise-grid li { padding: 24px; border-radius: var(--radius); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); color: var(--mist); font-size: 15px; transition: transform .4s var(--ease); }
.promise-grid li:hover { transform: translateY(-4px); }
.promise-grid svg { width: 40px; height: 40px; margin-bottom: 14px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.promise-grid strong { display: block; margin-bottom: 6px; color: var(--cream); font: 600 22px/1.1 var(--serif); font-variation-settings: "SOFT" 100; }

/* ---------- Médical ---------- */
.medical { padding: 100px 0; background: var(--cream); color: var(--ink); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-dark); }
.kicker-dark { color: var(--amber); }
.med-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.medical h2, .fleet h2, .book h2 { margin-top: 12px; font-size: clamp(38px, 4.8vw, 64px); }
.section-lead { margin-top: 18px; max-width: 34em; font-size: 18px; color: var(--muted); }
.checklist { padding: 26px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.checklist h3 { font-size: 30px; }
.med-steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.med-steps button { display: block; width: 100%; padding: 14px 16px 14px 52px; border: 0; border-radius: 14px; background: var(--cream); color: var(--muted); font: 500 15px/1.4 var(--font); text-align: left; cursor: pointer; position: relative; transition: background-color .2s ease; }
.med-steps button::before { content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--muted); transition: background-color .2s ease, box-shadow .2s ease; }
.med-steps button strong { display: block; color: var(--ink); font-weight: 800; }
.med-steps button[aria-pressed="true"] { background: #E3F4EA; }
.med-steps button[aria-pressed="true"]::before { background: #2E9A5F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.5 3.5L16 8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; box-shadow: none; }
.med-ready { min-height: 1.6em; margin-top: 12px; font: italic 500 20px var(--serif); color: #1F7A48; }

/* ---------- Flotte ---------- */
.fleet { padding: 100px 0; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.car { padding: 22px; border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); transition: transform .4s var(--ease); }
.car:hover { transform: translateY(-5px); }
.car svg { width: 100%; height: 90px; }
.car-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.car h3 { margin-top: 12px; font-size: 26px; }
.car p { margin-top: 6px; color: var(--mist); font-size: 15px; }
.car-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 10px; border-radius: 8px; background: var(--night-3); font-size: 13px; font-weight: 800; }
.car-state .lamp { width: 8px; height: 8px; }
.car-state.is-busy .lamp { background: var(--amber); box-shadow: 0 0 10px rgba(255, 182, 39, .8); }

/* ---------- Réserver ---------- */
.book { padding: 100px 0; background: var(--cream); color: var(--ink); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ride { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--night); color: var(--cream); }
.ride strong { display: block; font: 600 24px/1.15 var(--serif); font-variation-settings: "SOFT" 100; }
.ride span { color: var(--mist); font-size: 15px; }
.ride .ride-price { color: var(--amber); font-weight: 800; }
.book-form, .book-done { padding: 26px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #E3F4EA; font-weight: 700; cursor: pointer; }
.check[hidden] { display: none; }
.check input { width: 20px; height: 20px; accent-color: #2E9A5F; }
.form-error { min-height: 1.4em; margin: 12px 0 8px; color: #B3261E; font-weight: 800; font-size: 15px; }
.book-done { text-align: center; }
.book-done[hidden] { display: none; }
.book-done:focus { outline: none; }
.book-done h3 { margin-top: 8px; font-size: 32px; }
.book-done p { margin-top: 8px; color: var(--muted); }
.book-done .btn { margin-top: 16px; }
.done-car { width: 160px; margin: 0 auto; animation: arrive 1s var(--ease) both; }
.done-road { animation: road .6s linear infinite; }
@keyframes arrive { from { transform: translateX(-120px); opacity: 0; } }
@keyframes road { to { stroke-dashoffset: -14; } }

/* ---------- Pied de page ---------- */
.foot { padding: 56px 0; background: #0B111D; color: var(--mist); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
.brand-name-foot { margin-bottom: 12px; color: var(--cream); font-size: 26px; }
.foot a { color: var(--cream); }
.foot-small { margin-top: 6px; font-size: 13px; }
.foot-credit a { color: var(--amber); font-weight: 700; text-decoration: none; }
.foot-credit a:hover { text-decoration: underline; }

.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .top-call { margin-left: auto; }
  .hero-grid, .med-grid, .book-grid { grid-template-columns: 1fr; }
  .fleet-grid, .promise-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .demo-long { display: none; }
  .top-inner { min-height: 60px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .top-call { padding: 8px 12px; font-size: 14px; }
  .top-call .lamp { display: none; }
  .hero { padding: 28px 0 64px; }
  .hero-lead { font-size: 17px; }
  .estimate { padding: 14px; border-radius: 20px; }
  .est-row { grid-template-columns: 1fr 1fr; }
  .est-row .field:last-child { grid-column: 1 / -1; }
  .trip { grid-template-columns: 1fr 1fr; }
  .trip div:last-child { grid-column: 1 / -1; }
  .price { font-size: 38px; }
  .promise-grid, .fleet-grid { grid-template-columns: 1fr; }
  .promises { padding-bottom: 64px; }
  .medical, .fleet, .book { padding: 72px 0; }
  .checklist { padding: 20px 16px; }
  .b-grid { grid-template-columns: 1fr; }
  .book-form, .book-done { padding: 22px 16px; }
  .foot { padding-bottom: 110px; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; transition: transform .35s var(--ease), opacity .3s ease; }
  .sticky-cta .btn { box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); }
  .sticky-cta.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Les éléments de grille peuvent rétrécir sous la largeur de leur contenu */
.hero-grid > *, .med-grid > *, .book-grid > * { min-width: 0; }
