/* =============================================================================
   Vol AF 210 · Feuille de style
   Palette : bleu marine #051039 · blanc · rouge #E1000F · gris #F2F3F5 · ambre #F5B70A
   ============================================================================= */

:root {
  --navy: #051039;
  --navy-2: #0b1a55;
  --navy-3: #12246e;
  --red: #E1000F;
  --red-2: #b8000c;
  --grey: #F2F3F5;
  --grey-2: #e3e5eb;
  --grey-3: #c7cbd6;
  --ink: #111633;
  --ink-2: #4b5170;
  --ink-3: #676d8c;
  --amber: #F5B70A;
  --amber-2: #ffd45c;
  --white: #ffffff;
  --ok: #0f8a4b;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(5, 16, 57, .06), 0 8px 24px rgba(5, 16, 57, .08);
  --shadow-lg: 0 12px 40px rgba(5, 16, 57, .22);
  --gutter: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--grey);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Accent tricolore ------------------------------------------------------ */
.tricolore {
  display: inline-block;
  width: 34px; height: 12px;
  background: linear-gradient(90deg, var(--navy) 0 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6% 100%);
  transform: skewX(-22deg);
  border-radius: 1px;
}
.tricolore.sm { width: 24px; height: 8px; }
.tricolore.lg { width: 56px; height: 18px; }

/* --- Logo texte ------------------------------------------------------------ */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .08em; font-size: 20px; color: var(--white); text-decoration: none;
}
.brand .word { color: var(--white); }
.brand .word em { font-style: normal; color: var(--red); }
.brand .slash {
  display: inline-block; width: 9px; height: 20px; background: var(--red); transform: skewX(-22deg); border-radius: 1px;
}

/* --- En-tête -------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav { display: none; gap: 4px; }
.site-nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-nav a.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08); color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="true"] { background: var(--amber); color: var(--navy); border-color: var(--amber); }
@media (min-width: 900px) { .site-nav { display: flex; } }

.icon-btn.loading { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 183, 10, .55); } 50% { box-shadow: 0 0 0 8px rgba(245, 183, 10, 0); } }
/* Quand la cabine DJ est ouverte, le module fixe --dj-height : le contenu reste accessible au-dessus. */
body.dj-open { padding-bottom: var(--dj-height, 0px); }
body.dj-open .confirm-bar { bottom: var(--dj-height, 0px); }
body.dj-open .toast { bottom: calc(var(--dj-height, 0px) + 24px); }

/* Attrape-l'œil de la cabine DJ (sous le bouton casque) */
.dj-hint {
  position: fixed; top: 60px; right: 10px; z-index: 59; max-width: min(280px, calc(100vw - 20px));
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 0;
  background: var(--amber); color: var(--navy); font: 600 14px/1.25 var(--font); text-align: left;
  box-shadow: 0 10px 30px rgba(5, 16, 57, .3); cursor: pointer;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s;
}
.dj-hint::before { content: ""; position: absolute; top: -7px; right: 22px; width: 14px; height: 14px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.dj-hint .emoji { font-size: 18px; }
.dj-hint.show { opacity: 1; transform: none; animation: hintbounce 2.2s ease-in-out .6s infinite; }
@keyframes hintbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --- Mise en page --------------------------------------------------------- */
.page { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
.page.narrow { max-width: 720px; }
.page-title { font-size: 26px; font-weight: 700; margin: 8px 0 14px; letter-spacing: -.01em; }
.page-sub { color: var(--ink-2); margin: -6px 0 18px; }
@media (min-width: 720px) { .page-title { font-size: 34px; } .page { padding-top: 36px; } }

.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px var(--gutter);
}
.card + .card { margin-top: 16px; }
@media (min-width: 720px) { .card { padding: 30px 32px; } }
.card h2 { font-size: 19px; margin: 0 0 14px; }
.card p { margin: 0 0 12px; }
.muted { color: var(--ink-3); font-size: 14px; }

/* --- Bandeaux ------------------------------------------------------------- */
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: #e8f0ff; border-left: 4px solid var(--navy); border-radius: 6px;
  padding: 12px 14px; margin: 0 0 18px; font-size: 15px;
}
.banner .ico { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.banner strong { color: var(--navy); }
.banner.warn { background: #fff5e8; border-color: var(--amber); }
.banner.warn .ico { background: var(--amber); color: var(--navy); }
.banner.error { background: #fde9ea; border-color: var(--red); }
.banner.error .ico { background: var(--red); }
.banner.ok { background: #e6f5ec; border-color: var(--ok); }
.banner.ok .ico { background: var(--ok); }

.badge-important {
  display: inline-block; max-width: 100%;
  background: var(--red); color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.25;
  padding: 3px 8px; border-radius: 4px; margin: 0 0 6px; font-size: 11.5px;
}
.badge-important b { text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.badge-important.soft { background: var(--grey-2); color: var(--ink-2); }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 6px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.outline { background: transparent; color: var(--navy); }
.btn.outline:hover { background: rgba(5, 16, 57, .06); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--navy); min-height: 44px; }
.btn.outline.danger { color: var(--red); border-color: var(--red); }
.btn.outline.danger:hover { background: rgba(225, 0, 15, .06); }
.btn.ghost:hover { background: rgba(5, 16, 57, .06); }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .label { opacity: .7; }
.btn .tricolore { margin-left: 2px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white);
  animation: spin .8s linear infinite;
}
.btn.outline .spinner, .btn.ghost .spinner { border-color: rgba(5, 16, 57, .25); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1 1 200px; }

/* --- Formulaire (labels flottants) ---------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { position: relative; }
.field input {
  width: 100%; min-height: 56px; padding: 22px 14px 8px; border: 1px solid var(--grey-3); border-radius: 6px;
  background: var(--white); outline: none; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(5, 16, 57, .12); }
.field label {
  position: absolute; left: 14px; top: 18px; color: var(--ink-3); pointer-events: none; font-size: 16px;
  transition: top .15s, font-size .15s, color .15s; background: transparent;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 7px; font-size: 12px; color: var(--navy); font-weight: 600; }
.field input::placeholder { color: transparent; }
.field.invalid input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 0, 15, .12); }
.field .hint { font-size: 13px; color: var(--ink-3); margin: 6px 2px 0; }
.field .error { font-size: 13px; color: var(--red); margin: 6px 2px 0; font-weight: 500; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 6px;
  border: 1.5px solid var(--grey-3); border-radius: 6px; font-weight: 600; font-size: 14px; text-align: center;
  transition: border-color .15s, background .15s, color .15s;
}
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(5, 16, 57, .2); }
.form-error { margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* --- Panneau split-flap --------------------------------------------------- */
/* --cols : nombre de cellules par ligne (renseigné par splitflap.js) ; --cell : largeur d'une cellule. */
.flap-board {
  --cols: 16; --pad-x: 10px;
  background: #0a0e1f; border-radius: 10px; padding: 14px var(--pad-x); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 60px rgba(0, 0, 0, .45);
  display: inline-flex; flex-direction: column; gap: 6px; max-width: 100%;
  border: 6px solid #1a1f36;
}
.flap-row { --cell: 19px; display: flex; gap: 2px; justify-content: center; }
.flap {
  position: relative; width: var(--cell); height: calc(var(--cell) * 1.45); flex: none;
  font-family: var(--mono); font-weight: 700; font-size: calc(var(--cell) * 1.02); line-height: calc(var(--cell) * 1.45);
  color: var(--amber); text-align: center; text-transform: uppercase;
  background: linear-gradient(#262b45, #1b2038 49%, #101425 51%, #171b30); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); overflow: hidden; perspective: 200px;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .75); }
.flap .ch { position: absolute; inset: 0; }
.flap.flipping .ch { animation: flapflip .07s linear; }
@keyframes flapflip { 0% { transform: rotateX(0); } 50% { transform: rotateX(-90deg); } 51% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.flap.blank { color: transparent; }
.flap-row.title .flap { color: var(--white); }
@media (min-width: 480px) { .flap-row { --cell: 26px; gap: 3px; } }
@media (min-width: 900px) { .flap-board { --pad-x: 16px; padding: 20px var(--pad-x); gap: 8px; } .flap-row { --cell: 34px; gap: 4px; } }
/* Cellules fluides : le tableau prend la largeur disponible (plafonnée à des cellules de 34 px) et
   la cellule se déduit de la largeur intérieure du tableau (100cqw), de --cols et d'un écart de 12 %
   de cellule entre lettres → plus aucun débordement sur mobile. Les paliers ci-dessus restent le
   repli des navigateurs sans unités de requête de conteneur. */
@supports (width: 1cqw) {
  .flap-board {
    container-type: inline-size; display: flex; width: 100%;
    max-width: calc(34px * (1.12 * var(--cols) - .12) + 2 * var(--pad-x) + 12px);
  }
  .flap-row { --cell: clamp(10px, calc(100cqw / (1.12 * var(--cols) - .12)), 34px); gap: calc(var(--cell) * .12); }
}

/* --- Porte d'embarquement (accueil) --------------------------------------- */
.gate {
  position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 50% 0%, #1a2a7a 0%, var(--navy) 55%, #02071f 100%);
  color: var(--white); text-align: center; padding: 80px var(--gutter) 40px; overflow: hidden;
}
.gate .sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gate .cloud {
  position: absolute; width: 320px; height: 90px; border-radius: 100px; filter: blur(2px);
  background: radial-gradient(circle at 30% 60%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%);
  animation: drift linear infinite; opacity: .8;
}
@keyframes drift { from { transform: translateX(110vw); } to { transform: translateX(-140%); } }
.gate .stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.6), transparent), radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,.4), transparent); opacity: .7; }
.gate .content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 26px; width: 100%; }
.gate .brand { font-size: 26px; }
.gate .brand .slash { height: 26px; width: 11px; }
.gate .kicker { font-family: var(--mono); letter-spacing: .28em; text-transform: uppercase; font-size: 12px; color: rgba(255, 255, 255, .7); }
.gate .btn.board {
  min-height: 60px; padding: 14px 40px; font-size: 18px; background: var(--white); color: var(--navy); border-color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.gate .btn.board:hover { background: #f4f5fb; }
.gate .flight-info { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .65); letter-spacing: .12em; }
.gate .plane-bg { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 1.2s; }
.gate .plane-bg.ready { opacity: 1; }
.gate-controls { position: fixed; top: 10px; right: 10px; z-index: 60; display: flex; gap: 8px; }

/* --- Étapes --------------------------------------------------------------- */
.step { display: none; animation: fadein .35s ease; }
.step.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stepper { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; flex-wrap: wrap; }
.stepper span { display: inline-flex; align-items: center; gap: 6px; }
.stepper .n { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--grey-3); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.stepper .done .n { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stepper .current { color: var(--navy); font-weight: 600; }
.stepper .current .n { border-color: var(--navy); color: var(--navy); }
.stepper .sep { width: 18px; height: 1px; background: var(--grey-3); }

/* --- Plan de cabine 2D ---------------------------------------------------- */
.seat-stage { position: relative; }
.seat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.seat-toolbar .grow { flex: 1; }
.seat-toolbar .aircraft { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.seg { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: var(--white); color: var(--navy); font-weight: 600; font-size: 14px; padding: 8px 12px; min-height: 40px; }
.seg button + button { border-left: 1.5px solid var(--navy); }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 4px 4px 2px 2px; border: 1.5px solid var(--navy); background: var(--white); display: inline-block; }
.legend i.occ { background: var(--navy); }
.legend i.sel { background: var(--red); border-color: var(--red); }
.legend i.pilot { background: var(--amber); border-color: var(--amber); border-radius: 50%; }

.seatmap { display: flex; justify-content: center; padding: 8px 0 24px; }
.fuselage {
  position: relative; z-index: 1; background: var(--white); border: 3px solid var(--grey-3); border-radius: 160px 160px 60px 60px / 220px 220px 60px 60px;
  padding: 70px 14px 40px; width: 100%; max-width: 420px;
}
.fuselage .nose { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.cockpit { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
.pilot { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); text-align: center; }
.pilot .avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--amber); object-fit: cover; background: var(--amber); }
.cabin-label { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.cabin-label::before, .cabin-label::after { content: ""; flex: 1; height: 1px; background: var(--grey-2); }
.cabin-label .grp { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.exit-row { display: flex; justify-content: space-between; align-items: center; margin: 6px -14px; padding: 0 6px; }
.exit-row span { font-size: 10px; font-weight: 700; color: var(--ok); letter-spacing: .06em; text-transform: uppercase; background: #e6f5ec; padding: 2px 6px; border-radius: 3px; }
.seat-row { display: grid; align-items: center; gap: 6px; margin: 5px 0; grid-template-columns: 20px 1fr 20px; }
.seat-row .num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: center; }
.seat-row .block { display: flex; justify-content: center; gap: 6px; }
.seat-row .seats { display: flex; justify-content: center; align-items: center; gap: 22px; }
.seat {
  width: 38px; height: 38px; border-radius: 8px 8px 4px 4px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: background .12s, transform .12s, box-shadow .12s; position: relative; -webkit-tap-highlight-color: transparent;
}
.seat::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -3px; height: 3px; border-radius: 0 0 3px 3px; background: var(--navy); opacity: .35; }
.seat:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(5, 16, 57, .18); }
.seat.occupied, .seat:disabled { background: var(--navy); color: rgba(255, 255, 255, .35); cursor: not-allowed; }
.seat.selected { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 0 0 3px rgba(225, 0, 15, .25); }
.seat.selected::after { background: var(--red); }
.seat.wide { width: 46px; height: 42px; }
.seat.premium-w { width: 42px; height: 40px; }
.seat:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.seat-row.pitch-lg { margin: 12px 0; }
.seat-row.pitch-md { margin: 8px 0; }
.seat-row.pitch-sm { margin: 6px 0; }
.seat-stage { overflow: hidden; }
.wing { display: none; position: absolute; top: 46%; width: 60px; height: 180px; background: linear-gradient(180deg, var(--grey-2), var(--grey)); border: 2px solid var(--grey-3); z-index: 0; }
@media (min-width: 720px) { .wing { display: block; } }
.wing.left { left: -58px; border-radius: 40px 0 0 80px; transform: skewY(20deg); }
.wing.right { right: -58px; border-radius: 0 40px 80px 0; transform: skewY(-20deg); }
.seatmap-wrap { overflow: visible; }
@media (max-width: 400px) { .seat { width: 36px; height: 36px; } .seat-row .seats { gap: 16px; } .seat.wide { width: 42px; } }

/* Barre de confirmation collante */
.confirm-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); box-shadow: 0 -8px 30px rgba(5, 16, 57, .16); padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
  transform: translateY(110%); transition: transform .25s ease;
}
.confirm-bar.show { transform: none; }
.confirm-bar .inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.confirm-bar .recap { flex: 1 1 180px; min-width: 0; }
.confirm-bar .recap .seat-id { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.confirm-bar .recap .meta { font-size: 13px; color: var(--ink-2); }
.confirm-bar .btn { flex: 1 1 220px; }

/* Vue 3D (conteneur) */
.plane3d { position: relative; width: 100%; height: min(64vh, 620px); min-height: 380px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #0a1650 0%, #051039 60%, #02071f 100%); touch-action: none; }
.plane3d canvas { display: block; width: 100%; height: 100%; }
.plane3d .tooltip { position: absolute; pointer-events: none; background: rgba(5, 16, 57, .92); color: var(--white); font-size: 13px; padding: 6px 10px; border-radius: 6px; transform: translate(-50%, -140%); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.plane3d .tooltip.show { opacity: 1; }
.plane3d .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; }
.plane3d .hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, .65); }

/* --- Révélation ----------------------------------------------------------- */
.reveal-stage { text-align: center; padding: 10px 0 6px; }
.reveal-stage .flap-board { margin: 0 auto; }
.reveal-stage .dest-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.reveal-dest { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; margin-top: 18px; }
.reveal-dest.show { opacity: 1; transform: none; }
.reveal-dest .emoji { font-size: 44px; line-height: 1; }
.reveal-dest h2 { font-size: 30px; margin: 8px 0 2px; letter-spacing: -.01em; }
.reveal-dest .country { color: var(--ink-2); font-size: 15px; }
.reveal-dest .tagline { font-style: italic; color: var(--ink-2); margin: 10px auto 0; max-width: 560px; }
.reveal-more { opacity: 0; transition: opacity .6s; }
.reveal-more.show { opacity: 1; }

.dress-box {
  margin: 16px auto 0; max-width: 620px; background: #fff7e0; border: 1px solid #f1e2b3; border-radius: 10px; padding: 14px 16px; text-align: center;
}
.dress-box .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6d00; }
.dress-box .v { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.dress-box .s { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* --- Carte d'embarquement ------------------------------------------------- */
.bp {
  --bp-radius: 14px;
  position: relative; background: var(--white); border-radius: var(--bp-radius); box-shadow: var(--shadow-lg);
  max-width: 720px; margin: 22px auto 0; overflow: hidden; text-align: left; color: var(--ink);
}
.bp-head { background: var(--navy); color: var(--white); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bp-head .brand { font-size: 17px; }
.bp-head .brand .slash { height: 17px; width: 8px; }
.bp-head .kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c7cbe0; text-align: right; line-height: 1.3; }
.bp-body { padding: 16px 18px 6px; }
.bp-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 12px; }
.bp-route .code { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.bp-route .city { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.bp-route .to { text-align: right; }
.bp-route .arrow { color: var(--red); display: grid; place-items: center; }
.bp-route .arrow svg { width: 34px; height: 34px; }
.bp-route .arrow .dur { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; padding: 12px 0; border-top: 1px dashed var(--grey-3); }
.bp-grid .f .k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bp-grid .f .v { font-weight: 600; font-size: 15px; color: var(--navy); margin-top: 2px; line-height: 1.3; word-break: break-word; }
.bp-grid .f .v.big { font-size: 26px; font-weight: 800; }
.bp-grid .f.span2 { grid-column: span 2; }
@media (min-width: 560px) { .bp-grid { grid-template-columns: repeat(4, 1fr); } .bp-grid .f.span2 { grid-column: span 2; } }
.bp-extra { padding: 12px 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.bp-extra strong { color: var(--ink); }
.bp-codes { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px 16px; }
.bp-codes .qr { width: 96px; height: 96px; flex: none; background: var(--white); }
.bp-codes .qr canvas, .bp-codes .qr img { width: 96px; height: 96px; }
.bp-codes .barcode { flex: 1; height: 54px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px, var(--ink) 13px 14px, transparent 14px 17px); }
.bp-codes .pnr { font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 4px; letter-spacing: .12em; }
/* Ligne de perforation + talon */
.bp-perf { position: relative; height: 0; border-top: 2px dashed var(--grey-3); margin: 0 6px; }
.bp-perf::before, .bp-perf::after { content: ""; position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--grey); }
.bp-perf::before { left: -19px; } .bp-perf::after { right: -19px; }
.reveal-stage .bp-perf::before, .reveal-stage .bp-perf::after, .page .bp-perf::before, .page .bp-perf::after { background: var(--grey); }
.bp-stub { background: #fafbfd; padding: 12px 18px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bp-stub .f .k { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bp-stub .f .v { font-weight: 700; font-size: 14px; color: var(--navy); }
.bp-stub .stub-head { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.bp.standby .bp-grid .f .v.big { font-size: 18px; }

.bp-dress { background: #fff7e0; border-top: 1px solid #f1e2b3; border-bottom: 1px solid #f1e2b3; padding: 12px 18px; display: flex; gap: 12px; align-items: center; }
.bp-dress .emoji { font-size: 30px; line-height: 1; }
.bp-dress .k { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a6d00; }
.bp-dress .v { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.bp-dress .s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* Message de l'équipage */
.crew { display: grid; gap: 14px; margin: 18px auto 0; max-width: 720px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.crew img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.crew .txt { padding: 0 18px 18px; }
.crew .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.crew p { font-size: 16px; line-height: 1.55; color: var(--navy); margin: 0; }
@media (min-width: 720px) { .crew { grid-template-columns: 240px 1fr; align-items: center; } .crew .txt { padding: 18px 20px 18px 0; } .crew img { height: 100%; aspect-ratio: auto; } }
.sent-notice { margin: 16px auto 0; max-width: 720px; text-align: left; }
.options-wink { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.companions { margin: 14px auto 0; max-width: 720px; text-align: left; }
.companions .names { font-weight: 600; color: var(--navy); }

/* --- Page billet ---------------------------------------------------------- */
.ticket-page { padding-top: 18px; }
.ticket-page .bp { margin-top: 10px; }
.play-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

/* --- Admin ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--white); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 800; color: var(--navy); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
table.admin { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 900px; }
table.admin th, table.admin td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--grey-2); vertical-align: top; white-space: nowrap; }
table.admin th { background: var(--grey); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); position: sticky; top: 0; }
table.admin td.wrap { white-space: normal; min-width: 180px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill.sent, .pill.dry_run { background: #e6f5ec; color: var(--ok); }
.pill.failed { background: #fde9ea; color: var(--red); }
.pill.skipped, .pill.none, .pill.disabled { background: var(--grey); color: var(--ink-3); }
.pill.dry_run { background: #fff7e0; color: #8a6d00; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.toolbar .grow { flex: 1; }
.toolbar input[type="search"] { min-height: 40px; padding: 8px 12px; border: 1px solid var(--grey-3); border-radius: 6px; min-width: 200px; }

/* --- Encarts publicitaires (clin d'œil aux tuiles promo du vrai site) ------- */
.ad { margin: 18px auto 0; max-width: 720px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); text-align: left; }
.ad a { display: block; }
.ad img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.ad .cap { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.page .ad { max-width: none; }
.page.narrow .ad { max-width: 720px; }

.allow-card { margin: 0 0 18px; }
.allow-card textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--grey-3); border-radius: 6px; font: inherit; resize: vertical; }
.allow-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.allow-list .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--grey); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13px; }
.allow-list .chip b { font-family: var(--mono); font-weight: 600; }
.allow-list .chip button { border: 0; background: transparent; color: var(--ink-3); font-size: 16px; line-height: 1; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.allow-list .chip button:hover { background: var(--red); color: var(--white); }

/* --- Pied de page ---------------------------------------------------------- */
.site-footer { text-align: center; color: var(--ink-3); font-size: 12px; padding: 30px var(--gutter); }

/* --- Toast ---------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%) translateY(20px); background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
