/* Onyx Line — feuille de style
   Direction : la pierre d'onyx et la lumière juste avant l'aube.
   Un seul élément audacieux : la carte de réservation façon carte d'embarquement. */

:root {
  --onyx: #121318;
  --onyx-2: #1b1d24;
  --graphite: #262932;
  --line: #333744;
  --porcelain: #f1ede6;
  --porcelain-2: #e4ded3;
  --ink: #17181d;
  --ink-soft: #5d606b;
  --slate: #9a9eaa;
  --dawn: #e8b48c;
  --dawn-deep: #b9764b;
  --night: #1f2640;
  --ok: #4f8a68;
  --warn: #b5643c;

  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  --gutter: 16px;
  --max: 1160px;
  --radius-card: 18px;
  --radius-field: 10px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--onyx);
  color: var(--porcelain);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--porcelain); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* En-tête ------------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--onyx) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.mark span { color: var(--dawn); }
.top nav { display: flex; align-items: center; gap: 18px; font-size: var(--step--1); }
.top nav a { text-decoration: none; color: var(--slate); }
.top nav a:hover { color: var(--porcelain); }
.top nav .nav-link { display: none; }
@media (min-width: 860px) { .top nav .nav-link { display: inline; } }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.btn-top {
  text-decoration: none; background: var(--porcelain); color: var(--ink) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}

/* Héros : le ciel avant l'aube --------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 60% at 70% 118%, color-mix(in srgb, var(--dawn) 55%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, var(--onyx) 0%, var(--night) 70%, #3a3346 100%);
  padding: 40px 0 56px;
}
.hero::after { /* ligne d'horizon */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dawn), transparent);
  opacity: .7;
}
.hero-grid { display: grid; gap: 28px; align-items: start; grid-template-areas: "text" "pass" "extra"; }
.hero-text { grid-area: text; }
.hero-extra { grid-area: extra; }
.hero-grid > .pass { grid-area: pass; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 460px; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 0; padding-top: 24px;
               grid-template-areas: "text pass" "extra pass"; }
}
.hero-text .lede { margin-bottom: 0; }
@media (min-width: 980px) { .hero-text .lede { margin-bottom: 28px; } }

.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-4);
  line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 13ch;
}
.hero .lede { color: color-mix(in srgb, var(--porcelain) 82%, transparent); font-size: var(--step-1); max-width: 34ch; margin: 0 0 28px; }

.clock { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; color: var(--slate); font-size: var(--step--1); }
.clock strong { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); color: var(--dawn); font-variant-numeric: lining-nums; line-height: 1; }

.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 40ch; }
.promises li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: color-mix(in srgb, var(--porcelain) 85%, transparent); }
.promises svg { margin-top: 5px; color: var(--dawn); }

/* Carte de réservation : la carte d'embarquement --------------------------- */
.pass {
  background: var(--porcelain); color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.65), 0 2px 0 rgba(255,255,255,.4) inset;
  position: relative;
}
@media (min-width: 980px) { .pass { position: sticky; top: 88px; } }
.pass-head { padding: 22px 22px 18px; }
.pass-head h2 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); margin: 0; line-height: 1.15; }
.pass-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--step--1); }

.perf { /* perforation entre les volets */
  position: relative; height: 0; border-top: 2px dashed var(--porcelain-2); margin: 0 18px;
}
.perf::before, .perf::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--onyx);
}
.perf::before { left: -31px; }
.perf::after { right: -31px; }
.hero .perf::before, .hero .perf::after { background: #262a43; }

.pass-body { padding: 18px 22px 22px; }
.step[hidden] { display: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--porcelain-2); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  text-align: center; padding: 9px 6px; border-radius: 999px; cursor: pointer;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); transition: background .15s, color .15s;
}
.seg input:checked + label { background: var(--ink); color: var(--porcelain); }
.seg input:focus-visible + label { outline: 2px solid var(--dawn-deep); outline-offset: 2px; }

.route { /* lecture "carte d'embarquement" du trajet */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; margin: 6px 0 18px;
}
.route > div { min-width: 0; }
.route .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route .code { font-family: var(--serif); font-size: 2.3rem; line-height: 1; font-weight: 600; }
.route .sub { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.route .to { text-align: right; }
.route .plane { color: var(--dawn-deep); padding-bottom: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d3ccbf; border-radius: var(--radius-field);
  padding: 11px 12px; min-height: 46px; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dawn) 45%, transparent); }
[aria-invalid=true] { border-color: var(--warn) !important; }
.err { color: var(--warn); font-size: .82rem; min-height: 0; }

.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid #d3ccbf; border-radius: var(--radius-field); background: #fff; min-height: 46px; padding: 0 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--porcelain-2); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper output { font-weight: 600; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--step--1); margin-bottom: 12px; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }

.quote {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--porcelain-2); padding-top: 14px; margin-top: 4px; margin-bottom: 14px;
}
.quote .lbl { font-size: var(--step--1); color: var(--ink-soft); }
.quote .amount { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--porcelain); font: inherit; font-weight: 600; font-size: 1.02rem;
  text-decoration: none; transition: transform .1s ease, background .15s;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #cfc7b9; }
.btn.light { background: var(--porcelain); color: var(--ink); }
.btn-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.btn-row .ghost { width: auto; padding: 0 18px; }
.fine { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.alt-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.alt-contact .btn { min-height: 44px; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 8px 0; }
.done .ref { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; margin: 6px 0 4px; }
.done p { color: var(--ink-soft); }
.form-alert { background: #f6e3d6; color: #6b3416; border-radius: var(--radius-field); padding: 10px 12px; font-size: var(--step--1); margin-bottom: 12px; }

/* Sections ----------------------------------------------------------------- */
section { padding: 72px 0; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); line-height: 1.1; margin: 0 0 14px; max-width: 18ch; }
.section-lede { color: var(--slate); max-width: 56ch; margin: 0 0 36px; }

/* Grille de prix : tableau des départs */
.board { border-top: 1px solid var(--line); }
.board-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.board-row .trip { font-size: var(--step-1); }
.board-row .meta { display: block; color: var(--slate); font-size: var(--step--1); }
.board-row .price { font-family: var(--serif); font-size: var(--step-3); line-height: 1; font-variant-numeric: lining-nums; }
.board-row .price small { font-family: var(--sans); font-size: var(--step--1); color: var(--slate); margin-left: 4px; }
a.board-row:hover .trip { color: var(--dawn); }
.board-note { color: var(--slate); font-size: var(--step--1); margin-top: 16px; max-width: 60ch; }

/* Déroulé (vraie séquence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2.4rem; color: var(--dawn); line-height: 1; display: block; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: var(--step-1); font-weight: 600; }
.steps p { margin: 0; color: var(--slate); }

/* Standards */
.standards { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .standards { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.standards div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.standards h3 { margin: 0 0 4px; font-size: var(--step-0); font-weight: 600; }
.standards p { margin: 0; color: var(--slate); font-size: var(--step--1); }

/* Contenu éditorial des pages trajet */
.prose { max-width: 66ch; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); margin: 40px 0 10px; line-height: 1.2; }
.prose p, .prose li { color: color-mix(in srgb, var(--porcelain) 82%, transparent); }
.prose ul { padding-left: 1.1em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--dawn); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--slate); max-width: 66ch; }

.band { background: var(--onyx-2); }
.cta-band { text-align: left; }
.cta-band .btn { width: auto; padding: 0 28px; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 40px 0 120px; color: var(--slate); font-size: var(--step--1); }
@media (min-width: 980px) { footer { padding-bottom: 40px; } }
.foot { display: grid; gap: 24px; }
@media (min-width: 860px) { .foot { grid-template-columns: 2fr 1fr 1fr; } }
.foot h4 { color: var(--porcelain); font-weight: 600; margin: 0 0 8px; font-size: var(--step--1); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--porcelain); }

/* Barre d'action mobile */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--onyx) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; gap: 10px;
}
.mobile-cta .btn { min-height: 48px; }
.mobile-cta .icon-btn { width: 56px; flex: none; background: var(--graphite); color: var(--porcelain); }
@media (min-width: 980px) { .mobile-cta { display: none; } }

/* Page de suivi */
.track { max-width: 560px; margin: 0 auto; }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 18px; position: relative; color: var(--ink-soft); }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #cfc7b9; margin-top: 6px; background: #fff; }
.timeline li.on { color: var(--ink); }
.timeline li.on::before { background: var(--ink); border-color: var(--ink); }
.timeline li.bad::before { background: var(--warn); border-color: var(--warn); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: var(--step--1); margin: 14px 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; }

/* Bandeau cookies */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 84px; z-index: 40;
  max-width: 520px; margin: 0 auto; background: var(--graphite); color: var(--porcelain);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: var(--step--1);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
}
@media (min-width: 980px) { .consent { bottom: 24px; } }
.consent p { margin: 0 0 12px; }
.consent .btns { display: flex; gap: 8px; }
.consent button { flex: 1; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--porcelain); font: inherit; cursor: pointer; }
.consent button.yes { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }

/* Page simple (légal) */
.page-plain { padding: 56px 0; }
.page-plain h1 { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); margin: 0 0 24px; }

/* Entrée unique de la page : la carte "s'imprime" */
@media (prefers-reduced-motion: no-preference) {
  .pass { animation: issue .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: .1s; }
  @keyframes issue { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Suivi en direct */
.live { background: var(--ink); color: var(--porcelain); border-radius: 14px; padding: 16px; margin: 6px 0 18px; display: grid; gap: 6px; }
.live-title { margin: 0; font-weight: 600; }
.live-eta { margin: 0; color: var(--slate); }
.live-eta strong { font-family: var(--serif); font-size: 2.4rem; color: var(--dawn); font-weight: 600; line-height: 1; margin-left: 6px; font-variant-numeric: lining-nums tabular-nums; }
.live-car { margin: 0; color: var(--slate); font-size: var(--step--1); }
.live-map { height: 220px; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.quote-box { border: 1px solid var(--porcelain-2); border-radius: 14px; padding: 16px; margin: 6px 0 18px; display: grid; gap: 10px; }
.quote-box p { margin: 0; }
.quote-box strong { font-family: var(--serif); font-size: 1.6rem; }

/* Suggestion de langue pour les visiteurs étrangers */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--dawn); color: var(--ink); font-size: var(--step--1); font-weight: 600; padding: 8px var(--gutter); }
.lang-hint a { color: var(--ink); }
.lang-hint button { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* Adresse auto-complétée */
.field.addr { position: relative; }
.suggest { position: absolute; z-index: 15; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid #d3ccbf; border-radius: var(--radius-field); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.suggest li { padding: 10px 10px; border-radius: 8px; cursor: pointer; font-size: .95rem; color: var(--ink); }
.suggest li:hover, .suggest li.on { background: var(--porcelain-2); }

/* Options repliées */
.more { margin: 0 0 14px; border-top: 1px solid var(--porcelain-2); }
.more summary { cursor: pointer; padding: 12px 0; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; color: var(--dawn-deep); }
.more[open] summary::before { content: "− "; }
.fine a { color: inherit; }
