/* Talaria — WebApp : recherche (3.1), carte des prix (3.2), résultats de vols (3.3) + composants de formulaire partagés */

/* ---------- Cases à cocher / curseurs ---------- */
.case { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--color-bordure-controle); background: transparent; color: var(--color-texte-sur-marque); }
.case .icon { width: 16px; height: 16px; opacity: 0; }
.case[aria-checked='true'] { background: var(--color-fond-marque); border-color: var(--color-fond-marque); }
.case[aria-checked='true'] .icon { opacity: 1; }
.ligne-case { display: flex; align-items: center; gap: var(--espace-sm); min-height: 36px; width: 100%; text-align: left; }
.ligne-case > span:nth-child(2) { flex: 1; font: 400 14px/1.2 var(--font-corps); }
.ligne-case > small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.range-wm { width: 100%; height: 24px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --pct: 70%; }
.range-wm::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--color-fond-marque) var(--pct), var(--color-fond-marque-subtil) var(--pct)); }
.range-wm::-moz-range-track { height: 6px; border-radius: 3px; background: var(--color-fond-marque-subtil); }
.range-wm::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--color-fond-marque); }
.range-wm::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--color-fond-marque); box-shadow: 0 4px 10px rgba(79, 32, 62, 0.25); }
.range-wm::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--color-fond-marque); }
.range-wm:focus-visible { box-shadow: none; }
.range-wm:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--color-fond-accent-lavande); }

/* ---------- 3.1 Recherche — panneau ouvert ---------- */
.fond-voile { position: fixed; left: var(--sidebar-w); right: 0; top: var(--topbar-h); bottom: 0; z-index: 40; background: rgba(31, 10, 23, 0.4); display: flex; justify-content: center; align-items: flex-start; padding: var(--espace-xl) var(--espace-lg); overflow-y: auto; }
.panneau-recherche { width: 1000px; max-width: 100%; display: flex; flex-direction: column; gap: var(--espace-lg); padding: var(--espace-xl); border-radius: var(--rayon-xl); background: var(--color-fond-page); box-shadow: var(--ombre-flottante); animation: view-enter 0.25s ease both; }
.panneau-recherche__types { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-xs); flex-wrap: wrap; }
.panneau-recherche__types > div { display: flex; gap: 8px; flex-wrap: wrap; }
.criteres { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-xs); padding: 8px; background: #fff; border: 1px solid var(--color-bordure-defaut); border-radius: var(--rayon-pilule); }
.critere { display: flex; align-items: center; gap: var(--espace-sm); padding: var(--espace-sm) var(--espace-md); border-radius: var(--rayon-pilule); min-width: 0; text-align: left; border: 2px solid transparent; }
.critere .icon { color: var(--color-texte-principal); }
.critere > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.critere small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.critere b, .critere input { font: 500 16px/1.2 var(--font-titre); border: 0; outline: 0; background: transparent; padding: 0; width: 100%; min-width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; box-shadow: none; }
.critere--actif { background: var(--color-fond-marque-tres-leger); border-color: var(--color-fond-marque); }
/* suggestions de villes sous un critère (Départ) : plus larges que le critère */
.critere.ac .ac-liste { min-width: 300px; }
.critere--depart { width: 176px; flex: 0 1 176px; } .critere--dest { width: 200px; flex: 0 1 200px; } .critere--dates { width: 184px; flex: 0 1 184px; } .critere--voy { width: 140px; flex: 0 1 150px; }
.criteres .btn--l { padding: 0 var(--espace-lg); flex: none; }
.suggestions { display: flex; gap: var(--espace-xl); align-items: flex-start; }
.suggestions__liste { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-2xs); }
.suggestions__cote { width: 340px; flex: none; display: flex; flex-direction: column; gap: var(--espace-lg); }
.suggestion { display: flex; align-items: center; gap: var(--espace-md); width: 100%; padding: var(--espace-sm); border-radius: var(--rayon-md); text-align: left; }
.suggestion > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggestion b { font: 500 16px/1.2 var(--font-titre); }
.suggestion small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.suggestion .prix { font: 500 16px/1.2 var(--font-titre); white-space: nowrap; }
.suggestion:hover, .suggestion.actif { background: var(--color-fond-marque-tres-leger); }
.suggestion .pastille { background: var(--color-fond-marque-tres-leger); }
.suggestion.actif .pastille { background: var(--color-fond-accent-lavande); }
.recent { display: flex; align-items: center; gap: var(--espace-sm); padding: var(--espace-xs); border-radius: var(--rayon-md); text-align: left; width: 100%; }
.recent:hover { background: var(--color-fond-marque-tres-leger); }
.recent > div { display: flex; flex-direction: column; }
.recent b { font: 500 16px/1.2 var(--font-titre); }
.recent small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.explorer { display: flex; align-items: center; gap: var(--espace-md); padding: var(--espace-md) var(--espace-lg); border-radius: var(--rayon-lg); background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }
.explorer > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.explorer b { font: 500 16px/1.2 var(--font-titre); }
.explorer .pastille { width: 52px; height: 52px; background: var(--color-fond-sur-marque); color: var(--color-texte-sur-marque); }
.raccourcis { display: flex; gap: var(--espace-md); flex-wrap: wrap; }
.raccourcis > span { display: inline-flex; align-items: center; gap: var(--espace-xs); font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }

/* ---------- 3.2 Explorer — carte des prix ---------- */
.panneau-explorer { display: flex; flex-direction: column; gap: var(--espace-md); width: 420px; flex: none; padding: var(--espace-lg); overflow-y: auto; border-right: 1px solid var(--color-bordure-subtile); }
.panneau-explorer .criteres-2 { display: flex; gap: var(--espace-sm); }
.budget-lib { display: flex; justify-content: space-between; font: 500 16px/1.2 var(--font-titre); }
.directs { display: flex; align-items: center; gap: var(--espace-sm); padding: var(--espace-sm) var(--espace-md); border-radius: var(--rayon-md); background: var(--color-fond-marque-tres-leger); }
.directs > div { flex: 1; display: flex; flex-direction: column; }
.directs b { font: 500 16px/1.2 var(--font-titre); }
.resultats-barre { display: flex; align-items: center; justify-content: space-between; font: 500 16px/1.2 var(--font-titre); }
.dest { display: flex; align-items: center; gap: var(--espace-md); width: 100%; padding: var(--espace-sm); text-align: left; background: #fff; border: 1px solid var(--color-bordure-subtile); border-radius: var(--rayon-lg); transition: box-shadow 0.15s ease; }
.dest:hover { box-shadow: var(--ombre-carte); }
.dest.sel { border: 2px solid var(--color-fond-marque); padding: 11px; }
.dest img { width: 72px; height: 72px; flex: none; border-radius: var(--rayon-md); object-fit: cover; }
.dest > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dest b { font: 500 16px/1.2 var(--font-titre); }
.dest small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.dest .prix { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.dest .prix b { font: 500 24px/1.2 var(--font-titre); }
.monde { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #e7dfec; overflow: hidden; }
.monde-scene { position: absolute; left: 0; top: 0; width: 900px; height: 943px; transform-origin: 0 0; transition: transform 0.25s ease; }
.continent { position: absolute; background: #fcf9f1; border: 1px solid var(--color-bordure-subtile); }
.prix-pastille {
    position: absolute; display: inline-flex; align-items: center; padding: var(--espace-2xs) var(--espace-sm); border-radius: var(--rayon-pilule); background: #fff;
    border: 1px solid var(--color-bordure-defaut); font: 500 16px/1.2 var(--font-titre); filter: drop-shadow(0 10px 15px rgba(79, 32, 62, 0.1)); transition: transform 0.15s ease;
}
.prix-pastille:hover { transform: scale(1.08); z-index: 3; }
.prix-pastille.sel { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); border: 3px solid var(--color-fond-accent-lavande); z-index: 4; }
.depart-point { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #c80000; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(79, 32, 62, 0.2); }
.depart-label { position: absolute; font: 500 13px/1.4 var(--font-corps); }
.trajet-svg { position: absolute; max-width: none; pointer-events: none; }
.fiche-dest { position: absolute; left: 40px; bottom: 24px; z-index: 6; width: 320px; max-height: calc(100% - 100px); overflow-y: auto; border-radius: var(--rayon-xl); background: #fff; box-shadow: var(--ombre-flottante); }
.fiche-dest > img { width: 100%; height: 110px; object-fit: cover; }
.fiche-dest__c { display: flex; flex-direction: column; gap: var(--espace-sm); padding: var(--espace-md) var(--espace-lg); }
.fiche-dest__titre { display: flex; align-items: center; justify-content: space-between; }
.fiche-dest__titre > div { display: flex; flex-direction: column; }
.tags-ligne { display: flex; flex-wrap: wrap; gap: 6px; }
.fiche-dest .gros { font: 600 32px/1.05 var(--font-titre); letter-spacing: -0.48px; }
.fiche-dest__boutons { display: flex; flex-direction: column; gap: var(--espace-xs); }
.legende-carte { position: absolute; right: var(--espace-lg); bottom: var(--espace-lg); z-index: 5; display: flex; align-items: center; gap: var(--espace-sm); padding: var(--espace-xs) var(--espace-md); border-radius: var(--rayon-pilule); background: #fff; filter: drop-shadow(0 2px 3px rgba(79, 32, 62, 0.06)); font: 500 13px/1.4 var(--font-corps); }
.legende-carte i { width: 10px; height: 10px; border-radius: 50%; background: #c80000; }
.legende-carte i.b { background: var(--color-fond-marque); }
.carte-boutons { position: absolute; right: var(--espace-lg); top: var(--espace-lg); z-index: 5; display: flex; flex-direction: column; gap: var(--espace-xs); }
.filtres-carte { position: absolute; left: var(--espace-lg); top: var(--espace-lg); z-index: 5; display: flex; gap: var(--espace-xs); }
.filtres-carte .pill { background: var(--color-fond-page); filter: drop-shadow(0 10px 15px rgba(79, 32, 62, 0.1)); border-color: transparent; }
.filtres-carte .pill[aria-pressed='true'] { background: var(--color-fond-marque); }

/* ---------- 3.3 Résultats — vols ---------- */
.barre-recherche { display: flex; align-items: center; gap: var(--espace-xs); padding: 8px; background: #fff; border: 1px solid var(--color-bordure-defaut); border-radius: var(--rayon-pilule); }
.barre-recherche .critere { flex: 1; padding: var(--espace-xs) var(--espace-md); }
.calendrier-prix { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--espace-xs); }
.jour { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--espace-sm); border-radius: var(--rayon-md); background: #fff; border: 1px solid var(--color-bordure-subtile); transition: box-shadow 0.15s ease; }
.jour small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.jour b { font: 500 16px/1.2 var(--font-titre); }
.jour:hover { box-shadow: var(--ombre-carte); }
.jour[aria-pressed='true'] { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }
.jour[aria-pressed='true'] small { color: var(--color-texte-sur-marque); }
.jour.moins b { color: var(--color-texte-succes); }
.jour.moins[aria-pressed='true'] b { color: var(--color-texte-sur-marque); }
.vols-colonnes { display: flex; gap: var(--espace-lg); align-items: flex-start; }
.filtres-vols { display: flex; flex-direction: column; gap: var(--espace-lg); width: 250px; flex: none; }
.filtres-vols__titre { display: flex; align-items: center; justify-content: space-between; }
.filtre-bloc { display: flex; flex-direction: column; gap: var(--espace-xs); padding-top: var(--espace-md); border-top: 1px solid var(--color-bordure-subtile); }
.filtre-bloc > b, .filtre-bloc .t { font: 500 16px/1.2 var(--font-titre); }
.filtre-bloc .t { display: flex; justify-content: space-between; }
.histo { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.histo i { flex: 1; border-radius: 3px 3px 0 0; background: var(--color-fond-marque-subtil); }
.histo i.on { background: var(--color-fond-accent-lavande); }
.vols-resultats { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-md); }
.tris { display: flex; gap: var(--espace-xs); }
.tri { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: var(--espace-sm) var(--espace-md); text-align: left; border-radius: var(--rayon-md); background: #fff; border: 1px solid var(--color-bordure-subtile); }
.tri b { font: 500 16px/1.2 var(--font-titre); }
.tri small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.tri[aria-pressed='true'] { border: 2px solid var(--color-fond-marque); padding: 11px 15px; }
.compteur-vols { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); }
.vol { display: flex; overflow: hidden; border-radius: var(--rayon-lg); background: #fff; border: 1px solid var(--color-bordure-subtile); }
.vol.best { border: 2px solid var(--color-fond-marque); box-shadow: var(--ombre-carte); }
.vol__trajets { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-md); padding: var(--espace-md) var(--espace-lg); }
.vol__badges { display: flex; gap: var(--espace-xs); }
.tag--bord { background: #fff; border: 1px solid var(--color-texte-succes); color: var(--color-texte-succes); }
.trajet { display: flex; align-items: center; gap: var(--espace-md); }
.trajet__cie { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--rayon-md); background: var(--color-fond-marque-tres-leger); font: 500 13px/1.4 var(--font-corps); }
.trajet__h { display: flex; flex-direction: column; }
.trajet__h b { font: 500 24px/1.2 var(--font-titre); white-space: nowrap; }
.trajet__h small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.trajet__h--fin { align-items: flex-end; }
.trajet__duree { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); white-space: nowrap; }
.trajet__ligne { display: flex; align-items: center; width: 100%; }
.trajet__ligne::before, .trajet__ligne::after { content: ''; flex: 1; height: 2px; background: var(--color-bordure-controle); }
.trajet__ligne i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-fond-marque); }
.trajet__direct { color: var(--color-texte-succes); }
.vol__cies { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.vol__prix { display: flex; flex-direction: column; justify-content: center; gap: var(--espace-xs); width: 210px; flex: none; padding: var(--espace-md) var(--espace-lg); background: var(--color-fond-page); border-left: 1px solid var(--color-bordure-subtile); }
.vol.best .vol__prix { background: var(--color-fond-marque-tres-leger); }
.vol__prix .gros { font: 600 32px/1.05 var(--font-titre); letter-spacing: -0.48px; white-space: nowrap; }
.vols-lateral { display: flex; flex-direction: column; gap: var(--espace-md); width: 280px; flex: none; }
.mini-carte { position: relative; height: 220px; overflow: hidden; border-radius: var(--rayon-lg); background: #e7dfec; }
.mini-carte .continent { border-radius: 40px; }
.mini-carte svg { position: absolute; left: 90px; top: 48px; overflow: visible; }
.mini-carte .pt { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: var(--color-fond-marque); }
.mini-carte .pt.r { background: #c80000; }
.mini-carte .legende { position: absolute; left: 12px; bottom: 12px; padding: var(--espace-2xs) var(--espace-sm); border-radius: var(--rayon-pilule); background: #fff; font: 500 13px/1.4 var(--font-corps); }
.alerte { display: flex; flex-direction: column; gap: var(--espace-sm); padding: var(--espace-lg); border-radius: var(--rayon-lg); background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }
.alerte__haut { display: flex; align-items: center; justify-content: space-between; font: 500 16px/1.2 var(--font-titre); }
.alerte .toggle[aria-checked='true'] { background: var(--color-fond-accent-lavande); }
.alerte .toggle[aria-checked='false'] { background: rgba(255, 255, 255, 0.3); }

/* Champs de saisie dans la barre de recherche (départ, dates) */
.dates-champs { display: flex; gap: 4px; align-items: center; }
.dates-champs input { font: 500 14px/1.2 var(--font-titre); width: 50%; min-width: 0; }
.dates-champs input:disabled { opacity: 0.4; }
.critere--dates { flex: 0 1 260px; width: 260px; }

/* Carte de l'itinéraire du vol sélectionné (MapLibre) */
.mini-carte .mini-carte__map { position: absolute; inset: 0; width: 100%; height: 100%; } /* plus spécifique que .maplibregl-map (position: relative) */
.mini-carte .legende { z-index: 2; max-width: calc(100% - 24px); }
.pt-vol { display: block; padding: 2px 6px; border-radius: 999px; background: #fff; border: 2px solid var(--color-fond-marque); color: var(--color-fond-marque); font: 700 11px/1.2 var(--font-corps); box-shadow: 0 2px 6px rgba(79, 32, 62, 0.25); }
.pt-vol--dep { background: #c80000; border-color: #fff; color: #fff; }
.pt-vol--arr { background: var(--color-fond-marque); border-color: #fff; color: #fff; }
.vol[data-actif] { box-shadow: 0 0 0 2px var(--color-fond-marque); }

/* Voyageurs : boutons - et + (1 à 9), le nombre au milieu */
.critere--voy { width: auto; flex: 0 1 190px; }
.voy-pas { display: inline-flex; align-items: center; gap: 6px; }
.voy-pas b { width: auto; white-space: nowrap; }
.voy-pas button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--color-bordure-defaut); background: var(--color-fond-surface-pleine); color: var(--color-fond-marque); cursor: pointer; }
.voy-pas button:hover:not(:disabled) { background: var(--color-fond-marque-tres-leger); }
.voy-pas button:disabled { opacity: 0.4; cursor: default; }
.voy-pas button:focus-visible { outline: none; box-shadow: var(--anneau-focus); }
