/* Fast Serious — sobre : noir, blanc, le bleu du logo. Les couleurs se règlent ici. */
:root {
  --black: #000000;
  --ink: #111111;
  --ink-2: #4d4d4d;
  --muted: #767676;
  --line: #e2e2e2;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --blue: #1b5fd9;
  --blue-deep: #134bb0;
  --cyan: #1b5fd9;
  --wa: #128c4b;
  --danger: #b3261e;
  --radius: 8px;
  --body: Manrope, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sep { display: inline-block; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .6; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; padding-block: 72px; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.band { background: var(--bg-soft); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 max(16px, calc((100% - 1120px) / 2)); background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.logo { display: block; flex: none; }
.logo img { display: block; height: 58px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.tel { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel:hover { color: var(--blue); }
.lang { min-width: 42px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .82rem; color: var(--ink-2); cursor: pointer; }
.lang:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; border-radius: 999px; }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #2b2b2b; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0f7a41; }
.btn-ghost { background: var(--bg-soft); color: var(--ink); }
.btn-ghost:hover { background: #ebebeb; }
.btn-link { background: none; min-height: 40px; color: var(--ink-2); font-weight: 600; font-size: .9rem; width: 100%; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }

/* ---------- héros : vidéo plein cadre ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; min-height: min(720px, calc(100vh - 72px)); padding: 40px max(16px, calc((100% - 1120px) / 2)); background: var(--black); overflow: hidden; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .6) 100%); }
.hero-brand { color: #fff; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero-sub { margin-top: 14px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 500; color: #eaeaea; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }

/* Une seule séquence d'entrée, au chargement */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
.hero h1, .hero-sub, .hero-points, .booking { animation: rise .7s var(--ease) both; }
.hero-sub { animation-delay: .08s; }
.hero-points { animation-delay: .16s; }
.booking { animation-delay: .22s; }

/* ---------- carte de réservation ---------- */
.card { background: #fff; border-radius: 16px; }
.booking { padding: 22px; box-shadow: 0 16px 48px rgba(0, 0, 0, .3); scroll-margin-top: 80px; }
.booking h2 { font-size: 1.5rem; margin-bottom: 16px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps li { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.steps li.on { background: var(--ink); }
@keyframes stepIn { from { transform: translateX(14px); } to { transform: none; } }
.step:not([hidden]) { animation: stepIn .28s var(--ease); }

.field { position: relative; margin-bottom: 10px; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 52px; padding: 13px 14px; border: 2px solid transparent; border-radius: var(--radius); background: var(--bg-soft); font-size: 1rem; font-weight: 500; transition: border-color .15s, background .15s; }
.field textarea { min-height: 0; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* départ / arrivée reliés, comme un itinéraire */
.route-fields { position: relative; }
.route-fields::before { content: ""; position: absolute; left: 20px; top: 32px; bottom: 32px; width: 2px; background: var(--ink); z-index: 3; pointer-events: none; }
.route-fields .field input { padding-left: 42px; padding-right: 56px; }
.mark { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.mark-b { border-radius: 2px; }
.route-fields .mark { position: absolute; left: 16px; top: 21px; z-index: 4; pointer-events: none; }
.swap { position: absolute; right: 10px; top: 50%; z-index: 5; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; transition: transform .25s var(--ease); }
.swap:hover { transform: rotate(180deg); }
.swap .ic { width: 16px; height: 16px; }

.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 300px; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 34px rgba(0, 0, 0, .2); padding: 4px; }
.ac-list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 6px; cursor: pointer; font-size: .95rem; font-weight: 500; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--bg-soft); }
.ac-list .ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); }
.ac-list li[aria-selected="true"] .ico, .ac-list li:hover .ico { background: #e6e6e6; }
.ac-list .ico .ic { width: 17px; height: 17px; }
.ac-list .empty { color: var(--muted); cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg-soft); font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.chip:hover { background: #e6e6e6; }
.chip .ic { width: 15px; height: 15px; }

.form-error { margin: 4px 0 12px; padding: 10px 12px; border-radius: var(--radius); background: #fcebea; color: var(--danger); font-size: .92rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 0; accent-color: var(--ink); flex: none; }
.more { border: 0; margin: 0 0 6px; }
.more summary { padding: 6px 0 12px; font-size: .9rem; font-weight: 600; color: var(--ink-2); justify-content: flex-start; gap: 8px; }
.more summary::after { content: "+"; }

/* prix */
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.price-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.price { font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.trip-stats { display: grid; gap: 2px; text-align: right; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.map { height: 170px; border-radius: var(--radius); background: var(--bg-soft); margin-bottom: 14px; overflow: hidden; z-index: 0; }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.trip-points { display: grid; gap: 8px; margin-bottom: 8px; font-size: .94rem; font-weight: 500; }
.trip-points li { display: flex; gap: 10px; align-items: baseline; }
.trip-when { color: var(--ink-2); font-weight: 700; font-size: .94rem; margin-bottom: 14px; }
.price-lines { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 10px; font-size: .9rem; color: var(--ink-2); }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.recap { margin: -6px 0 14px; font-size: .9rem; color: var(--ink-2); }
.recap strong { color: var(--ink); }

.done { text-align: center; }
.done p { margin-bottom: 12px; }
.done .btn { margin-top: 8px; }
@keyframes pop { from { transform: scale(.5); } to { transform: none; } }
.done-badge { width: 56px; height: 56px; margin: 6px auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; animation: pop .4s var(--ease) both; }
.done-badge .ic { width: 28px; height: 28px; stroke-width: 2.4; }

/* ---------- tarifs : une tuile par trajet, cliquable ---------- */
.fares { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.fare { display: grid; gap: 22px; padding: 18px; border: 0; border-radius: 12px; background: var(--bg-soft); text-align: left; cursor: pointer; transition: background .15s; }
.fare:hover { background: #ebebeb; }
.fare-top { display: flex; justify-content: space-between; align-items: center; }
.fare-top .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.fare-go { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s var(--ease); }
.fare:hover .fare-go, .fare:focus-visible .fare-go { opacity: 1; transform: none; }
.fare-route { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.fare-price { display: block; margin-top: 2px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fare-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.fare-notes li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.fare-notes strong { font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- étapes ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; counter-reset: step; }
.how li { counter-increment: step; }
.how .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.how h3 { font-size: 1.15rem; font-weight: 800; margin: 14px 0 4px; letter-spacing: -.01em; }
.how h3::before { content: counter(step) ". "; }
.how p { color: var(--ink-2); }

/* ---------- contact : la vidéo du logo et le numéro ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.logo-video { display: block; width: 100%; max-width: 480px; aspect-ratio: 624 / 352; object-fit: cover; mix-blend-mode: multiply; justify-self: center; }
.bignum { display: block; margin: 10px 0 22px; font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bignum:hover { color: var(--blue); }
.contact h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- questions ---------- */
#faq h2 { margin-bottom: 18px; }
details { border-top: 1px solid var(--line); }
#faq details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 18px 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; font-weight: 400; transition: transform .2s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }
#faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- pied ---------- */
.foot { background: var(--black); color: #c9c9c9; font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 96px; }
.foot a { text-decoration: none; font-weight: 600; color: #fff; }
.foot a:hover { text-decoration: underline; }

/* ---------- barre fixe : toujours visible, même en défilant ---------- */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--black); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); animation: rise .6s var(--ease) .5s both; }
.dock-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.dock-btn:hover { background: #2b2b2b; }
.dock-num { font-variant-numeric: tabular-nums; }
.dock-main { background: #fff; color: var(--ink); padding: 0 20px; }
.dock-main:hover { background: #e6e6e6; }
.dock-main .ic { width: 22px; height: 22px; }

/* ---------- page de suivi ---------- */
.status-page { width: min(560px, 100% - 32px); margin: 32px auto 64px; }
.status-page .card { padding: 24px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.badge.nouvelle { background: #fdf1d3; color: #7a5200; }
.badge.validee { background: #e4edfb; color: #134bb0; }
.badge.acompte_paye, .badge.terminee { background: #e0f2e7; color: #0c6b37; }
.badge.annulee { background: #fcebea; color: var(--danger); }
.status-page h1 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; margin: 12px 0 4px; }
.status-msg { color: var(--ink-2); margin-bottom: 18px; }
.total-line { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; margin-bottom: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .fares { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav, .top-cta { display: none; }
  .top { gap: 10px; height: 62px; }
  .logo img { height: 48px; }
  .tel { font-size: 1rem; }
  /* Sur mobile : la vidéo en bandeau avec le slogan, puis le formulaire juste dessous */
  .hero { display: block; min-height: 0; padding: 0 0 28px; background: var(--bg-soft); overflow: visible; }
  .hero::before { bottom: auto; height: 250px; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .78) 100%); }
  .hero-video { bottom: auto; height: 250px; object-position: 35% 50%; }
  .hero-brand { height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 16px 26px; }
  .hero-sub { margin-top: 6px; }
  .hero-points { display: none; }
  .booking { margin: -12px 12px 0; position: relative; box-shadow: 0 6px 24px rgba(0, 0, 0, .14); }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .fare-notes { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .logo-video { max-width: 320px; }
  .contact-btns { justify-content: center; }
  .wrap { padding-block: 52px; }
  /* la barre devient pleine largeur, en bas de l'écran */
  .dock { left: 12px; right: 12px; bottom: 12px; }
  .dock-num { display: none; }
  .dock-btn { justify-content: center; padding: 0 18px; }
  .dock-main { flex: 1; }
}
@media (max-width: 560px) {
  .fares { grid-template-columns: 1fr 1fr; }
  .fare { gap: 14px; padding: 14px; }
  .fare-price { font-size: 1.6rem; }
  .booking { padding: 16px; }
  .price { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Proposition trop vague (ville, rue sans numéro) */
.ac-list li.vague { color: var(--muted); }
.ac-list li small { display: block; font-size: .78rem; font-weight: 500; }
