/* Modernist — jetons et composants du systeme de design.
   Source de verite de l'apparence : reglez ici, pas ailleurs.

   La police doit couvrir l'hebreu. Archivo, employee un temps, ne
   contient que des caracteres latins : tout le texte du site s'affichait
   alors dans la police systeme de repli, et les graisses demandees ne
   s'appliquaient que si celle-ci en disposait — une ligne mise en gras
   restait maigre sans qu'on comprenne pourquoi.

   Rubik couvre l'hebreu et le latin, en 400 a 800.

   Elle est chargee par un <link> dans chaque page plutot que par @import :
   un import bloque le rendu le temps de son telechargement, un lien se
   charge en parallele. */

:root {
  --color-bg: #fbfcfd;
  --color-surface: #ffffff;
  --color-text: #0f1729;
  --color-accent: #133196;
  --color-accent-2: #d99a0c;
  --color-divider: #dfe5ec;
  --color-neutral-100: #f8fafc; --color-neutral-200: #eef2f6; --color-neutral-300: #dfe5ec;
  --color-neutral-400: #b8c2d0; --color-neutral-500: #8b96a8; --color-neutral-600: #65758b;
  --color-neutral-700: #47536a; --color-neutral-800: #29334a; --color-neutral-900: #0f1729;
  --color-accent-100: #e6ebf9; --color-accent-200: #c2cef2; --color-accent-300: #93a8e6;
  --color-accent-400: #5c7ad9; --color-accent-500: #2e54c8; --color-accent-600: #133196;
  --color-accent-700: #0f2678; --color-accent-800: #0b1c5c; --color-accent-900: #071240;
  --font-heading: "Heebo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Assistant", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 12px; --radius-md: 16px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.08);
  --shadow-md: 0 4px 10px rgba(19, 49, 150, 0.08), 0 2px 4px rgba(15, 23, 41, 0.06);
  --shadow-lg: 0 20px 40px rgba(19, 49, 150, 0.12), 0 8px 16px rgba(15, 23, 41, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 400; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
h1 { font-size: 42px; }
a { color: var(--color-accent); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.2; color: var(--color-text); background: transparent; border: 1px solid transparent; padding: 14px calc(var(--space-3) * 1.2); border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: scale(1.02); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent-500); color: var(--color-bg); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }
.input { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--color-text); caret-color: var(--color-accent); background: var(--color-neutral-100); border: 1.5px solid var(--color-neutral-400); border-radius: var(--radius-sm); }
.input::placeholder { font-weight: 400; color: var(--color-neutral-600); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px var(--color-accent-200); }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-divider); }
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 4px var(--color-bg); }
.card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); }
.elev-md { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); background: color-mix(in srgb, var(--color-bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-divider); position: sticky; top: 0; z-index: 50; }
.nav-brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; }
.nav a:not(.nav-brand):not(.btn) { color: var(--color-neutral-700); text-decoration: none; font-size: 16px; border-radius: 999px; padding: 8px 14px; transition: background .15s, color .15s; }
.nav a:not(.nav-brand):not(.btn):hover, .nav a[aria-current='page']:not(.btn) { background: var(--color-neutral-200); color: var(--color-text); }

/* Selecteur de langue.

   Un lien direct tant qu'il n'y a qu'une autre langue -- rien a styler.
   Au-dela, i18n.selecteur() rend un <details> : ces regles l'habillent.
   Ecrites AVANT la troisieme langue, pour qu'elle n'arrive pas sur une
   liste nue.

   Aucun JavaScript : <details> s'ouvre au clavier comme a la souris, et
   la page fonctionne sans script. Il ne se referme pas en cliquant a
   cote -- c'est le prix, et il est petit devant une dependance de plus. */
.selecteur-langue { position: relative; display: inline-block; }
.selecteur-langue > summary { cursor: pointer; list-style: none; }
.selecteur-langue > summary::-webkit-details-marker { display: none; }
.selecteur-langue__liste {
  position: absolute;
  /* inset-inline-start : le bord du debut de ligne. A gauche en lecture
     latine, a droite en hebreu -- une seule declaration pour les deux. */
  inset-inline-start: 0;
  top: calc(100% + 6px);
  z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 132px;
  padding: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.selecteur-langue__liste a {
  padding: 7px 12px; border-radius: 8px;
  color: var(--color-text); text-decoration: none;
  font-size: 15px; white-space: nowrap;
}
.selecteur-langue__liste a:hover { background: var(--color-neutral-200); }

/* Suggestions cliquables sous un resultat vide.

   Quand la recherche ne rend rien, le serveur sait POURQUOI et ce qui
   existe a la place : d'autres durees, un nombre d'escales, une fenetre
   de dates. C'etait annonce en texte -- « on a du 28 nuits, essayez
   28 nuits » -- et le visiteur devait recalculer une date de retour a la
   main. Ces boutons remplissent le formulaire et relancent. */
.suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.suggestion {
  padding: 8px 14px;
  border: 1px solid var(--color-accent, #2a4cd7);
  border-radius: 999px;
  background: transparent;
  color: var(--color-accent, #2a4cd7);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.suggestion:hover { background: var(--color-accent, #2a4cd7); color: #fff; }

/* La sortie vers Aviasales quand nous n'avons rien : pleine, pas creuse
   comme les suggestions -- c'est l'action qui repond vraiment. */
.suggestion--sortie { background: var(--color-accent, #2a4cd7); color: #fff; text-decoration: none; }
.suggestion--sortie:hover { filter: brightness(1.08); }
.notice__source { margin: 14px 0 0; font-size: 14px; color: var(--color-neutral-600, #6b7280); }
