@font-face {
  font-family: "Funnel Display";
  src: url("assets/fonts/funnel-display-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-2191, U+2193-2247, U+2249-FFFF;
}
@font-face {
  font-family: "Funnel Display";
  src: url("assets/fonts/funnel-display-environ.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+2248; /* « ≈ » : absent de Funnel, Noto Sans Math comme dans Figma */
}
@font-face {
  font-family: "Funnel Display";
  src: url("assets/fonts/fleche-texte.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+2192; /* « → » : même cas */
}
@font-face {
  font-family: "Funnel Sans";
  src: url("assets/fonts/funnel-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --encre: #0b0c0e;
  --gris: #76787e;
  --gris-titre: #a9abb0;
  --bleu: #a9e8ff;
  --vert: #25d366;
  --fond-doux: #f4f4f2;
  --display: "Funnel Display", system-ui, sans-serif;
  --sans: "Funnel Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
img { display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: #fff;
  color: var(--encre);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Maquette : 390 px de large. --u = 1 px de maquette, proportionnel à l'écran. */
.page {
  container-type: inline-size;
  max-width: 430px;
  margin-inline: auto;
  padding-top: calc(env(safe-area-inset-top) + 10px);
  overflow-x: clip;
}
.page > * { --u: calc(100cqw / 390); }

/* ---------- En-tête ---------- */
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin: 0 16px;
}
.marque { display: flex; align-items: center; gap: 12px; height: 48px; }
.logo { display: block; flex: none; width: auto; height: 38px; }
.marque__role { font-size: 12px; line-height: 15px; font-weight: 500; color: var(--gris); white-space: nowrap; }
.entete__actions { display: flex; gap: 4px; }
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 125px;
  height: 44px;
  padding-left: 13px;
  border-radius: 22px;
  background: var(--vert);
  color: #fff;
  font: 500 14.5px/18px var(--display);
}
.btn-whatsapp span { margin-bottom: 1px; }
.btn-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fond-doux);
}

/* ---------- Titre ---------- */
.heros__titre {
  position: relative;
  height: calc(252 * var(--u));
  margin: 18px calc(18 * var(--u)) 0;
}
h1 {
  font: 500 calc(66 * var(--u))/calc(62 * var(--u)) var(--display);
  letter-spacing: -.05em;
  font-feature-settings: "liga"; /* Figma garde la ligature « ff » malgré l'interlettrage */
  padding-top: calc(.5 * var(--u));
  white-space: nowrap;
}
h1 > span { display: block; width: max-content; }
.l1, .l3 { color: var(--gris-titre); }
.l2 { margin-left: calc(68 * var(--u)); }
.l4 { position: relative; z-index: 0; margin-left: calc(124 * var(--u)); }
.surlignage {
  overflow: hidden;
  position: absolute;
  z-index: -1;
  top: calc(4.46 * var(--u)); /* 4,96 - 0,5 de calage du texte */
  left: calc(-8 * var(--u));
  width: calc(237 * var(--u));
  height: calc(57.04 * var(--u));
  border-radius: calc(17.36 * var(--u));
  background: var(--bleu);
}
/* Reflet qui traverse la pastille (animations.js), invisible au repos */
.surlignage__reflet {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  opacity: 0;
  background: linear-gradient(105deg, rgb(255 255 255 / 0), rgb(255 255 255 / .75) 50%, rgb(255 255 255 / 0));
}
.heros__lateral {
  position: absolute;
  top: calc(204 * var(--u));
  left: calc(2 * var(--u));
  font-size: calc(12.5 * var(--u));
  line-height: calc(16 * var(--u));
  padding-top: calc(.5 * var(--u));
  font-weight: 800;
  color: var(--gris);
}

/* ---------- Photo ---------- */
.photo {
  position: relative;
  aspect-ratio: 366 / 372;
  margin: 22px 12px 0;
  border-radius: 34px;
  overflow: hidden;
}
.photo__cadre { height: 100%; }
.photo__img { width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(rgb(11 12 14 / 0), rgb(11 12 14 / .6));
}

/* ---------- Liquid glass ---------- */
.verre {
  --teinte: .38;
  --ombre-h: .11;
  --ombre-m: .172;
  --ombre-b: .15;
  position: absolute;
  z-index: 1;
  border-radius: var(--rayon);
  color: #fff;
  box-shadow: 0 10px 28px rgb(0 0 0 / .18);
}
/* Matière : flou de l'arrière-plan + ombre portée vue à travers + teinte + reflet.
   --refraction est ajoutée par verre.js sur Chromium. */
.verre::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(170deg, rgb(255 255 255 / .032) 14.286%, rgb(255 255 255 / .008) 50%, rgb(255 255 255 / .016) 85.714%),
    linear-gradient(rgb(21 23 27 / var(--teinte)) 0 0),
    linear-gradient(rgb(0 0 0 / var(--ombre-h)), rgb(0 0 0 / var(--ombre-m)) 50%, rgb(0 0 0 / var(--ombre-b)));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px) var(--refraction,);
}
/* Arête lumineuse : contour intérieur 1,2 px en dégradé + reflet spéculaire 0,5 px.
   En SVG, car CSS arrondit 1,2 px au pixel entier. */
.arete {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
}
.arete__contour {
  x: .6px; y: .6px;
  width: calc(100% - 1.2px); height: calc(100% - 1.2px);
  rx: calc(var(--rayon) - .6px);
  stroke: url(#arete);
  stroke-width: 1.2px;
}
.arete__reflet {
  x: .25px; y: .25px;
  width: calc(100% - .5px); height: calc(100% - .5px);
  rx: calc(var(--rayon) - .25px);
  stroke: rgb(255 255 255 / .14);
  stroke-width: .5px;
}
.arete__s1 { stroke: url(#arete-statut); stroke-width: .5px; }
.arete__s2 { stroke: rgb(98 251 151 / .12); stroke-width: .5px; }

.puce {
  --rayon: 17px;
  --teinte: .3;
  --ombre-h: .1;
  --ombre-m: .13;
  --ombre-b: .145;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 126px;
  height: 34px;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.puce > span:last-child { margin-top: 1px; }
.puce__etoile { position: relative; flex: none; width: 14px; height: 14px; }
.puce__etoile img { position: absolute; inset: 0; }
.puce__etoile-vide { opacity: 0; filter: grayscale(1) brightness(2); }

/* Avant l'animation d'arrivée (classe retirée par animations.js) */
.avant-anim .heros__titre,
.avant-anim .photo { visibility: hidden; }

.carte {
  --rayon: 24px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  height: 70px;
  padding: 0 12px;
}
.carte__avion {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bleu);
  transform: rotate(32.347deg);
}
.carte__textes { flex: 1; align-self: flex-start; min-width: 0; padding-top: 14px; margin-left: 12px; }
.carte__textes strong {
  display: block;
  font: 500 15.5px/19px var(--display);
  letter-spacing: -.01em;
}
.carte__textes span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  color: rgb(255 255 255 / .72);
}
.carte__statut {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(0 255 95 / .6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ---------- Boutons ---------- */
.cta { display: flex; gap: 8px; margin: 16px 12px 0; }
.cta__prix {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 6px 0 22px;
  border-radius: 31px;
  background: var(--encre);
  color: #fff;
  font: 500 17.5px/22px var(--display);
}
.cta__prix > span:first-child { margin-top: 1px; }
.cta__pastille {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bleu);
}
.cta__whatsapp {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 8px 20px rgb(10 13 18 / .18);
}
.cta__note {
  margin: 14.5px 20px 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  text-align: center;
  color: var(--gris);
}

/* Très petits écrans */
@media (max-width: 345px) {
  .btn-whatsapp { width: 44px; padding-left: 12.5px; }
  .btn-whatsapp span { position: absolute; clip-path: inset(50%); }
  .carte { padding: 0 10px; }
  .carte__textes { margin-left: 10px; }
  .carte__textes span { font-size: 10px; white-space: nowrap; }
  .cta__prix { padding-left: 18px; font-size: 16px; }
}

/* Éléments réservés à la tablette et au PC (bureau.css, 768 px et plus) : jamais affichés sur mobile */
@media (max-width: 767.98px) {
  .bureau-seul, .verre__lueur { display: none !important; }
}

/* ---------- Langue du site : FR · EN · DE ----------
   Mobile : pastille en verre avec la langue active ; un toucher ouvre les trois choix.
   PC (bureau.css) : « FR · EN · DE » dans l'en-tête. */
.langues { position: relative; z-index: 70; flex: none; }
.langues__active,
.langues__liste {
  color: var(--encre);
  background: rgb(11 12 14 / .045);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .85);
}
.langues__active {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 600 13px/1 var(--display);
  letter-spacing: .04em;
  touch-action: manipulation;
}
.langues__active span { margin-top: 1px; }
.langues__liste {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 172px;
  padding: 6px;
  border-radius: 24px;
  background: rgb(255 255 255 / .82);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 16px 40px rgb(11 12 14 / .16);
}
.langues--ouvert .langues__liste { display: flex; }
.langues__liste a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--encre);
  white-space: nowrap;
}
.langues__liste a:focus-visible { outline: 2px solid var(--encre); outline-offset: -2px; }
.langues__liste a[aria-current] { background: var(--encre); color: #fff; }
.langues__code { width: 24px; font: 600 13px/1 var(--display); letter-spacing: .04em; }
.langues__nom { font: 500 15px/18px var(--sans); }
@media (hover: hover) and (pointer: fine) {
  .langues__liste a:not([aria-current]):hover { background: rgb(11 12 14 / .05); }
}
/* Écran 1 du parcours : à gauche du bouton WhatsApp */
.langues--e1 { position: absolute; top: calc(var(--haut) + 2px); right: 68px; }
/* Page « Informations passagers » */
.infos__droite { display: flex; align-items: center; gap: 4px; }

/* Hors français : « Votre trajet » est placé au pixel en français ; ailleurs, les deux mots se suivent */
html:not(:lang(fr)) .e2-titre span { position: static; }
/* Hors français : la pastille bleue du haut de page suit la longueur du mot (i18n.js) */
html.titres-ajustes .heros .surlignage { width: var(--surl-l); }
