/* ==========================================================================
   Satofly — système de design (source : design_handoff_satofly/README.md)
   Tokens + composants partagés. Fidélité haute : couleurs, typo, rayons,
   ombres et libellés sont définitifs.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Couleurs */
  --encre: #031F25;
  --sarcelle-900: #03343C;
  --sarcelle-700: #295B62;
  --sarcelle-300: #8AB4B8;
  --sarcelle-100: #DBECEE;
  --abricot-500: #EBAF86;
  --abricot-200: #FBE7D8;
  --abricot-800: #A44C1D;
  --creme: #F9F5EC;
  --creme-200: #F2ECE1;
  --creme-300: #E7E0D4;
  --gris: #636C6F;
  /* Fond de page : BLANC. Le crème reste la couleur des COMPOSANTS (champs,
     onglet actif, pastilles, boutons clairs) et des sections de respiration.
     Séparer les deux permet de blanchir la page sans aplatir la hiérarchie. */
  --page: #FFFFFF;
  --confirme: #357855;
  --confirme-bg: #DDEEE5;
  --confirme-clair: #7FCE9F;
  --alerte: #A43B38;
  --alerte-bg: #F6DEDD;

  /* Transparences crème sur fond sombre */
  --glass-08: rgba(249, 245, 236, 0.08);
  --glass-10: rgba(249, 245, 236, 0.10);
  --glass-12: rgba(249, 245, 236, 0.12);
  --glass-14: rgba(249, 245, 236, 0.14);
  --creme-66: rgba(249, 245, 236, 0.66);
  --creme-76: rgba(249, 245, 236, 0.76);
  --creme-86: rgba(249, 245, 236, 0.86);

  /* Rayons */
  --r-badge: 8px;
  --r-field: 14px;
  --r-card: 20px;
  --r-lg: 24px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Ombres */
  /* Le filet 1 px fait partie de l'ombre : toute carte blanche garde ainsi
     ses contours sur le fond blanc, sans toucher aux 10 feuilles de style. */
  --sh-card: 0 0 0 1px rgba(3, 31, 37, 0.06), 0 10px 30px rgba(3, 31, 37, 0.07);
  --sh-dense: 0 0 0 1px rgba(3, 31, 37, 0.06), 0 12px 34px rgba(3, 31, 37, 0.08);
  --sh-photo: 0 18px 44px rgba(3, 31, 37, 0.16);
  --sh-rail: 0 26px 60px rgba(3, 31, 37, 0.28);
  --sh-glass: 0 40px 100px rgba(3, 31, 37, 0.45);
  --sh-hover: 0 16px 40px rgba(3, 31, 37, 0.12);

  /* Typo */
  --ui: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Largeurs de contenu */
  --w-site: 1280px;
  --w-results: 1360px;
  --w-tunnel: 1180px;
  --w-compte: 1200px;
  --gutter: 40px;

  /* Voiles photo */
  --veil-tile: linear-gradient(180deg, rgba(3,31,37,0) 42%, rgba(3,31,37,0.88) 100%);
  --veil-hero: linear-gradient(180deg, rgba(3,31,37,0.72) 0%, rgba(3,31,37,0.34) 34%, rgba(3,31,37,0.86) 100%);
  --veil-band: linear-gradient(90deg, rgba(3,31,37,0.94) 0%, rgba(3,31,37,0.55) 55%, rgba(3,31,37,0.2) 100%);
  --veil-diag: linear-gradient(120deg, rgba(3,52,60,0.9), rgba(3,31,37,0.25) 70%);
  --veil-tunnel: linear-gradient(180deg, rgba(3,31,37,0.9), rgba(3,31,37,0.96) 46%, rgba(3,31,37,0.99));
}

/* ---- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
a { color: var(--sarcelle-700); text-decoration: none; }
a:hover { color: var(--sarcelle-900); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
svg.sf-icon { display: inline-block; vertical-align: middle; flex: none; }

.mono { font-family: var(--mono); font-weight: 500; font-feature-settings: "tnum" 1; }
.caps { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }
.muted { color: var(--gris); }
.strike { text-decoration: line-through; color: var(--gris); font-weight: 400; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---- Conteneurs --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--w-site); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-results { max-width: var(--w-results); }
.wrap-tunnel { max-width: var(--w-tunnel); }
.wrap-compte { max-width: var(--w-compte); }
.section { padding-block: 72px; }
.section-tight { padding-block: 52px; }
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding-block: 52px; }
}

/* ---- En-tête de section ------------------------------------------------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.04em; }
.sec-head .sec-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sarcelle-700); }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--abricot-800); }

/* ---- Boutons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--sarcelle-900);
  --btn-fg: var(--creme);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: background .15s ease-out, color .15s ease-out, transform .1s ease-out;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { color: var(--creme); }
.btn:active { transform: scale(0.98); }
.btn-sarcelle { --btn-bg: var(--sarcelle-900); --btn-fg: var(--creme); }
.btn-sarcelle:hover { background: var(--encre); }
.btn-abricot { --btn-bg: var(--abricot-500); --btn-fg: var(--encre); }
.btn-abricot:hover { background: var(--abricot-200); color: var(--encre); }
.btn-cream { --btn-bg: var(--creme); --btn-fg: var(--encre); }
.btn-cream:hover { background: #fff; color: var(--encre); }
.btn-abricot-soft { --btn-bg: var(--abricot-200); --btn-fg: var(--abricot-800); }
.btn-abricot-soft:hover { background: #fbdcc5; color: var(--abricot-800); }
.btn-glass { --btn-bg: var(--glass-14); --btn-fg: var(--creme); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: var(--glass-12); color: var(--creme); }
.btn-danger { --btn-bg: var(--alerte); --btn-fg: #fff; }
.btn-danger:hover { background: #8f302d; color: #fff; }
.btn-success { --btn-bg: var(--confirme); --btn-fg: #fff; }
.btn-success:hover { background: #2c6347; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--sarcelle-700); }
.btn-ghost:hover { background: var(--sarcelle-100); color: var(--sarcelle-900); }

/* ---- Pastilles & badges ------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 13px; background: var(--creme-200); color: var(--sarcelle-900);
}
.pill-cream { background: var(--creme); color: var(--encre); }
.pill-sarcelle { background: var(--sarcelle-100); color: var(--sarcelle-900); }
.pill-glass { background: var(--glass-12); color: var(--creme); }
.pill-abricot { background: var(--abricot-200); color: var(--abricot-800); }
.pill-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--creme-300); }

.badge-remise {
  display: inline-flex; align-items: center; padding: 6px 11px;
  border-radius: var(--r-pill); background: var(--abricot-500); color: var(--encre);
  font-weight: 800; font-size: 13px; letter-spacing: -0.01em;
}

/* Pastilles de statut (rayon 999) */
.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.status-wait { background: var(--abricot-200); color: var(--abricot-800); }
.status-ok { background: var(--confirme-bg); color: var(--confirme); }
.status-done { background: var(--creme-200); color: var(--gris); }
.status-alert { background: var(--alerte-bg); color: var(--alerte); }

/* ---- Cartes ------------------------------------------------------------- */
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-card); }
.card-lg { border-radius: var(--r-lg); }
.card-pad { padding: 24px 26px; }
.card-hover { transition: box-shadow .15s ease-out, transform .15s ease-out; }
.card-hover:hover { box-shadow: var(--sh-hover); }

/* Verre */
.glass {
  background: var(--glass-10);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-radius: var(--r-xl);
}

/* ---- Champs ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > .field-lbl { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: var(--gris); }
.field-box {
  background: var(--creme); border-radius: var(--r-field); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; box-shadow: inset 0 0 0 1px rgba(3,31,37,0.05);
}
.field-box .sf-icon { color: var(--sarcelle-700); }
.input, .field-box input, .field-box select {
  width: 100%; border: 0; background: transparent; font-family: var(--ui);
  font-weight: 700; font-size: 16px; color: var(--encre); outline: none;
}
.input::placeholder { color: var(--gris); font-weight: 400; }
input.input, select.input, textarea.input {
  background: var(--creme-200); border-radius: var(--r-field); padding: 13px 16px;
  box-shadow: inset 0 0 0 1px rgba(3,31,37,0.06);
}
textarea.input { resize: vertical; line-height: 1.5; }
.iata { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--gris); }

/* ---- Étoiles ------------------------------------------------------------ */
.stars { display: inline-flex; gap: 1px; color: var(--abricot-800); }
.stars .sf-icon { fill: currentColor; }

/* ---- Note (carré vert) -------------------------------------------------- */
.score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; padding: 6px 8px; border-radius: 10px;
  background: var(--confirme); color: #fff; font-family: var(--mono); font-weight: 500; font-size: 15px;
}

/* ---- Pastilles crypto --------------------------------------------------- */
.crypto-row { display: flex; flex-wrap: wrap; gap: 8px; }
.crypto-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  background: var(--sarcelle-100); color: var(--sarcelle-900);
}
.crypto-chip.on-dark { background: var(--glass-10); color: var(--creme-86); }

/* ---- Réassurance -------------------------------------------------------- */
.reassure { display: flex; flex-wrap: wrap; gap: 22px; }
.reassure-item { display: inline-flex; align-items: center; gap: 9px; color: var(--creme-86); font-weight: 500; font-size: 15px; }
.reassure-item .sf-icon { color: var(--abricot-500); }

/* ---- Emplacement photo (placeholder neutre) ----------------------------- */
.photo {
  --ph-grad:
    radial-gradient(120% 120% at 70% 10%, rgba(138,180,184,0.5), transparent 60%),
    linear-gradient(160deg, var(--sarcelle-700), var(--sarcelle-900));
  position: relative; overflow: hidden;
  background-image: var(--ph-grad);
  background-size: cover; background-position: center; background-color: var(--sarcelle-900);
}
/* Une vraie photo se pose par-dessus le dégradé de repli : si le fichier
   manque encore (404), le dégradé sarcelle reste visible. */
.photo::after {
  content: attr(data-caption);
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 0;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; line-height: 1.35;
  color: var(--creme-66); text-transform: uppercase; letter-spacing: 0.04em;
  pointer-events: none; opacity: 0.72;
}
.photo.has-src::after { display: none; }
.veil-tile::before, .veil-hero::before, .veil-band::before, .veil-diag::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.veil-tile::before { background: var(--veil-tile); }
.veil-hero::before { background: var(--veil-hero); }
.veil-band::before { background: var(--veil-band); }
.veil-diag::before { background: var(--veil-diag); }

/* ---- En-tête du site (transparent sur hero, ou solide) ------------------ */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.site-header.solid { position: static; background: var(--sarcelle-900); }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 22px 0; }
.header-inner .wrap-inner { display: contents; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--creme); font-weight: 600; font-size: 15px; }
.nav-links a.dim { color: var(--creme-76); }
.nav-links a:hover { color: #fff; }
.header-spacer { flex: 1; }
/* Sélecteur de langue : bouton + menu déroulant (10 langues). */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 12px; border: 0; border-radius: var(--r-pill);
  background: var(--glass-14); color: var(--creme);
  font-family: var(--ui); font-weight: 700; font-size: 13px;
}
.lang-current:hover { background: var(--glass-12); }
.lang-current:active { transform: scale(0.98); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50;
  min-width: 176px; padding: 6px; border-radius: 16px; background: var(--creme);
  box-shadow: 0 18px 44px rgba(3, 31, 37, 0.22); max-height: 60vh; overflow-y: auto;
}
.lang-list[hidden] { display: none; }
.lang-list a {
  display: block; padding: 9px 12px; border-radius: 10px;
  color: var(--encre); font-weight: 600; font-size: 14px;
}
.lang-list a:hover { background: var(--creme-200); color: var(--encre); }
.lang-list a.is-on { background: var(--sarcelle-100); color: var(--sarcelle-900); font-weight: 800; }

/* Écriture de droite à gauche (arabe, ourdou) : on ne miroite que ce qui
   doit l'être — les montants et données mono restent en LTR. */
[dir="rtl"] .mono, [dir="rtl"] .iata { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .nav-drawer-inner { left: 0; right: auto; }

/* En-tête responsive : sous 900px la navigation passe dans un tiroir ouvert
   par le bouton burger (voir .nav-drawer). */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-pill); background: var(--glass-14); color: var(--creme);
}
.site-header.solid .nav-burger { background: var(--glass-14); }
.nav-burger:active { transform: scale(0.98); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3, 31, 37, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer-inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--sarcelle-900); padding: 76px 26px 26px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.nav-drawer-inner a {
  color: var(--creme); font-weight: 700; font-size: 17px;
  padding: 14px 4px; border-bottom: 1px solid rgba(249, 245, 236, 0.10);
}
.nav-drawer-inner a:last-child { border-bottom: 0; }
.nav-drawer-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-pill); background: var(--glass-12); color: var(--creme);
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .lang-switch { display: none; }
  .header-inner { padding: 16px 0; }
}

/* ---- Logotype ----------------------------------------------------------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--ui); font-weight: 800; letter-spacing: -0.035em;
  color: var(--creme); text-decoration: none; line-height: 1;
}
.logo:hover { color: var(--creme); }
.logo.on-light { color: var(--sarcelle-900); }
.logo .dot {
  width: 0.23em; height: 0.23em; border-radius: 50%;
  background: var(--abricot-500); margin-left: 0.12em; align-self: baseline;
  display: inline-block; transform: translateY(-0.02em);
}

/* ---- Messages flash ----------------------------------------------------- */
.flash { padding: 12px 16px; border-radius: var(--r-field); font-weight: 700; margin-bottom: 14px; }
.flash-info { background: var(--sarcelle-100); color: var(--sarcelle-900); }
.flash-success { background: var(--confirme-bg); color: var(--confirme); }
.flash-error { background: var(--alerte-bg); color: var(--alerte); }

/* ---- Pied de page ------------------------------------------------------- */
.site-footer { background: var(--encre); color: var(--creme-76); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.site-footer h4 { color: var(--creme); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; }
.site-footer a { display: block; color: var(--creme-76); font-weight: 500; padding: 5px 0; }
.site-footer a:hover { color: var(--creme); }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 20px; border-top: 1px solid rgba(249,245,236,0.12);
  font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--creme-66);
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Halos d'ambiance (sections sarcelle) ------------------------------- */
.sarcelle-section {
  position: relative; overflow: hidden;
  background: var(--sarcelle-900); color: var(--creme);
}
.sarcelle-section::before, .sarcelle-section::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sarcelle-section::before { background: radial-gradient(900px 420px at 15% 10%, rgba(235,175,134,0.18), transparent 68%); }
.sarcelle-section::after { background: radial-gradient(820px 400px at 88% 90%, rgba(138,180,184,0.22), transparent 70%); }
.sarcelle-section > * { position: relative; z-index: 1; }

/* ==========================================================================
   MOTEUR DE RECHERCHE (composant partagé — app/templates/_engine.html)
   Rendu à l'identique sur l'accueil (hero) et sur la page de résultats
   (variante .engine-compact). Vivait dans sf-home.css tant qu'une seule
   surface l'affichait ; il est ici depuis que les deux pages le partagent.
   ========================================================================== */

/* ---- Bloc en verre ----------------------------------------------------- */
.engine {
  background: var(--glass-10);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-radius: var(--r-xl); padding: 12px;
  box-shadow: var(--sh-glass); max-width: 1120px;
}
/* Variante « compacte » (page de résultats) : mêmes composants et même
   aspect, mais le moteur épouse la largeur de la page (1360 px) et se pose
   plus près du contenu — il n'est plus la scène principale. */
.engine-compact { max-width: none; padding: 10px; box-shadow: var(--sh-card); }
.engine-compact .engine-tabs { padding: 2px 2px 10px; }
.engine-compact .engine-tab { font-size: 14px; padding: 11px 19px; }
.engine-compact .engine-panel { padding: 0 2px 2px; }
.engine-compact .engine-note { margin: 10px 2px 0; }
.engine-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 4px 14px; }
.engine-tab {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1;
  color: var(--creme); background: var(--glass-12);
  border: 0; border-radius: var(--r-pill); padding: 13px 22px; cursor: pointer;
  transition: background .15s ease-out, color .15s ease-out, transform .1s ease-out;
}
.engine-tab .sf-icon { flex: none; }
.engine-tab.is-active { background: var(--creme); color: var(--encre); }
.engine-tab:active { transform: scale(0.98); }

.engine-panel[hidden] { display: none; }
.engine-panel { padding: 0 4px 4px; }

/* Bascule aller-retour / aller simple + option vols directs */
.flight-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px; padding: 0 2px;
}
.trip-toggle { display: flex; gap: 6px; }
.trip-opt { position: relative; display: inline-flex; }
.trip-opt > span {
  font-family: var(--ui); font-weight: 700; font-size: 13px; line-height: 1;
  color: var(--creme-86); border-radius: var(--r-pill); padding: 9px 16px;
  cursor: pointer; transition: background .15s ease-out, color .15s ease-out;
}
.trip-opt input {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer;
}
.trip-opt.on > span { background: var(--creme); color: var(--encre); }
.direct-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-weight: 600; font-size: 13px; line-height: 1;
  color: var(--creme-86); cursor: pointer;
}
.direct-check input { width: 15px; height: 15px; accent-color: var(--abricot-500); }

/* Grilles de champs — mobile d'abord. Les ratios du handoff passent à
   1040 px : en dessous, six colonnes écraseraient le stepper + la cabine. */
.engine-grid { display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 1039px) {
  .engine-grid { grid-template-columns: 1fr 1fr; }
}
/* Ratios du handoff (README l. 199-201), à la virgule près. */
@media (min-width: 1040px) {
  .engine-grid.flight  { grid-template-columns: 1.15fr 1.15fr .95fr .95fr .9fr auto; }
  .engine-grid.hotel   { grid-template-columns: 1.7fr 1fr 1fr 1fr auto; }
  .engine-grid.package { grid-template-columns: 1.1fr 1.1fr .95fr .95fr .8fr auto; }
}

/* Champ (boîte crème) */
.ef {
  background: var(--creme); border-radius: 16px; padding: 14px 18px; min-width: 0;
}
.ef-lbl {
  display: block; font-family: var(--ui); font-weight: 700; font-size: 10px;
  line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 8px;
}
.ef-val { position: relative; display: flex; align-items: baseline; gap: 8px; }
.ef-val .sf-icon { color: var(--sarcelle-700); flex: none; align-self: center; }
/* Code IATA en mono gris à droite du nom (handoff) — jamais « (CDG) »
   dans le champ lui-même : le suffixe est retiré par site.js. */
.ef-val .iata { flex: none; line-height: 1.2; }
.ef-val .iata:empty { display: none; }
.ef input[type=text],
.ef input[type=date],
.ef select {
  width: 100%; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--ui); font-weight: 700; font-size: 17px; line-height: 1.2;
  color: var(--encre); padding: 0;
}
.ef input::placeholder { color: var(--gris); font-weight: 500; }
.ef input[type=date] {
  font-family: var(--mono); font-weight: 500; font-size: 15px;
  color: var(--encre); color-scheme: light;
}
.ef select { cursor: pointer; }

/* ---- Champ date : déclencheur du calendrier Satofly --------------------
   Sans JavaScript, la boîte garde son libellé + l'input natif (repli).
   Dès que site.js a monté le calendrier, il pose .has-cal : l'input passe
   en `hidden` (il continue de porter la valeur ISO et d'être soumis) et le
   bouton occupe TOUTE la boîte crème — cible confortable au doigt. */
.ef-date .ef-open[hidden] { display: none; }
.ef-date.has-cal { padding: 0; }
.ef-date.has-cal > [data-cal-fallback],
.ef-date.has-cal > input[data-cal-input] { display: none; }
.ef-open {
  display: block; width: 100%; text-align: start; cursor: pointer;
  border: 0; background: transparent; padding: 14px 18px;
  border-radius: 16px; font-family: var(--ui); color: var(--encre);
  transition: background .15s ease-out;
}
.ef-open:hover { background: var(--creme-200); }
.ef-open:focus-visible { outline: 3px solid var(--sarcelle-700); outline-offset: -3px; }
.ef-open .ef-lbl { pointer-events: none; }
.ef-open-val {
  display: block; min-width: 0;
  font-family: var(--ui); font-weight: 700; font-size: 16px; line-height: 1.2;
  color: var(--encre); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 1040px) and (max-width: 1179px) {
  .ef-open-val { font-size: 15px; }
}
.ef-open-val .cal-num { font-family: var(--mono); font-weight: 600; }
.ef-open-val .cal-ph { color: var(--gris); font-weight: 500; }
/* Champ en cours de saisie pendant que le calendrier est ouvert. */
.ef-date.is-active .ef-open { background: var(--sarcelle-100); }

/* Cellule voyageurs / chambres (stepper + cabine) */
.ef-multi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 4px; }
.ef-sep { color: var(--gris); font-weight: 700; }
.ef-cabin {
  font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1.2;
  color: var(--encre); border: 0; background: transparent;
}
/* La maquette pose un simple texte « 2 · Éco » dans une colonne à .9fr ;
   le site y loge de vrais contrôles. On garde le ratio du handoff et on
   resserre les contrôles pour tenir sur une ligne dès 1280 px. */
@media (min-width: 1040px) {
  .ef-pax .ef-multi { gap: 8px; }
  .ef-pax .ef-sep { display: none; }
  .ef-pax .stepper { gap: 5px; }
  .ef-pax .stepper-btn { width: 24px; height: 24px; font-size: 15px; }
  .ef-pax .stepper-val { width: 1.6ch; font-size: 16px; }
  .ef-cabin { font-size: 15px; }
}
@media (min-width: 1040px) and (max-width: 1179px) {
  .ef-cabin { font-size: 14px; }
}
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper-btn {
  width: 26px; height: 26px; flex: none; border: 0; border-radius: var(--r-pill);
  background: var(--creme-200); color: var(--sarcelle-900);
  font-family: var(--ui); font-weight: 700; font-size: 16px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease-out;
}
.stepper-btn:hover { background: var(--sarcelle-100); }
.stepper-btn:active { transform: scale(0.94); }
.stepper-val {
  width: 2ch; border: 0; background: transparent; text-align: center;
  font-family: var(--ui); font-weight: 700; font-size: 17px; line-height: 1.2;
  color: var(--encre); padding: 0; -moz-appearance: textfield;
}
.stepper-val::-webkit-outer-spin-button,
.stepper-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Bouton Chercher (bloc pleine hauteur, rayon 16 pour épouser la rangée) */
.ef-submit { display: flex; }
.engine-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 64px;
  font-family: var(--ui); font-weight: 800; font-size: 17px; line-height: 1;
  color: var(--encre); background: var(--abricot-500);
  border: 0; border-radius: 16px; padding: 0 30px; cursor: pointer;
  transition: background .15s ease-out, transform .1s ease-out;
}
.engine-submit .sf-icon { flex: none; }
.engine-submit:hover { background: var(--abricot-200); }
.engine-submit:active { transform: scale(0.98); }
.engine-submit.is-loading { opacity: .85; }
@media (max-width: 1039px) {
  .ef-submit { grid-column: 1 / -1; }
  .engine-submit { min-height: 54px; }
}

.engine-note {
  margin: 12px 4px 2px; font-family: var(--ui); font-weight: 400;
  font-size: 13px; line-height: 1.5; color: var(--creme-76);
}

/* Spinner d'envoi (site.js ajoute .sf-spinner) */
.sf-spinner {
  width: 15px; height: 15px; flex: none; display: inline-block;
  border-radius: 50%; border: 2px solid rgba(3, 31, 37, 0.25);
  border-top-color: var(--encre); animation: sf-spin .7s linear infinite;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* Autocomplétion des lieux (DOM injecté par site.js) */
.ac-anchor { position: relative; }
.ac-list {
  position: absolute; z-index: 60; left: -16px; right: -16px;
  top: calc(100% + 14px); background: #fff; border-radius: 16px;
  box-shadow: var(--sh-photo); padding: 6px; max-height: 288px; overflow-y: auto;
  /* La liste peut être plus large que le champ pour laisser respirer les
     noms d'aéroport, sans jamais déborder de la fenêtre. */
  min-width: 268px; max-width: min(380px, 88vw);
}
.ac-opt {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: 12px; cursor: pointer;
}
.ac-opt.on { background: var(--sarcelle-100); }
.ac-ic { display: flex; flex: none; color: var(--sarcelle-700); }
.ac-txt { display: flex; flex-direction: column; min-width: 0; }
/* Une entrée = une ligne : les noms longs (« Oranjestad — Queen Beatrix
   International Airport ») sont tronqués au lieu de tripler la hauteur. */
.ac-label {
  font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1.25;
  color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-label strong { color: var(--sarcelle-900); }
.ac-sub {
  font-family: var(--ui); font-weight: 400; font-size: 12px; line-height: 1.3;
  color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-sub .mono { font-family: var(--mono); }
.ac-empty { padding: 12px; color: var(--gris); font-size: 14px; }
/* Liste retournée au-dessus du champ quand la place manque en dessous
   (classe posée par site.js). */
.ac-list.is-up { top: auto; bottom: calc(100% + 8px); }

/* ==========================================================================
   CALENDRIER SATOFLY (DOM injecté par site.js — module « calendrier »)
   Sélecteur de plage maison qui remplace le calendrier natif du navigateur
   dans le moteur de recherche. Le panneau est monté DANS <body>, en
   `position: fixed` : aucun ancêtre (moteur en verre avec backdrop-filter,
   bandeau de résultats, hero) ne peut le rogner. Sous 720 px il devient une
   feuille du bas, pleine largeur, avec voile.
   ========================================================================== */
.cal-veil {
  position: fixed; inset: 0; z-index: 90; background: rgba(3, 31, 37, 0.42);
  opacity: 0; transition: opacity .16s ease-out; pointer-events: none;
}
.cal-pop {
  position: fixed; z-index: 91; top: 0; inset-inline-start: 0;
  background: #fff; border-radius: 22px; box-shadow: var(--sh-photo);
  padding: 16px 16px 12px; font-family: var(--ui); color: var(--encre);
  max-height: calc(100vh - 24px); overflow-y: auto;
  /* Le panneau ne prend jamais plus que l'écran, même en deux mois. */
  max-width: min(660px, calc(100vw - 24px));
}
.cal-pop[hidden] { display: none; }
@media (min-width: 720px) { .cal-pop { width: 620px; } }

/* ---- En-tête : navigation de mois -------------------------------------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal-head .cal-title-row { flex: 1 1 auto; display: flex; min-width: 0; }
/* Mois unique : le titre vient se loger entre les deux chevrons. */
.cal-head .cal-title-row .cal-mtitle { flex: 1 1 auto; margin: 0; font-size: 16px; }
.cal-nav {
  width: 38px; height: 38px; flex: none; border: 0; border-radius: var(--r-pill);
  background: var(--creme-200); color: var(--sarcelle-900); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease-out;
}
.cal-nav:hover:not(:disabled) { background: var(--sarcelle-100); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-nav:focus-visible { outline: 3px solid var(--sarcelle-700); outline-offset: 2px; }
.cal-nav svg { display: block; }
/* Fermeture (feuille du bas mobile). */
.cal-close { display: none; }

/* ---- Mois -------------------------------------------------------------- */
.cal-body { display: flex; gap: 22px; }
.cal-month { flex: 1 1 0; min-width: 0; }
.cal-mtitle {
  font-family: var(--ui); font-weight: 800; font-size: 15px; line-height: 1.2;
  text-align: center; color: var(--encre); margin: 2px 0 10px;
}
.cal-mtitle .cal-num { font-family: var(--mono); font-weight: 600; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow {
  font-family: var(--ui); font-weight: 700; font-size: 10px; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris);
  text-align: center; padding: 6px 0 8px;
}

/* ---- Jours ------------------------------------------------------------- */
.cal-cell { position: relative; }
/* Bande de plage, dessinée SOUS la pastille du jour pour que la sélection
   soit continue d'un jour à l'autre (propriétés logiques : RTL compris). */
.cal-cell.is-in::before {
  content: ""; position: absolute; inset-block: 3px; inset-inline: 0;
  background: var(--sarcelle-100);
}
.cal-cell.is-s::before {
  inset-inline-start: 50%;
  border-start-start-radius: var(--r-pill); border-end-start-radius: var(--r-pill);
}
.cal-cell.is-e::before {
  inset-inline-end: 50%;
  border-start-end-radius: var(--r-pill); border-end-end-radius: var(--r-pill);
}
.cal-day {
  position: relative; z-index: 1; display: flex; align-items: center;
  justify-content: center; width: 100%; aspect-ratio: 1 / 1; min-height: 38px;
  border: 0; background: transparent; border-radius: var(--r-pill);
  font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1;
  color: var(--encre); cursor: pointer;
  transition: background .12s ease-out, color .12s ease-out;
}
.cal-day:hover:not([aria-disabled="true"]) { background: var(--creme-300); }
.cal-day:focus-visible { outline: 3px solid var(--sarcelle-700); outline-offset: -3px; }
.cal-day[aria-disabled="true"] { color: var(--gris); opacity: .38; cursor: default; }
.cal-day.is-empty { visibility: hidden; }
/* Aujourd'hui : pastille abricot sous le chiffre. */
.cal-day.is-today::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px;
  margin-inline-start: -2px; border-radius: var(--r-pill);
  background: var(--abricot-500);
}
/* Extrémités de la plage : pleines en sarcelle 900. */
.cal-day.is-edge,
.cal-day.is-edge:hover { background: var(--sarcelle-900); color: var(--creme); font-weight: 700; }
.cal-day.is-edge.is-today::after { background: var(--abricot-500); }
/* Aperçu au survol entre l'aller choisi et le jour pointé. */
.cal-cell.is-preview::before { background: var(--creme-200); }
.cal-day.is-preview-edge { background: var(--sarcelle-100); }

/* ---- Pied : durée + validation ----------------------------------------- */
.cal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 10px; padding-top: 12px;
  border-top: 1px solid var(--creme-300);
}
.cal-info {
  font-family: var(--ui); font-weight: 600; font-size: 13px; line-height: 1.3;
  color: var(--gris); min-width: 0;
}
.cal-info .cal-len {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sarcelle-100); color: var(--sarcelle-900);
  border-radius: var(--r-pill); padding: 6px 12px; font-weight: 700;
}
.cal-info .cal-num { font-family: var(--mono); font-weight: 600; }
.cal-acts { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.cal-clear {
  border: 0; background: transparent; cursor: pointer; padding: 9px 12px;
  border-radius: var(--r-pill); font-family: var(--ui); font-weight: 700;
  font-size: 13px; color: var(--gris);
}
.cal-clear:hover { background: var(--creme-200); color: var(--encre); }
.cal-apply {
  border: 0; cursor: pointer; padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--sarcelle-900); color: var(--creme);
  font-family: var(--ui); font-weight: 800; font-size: 14px; line-height: 1;
  transition: background .15s ease-out, transform .1s ease-out;
}
.cal-apply:hover { background: var(--sarcelle-700); }
.cal-apply:active { transform: scale(0.98); }
.cal-clear:focus-visible, .cal-apply:focus-visible {
  outline: 3px solid var(--sarcelle-700); outline-offset: 2px;
}

/* ---- Feuille du bas (mobile) ------------------------------------------- */
@media (max-width: 719px) {
  .cal-veil.is-on { opacity: 1; pointer-events: auto; }
  .cal-pop.is-sheet {
    inset: auto 0 0 0; inset-inline: 0; width: 100%; max-width: none;
    border-radius: 22px 22px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    max-height: 88vh; box-shadow: 0 -18px 44px rgba(3, 31, 37, 0.28);
  }
  .cal-pop.is-sheet .cal-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: none; border: 0; border-radius: var(--r-pill);
    background: var(--creme-200); color: var(--sarcelle-900); cursor: pointer;
  }
  .cal-pop.is-sheet .cal-sheet-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 2px 0 8px;
  }
  .cal-pop.is-sheet .cal-sheet-title {
    font-family: var(--ui); font-weight: 800; font-size: 16px; color: var(--encre);
  }
  .cal-day { min-height: 44px; font-size: 15px; }
  .cal-foot { position: sticky; bottom: 0; background: #fff; }
  .cal-apply { padding: 13px 26px; font-size: 15px; }
}
.cal-sheet-head { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cal-veil, .cal-day, .cal-apply, .ef-open { transition: none; }
}

/* ---- Utilitaires grille ------------------------------------------------- */
.grid-auto { display: grid; gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
