/* =====================================================================
   Cabana Sol — Inscription au tirage, thème carte d'embarquement
   ===================================================================== */
:root {
  --lagon: #140a04;        /* nuit tropicale, bois sombre */
  --lagon-2: #2b170a;
  --neon: #ffbf4d;         /* néon doré du logo */
  --soleil: #ff9a2e;       /* coucher de soleil */
  --billet: #fffaf2;       /* papier du billet */
  --encre: #3a2414;
  --encre-douce: #8a6a52;
  --erreur: #e5484d;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { --ciel:
    radial-gradient(70vmax 45vmax at 50% -12%, rgba(255,170,60,.38), transparent 62%),
    radial-gradient(50vmax 50vmax at 90% 115%, rgba(255,120,30,.30), transparent 60%),
    radial-gradient(40vmax 40vmax at 0% 100%, rgba(80,170,255,.12), transparent 60%),
    linear-gradient(180deg, #140a04 0%, #2b170a 100%); }
body {
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--encre);
  background: var(--ciel) fixed;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---------- Tableau des départs ---------- */
.departs {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 28px; color: #fff;
}
.marque { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .3px; }
.marque span { color: var(--neon); text-shadow: 0 0 12px rgba(255,191,77,.8); }
.departs.avec-logo { justify-content: center; position: relative; padding: 6px 28px 0; }
.departs.avec-logo .porte { position: absolute; right: 28px; top: 18px; }
.logo-entete {
  height: 128px; width: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.photo-destination {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 40%;
  border-radius: 12px; margin: 4px 0 0; box-shadow: 0 8px 18px -10px rgba(58,36,20,.6);
}
@media (max-width: 860px) {
  .logo-entete { height: 96px; }
  .departs.avec-logo { flex-direction: column; gap: 6px; padding-top: 8px; }
  .departs.avec-logo .porte { position: static; }
  .photo-destination { display: none; }
}
.porte {
  font-family: "Unbounded", sans-serif; font-size: 15px;
  border: 1.5px solid rgba(255,191,77,.6); color: var(--neon);
  padding: 7px 14px; border-radius: 8px; box-shadow: 0 0 14px rgba(255,191,77,.25) inset;
}

/* ---------- Trajectoire (progression) ---------- */
.trajet { position: relative; height: 46px; margin: 4px 40px 18px; }
.trajet svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trajet .ligne { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }
.avion {
  position: absolute; top: -6px; left: 0; width: 130px; line-height: 0;
  transform: translateX(-50%) rotate(-4deg);
  transition: left .9s cubic-bezier(.5,0,.2,1);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(255,191,77,.35));
}
.avion img { width: 100%; height: auto; display: block; }
.escales { position: absolute; inset: auto 0 -6px 0; display: flex; justify-content: space-between; }
.escales span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .4s, box-shadow .4s; }
.escales span.fait { background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.escales span:last-child { background: var(--soleil); box-shadow: 0 0 14px var(--soleil); }

/* ---------- Le billet ---------- */
.scene { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; }
.billet {
  display: grid; grid-template-columns: 1fr 300px;
  background: var(--billet); border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  position: relative; overflow: hidden;
}
.corps { padding: 30px 40px 28px; min-height: 440px; display: flex; flex-direction: column; }
.talon {
  position: relative; padding: 30px 26px; background: #fdf0dc;
  border-left: 3px dashed #e2c9a6;
}

.prix {
  display: flex; align-items: center; gap: 12px; margin: 0 0 26px;
  font-size: 17px; color: var(--encre-douce);
}
.prix b { color: var(--encre); }
.prix .valeur {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 15px; color: #7a4a00;
  background: #ffe7bf; padding: 6px 12px; border-radius: 30px; white-space: nowrap;
}

/* ---------- Étapes ---------- */
.etape { animation: entree .45s ease both; }
.js .etape { display: none; }
.js .etape.active { display: block; }
@keyframes entree { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

.compteur { font-size: 15px; font-weight: 600; color: var(--encre-douce); margin: 0 0 6px; }
.etape h1 {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 8px; color: var(--encre);
}
.etape .aide { font-size: 18px; color: var(--encre-douce); margin: 0 0 26px; max-width: 34em; }

.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rangee.trois { grid-template-columns: 1fr 1.5fr 1.2fr; }
.rangee.une { grid-template-columns: 1fr; }

.champ { display: block; font-weight: 600; font-size: 16px; color: var(--encre); }
.champ input, .champ select {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; font-size: 24px; font-weight: 500; color: var(--encre);
  padding: 16px 18px; border: 2px solid #ead9c2; border-radius: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(255,191,77,.25); }
.champ.invalide input, .champ.invalide select { border-color: var(--erreur); }
.msg-erreur { color: var(--erreur); font-size: 15px; font-weight: 600; margin-top: 6px; }

.case {
  display: flex; gap: 16px; align-items: flex-start; cursor: pointer;
  padding: 16px 18px; border: 2px solid #ead9c2; border-radius: 14px; background: #fff;
  font-size: 18px; margin-bottom: 14px; transition: border-color .2s, background .2s;
}
.case:has(input:checked) { border-color: var(--neon); background: #fff4e0; }
.case.invalide { border-color: var(--erreur); }
.case input { width: 30px; height: 30px; flex: 0 0 30px; margin: 0; accent-color: #c77a1c; }
.case small { display: block; font-size: 15px; color: var(--encre-douce); margin-top: 3px; }
.case a { color: #b0661a; }

.actions { display: flex; gap: 14px; margin-top: auto; padding-top: 28px; align-items: center; }
.billet:not(:has(.talon)) { grid-template-columns: 1fr; }
[hidden] { display: none !important; }
.bouton {
  display: inline-block; text-decoration: none;
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 19px;
  border: 0; border-radius: 40px; padding: 18px 34px; cursor: pointer;
  background: var(--encre); color: #fff; transition: transform .1s;
}
.bouton:active { transform: scale(.97); }
.bouton.principal { margin-left: auto; background: linear-gradient(90deg, #ffbf4d, var(--soleil)); color: #3a1f05; box-shadow: 0 10px 24px -8px rgba(255,154,60,.8); }
.bouton.retour { background: transparent; color: var(--encre-douce); padding-left: 6px; padding-right: 6px; }
.bouton:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

.alerte { background: #fde8e8; color: #a3191e; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }

.mention { font-size: 13px; color: var(--encre-douce); margin: 18px 0 0; line-height: 1.45; }

/* ---------- Talon du billet, se remplit en direct ---------- */
.talon .titre-talon { font-family: "Unbounded", sans-serif; font-size: 14px; color: #b0661a; margin: 0 0 18px; }
.talon dl { margin: 0; display: grid; gap: 14px; }
.talon dt { font-size: 13px; color: var(--encre-douce); }
.talon dd { margin: 2px 0 0; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 17px; color: var(--encre); min-height: 22px; word-break: break-word; }
.talon dd.vide { color: #a9bccb; }
.talon dd.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.08); color: #b0661a; } }
.code-barres {
  margin-top: 22px; height: 54px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--encre) 0 2px, transparent 2px 4px, var(--encre) 4px 7px, transparent 7px 9px, var(--encre) 9px 10px, transparent 10px 14px);
  opacity: .85;
}

/* ---------- Embarquement (envoi) ---------- */
.decollage {
  position: fixed; inset: 0; display: none; place-items: center; z-index: 10;
  background: rgba(20,10,4,.95); color: #fff; text-align: center; overflow: hidden;
  font-family: "Unbounded", sans-serif; font-size: 24px;
}
.decollage.actif { display: grid; }
.decollage .avion-geant { display: block; width: min(80vw, 760px); margin: 0 auto 18px; animation: decolle 1.6s cubic-bezier(.55,0,.35,1) forwards;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
.decollage .avion-geant img { width: 100%; height: auto; display: block; }
@keyframes decolle { from { transform: translate(-75vw, 18vh) rotate(0deg); } 45% { transform: translate(-6vw, 2vh) rotate(-4deg); } to { transform: translate(85vw, -40vh) rotate(-14deg); } }

/* ---------- Code ami ---------- */
.code-ami { background: var(--encre); color: #fff3dc; border-radius: 16px; padding: 18px 22px; margin: 6px auto 4px; max-width: 460px; }
.code-ami-titre { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 19px; color: var(--neon) !important; margin: 0 0 4px !important; }
.code-ami-texte { font-size: 15px !important; color: #f1dcc0 !important; margin: 0 0 12px !important; }
.code-ami-code { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 4px; color: #fff; background: rgba(255,255,255,.08); border: 1.5px dashed rgba(255,191,77,.6); border-radius: 12px; padding: 8px; }

/* ---------- Pages de résultat ---------- */
.resultat { text-align: center; justify-content: center; align-items: center; }
.resultat h1 { font-family: "Unbounded", sans-serif; font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.resultat p { font-size: 19px; color: var(--encre-douce); max-width: 30em; margin: 0 auto 12px; }
.tampon {
  display: inline-block; margin: 6px 0 22px; padding: 10px 26px;
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 30px; color: #0a8a4a;
  border: 4px solid #0a8a4a; border-radius: 12px; transform: rotate(-6deg);
  animation: tamponne .5s cubic-bezier(.2,1.6,.4,1) both .2s;
}
.tampon.orange { color: #c46a00; border-color: #c46a00; }
@keyframes tamponne { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.retour-auto { font-size: 14px !important; margin-top: 18px !important; }

/* ---------- Choix de la succursale ---------- */
.succursales { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; border-radius: 16px; }
.succursales.invalide { outline: 2px solid var(--erreur); outline-offset: 6px; }
.succursale {
  position: relative; display: block; cursor: pointer;
  padding: 22px 22px 20px; border: 2px solid #ead9c2; border-radius: 16px; background: #fff;
  transition: border-color .2s, background .2s, transform .15s;
}
.succursale input { position: absolute; opacity: 0; pointer-events: none; }
.succursale .ville { display: block; font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 26px; color: var(--encre); }
.succursale .adresse { display: block; font-size: 15px; color: var(--encre-douce); margin-top: 6px; }
.succursale:has(input:checked) { border-color: var(--neon); background: #fff4e0; box-shadow: 0 0 0 4px rgba(255,191,77,.25); }
.succursale:has(input:checked)::after { content: "✓"; position: absolute; top: 14px; right: 16px; font-weight: 700; color: #c77a1c; font-size: 22px; }
.succursale:has(input:focus-visible) { outline: 3px solid var(--neon); outline-offset: 3px; }
.succursale:active { transform: scale(.98); }

/* Beaucoup de succursales, boutons compacts */
.succursales.nombreuses { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.succursales.nombreuses .succursale { padding: 14px 16px; border-radius: 12px; }
.succursales.nombreuses .ville { font-size: 17px; }
.succursales.nombreuses .succursale:has(input:checked)::after { top: 12px; right: 12px; font-size: 18px; }
.succursale .soleil { color: #e8892b; font-size: 16px; margin-left: 6px; }
.succursale .ville + .soleil, .succursale .adresse + .soleil { position: absolute; top: 14px; right: 44px; margin: 0; }
.succursales.nombreuses .ville { display: inline; }
.succursales.nombreuses .soleil { position: static; }

/* ---------- (ancien) choix du salon ---------- */
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.choix a { text-decoration: none; text-align: center; }

/* ---------- Tablette en portrait et cellulaire ---------- */
@media (max-width: 860px) {
  .billet { grid-template-columns: 1fr; }
  .talon { border-left: 0; border-bottom: 3px dashed #e2c9a6; order: -1; padding: 20px 24px; }
    .talon dl { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .code-barres, .talon .titre-talon { display: none; }
  .corps { padding: 26px 24px; min-height: 0; }
  .trajet { margin: 4px 24px 14px; }
}
@media (max-width: 560px) {
  .rangee, .rangee.trois, .choix { grid-template-columns: 1fr; }
  .departs { padding: 14px 16px; }
  .marque { font-size: 18px; }
  .scene { padding: 0 12px 30px; }
}

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

/* =====================================================================
   Page d'accueil publique
   ===================================================================== */
html { background-color: #140a04; }
.accueil {
  color: #fff3dc; background-color: #140a04;
  background-image:
    radial-gradient(900px 520px at 50% -80px, rgba(255,170,60,.36), transparent 70%),
    radial-gradient(700px 600px at 100% 600px, rgba(255,120,30,.16), transparent 70%);
  background-repeat: no-repeat; background-attachment: scroll;
}
.haut { display: flex; justify-content: center; padding: 18px 16px 0; }
.haut-logo {
  width: min(520px, 86vw); height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}

.hero { max-width: 860px; margin: 0 auto; padding: 4px 20px 56px; text-align: center; }
.hero h1 {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(34px, 6.4vw, 66px); line-height: 1.05; letter-spacing: -.5px;
  margin: 0 0 18px; color: #fff;
  text-shadow: 0 0 28px rgba(255,170,60,.45);
}
.hero-texte { font-size: clamp(18px, 2.2vw, 21px); color: #f1dcc0; max-width: 36em; margin: 0 auto 30px; line-height: 1.5; }
.invitation {
  display: inline-block; margin: 0 0 20px; padding: 10px 18px; border-radius: 30px;
  background: rgba(255,191,77,.14); border: 1px solid rgba(255,191,77,.5); color: #ffd27a; font-size: 16px;
}

/* Gagnant en vedette */
.vedette {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: fit-content; margin: 0 auto 26px; padding: 14px 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,191,77,.18), rgba(255,191,77,.06));
  border: 1px solid rgba(255,191,77,.55); box-shadow: 0 0 30px rgba(255,170,60,.18);
}
.vedette-lib { font-size: 14px; color: #ffd27a; font-weight: 600; }
.vedette-nom { font-family: "Unbounded", sans-serif; font-size: clamp(24px, 3.4vw, 32px); color: #fff; }
.vedette-texte { font-size: 15px; color: #f1dcc0; }

/* Tableau des départs avec compte à rebours */
.tableau-depart {
  display: block; width: fit-content; background: #120904; border: 1px solid #4a2e16; border-radius: 18px;
  padding: 18px 22px 20px; margin: 0 auto 30px; box-shadow: 0 20px 40px -20px #000, inset 0 0 0 1px rgba(255,191,77,.08);
}
.depart-ligne { display: flex; justify-content: space-between; gap: 24px; font-size: 15px; margin-bottom: 14px; }
.depart-lib { color: #b8936e; }
.depart-val { color: var(--neon); font-weight: 600; }
.compte-rebours { display: flex; gap: 10px; justify-content: center; }
.compte-rebours div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compte-rebours b {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: clamp(28px, 5vw, 44px);
  min-width: 2.2ch; padding: 10px 12px; border-radius: 10px; color: #ffd27a;
  background: linear-gradient(180deg, #2b1a0c 0 49%, #1d1007 51% 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.6);
  font-variant-numeric: tabular-nums;
}
.compte-rebours span { font-size: 13px; color: #b8936e; }

.bouton.gros { display: inline-block; font-size: 22px; padding: 20px 46px; margin-left: 0; }
.deja-inscrits { color: #b8936e; font-size: 15px; margin: 14px 0 0; }

/* Bandes de contenu */
.bande { max-width: 1040px; margin: 0 auto 28px; padding: 0 20px; }
.bande h2 { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); color: #fff; margin: 0 0 22px; }

.etapes-accueil { background: var(--billet); color: var(--encre); border-radius: 22px; padding: 34px 36px; }
.etapes-accueil h2 { color: var(--encre); }
.etapes-accueil ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: e; }
.etapes-accueil li { counter-increment: e; font-size: 17px; color: var(--encre-douce); line-height: 1.5; }
.etapes-accueil li::before {
  content: counter(e); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #ffbf4d, var(--soleil)); color: #3a1f05;
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 14px;
}
.etapes-accueil li b { display: block; color: var(--encre); font-size: 19px; margin-bottom: 4px; }

.amis { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.amis p { font-size: 18px; line-height: 1.55; color: #f1dcc0; margin: 0; }
.amis-billet {
  background: var(--billet); color: var(--encre); border-radius: 18px; padding: 22px 24px; text-align: center;
  border-left: 3px dashed #e2c9a6; transform: rotate(-3deg); box-shadow: 0 24px 40px -18px #000;
}
.amis-billet span { display: block; font-size: 14px; color: var(--encre-douce); }
.amis-billet b { display: block; font-family: "Unbounded", sans-serif; font-size: 34px; letter-spacing: 4px; margin: 6px 0; }
.amis-billet small { color: #b0661a; font-weight: 600; font-size: 15px; }

.galerie { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; height: 340px; object-fit: cover; border-radius: 20px; display: block; box-shadow: 0 24px 40px -22px #000; }

.gagnants ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.gagnants li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,191,77,.3); border-radius: 14px; padding: 12px 18px; }
.gagnants li b { display: block; color: #fff; font-size: 17px; }
.gagnants li span { color: #b8936e; font-size: 14px; }

.final { text-align: center; padding: 30px 20px 56px; }
.final h2 { font-family: "Unbounded", sans-serif; font-size: clamp(24px, 3.4vw, 34px); color: #fff; margin: 0 0 22px; }

.pied { border-top: 1px solid rgba(255,191,77,.18); padding: 28px 20px 40px; max-width: 1040px; margin: 0 auto; color: #b8936e; font-size: 14px; }
.pied-salons { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 16px; }
.pied-salons p { margin: 0; line-height: 1.5; }
.pied-salons b { color: #f1dcc0; }
.pied-legal { margin: 0; line-height: 1.5; }
.pied a { color: #ffd27a; }

@media (max-width: 760px) {
  .etapes-accueil ol, .amis, .galerie { grid-template-columns: 1fr; }
  .etapes-accueil { padding: 26px 22px; }
  .galerie img { height: 240px; }
  .amis-billet { transform: none; }
  .compte-rebours b { padding: 8px 9px; }
}
.pied-entreprise { font-size: 12px; opacity: .8; }

/* ---------- Date de naissance, trois cases ---------- */
.date-passeport { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.case-date { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--encre-douce); }
.case-date input {
  width: 3.4ch; box-sizing: content-box; text-align: center;
  font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 34px; color: var(--encre);
  padding: 14px 14px; border: 2px solid #ead9c2; border-radius: 14px; background: #fff; letter-spacing: 2px;
}
.case-date.annee input { width: 5.4ch; }
.case-date input::placeholder { color: #d6c3a8; }
.case-date input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(255,191,77,.25); }
.date-passeport.invalide input { border-color: var(--erreur); }
.date-passeport .sep { font-family: "Unbounded", sans-serif; font-size: 34px; color: #d6c3a8; padding-bottom: 18px; }
.date-lue { margin: 14px 0 0; font-size: 20px; font-weight: 600; color: var(--encre-douce); min-height: 1.4em; transition: color .3s; }
.date-lue.pleine { color: #1d7a45; }
.date-lue.pleine::after { content: "  ✓"; }
@media (max-width: 420px) { .case-date input { font-size: 26px; padding: 12px 10px; } .date-passeport .sep { font-size: 26px; } }

/* ---------- Carte Club des Bronzés ---------- */
.avantage {
  display: block; position: relative; cursor: pointer; margin: 4px 0 6px;
  padding: 16px 20px; border-radius: 16px; color: #fff3dc;
  background: linear-gradient(135deg, #3a2414, #6b3c14);
  border: 2px solid transparent; transition: border-color .2s, box-shadow .2s, transform .1s;
}
.avantage:active { transform: scale(.99); }
.avantage input { position: absolute; opacity: 0; pointer-events: none; }
.avantage:has(input:focus-visible) { outline: 3px solid var(--neon); outline-offset: 3px; }
.avantage:has(input:checked) { border-color: var(--neon); box-shadow: 0 0 0 4px rgba(255,191,77,.25), 0 12px 26px -12px rgba(255,140,30,.7); }
.avantage-entete { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.avantage-titre { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 18px; color: #ffd27a; }
.interrupteur { flex: 0 0 58px; height: 32px; border-radius: 20px; background: #8a6a52; position: relative; transition: background .25s; }
.interrupteur span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .25s; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.avantage:has(input:checked) .interrupteur { background: #1d9a55; }
.avantage:has(input:checked) .interrupteur span { left: 29px; }
.avantage-liste { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 8px; font-size: 15px; }
.avantage-liste span::before { content: "✓ "; color: #ffbf4d; font-weight: 700; }
.avantage small { display: block; font-size: 13px; color: #e2c9a6; line-height: 1.45; }

/* ---------- Dernière chance ---------- */
.dc-fond { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 20px; background: rgba(20,10,4,.72); }
.derniere-chance {
  width: 100%; max-width: 560px; padding: 30px 30px 26px; border-radius: 22px; background: var(--billet); border: 2px solid var(--neon);
  text-align: center; box-shadow: 0 30px 60px -20px #000; animation: surgit .4s cubic-bezier(.2,1.4,.4,1) both;
}
.dc-icone { display: block; font-size: 46px; margin-bottom: 6px; }
.dc-titre { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 6px; color: var(--encre); }
.dc-texte { margin: 0 0 16px; font-size: 16px; color: var(--encre-douce); }
.dc-boutons { display: flex; gap: 12px; flex-wrap: wrap; }
.dc-boutons .bouton.principal { margin-left: 0; }
.dc-boutons .bouton { flex: 1 1 220px; margin: 0; font-size: 17px; padding: 16px 20px; }

@keyframes surgit { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.mention { margin-top: 12px; }
.corps { padding-bottom: 22px; }
.actions { padding-top: 18px; }

.bouton.bientot { background: transparent; color: #ffd27a; border: 2px dashed rgba(255,191,77,.6); cursor: default; }
.prochain-prix { color: #b8936e; font-size: 15px; margin: 14px 0 0; }
.amis-lien { margin-top: 12px !important; }
.amis-lien a { color: #ffd27a; font-weight: 600; }

/* =====================================================================
   Mes billets
   ===================================================================== */
.haut-logo.petit { width: min(300px, 70vw); }
.billets-page { max-width: 820px; margin: 0 auto; padding: 0 20px 40px; }
.recherche-code { background: var(--billet); color: var(--encre); border-radius: 22px; padding: 30px; text-align: center; }
.recherche-code h1 { font-family: "Unbounded", sans-serif; font-size: 30px; margin: 0 0 8px; }
.recherche-code p { color: var(--encre-douce); font-size: 17px; margin: 0 0 18px; }
.recherche-ligne { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.recherche-ligne input {
  flex: 1 1 220px; max-width: 320px; font-family: "Unbounded", sans-serif; font-size: 24px; letter-spacing: 3px; text-transform: uppercase; text-align: center;
  padding: 14px 16px; border: 2px solid #ead9c2; border-radius: 14px; background: #fff; color: var(--encre);
}
.recherche-ligne input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(255,191,77,.25); }
.recherche-ligne .bouton.principal { margin-left: 0; }
.aide-code { font-size: 14px !important; margin-top: 14px !important; }

.mes-chances { text-align: center; }
.mc-sur { color: #b8936e; font-size: 15px; margin: 0 0 6px; }
.mes-chances h1 { font-family: "Unbounded", sans-serif; font-size: clamp(22px, 3.4vw, 30px); color: #fff; margin: 0; }
.mc-total { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 4px 0 18px; }
.mc-total span { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: clamp(72px, 14vw, 120px); line-height: 1; color: #ffd27a; text-shadow: 0 0 40px rgba(255,170,60,.5); font-variant-numeric: tabular-nums; }
.mc-total small { font-size: 22px; color: #f1dcc0; }
.mc-alerte { background: rgba(255,191,77,.12); border: 1px solid rgba(255,191,77,.5); color: #ffe3b0; border-radius: 16px; padding: 16px 20px; margin: 0 auto 22px; max-width: 560px; line-height: 1.5; }
.mc-alerte b { display: block; color: #fff; }
.mc-alerte .bouton { margin: 12px auto 0; display: inline-block; }

/* La pile de billets, distribués un à un */
.paquet { display: grid; gap: 12px; margin: 10px 0 34px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 16px 22px 16px 26px; border-radius: 14px; background: var(--billet); color: var(--encre);
  box-shadow: 0 14px 26px -16px #000;
  animation: distribue .55s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(var(--i) * 140ms + 300ms);
}
.ticket::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 6px; border-radius: 0 4px 4px 0; background: #e8892b; }
.ticket .t-lib { grid-column: 1; font-size: 13px; font-weight: 600; color: #b0661a; }
.ticket .t-num { grid-column: 1; font-family: "Unbounded", sans-serif; font-size: 20px; letter-spacing: 1.5px; }
.ticket .t-det { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; color: var(--encre-douce); text-align: right; max-width: 220px; }
.principal-ticket { background: linear-gradient(135deg, #fffaf2, #fde9c8); border: 2px solid var(--neon); }
.principal-ticket .t-num { font-size: 24px; }
.coupon-ticket:nth-child(odd) { transform: rotate(-.6deg); }
.coupon-ticket:nth-child(even) { transform: rotate(.5deg); }
.fantome { background: transparent; color: #f1dcc0; border: 2px dashed rgba(255,191,77,.45); box-shadow: none; }
.fantome::before { display: none; }
.fantome .t-lib { color: #ffd27a; } .fantome .t-det { color: #b8936e; }
@keyframes distribue { from { opacity: 0; transform: translateY(-30px) rotate(-6deg) scale(.96); } }
@media (max-width: 560px) { .ticket { grid-template-columns: 1fr; } .ticket .t-det { grid-column: 1; grid-row: auto; text-align: left; max-width: none; } .ticket .t-num { font-size: 17px; } }

.partage { background: rgba(255,255,255,.05); border: 1px solid rgba(255,191,77,.3); border-radius: 20px; padding: 24px; text-align: center; }
.partage h2 { font-family: "Unbounded", sans-serif; font-size: clamp(20px, 2.8vw, 26px); color: #fff; margin: 0 0 8px; }
.partage p { color: #f1dcc0; margin: 0 0 16px; font-size: 16px; }
.partage-code { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.pc-code { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 28px; letter-spacing: 4px; color: #fff; border: 1.5px dashed rgba(255,191,77,.6); border-radius: 12px; padding: 8px 18px; }
.partage-code .bouton { margin: 0; font-size: 16px; padding: 14px 24px; }
.partage-code .bouton:not(.principal) { background: #ffd27a; color: #3a1f05; }
.pc-lien { font-size: 13px !important; color: #b8936e !important; margin-top: 12px !important; word-break: break-all; }

.note-ami { font-size: 13px; color: var(--encre-douce); margin: 6px 0 0; }
.recherche-ligne input.cell4 { flex: 0 1 220px; letter-spacing: 2px; font-size: 20px; }
.ticket .t-det b { color: var(--encre); }
/* Une seule photo, la cabine debout */
.galerie { grid-template-columns: 1fr; }
.galerie img { height: 420px; object-position: center 40%; }
@media (max-width: 760px) { .galerie img { height: 300px; } }

/* ---------- Calendrier de naissance ---------- */
.calendrier { border: 2px solid #ead9c2; border-radius: 18px; background: #fff; overflow: hidden; }
.calendrier.invalide { border-color: var(--erreur); }
.cal-fil { display: grid; grid-template-columns: repeat(3, 1fr); background: #fdf0dc; border-bottom: 2px solid #ead9c2; }
.cal-etape {
  font: inherit; border: 0; background: transparent; cursor: pointer; padding: 10px 8px 12px; color: var(--encre-douce);
  border-bottom: 4px solid transparent; transition: background .2s, border-color .2s;
}
.cal-etape small { display: block; font-size: 13px; font-weight: 600; }
.cal-etape b { display: block; font-family: "Unbounded", sans-serif; font-size: 22px; color: var(--encre); margin-top: 2px; }
.cal-etape.active { background: #fff; border-bottom-color: var(--soleil); }
.cal-etape:disabled { opacity: .45; cursor: default; }
.cal-etape:focus-visible { outline: 3px solid var(--neon); outline-offset: -3px; }
.cal-vue { height: 262px; overflow-y: auto; padding: 14px; scroll-behavior: smooth; overscroll-behavior: contain; }
.cal-grille { display: grid; gap: 8px; }
.cal-grille.annees { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.cal-grille.mois { grid-template-columns: repeat(4, 1fr); }
.cal-grille.jours { grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-semaine { text-align: center; font-size: 13px; font-weight: 600; color: var(--encre-douce); padding: 2px 0; }
.cal-case {
  font: inherit; font-weight: 600; font-size: 19px; color: var(--encre); cursor: pointer;
  padding: 12px 4px; border: 2px solid #f0e3cf; border-radius: 12px; background: #fffaf2;
  transition: background .15s, border-color .15s, transform .1s;
}
.cal-case.jour { padding: 9px 0; font-size: 18px; }
.cal-case:active { transform: scale(.94); }
.cal-case:hover { border-color: var(--neon); }
.cal-case.choisi { background: linear-gradient(135deg, #ffbf4d, var(--soleil)); border-color: transparent; color: #3a1f05; box-shadow: 0 6px 14px -6px rgba(255,140,30,.8); }
.cal-case:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.cal-titre { margin: 0 0 10px; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 17px; color: var(--encre); text-transform: capitalize; text-align: center; }
@media (max-width: 420px) { .cal-grille.annees { grid-template-columns: repeat(3, 1fr); } .cal-grille.mois { grid-template-columns: repeat(3, 1fr); } .cal-case { font-size: 17px; } }
.calendrier.date-passeport { display: block; }

/* ---------- Date de naissance, un seul champ comme le questionnaire type de peau ---------- */
.date-unique { display: block; max-width: 420px; }
.date-unique input { font-family: "Unbounded", sans-serif; font-size: 30px; letter-spacing: 2px; text-align: center; padding: 18px 16px; }
.date-unique input::placeholder { color: #d6c3a8; letter-spacing: 2px; }

/* Connexion admin */
.connexion-champs { display: grid; gap: 14px; text-align: left; }
.connexion-champs input { font-size: 20px; }

/* =====================================================================
   Tablette à l'horizontale, tout tient dans l'écran sans défiler
   ===================================================================== */
@media (orientation: landscape) and (min-width: 861px) and (max-height: 900px) {
  .departs.avec-logo { padding-top: 2px; }
  .logo-entete { height: 78px; }
  .trajet { height: 30px; margin: -4px 40px 8px; }
  .avion { width: 100px; top: -8px; }
  .scene { padding-bottom: 12px; }
  .corps { padding: 20px 32px 16px; min-height: 0; }
  .prix { margin: 0 0 12px; font-size: 15px; }
  .compteur { margin-bottom: 2px; font-size: 14px; }
  .etape h1 { font-size: 28px; margin-bottom: 4px; }
  .etape .aide { font-size: 16px; margin-bottom: 14px; }
  .champ input, .champ select { padding: 12px 16px; font-size: 21px; }
  .date-unique input { padding: 12px 16px; font-size: 26px; }
  .date-lue { margin-top: 8px; font-size: 18px; }
  .case { padding: 10px 14px; margin-bottom: 8px; font-size: 16px; }
  .case small { font-size: 13px; }
  .avantage { padding: 12px 16px; margin: 2px 0 4px; }
  .avantage-titre { font-size: 16px; }
  .avantage-liste { margin: 6px 0 4px; font-size: 14px; }
  .avantage small { font-size: 12px; }
  .mention { margin-top: 6px; font-size: 11px; line-height: 1.35; }
  .actions { padding-top: 12px; }
  .bouton { padding: 14px 30px; font-size: 18px; }
  .talon { padding: 20px 22px; }
  .talon dl { gap: 8px; }
  .talon .titre-talon { margin-bottom: 10px; }
  .photo-destination { aspect-ratio: 16 / 8; }
  .code-barres { height: 36px; margin-top: 12px; }
  .resultat h1 { font-size: 32px; }
  .tampon { font-size: 24px; margin-bottom: 12px; }
}

/* Clavier ouvert à l'horizontale, on cache le logo et la trajectoire pour garder le champ visible */
body.clavier-ouvert .departs, body.clavier-ouvert .trajet, body.clavier-ouvert .prix { display: none; }
body.clavier-ouvert .scene { padding-top: 8px; }
@media (orientation: landscape) and (min-width: 861px) and (max-height: 900px) {
  body:not(.accueil):not(.clavier-ouvert) { display: flex; flex-direction: column; min-height: 100vh; }
  body:not(.accueil):not(.clavier-ouvert) > .scene { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-bottom: 28px; }
}
.talon dd.vide { color: #c9b49a; }

/* ---------- Écran d'accueil de la tablette, « Touchez l'écran pour participer » ---------- */
body.en-veille { overflow: hidden; }
.veille {
  position: fixed; inset: 0; z-index: 50; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 3vh 4vw; color: #fff; background: var(--ciel);
  transition: opacity .45s ease, transform .45s ease;
  -webkit-user-select: none; user-select: none;
}
.veille.sortie { opacity: 0; transform: scale(1.04); pointer-events: none; }
.veille-contenu { height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2vh; }
.veille-rebours { flex: none; gap: clamp(8px, 1.2vw, 14px); }
.veille-rebours b { font-size: clamp(28px, 5.4vh, 54px); padding: 10px 14px; }
.veille-rebours span { font-size: 14px; }
.veille-appel {
  flex: 1; min-height: 0; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", "Arial Narrow", "Impact", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: min(11.5vw, 15vh); line-height: .92; letter-spacing: .005em;
  animation: veille-bouge 2.4s ease-in-out infinite, veille-flash 1.2s ease-in-out infinite;
}
/* Mêmes couleurs que « Gagnez votre abonnement VIP » de l'affiche, jaune pâle en haut, orange en bas */
.veille-appel span {
  display: block; white-space: nowrap; padding: 0 .06em;
  background: linear-gradient(180deg, #fff2b8 0%, #ffd84a 32%, #ffb21a 62%, #f47a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes veille-bouge { 0%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-1.2vh) scale(1.03); } 50% { transform: translateY(0) scale(1); } 75% { transform: translateY(1.2vh) scale(1.03); } }
@keyframes veille-flash {
  0%, 100% { filter: brightness(1) drop-shadow(0 4px 0 #3a1a05) drop-shadow(0 0 16px rgba(255,150,30,.35)); }
  50% { filter: brightness(1.3) drop-shadow(0 4px 0 #3a1a05) drop-shadow(0 0 44px rgba(255,190,70,.9)); }
}
@media (prefers-reduced-motion: reduce) { .veille-appel { animation: none; } }
/* Règlement par-dessus le formulaire */
.reglement-boite {
  width: min(920px, 100%); height: min(88vh, 1100px); display: flex; flex-direction: column; gap: 12px;
  background: var(--billet); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.reglement-boite iframe { flex: 1; width: 100%; border: 0; border-radius: 10px; background: #fff; }
.reglement-boite .bouton { margin: 0 auto; }
.veille-bas { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.veille-etiquette {
  margin: 0; font-family: "Unbounded", sans-serif; font-weight: 500; font-size: clamp(12px, 1.7vh, 16px);
  letter-spacing: .22em; text-transform: uppercase; color: #ffd27a;
}

/* Choix de la succursale */
.choix-salons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 6px; border-radius: 16px; }
.choix-salons.invalide { outline: 2px solid var(--erreur); outline-offset: 4px; }
.salon-carte {
  position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 18px 20px; border-radius: 14px; background: #fff; border: 2px solid #ead7bf;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.salon-carte:active { transform: scale(.98); }
.salon-carte input { position: absolute; opacity: 0; pointer-events: none; }
.salon-nom { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 20px; color: var(--encre); }
.salon-adresse { font-size: 14px; color: var(--encre-douce); }
.salon-carte:has(input:checked) { border-color: var(--soleil); box-shadow: 0 0 0 3px rgba(255,154,46,.25), 0 10px 22px -12px rgba(255,154,46,.9); background: #fff7ea; }
.salon-carte:has(input:checked)::after {
  content: "✓"; position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #3a1f05; background: linear-gradient(90deg, #ffbf4d, var(--soleil));
}
.salon-carte:has(input:focus-visible) { outline: 3px solid var(--neon); outline-offset: 3px; }
.salons-bientot-titre { margin: 18px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); }
.salons-bientot { display: flex; flex-wrap: wrap; gap: 6px; }
.salons-bientot span {
  font-size: 13px; padding: 5px 11px; border-radius: 999px; color: #a8927e; background: #f4ece1; border: 1px dashed #dccab4; cursor: not-allowed;
}
.liste-succursales { list-style: none; margin: 16px auto; padding: 0; max-width: 480px; text-align: left; display: grid; gap: 8px; }
.liste-succursales li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid #ead7bf; }
.liste-succursales b { font-family: "Unbounded", sans-serif; font-size: 16px; color: var(--encre); }
.liste-succursales span { font-size: 14px; color: var(--encre-douce); }
.activation .code-tablette {
  display: block; margin: 18px auto 0; width: min(260px, 100%); text-align: center;
  font-family: "Unbounded", sans-serif; font-size: 32px; letter-spacing: .4em; padding: 14px 10px;
  border-radius: 14px; border: 2px solid #ead7bf; background: #fff; color: var(--encre);
}
.activation .code-tablette:focus { outline: none; border-color: var(--soleil); box-shadow: 0 0 0 3px rgba(255,154,46,.25); }
