/* ===================== Page compagnie : écran fixe, sans défilement ===================== */
body.fixe { height: 100dvh; overflow: hidden; overscroll-behavior: none;
  background: #0b1437 url('/car.jpg') center / cover fixed; }
body.fixe::before { content: ""; position: fixed; inset: 0; backdrop-filter: blur(24px) brightness(.45); -webkit-backdrop-filter: blur(24px) brightness(.45); }
body.fixe #app { position: relative; height: 100dvh; }
.appli { height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; background: var(--fond); overflow: hidden; position: relative; }
@media (min-width: 560px) { .appli { height: calc(100dvh - 40px); margin-top: 20px; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); } }

/* Photo en tête, lent zoom continu, se réduit après la 1re étape */
.hero { position: relative; flex: none; height: 31dvh; min-height: 190px; color: #fff; overflow: hidden; transition: height .5s cubic-bezier(.2,.8,.2,1), min-height .5s; }
.hero.reduit { height: 108px; min-height: 108px; }
.hero-photo { position: absolute; inset: -4%; background-size: cover; background-position: center 62%; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -3%); } }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 70%, transparent) 0%, color-mix(in srgb, var(--c1) 25%, transparent) 45%, color-mix(in srgb, var(--c1) 85%, #000) 100%); }
.hero-contenu { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px 40px; }
.hero .accroche { margin: 0; font-size: clamp(24px, 7vw, 32px); text-shadow: 0 2px 16px rgba(0,0,0,.35); transition: opacity .35s, transform .35s; animation: monte .7s cubic-bezier(.2,.8,.2,1) .1s both; }
.hero.reduit .accroche { opacity: 0; transform: translateY(10px); pointer-events: none; }
.hero .lien-billet { background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Corps : progression, écrans, pied */
.corps { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: -26px; position: relative; z-index: 2;
  background: var(--fond); border-radius: 26px 26px 0 0; }
.corps .progression { box-shadow: none; background: transparent; padding: 14px 16px 6px; border-radius: 0; }
.corps .pistes { flex: 1; min-height: 0; height: auto !important; margin: 0; align-items: stretch; }
.corps .piste { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px 18px; scrollbar-width: none; }
.corps .piste::-webkit-scrollbar { display: none; }
.ecran-titre h2 { font-size: 22px; }

.pied { flex: none; position: relative; height: 72px; border-top: 1px solid var(--bord); background: #fff; padding-bottom: env(safe-area-inset-bottom); }
.pied-infos, .pied-total { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.pied-infos { justify-content: center; }
.pied-total { transform: translateY(100%); opacity: 0; pointer-events: none; }
.pied-total .total { font-weight: 800; font-size: 20px; display: inline-block; }
.pied-total .bouton { margin-left: auto; }
.pied.panier .pied-infos { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.pied.panier .pied-total { transform: none; opacity: 1; pointer-events: auto; }
.pied .pilule { flex: 1; max-width: 200px; }

/* Étape trajet : menus déroulants */
.trajet-carte { position: relative; padding: 6px 16px; }
.champ-select { display: block; padding: 10px 0; }
.champ-select + .inverser + .champ-select { border-top: 1px solid var(--bord); }
.champ-select span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.champ-select select { border: 0; padding: 4px 28px 4px 0; font-size: 19px; font-weight: 800; background: transparent; box-shadow: none !important; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c1) 50%), linear-gradient(135deg, var(--c1) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.trajet-carte .inverser { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c1); color: #fff; border: 3px solid #fff; box-shadow: var(--ombre); font-size: 18px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.trajet-carte .inverser:active { transform: translateY(-50%) rotate(180deg) scale(.92); }
.trajet-carte .champ-select:first-child select, .trajet-carte .champ-select:last-child select { width: calc(100% - 52px); }
.apercu { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--ombre); }
.apercu b { display: block; font-size: 24px; letter-spacing: -.02em; }
.apercu.vide-apercu { justify-content: center; box-shadow: none; background: transparent; border: 1.5px dashed var(--bord); }

.grille-jours { grid-template-columns: repeat(4, 1fr); }
.corps .car { max-width: 300px; }

/* Sur page fixe, les vieilles zones inutiles */
body.fixe footer { display: none; }
