/* GoLocar — page d'accueil publique.
   Palette et rayons repris de l'app : apps/flutter_app/lib/app/design_tokens.dart */

:root {
  --paper: #F6F7F4;
  --paper-2: #ECEEE9;
  --card: #FFFFFF;
  --ink: #0F1410;
  --ink-2: #36403A;
  --ink-3: #6E7670;
  --ink-4: #A4ABA6;
  --line: #E2E5DF;
  --line-2: #C5CAC2;
  --green: #22C55E;
  --green-ink: #15803D;
  --green-soft: #D9F5E3;
  --night: #0F1410;
  --night-2: #18221B;
  --night-line: #243027;
  --night-text: #E9EEE7;
  --night-soft: #C3CCC2;
  --night-dim: #879189;

  --font: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

[dir="rtl"] {
  --font: 'IBM Plex Sans Arabic', 'Overpass', system-ui, sans-serif;
  --mono: 'Overpass Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--green-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; z-index: 50; top: -80px; inset-inline-start: 12px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- En-tête ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__mark rect { fill: var(--ink); }
.brand__mark path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.brand__word { font-size: 23px; font-weight: 800; letter-spacing: -.04em; line-height: 1; padding-top: 3px; }

.top__nav { display: flex; align-items: center; gap: 6px; }
.top__link {
  padding: 10px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.top__link:hover { background: var(--paper-2); color: var(--ink); }

.lang { position: relative; }
.lang__current {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px 8px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 13px/1 var(--mono); letter-spacing: .08em;
  list-style: none; cursor: pointer; user-select: none;
}
.lang__current::-webkit-details-marker { display: none; }
.lang__current::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.lang[open] .lang__current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(15, 20, 16, .14);
}
.lang__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 15px; text-decoration: none; }
.lang__menu a:hover { background: var(--paper); }
.lang__menu a[aria-current] { color: var(--green-ink); font-weight: 700; }

/* « Mon espace » : la même connexion pour les agences et les clients, en haut à droite. */
.space__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 8px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.space__btn svg { width: 18px; height: 18px; margin-top: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.space__btn:hover { background: var(--green-ink); }

/* ---------- Recherche : une phrase à compléter ---------- */

.hero { padding-block: clamp(48px, 10vh, 120px) clamp(44px, 8vh, 96px); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 clamp(22px, 3.5vh, 36px);
  color: var(--ink-3);
  font: 600 12.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}

.sentence {
  max-width: 21ch; margin: 0;
  font-size: clamp(2.15rem, 1rem + 4.5vw, 5.2rem);
  font-weight: 800; line-height: 1.16; letter-spacing: -.035em;
  text-wrap: balance;
}
.sentence--empty { color: var(--ink-3); }
.glue { white-space: nowrap; }

/* Les champs sont soulignés en pointillés, comme un marquage au sol. */
.field {
  margin: 0; padding: 0 .05em; border: 0; border-radius: 4px;
  font: inherit; letter-spacing: inherit; color: var(--green-ink);
  background-color: transparent;
  background-image: linear-gradient(90deg, currentColor 0 58%, transparent 58% 100%);
  background-size: .5em .075em; background-repeat: round no-repeat; background-position: 0 94%;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  field-sizing: content;
}
.field:hover, .field:focus-visible, .date:focus-within .field { animation: lane .8s linear infinite; }
[dir="rtl"] .field:hover, [dir="rtl"] .field:focus-visible, [dir="rtl"] .date:focus-within .field { animation-direction: reverse; }
@keyframes lane { to { background-position-x: .5em; } }

select.field {
  padding-inline-end: .55em;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315803D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(90deg, currentColor 0 58%, transparent 58% 100%);
  background-size: .3em .2em, .5em .075em;
  background-repeat: no-repeat, round no-repeat;
  background-position: right .06em top 56%, 0 94%;
}
[dir="rtl"] select.field { background-position: left .06em top 56%, 0 94%; }
select.field option { color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: 0; }
.field--sizer { position: absolute; visibility: hidden; white-space: pre; padding: 0; }
.field:focus-visible { outline-offset: 6px; }
.date:focus-within .date__text { outline: 3px solid var(--green); outline-offset: 6px; }

.date { position: relative; display: inline-block; }
.date__text { display: none; }
.date__input {
  font: inherit; letter-spacing: 0; color: var(--green-ink);
  background: transparent; border: 0; padding: 0;
}
.js .date__text { display: inline; }
.js .date__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 16px;
}
.js .date__input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.search__go {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  margin-top: clamp(30px, 4.5vh, 48px);
}
.go {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 0 26px 0 30px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 18px/1 var(--font); cursor: pointer;
  transition: background .2s, transform .15s;
}
.go:hover { background: #000; }
.go:active { transform: scale(.98); }
.go.is-empty { background: var(--ink-3); }
.go__label { padding-top: 2px; }
.go__arrow, .btn__arrow, .book__arrow, .board__go {
  flex: none; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.go__arrow { width: 22px; height: 22px; stroke: var(--green); }
.go:hover .go__arrow, .btn:hover .btn__arrow, .book:hover .book__arrow { transform: translateX(4px); }
[dir="rtl"] .go__arrow, [dir="rtl"] .btn__arrow, [dir="rtl"] .book__arrow, [dir="rtl"] .board__go { scale: -1 1; }
[dir="rtl"] .go:hover .go__arrow, [dir="rtl"] .btn:hover .btn__arrow, [dir="rtl"] .book:hover .book__arrow { transform: translateX(-4px); }

.promises {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 0; padding: 0; list-style: none;
  color: var(--ink-3); font-size: 15px;
}
.promises li { display: inline-flex; align-items: center; gap: 9px; }
.promises li::before {
  content: ""; width: 11px; height: 6px; margin-top: -4px;
  border-left: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink);
  transform: rotate(-45deg);
}

/* ---------- Résultats ---------- */

.results { padding-bottom: clamp(48px, 8vh, 96px); scroll-margin-top: 76px; transition: opacity .2s; }
.results.is-loading { opacity: .45; }
.results__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px;
  padding-bottom: 20px; border-bottom: 2px solid var(--ink);
}
.results__title {
  margin: 0; outline: none;
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.35rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
.results__period { margin: 10px 0 0; color: var(--ink-3); font: 500 14px/1.4 var(--mono); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 2px 16px 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.filters__chip:hover { border-color: var(--ink); }
.filters__chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.results__message { padding: 40px 0 8px; color: var(--ink-2); font-size: 19px; }
.results__message p { margin: 0 0 14px; }
.results__hint { color: var(--ink-3); font-size: 16px; }
.results__others { display: flex; flex-wrap: wrap; gap: 8px; }

.cars { margin: 0; padding: 0; list-style: none; }
.car {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 20px 30px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.car__media {
  display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--paper-2); border-radius: var(--radius-sm);
}
.car__media img { width: 100%; height: 100%; object-fit: cover; }
.car__glyph {
  width: 70%; fill: none; stroke: var(--ink-4);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .car__glyph { scale: -1 1; }
.car__title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.car__year { color: var(--ink-3); font-weight: 500; }
.car__specs { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.car__agency { margin: 3px 0 0; color: var(--ink-2); font-size: 15px; }
.car__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
/* Listes à puces en ligne ("Économique • Manuelle • Diesel") : puce dessinée, espacement régulier.
   La liste est décalée de la largeur d'une puce et rognée : aucune puce en début de ligne. */
.dots { overflow: hidden; }
.dots__list { display: flex; flex-wrap: wrap; margin-inline-start: calc(-1.1em - 3px); }
.dots__list > span { white-space: nowrap; }
.dots__list > span::before {
  content: ""; display: inline-block; width: 3px; height: 3px; margin-inline: .55em;
  border-radius: 50%; background: currentColor; vertical-align: .3em; opacity: .7;
}
.tag {
  display: inline-flex; padding: 3px 10px 2px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
  font: 600 12.5px/1.6 var(--mono);
}
.tag--green { background: var(--green-soft); color: var(--green-ink); }

.car__price { display: grid; justify-items: end; gap: 4px; text-align: end; }
.car__daily { margin: 0; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.car__daily strong { color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.car__total { margin: 0 0 8px; color: var(--ink-3); font: 500 13.5px/1.4 var(--mono); white-space: nowrap; }
.book {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 2px 18px 0 22px; border-radius: 999px;
  background: var(--green); color: var(--ink);
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.book:hover { background: #2fd46b; }
.book__arrow { width: 18px; height: 18px; margin-top: -2px; }

/* ---------- Tableau des départs ---------- */

.departures { padding-block: clamp(16px, 3vh, 40px); }
.board {
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--night); color: var(--night-text);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -38px rgba(15, 20, 16, .7);
}
.board__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.board__title {
  margin: 0; color: var(--green);
  font: 600 13px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase;
}
.board__subtitle {
  margin: 12px 0 0; color: var(--night-text);
  font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em;
}
.board__live {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 0; white-space: nowrap;
  color: var(--night-dim); font: 600 11.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
}
.board__live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .2; } }

.board__rows { margin: 0; padding: 0; list-style: none; }
.board__rows li { border-top: 1px solid var(--night-line); }
.board__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px 104px 104px 150px 24px; align-items: center; gap: 16px;
  margin-inline: -14px; padding: 16px 14px;
  border-radius: 12px; color: inherit; text-decoration: none;
  font: 600 17px/1 var(--mono);
}
.board__row--head {
  padding-block: 0 14px; color: var(--night-dim);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
a.board__row { transition: background .15s; }
a.board__row:hover, a.board__row:focus-visible { background: var(--night-2); }
a.board__row:hover .board__go, a.board__row:focus-visible .board__go { opacity: 1; transform: none; }
.board__country { color: var(--night-dim); }
.board__num, .board__price { text-align: end; white-space: nowrap; }
.board__num { color: var(--green); }
.board__num .m { display: none; }
.board__price { color: var(--night-text); }
.board__go { width: 20px; height: 20px; stroke: var(--green); opacity: 0; transform: translateX(-6px); }

.flaps { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.flap {
  position: relative; display: inline-grid; place-items: center;
  width: 1.32em; height: 1.8em; border-radius: 4px;
  background: linear-gradient(#202b23 0 50%, #1a241d 50% 100%);
  color: #F4F7F2; font: 600 1.12em/1 var(--mono); text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.flap::after {
  content: ""; position: absolute; top: 50%; inset-inline: 0; height: 1px;
  background: rgba(0, 0, 0, .6);
}

/* ---------- Étapes ---------- */

.steps { padding-block: clamp(64px, 10vh, 120px); }
.section-title {
  margin: 0 0 clamp(30px, 4.5vh, 50px);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
.route {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px;
  margin: 0; padding: 0; list-style: none;
}
.route::before {
  content: ""; position: absolute; top: 22px; inset-inline: 24px calc((100% - 72px) / 3 - 24px); height: 3px;
  background: linear-gradient(90deg, var(--line-2) 0 55%, transparent 55% 100%) 0 0 / 20px 3px repeat-x;
}
.stop { position: relative; }
.stop__n {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 47px; height: 47px; margin-bottom: 24px; padding-top: 2px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font: 700 17px/1 var(--mono);
}
.stop:last-child .stop__n { background: var(--green); border-color: var(--green); }
.stop__title { margin: 0 0 8px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.stop__text { max-width: 33ch; margin: 0; color: var(--ink-2); }

/* ---------- Agences ---------- */

.agency {
  overflow: hidden;
  padding-block: clamp(72px, 11vh, 130px);
  background: var(--night); color: var(--night-text);
}
.agency__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px); align-items: center;
  gap: clamp(48px, 7vw, 110px);
}
.eyebrow--dark { color: var(--night-dim); }
.eyebrow--dark::before { box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.agency__title {
  margin: 0;
  font-size: clamp(2.3rem, 1.2rem + 2.6vw, 3.55rem); font-weight: 800; line-height: 1.06; letter-spacing: -.04em;
}
.agency__title span { display: block; }
.agency__title-accent { color: var(--green); }
.agency__text { max-width: 44ch; margin: 26px 0 0; color: var(--night-soft); font-size: 19px; line-height: 1.6; }
.agency__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 2px 26px 0 30px; border-radius: 999px;
  font-size: 18px; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #2fd46b; }
.btn__arrow { width: 22px; height: 22px; margin-top: -2px; }
.link-light {
  color: var(--night-text); font-weight: 600;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.link-light:hover { color: var(--green); }
.agency__trial { margin: 20px 0 0; color: var(--green); font: 600 14px/1.5 var(--mono); }
.agency__review { max-width: 46ch; margin: 6px 0 0; color: var(--night-dim); font-size: 15px; }

.contract {
  position: relative; padding: 30px 30px 26px;
  background: #FBFBF7; color: var(--ink);
  border-radius: 6px; transform: rotate(-1.6deg);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
}
.contract__head {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font: 600 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.contract__articles { margin: 0; padding: 4px 0 0; list-style: none; }
.contract__articles li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 15.5px; line-height: 1.45;
}
.contract__art { padding-top: 2px; color: var(--green-ink); font: 600 12.5px/1.6 var(--mono); }
.contract__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.contract__sign { flex: 1; min-width: 0; }
.signature {
  width: 210px; height: 64px; fill: none; stroke: var(--ink);
  stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
}
.signature path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.55, .1, .3, 1) .3s; }
.contract__line { display: block; height: 1px; margin-top: -4px; background: var(--ink-3); }
.contract__label { display: block; margin-top: 8px; color: var(--ink-3); font: 500 12px/1.4 var(--mono); }
.stamp {
  flex: none; width: 108px; height: 108px; color: var(--green-ink);
  rotate: -14deg; opacity: 0; scale: 1.25;
  transition: opacity .25s 2s, scale .25s 2s;
}
.stamp circle { fill: none; stroke: currentColor; stroke-width: 2.5; }
.stamp circle + circle { stroke-width: 1.4; }
.stamp text { fill: currentColor; font: 700 9.6px var(--mono); letter-spacing: .1em; }
.stamp__check { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.contract.is-signed .signature path, html:not(.js) .signature path { stroke-dashoffset: 0; }
.contract.is-signed .stamp, html:not(.js) .stamp { opacity: .92; scale: 1; }

/* ---------- Pied de page ---------- */

.foot { padding-block: 52px 36px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; }
.foot__tagline { margin: 14px 0 0; color: var(--ink-3); font-size: 15px; }
.foot__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__langs { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 18px; }
.foot__links a, .foot__langs a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.foot__links a:hover, .foot__langs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot__langs a[aria-current] { color: var(--green-ink); font-weight: 700; }
.foot__legal { margin-top: 40px; color: var(--ink-4); font: 500 13px/1.4 var(--mono); }

/* ---------- Arabe : pas d'espacement entre les lettres (casse les liaisons) ---------- */

[dir="rtl"] :is(.eyebrow, .sentence, .results__title, .section-title, .agency__title, .car__title,
  .stop__title, .board__title, .board__subtitle, .board__live, .board__row--head, .contract__head,
  .brand__word, .foot__legal, .results__period, .car__total, .agency__trial, .tag, .contract__art) {
  letter-spacing: 0;
}
[dir="rtl"] .sentence { line-height: 1.4; }
[dir="rtl"] .agency__title { line-height: 1.25; }

/* ---------- Écrans étroits ---------- */

@media (max-width: 900px) {
  .agency__grid { grid-template-columns: minmax(0, 1fr); }
  .contract { max-width: 520px; transform: rotate(-1deg); }
  .board__row { grid-template-columns: minmax(0, 1fr) 48px 80px 80px 120px 20px; gap: 12px; font-size: 14px; }
}

@media (max-width: 720px) {
  .top__link { padding: 8px 10px; font-size: 14px; }
  /* Place pour « Mon espace » : l'agence se trouve aussi plus bas et dans le pied de page. */
  .top__link--agency { display: none; }
  .space__btn { padding: 8px 13px 7px; font-size: 14px; }
  .car { grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; }
  .car__price {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 4px 16px; text-align: start;
  }
  .car__total { margin: 0; }
  .book { margin-inline-start: auto; }
  .board__row--head { display: none; }
  .board__row { grid-template-columns: auto auto auto minmax(0, 1fr); gap: 12px 14px; padding-block: 18px; font-size: 13px; }
  .board__row .flaps { grid-column: 1 / -1; font-size: 14px; }
  .board__num { text-align: start; }
  .board__num .d { display: none; }
  .board__num .m { display: inline; }
  .board__go { display: none; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .route::before {
    top: 0; bottom: 0; inset-inline: 22px auto; width: 3px; height: auto;
    background: linear-gradient(180deg, var(--line-2) 0 55%, transparent 55% 100%) 0 0 / 3px 20px repeat-y;
  }
  .stop { padding-inline-start: 72px; }
  .stop__n { position: absolute; top: -6px; inset-inline-start: 0; margin: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .brand__word { font-size: 21px; }
  .top__link { font-size: 13px; padding-inline: 8px; }
  .go { width: 100%; justify-content: space-between; }
  .contract { padding: 24px 20px 20px; }
  .contract__articles li { grid-template-columns: 48px minmax(0, 1fr); font-size: 15px; }
  .stamp { width: 88px; height: 88px; }
}

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