/* ==========================================================================
   iZZima airlineZZ — design
   Direction : signalétique d'aéroport + billet papier. Aplats, filets, angles
   droits, une seule couleur d'accent. Aucun dégradé, aucun flou, aucune ombre douce.
   ========================================================================== */
@import url("fonts.css");

:root {
  --ink: #16181d;
  --ink-2: #2b2f3a;
  --paper: #f1eee6;
  --card: #fbfaf6;
  --line: #d8d3c5;
  --line-2: #bdb7a5;
  --text: #1c1d21;
  --muted: #6b6859;
  --accent: #d8361f;
  --accent-dk: #b22a16;
  --accent-on-dark: #ff6a47;
  --ok: #1b7f55;
  --warn: #a96a00;
  --bad: #b92b17;
  --blue: #2a46b0;
  --tint: #e9e5d8;

  --navy: var(--ink); --navy-2: var(--ink-2); --gold: var(--accent-on-dark); --gold-2: var(--accent);
  --sky: var(--blue); --sky-soft: var(--tint); --mint: var(--ok); --coral: var(--bad);

  --r: 3px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; color: var(--text); background: var(--paper);
  line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.05; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-family: var(--font); font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }

/* ---------- boutons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .55rem 1.35rem; border-radius: var(--r); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-dark-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-lg { min-height: 54px; padding-inline: 1.8rem; font-size: 1.25rem; }
.btn-sm { min-height: 36px; padding: .25rem .9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- en-tête ------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 3px solid var(--accent); }
.header-in { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: 0; line-height: 1; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: #fff; }
.brand b { color: var(--accent-on-dark); font-weight: 700; }
.nav { display: flex; gap: .1rem; margin-left: auto; align-items: center; }
.nav a, .nav summary { color: rgba(255, 255, 255, .8); text-decoration: none; padding: .55rem .85rem; font-weight: 500; font-size: .92rem; cursor: pointer; list-style: none; border-bottom: 2px solid transparent; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent-on-dark); }
.nav .btn { margin-left: .6rem; color: #fff; border-bottom: 2px solid var(--accent); }
.nav .btn:hover { color: #fff; }
.menu { position: relative; }
.menu summary { display: flex; align-items: center; gap: .55rem; }
.avatar { width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 3px); min-width: 230px; background: var(--card); color: var(--text); border: 2px solid var(--ink); padding: .3rem; display: grid; }
.menu-panel a, .menu-panel button { color: var(--text); padding: .6rem .8rem; display: flex; gap: .6rem; align-items: center; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 500; font-size: .92rem; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--tint); color: var(--accent); }
.menu-panel .who { padding: .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; font-size: .8rem; color: var(--muted); word-break: break-all; font-family: var(--mono); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .4); }
#nav-toggle { display: none; }

/* ---------- messages ------------------------------------------------------ */
.flashes { position: fixed; top: 78px; right: 1.2rem; z-index: 80; display: grid; gap: .5rem; width: min(380px, calc(100% - 2.4rem)); }
.flash { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; background: var(--card); border: 2px solid var(--ink); border-left-width: 8px; font-weight: 500; font-size: .93rem; }
.flash-success { border-left-color: var(--ok); } .flash-success .ic { color: var(--ok); }
.flash-error { border-left-color: var(--bad); } .flash-error .ic { color: var(--bad); }
.flash-info { border-left-color: var(--blue); } .flash-info .ic { color: var(--blue); }
.flash.out { opacity: 0; transition: opacity .4s; }

/* ---------- accueil ------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; padding: 4.5rem 0 8rem; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--accent) 0 40px, var(--ink) 40px 60px); }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: end; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 1.2rem; }
.hero h1 { color: #fff; margin-bottom: .35em; font-size: clamp(2.6rem, 5.4vw, 4.7rem); line-height: .95; }
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero p.lead { font-size: 1.1rem; color: rgba(255, 255, 255, .78); max-width: 520px; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.hero-stats b { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1; font-weight: 700; }
.hero-stats span { color: rgba(255, 255, 255, .6); font-size: .8rem; }
.hero-board { border: 1.5px solid rgba(255, 255, 255, .35); font-family: var(--mono); font-size: .85rem; }
.hero-board header { display: flex; justify-content: space-between; padding: .6rem .9rem; background: #fff; color: var(--ink); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.hero-board a { display: grid; grid-template-columns: 54px 1fr auto; gap: .8rem; align-items: center; padding: .7rem .9rem; color: #fff; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-board a:hover { background: var(--accent); color: #fff; }
.hero-board .code { font-weight: 600; color: var(--accent-on-dark); } .hero-board a:hover .code { color: #fff; }
.hero-board .px { font-weight: 600; }

.search { background: var(--card); color: var(--text); border: 2px solid var(--ink); padding: 1.3rem; }
.search-float { margin-top: -5rem; position: relative; z-index: 5; }
.search-grid { display: grid; grid-template-columns: 1.15fr 48px 1.15fr 1fr 1fr auto; gap: .6rem; align-items: end; }
.sf { position: relative; display: block; }
.sf > span.lbl { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .35rem; }
.sf-box { display: flex; align-items: center; gap: .65rem; height: 54px; padding: 0 .85rem; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); color: var(--ink); }
.sf-box:hover { border-color: var(--ink); }
.sf-box:focus-within { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 0; }
.sf-box input, .sf-box select, .sf-box button.pax-btn { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text); outline: none; height: 100%; width: 100%; text-align: left; cursor: pointer; }
.sf-box input::placeholder { color: #8d8a7b; font-weight: 400; }
.swap { width: 48px; height: 54px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: var(--r); }
.swap:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-opts { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); }
.seg label { position: relative; }
.seg label + label { border-left: 1.5px solid var(--ink); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .4rem 1.2rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 2px solid var(--ink); padding: 0; max-height: 300px; overflow: auto; list-style: none; margin: 0; }
.ac-list li { display: flex; gap: .75rem; align-items: center; padding: .6rem .75rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-list li:last-child { border-bottom: 0; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--ink); color: #fff; }
.ac-list li[aria-selected="true"] small, .ac-list li:hover small { color: rgba(255, 255, 255, .7); }
.ac-code { font-family: var(--mono); font-weight: 600; background: var(--accent); color: #fff; padding: .1rem .45rem; font-size: .8rem; }
.ac-list small { display: block; color: var(--muted); line-height: 1.2; }
.pax-panel { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; width: 310px; background: var(--card); border: 2px solid var(--ink); padding: .8rem 1rem; }
.pax-row { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; }
.pax-row + .pax-row { border-top: 1px solid var(--line); }
.pax-row small { display: block; color: var(--muted); }
.counter { display: flex; align-items: center; gap: .7rem; }
.counter button { width: 34px; height: 34px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: var(--r); }
.counter button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.counter button:disabled { opacity: .3; cursor: not-allowed; }
.counter output { min-width: 1.4em; text-align: center; font-weight: 700; font-family: var(--mono); }

/* ---------- sections ------------------------------------------------------ */
.section { padding: 4.2rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; }
.section-head h2 { margin: 0; } .section-head p { margin: 0; color: var(--muted); }
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dest { position: relative; overflow: hidden; min-height: 210px; padding: 1.3rem; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; background: var(--g, var(--ink)); border-radius: var(--r); transition: transform .15s; }
.dest:hover { color: #fff; transform: translateY(-4px); }
.dest::before { content: attr(data-code); position: absolute; right: -6px; top: -10px; font-family: var(--display); font-size: 8rem; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .13); letter-spacing: -.02em; }
.dest h3 { color: #fff; font-family: var(--display); font-size: 2rem; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.dest small { opacity: .85; font-family: var(--mono); font-size: .76rem; }
.dest .price { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed rgba(255, 255, 255, .5); display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.dest .price b { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.dest .go { display: grid; place-items: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--card); }
.feature { padding: 1.7rem; }
.feature + .feature { border-left: 2px solid var(--ink); }
.feature .ico { color: var(--accent); margin-bottom: .9rem; display: block; }
.feature h3 { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.feature p { color: var(--muted); margin: 0; }
.band { background: var(--accent); color: #fff; padding: 2.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 .2em; } .band p { margin: 0; color: rgba(255, 255, 255, .9); }
.band .btn { background: var(--ink); border-color: var(--ink); } .band .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- bandeaux de page, étapes ------------------------------------- */
.page-head { background: var(--ink); color: #fff; padding: 2.2rem 0 3.6rem; border-bottom: 10px solid var(--accent); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .15em; }
.page-head p { margin: 0; color: rgba(255, 255, 255, .72); }
.crumb { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.route-big { display: flex; align-items: center; gap: 1rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: .01em; }
.route-big .ic { color: var(--accent-on-dark); }
.steps { display: flex; gap: .4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.step i { width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; border: 1.5px solid rgba(255, 255, 255, .4); font-size: .85rem; font-family: var(--mono); }
.step.on { color: #fff; } .step.on i { background: var(--accent); border-color: var(--accent); }
.step.done { color: rgba(255, 255, 255, .8); } .step.done i { background: var(--ok); border-color: var(--ok); }
.step + .step::before { content: ""; width: 26px; height: 1.5px; background: rgba(255, 255, 255, .3); margin-right: .4rem; }
.overlap { margin-top: -2rem; position: relative; z-index: 3; }
.pad { padding: 2.2rem 0 4rem; }

/* ---------- cartes & éléments --------------------------------------------- */
.card { background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 1.5rem; }
.card + .card { margin-top: 1.1rem; }
.card-title { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.card-title .ico { width: 34px; height: 34px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.5rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 2px; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--tint); color: var(--ink); border: 1px solid var(--line-2); }
.badge-ok { background: #dcefe5; color: var(--ok); border-color: #a9d3bd; } .badge-warn { background: #f6e6c4; color: var(--warn); border-color: #e2c685; }
.badge-bad { background: #f5d9d3; color: var(--bad); border-color: #e3a79b; } .badge-gold { background: var(--accent); color: #fff; border-color: var(--accent); } .badge-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.alert { display: flex; gap: .8rem; padding: .9rem 1.1rem; background: var(--tint); border-left: 6px solid var(--blue); font-weight: 500; font-size: .93rem; margin-bottom: 1.2rem; }
.alert-warn { border-left-color: var(--warn); background: #f7ecd2; } .alert-bad { border-left-color: var(--bad); background: #f7e0da; } .alert-ok { border-left-color: var(--ok); background: #e0f0e8; }

/* ---------- résultats ----------------------------------------------------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); border: 1.5px solid var(--ink); margin-bottom: 1.2rem; background: var(--card); }
.strip a { display: flex; flex-direction: column; align-items: center; padding: .6rem .3rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; }
.strip a + a { border-left: 1px solid var(--line-2); }
.strip a small { color: var(--muted); font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.strip a:hover { background: var(--tint); }
.strip a.on { background: var(--ink); color: #fff; } .strip a.on small { color: rgba(255, 255, 255, .7); }
.strip a.off { opacity: .35; pointer-events: none; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.chip { padding: .3rem .85rem; background: transparent; border: 1.5px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; } .chip:hover:not(.on) { background: var(--tint); }
.flight { display: grid; grid-template-columns: 1fr auto; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r); transition: border-color .12s; }
.flight + .flight { margin-top: .8rem; }
.flight:hover { border-color: var(--ink); }
.flight-main { padding: 1.3rem 1.5rem; }
.flight-tags { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; align-items: center; }
.leg { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; }
.leg .t { font-family: var(--display); font-size: 2.7rem; font-weight: 700; line-height: .9; letter-spacing: .01em; }
.leg .c { color: var(--muted); font-size: .86rem; margin-top: .35rem; }
.leg .c b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.leg .r { text-align: right; }
.line { display: flex; flex-direction: column; align-items: center; gap: .7rem; color: var(--muted); font-family: var(--mono); font-size: .75rem; font-weight: 500; }
.line .track { position: relative; width: 100%; height: 0; border-top: 2px solid var(--ink); }
.line .track::before, .line .track::after { content: ""; position: absolute; top: -6px; width: 10px; height: 10px; background: var(--card); border: 2px solid var(--ink); border-radius: 50%; }
.line .track::before { left: 0; } .line .track::after { right: 0; }
.line .track .ic { position: absolute; left: 50%; top: -11px; transform: translateX(-50%) rotate(45deg); background: var(--card); color: var(--accent); padding: 0 3px; }
.flight-meta { display: flex; gap: 1.4rem; margin-top: 1rem; color: var(--muted); font-size: .84rem; flex-wrap: wrap; }
.flight-meta span { display: inline-flex; gap: .4rem; align-items: center; }
.flight-buy { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .3rem; padding: 1.3rem 1.6rem; min-width: 210px; background: var(--tint); border-left: 2px dashed var(--line-2); }
.price-big { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: .95; color: var(--ink); text-align: right; }
.price-big small { font-family: var(--font); font-size: .78rem; font-weight: 400; color: var(--muted); }
.empty { text-align: center; padding: 3.5rem 1rem; background: var(--card); border: 2px dashed var(--line-2); }
.empty .ico { color: var(--accent); display: inline-grid; margin-bottom: .8rem; }

/* ---------- formulaires --------------------------------------------------- */
.field { display: block; margin-bottom: 1rem; position: relative; }
.field > .lbl { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; color: var(--muted); }
.field .req { color: var(--accent); }
.field input:not([type=checkbox]):not([type=radio]), .field select {
  width: 100%; height: 48px; padding: 0 .85rem; font: inherit; font-weight: 500; color: var(--text); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--r); appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.4rem; }
.field input:hover, .field select:hover { border-color: var(--ink); }
.field input:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); background: #fdf3f1; }
.err { display: flex; gap: .35rem; align-items: center; color: var(--bad); font-size: .82rem; font-weight: 600; margin-top: .35rem; }
.hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* ---------- réservation --------------------------------------------------- */
.book-grid { display: grid; grid-template-columns: 1fr 350px; gap: 1.5rem; align-items: start; }
.sticky { position: sticky; top: 84px; }
.pax-num { width: 36px; height: 36px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .94rem; }
.summary-row.total { border-top: 2px solid var(--ink); margin-top: .6rem; padding-top: .8rem; font-family: var(--display); font-size: 1.7rem; font-weight: 700; text-transform: uppercase; }
.mini-flight { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1rem; background: var(--ink); color: #fff; margin-bottom: 1rem; }
.mini-flight b { font-family: var(--display); font-size: 2rem; line-height: 1; }
.mini-flight .small, .mini-flight .muted { color: rgba(255, 255, 255, .65); } .mini-flight .ic { color: var(--accent-on-dark); }

.seat-pax { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.seat-pax button { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .4rem; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; font: inherit; font-weight: 600; font-size: .86rem; }
.seat-pax button i { width: 24px; height: 24px; display: grid; place-items: center; font-style: normal; background: var(--ink); color: #fff; font-size: .75rem; font-family: var(--mono); }
.seat-pax button.active { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 0; }
.seat-pax button em { font-style: normal; color: var(--muted); font-family: var(--mono); font-weight: 500; }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.legend span { display: inline-flex; gap: .4rem; align-items: center; }
.legend i { width: 16px; height: 16px; display: inline-block; border: 1px solid rgba(0, 0, 0, .25); }
.fuselage { background: #fff; border: 2px solid var(--ink); border-radius: 110px 110px 6px 6px; padding: 4.2rem 1.2rem 1.6rem; max-width: 420px; margin: 0 auto; max-height: 640px; overflow: auto; }
.seat-row { display: grid; grid-template-columns: 26px repeat(3, 1fr) 26px repeat(3, 1fr); gap: 5px; align-items: center; margin-bottom: 5px; }
.seat-row .rn { font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--muted); text-align: center; }
.seat-row.cabin-break { margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--line-2); }
.seat { aspect-ratio: 1; min-height: 32px; border: 1.5px solid var(--ink); border-radius: 3px 3px 1px 1px; cursor: pointer; font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--ink); background: var(--tint); padding: 0; position: relative; }
.seat.prem { background: #f0cf8c; }
.seat:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.seat:disabled { cursor: not-allowed; }
.seat.taken { background: repeating-linear-gradient(45deg, #fff 0 4px, #d9d5c8 4px 6px); color: #a7a291; border-color: #bdb7a5; }
.seat.other-cabin { opacity: .22; }
.seat.mine { background: var(--ink); color: #fff; }
.seat.mine::before { content: attr(data-pax); position: absolute; top: -8px; right: -8px; width: 17px; height: 17px; background: var(--accent); color: #fff; font-size: .64rem; display: grid; place-items: center; z-index: 1; }

/* ---------- paiement ------------------------------------------------------ */
.pay-grid { display: grid; grid-template-columns: 1fr 350px; gap: 1.5rem; align-items: start; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.3rem; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode span { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; border: 1.5px solid var(--line-2); border-radius: var(--r); font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; text-align: center; color: var(--muted); background: #fff; }
.mode input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.mode input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.credit { aspect-ratio: 1.6; max-width: 350px; margin: 0 auto 1.3rem; padding: 1.2rem; color: #fff; background: var(--ink); border-radius: 8px; border-top: 8px solid var(--accent); display: flex; flex-direction: column; justify-content: space-between; }
.credit .chip-ic { width: 40px; height: 28px; background: #d5b76a; border-radius: 4px; }
.credit .num { font-family: var(--mono); font-size: 1.2rem; letter-spacing: .1em; }
.credit .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.timer { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: #f7ecd2; border-left: 6px solid var(--warn); font-weight: 500; font-size: .92rem; margin-bottom: 1.2rem; }
.timer b { font-family: var(--mono); font-size: 1.1rem; }
.testbox { margin-top: 1rem; padding: .8rem 1rem; background: var(--tint); font-size: .82rem; color: var(--muted); border-left: 4px solid var(--line-2); }
.testbox code { font-family: var(--mono); color: var(--ink); font-weight: 600; }

/* ---------- billets & confirmation ---------------------------------------- */
.success-hero { text-align: center; color: #fff; padding: 3rem 0 5rem; background: var(--ink); border-bottom: 10px solid var(--ok); }
.success-hero .tick { width: 72px; height: 72px; display: inline-grid; place-items: center; background: var(--ok); color: #fff; margin-bottom: 1.1rem; }
.success-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.pnr { display: inline-flex; gap: .9rem; align-items: center; margin-top: .6rem; padding: .6rem 1.2rem; border: 2px dashed rgba(255, 255, 255, .5); }
.pnr b { font-family: var(--mono); font-size: 1.9rem; letter-spacing: .3em; color: var(--accent-on-dark); font-weight: 600; }
.ticket { display: grid; grid-template-columns: 1fr 220px; background: var(--card); border: 2px solid var(--ink); position: relative; }
.ticket + .ticket { margin-top: 1.1rem; }
.ticket-head { background: var(--ink); color: #fff; padding: .6rem 1.4rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; grid-column: 1 / -1; }
.ticket-head small { opacity: .7; font-family: var(--mono); font-size: .75rem; letter-spacing: 0; text-transform: none; }
.ticket-main { padding: 1.3rem 1.5rem; }
.ticket-side { padding: 1.3rem; border-left: 2px dashed var(--ink); display: grid; gap: .8rem; align-content: center; background: var(--tint); position: relative; }
.ticket-side::before, .ticket-side::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ticket-side::before { top: -12px; } .ticket-side::after { bottom: -12px; }
.kv { display: grid; grid-template-columns: repeat(4, auto); gap: 1rem 1.6rem; margin-top: 1.2rem; }
.kv small { display: block; font-family: var(--mono); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.kv b { font-size: 1.02rem; }
.seat-big { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: .9; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- voyage -------------------------------------------------------- */
.trip-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.5rem; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li i { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--card); border: 2px solid var(--line-2); }
.timeline li.done i { background: var(--ok); border-color: var(--ok); }
.timeline li.now i { background: var(--accent); border-color: var(--accent); }
.timeline li small { color: var(--muted); display: block; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .5rem .6rem; border-bottom: 2px solid var(--ink); }
.table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.right { text-align: right; } .neg { color: var(--bad); } .pos { color: var(--ok); }
.stack { display: grid; gap: .6rem; }

/* ---------- carte d'embarquement ------------------------------------------ */
.bp { background: var(--card); display: grid; grid-template-columns: 1fr 250px; max-width: 920px; margin: 0 auto 1.6rem; border: 2px solid var(--ink); position: relative; }
.bp-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.5rem; color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: .07em; text-transform: uppercase; background: var(--ink); }
.bp-top.prem { background: var(--accent); }
.bp-body { padding: 1.3rem 1.5rem; }
.bp-route { display: flex; align-items: center; gap: 1.2rem; }
.bp-route .code { font-family: var(--display); font-size: 4.2rem; font-weight: 700; line-height: .85; }
.bp-route .ic { color: var(--accent); }
.bp-stub { border-left: 2px dashed var(--ink); padding: 1.3rem; display: grid; gap: .8rem; align-content: space-between; position: relative; background: var(--tint); }
.bp-stub::before, .bp-stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.bp-stub::before { top: -12px; } .bp-stub::after { bottom: -12px; }
.barcode { display: block; width: 100%; height: 62px; }

/* ---------- tableau des départs ------------------------------------------- */
.board { background: #101216; color: #eceadf; border: 2px solid var(--ink); }
.board table { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.board th { text-align: left; padding: .8rem 1.1rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8d8a7b; background: #000; font-weight: 600; }
.board td { padding: .8rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, .08); font-weight: 500; }
.board tr:hover td { background: #1b1e25; }
.board .fid { color: #ffc247; font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #5fd49c; }
.st::before { content: ""; width: 9px; height: 9px; background: currentColor; }
.st.rtrd { color: #ffc247; } .st.annl { color: #ff6a47; }

/* ---------- compte -------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 67px); }
.auth-art { color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: center; background: var(--ink); border-right: 10px solid var(--accent); }
.auth-art h2 { color: #fff; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .95; }
.auth-art ul { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.auth-art li { display: flex; gap: .8rem; align-items: center; color: rgba(255, 255, 255, .85); }
.auth-art li .ic { color: var(--accent-on-dark); }
.auth-form { display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-box { width: min(420px, 100%); }
.auth-box h1 { font-size: 3rem; }
.demo-hint { margin-top: 1.4rem; padding: .8rem 1rem; background: var(--tint); font-size: .84rem; color: var(--muted); border-left: 4px solid var(--line-2); }
.dash-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.next-trip { background: var(--ink); color: #fff; padding: 1.8rem; border-left: 10px solid var(--accent); }
.next-trip h2 { color: #fff; }
.tabs { display: flex; gap: .2rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.2rem; }
.tabs a { padding: .55rem 1.1rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--muted); margin-bottom: -2px; border: 2px solid transparent; }
.tabs a.on { color: var(--ink); background: var(--card); border-color: var(--ink); border-bottom-color: var(--card); }
.tabs span { background: var(--tint); padding: .05rem .45rem; font-size: .8rem; margin-left: .4rem; font-family: var(--mono); }
.trip-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 1.2rem; background: var(--card); border: 1.5px solid var(--line-2); text-decoration: none; color: var(--text); border-radius: var(--r); }
.trip-row + .trip-row { margin-top: .7rem; }
.trip-row:hover { border-color: var(--ink); color: var(--text); }
.trip-row .date { text-align: center; background: var(--ink); color: #fff; padding: .45rem .9rem; line-height: 1; min-width: 64px; }
.trip-row .date b { font-family: var(--display); font-size: 2rem; display: block; } .trip-row .date small { text-transform: uppercase; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; }
.trip-row h3 { margin: 0 0 .15rem; }
.errpage { text-align: center; padding: 6rem 1rem; }
.errpage .code { font-family: var(--display); font-size: clamp(6rem, 20vw, 13rem); font-weight: 700; line-height: .85; color: var(--accent); }

/* ---------- pied de page -------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 3rem 0 2rem; margin-top: 2rem; border-top: 10px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; font-weight: 600; }
.footer a { display: block; color: rgba(255, 255, 255, .65); text-decoration: none; padding: .2rem 0; }
.footer a:hover { color: var(--accent-on-dark); }
.footer .brand { display: flex; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.3rem; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- responsive ---------------------------------------------------- */
.search-grid > *, .book-grid > *, .pay-grid > *, .trip-grid > *, .dash-top > *, .hero-in > * { min-width: 0; }
@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; } .hero-board { display: none; }
  .search-grid { grid-template-columns: 1fr 48px 1fr; }
  .search-grid .sf-date { grid-column: 1 / 3; } .search-grid .sf-pax { grid-column: 3; }
  .search-grid .btn { grid-column: 1 / -1; }
  .book-grid, .pay-grid, .trip-grid, .dash-top { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; } .feature + .feature { border-left: 0; border-top: 2px solid var(--ink); }
}
@media (max-width: 820px) {
  .burger { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--ink); padding: .6rem 1.2rem 1.2rem; display: none; border-bottom: 3px solid var(--accent); }
  #nav-toggle:checked ~ .nav { display: flex; }
  .menu-panel { position: static; margin-top: .4rem; }
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 2.5rem 1.5rem; border-right: 0; border-bottom: 10px solid var(--accent); }
  .flight { grid-template-columns: 1fr; }
  .flight-buy { border-left: 0; border-top: 2px dashed var(--line-2); flex-direction: row; justify-content: space-between; align-items: center; }
  .ticket, .bp { grid-template-columns: 1fr; }
  .ticket-side, .bp-stub { border-left: 0; border-top: 2px dashed var(--ink); }
  .ticket-side::before, .ticket-side::after, .bp-stub::before, .bp-stub::after { top: -12px; bottom: auto; }
  .ticket-side::before, .bp-stub::before { left: -12px; } .ticket-side::after, .bp-stub::after { left: auto; right: -12px; }
  .kv { grid-template-columns: repeat(2, auto); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .search-grid { grid-template-columns: 1fr; } .search-grid .swap { width: 100%; height: 42px; } .search-grid .sf-date, .search-grid .sf-pax { grid-column: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .leg .t { font-size: 2rem; } .modes { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(7, 64px); overflow-x: auto; }
  .hero { padding-bottom: 7rem; } .hero-stats { gap: 1.2rem; }
  .pax-panel { width: min(310px, 86vw); }
  .trip-row { grid-template-columns: 1fr; }
  .bp-route .code { font-size: 3rem; }
  .board { overflow-x: auto; }
}

/* ---------- impression ---------------------------------------------------- */
@media print {
  .header, .footer, .no-print, .flashes { display: none !important; }
  body { background: #fff; } .page-head, .success-hero { display: none; }
  .bp, .ticket { break-inside: avoid; }
  .overlap { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
