/* Portail trame sonore GF26 - Design system "V4 Public" (kit UI v4 de Matt)
   Charbon vs clair, gros boutons pleins arrondis, liste soirées à filets avec états,
   paiement épuré, lecteur immersif bleu. Typo : Geologica (site officiel). */
:root {
  --bg: #ffffff; --papier: #ffffff; --ink: #202223; --charbon: #34383c;
  --soft: #666a6d; --ligne: #e4e2df; --ligne-sombre: #474b50;
  --bleu: #3896e8; --orange: #ff5a30; --vert: #00a85a; --jaune: #f4ec4a; --rose: #ec3e5c; --mauve: #7231B8;
  --creme: #ffffff; --deep: #34383c; --midnight: #34383c;
  --rayon: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--charbon); }
/* iOS : le rebond sous le pied affiche le fond html; charbon = raccord avec le pied.
   100svh évite l'espace fantôme créé par la barre Safari sur mobile. */
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Geologica', "Avenir Next", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
a.pilule, .pied a, .entete-site a { text-decoration: none; }
h1, h2, h3 { font-family: 'Geologica', sans-serif; font-weight: 800; line-height: 1.08; color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

/* ---------- En-tête : barre charbon + logo sur carte blanche ---------- */
.entete-site { background: var(--charbon); height: 96px; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 20; }
.entete-site .lien-entete { color: #fff; font-size: 13px; font-weight: 700; }
.logo-carte { position: absolute; left: 50%; transform: translateX(-50%); top: 0; background: #fff; padding: 16px 22px 20px; z-index: 21; box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.logo-carte img { height: 92px; display: block; }
.splat-logo { display: none; }
.degagement-logo { padding-top: 72px !important; }

/* ---------- Eyebrow ---------- */
.kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.sec.noire .kicker { color: #fff; opacity: .9; }

/* ---------- Astérisques ---------- */
.aster { display: block; margin: 0 auto 16px; }
.aster-rond { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex: none; background: #fff; }

/* ---------- Sections ---------- */
.sec { padding: 36px 22px; text-align: center; }
.sec.creme { background: var(--bg); color: var(--ink); }
.sec.noire { background: var(--charbon); color: #fff; }
.sec.noire h1, .sec.noire h2, .sec.noire h3 { color: #fff; }
.sec h1 { font-size: clamp(30px, 7.6vw, 40px); margin-bottom: 12px; letter-spacing: -.5px; }
.sec h2 { font-size: 25px; margin-bottom: 10px; }
.sec p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.sec.creme p { color: var(--soft); }
.sec.noire p { color: rgba(255,255,255,.88); }
.sec .mini, .sec p.mini { color: var(--soft); font-size: 12.5px; }
.sec.noire .mini { color: rgba(255,255,255,.65); }
.sec .contenu { max-width: 560px; margin: 0 auto; }
.sep-blanche { display: none; }

/* ---------- Photo officielle ---------- */
.photo-carte { width: 100%; max-width: 560px; border-radius: 18px; display: block; margin: 0 auto 22px; }
.photo-bande { width: 100%; max-height: 190px; object-fit: cover; display: block; }

/* ---------- Boutons pleins arrondis ---------- */
.pilule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; font-family: 'Geologica', sans-serif; font-weight: 700; font-size: 16px; min-height: 54px; padding: 0 28px; border-radius: 999px; cursor: pointer; text-align: center; color: #fff; transition: transform .12s, filter .12s; }
.pilule:active { transform: scale(.98); }
.pilule:hover { filter: brightness(.97); }
.pilule.bleu { background: var(--bleu); }
.pilule.orange { background: var(--orange); }
.pilule.vert { background: var(--vert); }
.pilule.jaune { background: var(--jaune); color: var(--ink); }
.pilule.large { width: 100%; max-width: 440px; }
.pilule[disabled] { opacity: .5; cursor: default; }
.pilule.secondaire { background: transparent; color: inherit; border: 2px solid currentColor; }
.pilule.petite { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* Boutons compacts (admin) */
.bouton, button.bouton { display: inline-block; background: var(--bleu); color: #fff; border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; font-family: 'Geologica', sans-serif; text-align: center; }
.bouton.bleu { background: var(--charbon); }
.bouton.large { width: 100%; padding: 15px; font-size: 16px; }

/* ---------- Chips d'état ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; background: #ededed; color: var(--ink); }
.badge.ouvert, .badge.vert { background: rgba(0,168,90,.14); color: var(--vert); }
.badge.verrou { background: #ededed; color: var(--soft); }
.sec.noire .badge { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Liste soirées à filets (style v4 "Mes soirées") ---------- */
.liste-soirees { max-width: 560px; margin: 0 auto; text-align: left; }
.rangee-soiree { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-top: 1.5px solid var(--ligne); }
.liste-soirees .rangee-soiree:last-child { border-bottom: 1.5px solid var(--ligne); }
.rangee-soiree .rs-info { flex: 1; min-width: 0; }
.rangee-soiree .rs-info strong { display: block; font-size: 17.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.rangee-soiree .rs-info span { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; }
.rangee-soiree .rs-action { flex: none; text-align: right; }
.rangee-soiree.passee .rs-info strong { color: var(--soft); }

/* ---------- Blocs soirées (pages détail) ---------- */
.soiree-bloc { padding: 4px 0 18px; }
.soiree-bloc .date { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; opacity: .8; }
.soiree-bloc h3 { font-size: 30px; margin-bottom: 6px; }
.soiree-bloc .infos { font-size: 14px; margin-bottom: 14px; color: var(--soft); }
.sec.noire .soiree-bloc .infos { color: rgba(255,255,255,.75); }

/* ---------- Barre rouge (héritée; discrète en v4) ---------- */
.barre-rouge { background: transparent; color: var(--ink); border: 0; border-top: 1.5px solid var(--ligne); border-bottom: 1.5px solid var(--ligne); border-radius: 0; padding: 13px 2px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15.5px; margin-bottom: 16px; text-align: left; }

/* ---------- Cartes et formulaires ---------- */
.carte-blanche, .formulaire { background: var(--papier); border: 1.5px solid var(--ligne); border-radius: var(--rayon); padding: 22px; text-align: left; margin: 0 auto 14px; max-width: 560px; }
.formulaire { display: grid; gap: 15px; }
.carte-blanche h3, .formulaire h3 { font-size: 16px; }
.champ label, .champ > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.champ input[type=email], .champ input[type=tel], .champ input[type=text], .champ input[type=password], .champ select, .champ textarea, input.saisie {
  width: 100%; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 14px; font-size: 16px; font-family: 'Geologica', sans-serif;
}
.champ input:focus, input.saisie:focus { outline: none; border-color: var(--bleu); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--soft); line-height: 1.5; text-align: left; }
.case input { margin-top: 2px; width: 19px; height: 19px; accent-color: var(--vert); flex: none; }
.note { font-size: 13px; color: var(--ink); background: var(--papier); border: 1.5px solid var(--ligne); border-left: 5px solid var(--bleu); padding: 12px 14px; border-radius: 0 10px 10px 0; text-align: left; max-width: 560px; margin: 0 auto; }
.erreur-boite { background: var(--papier); border: 1.5px solid var(--ligne); border-left: 5px solid var(--rose); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--rose); font-weight: 700; font-size: 14px; max-width: 560px; margin: 0 auto 14px; text-align: left; }
.succes-boite { background: var(--papier); border: 1.5px solid var(--ligne); border-left: 5px solid var(--vert); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--vert); font-weight: 700; font-size: 14px; max-width: 560px; margin: 0 auto 14px; text-align: left; }
.prix-ligne { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); padding: 11px 2px; border-top: 1.5px solid var(--ligne); }
.prix-ligne.total { font-weight: 800; font-size: 17px; border-top: 2px solid var(--ink); }
.mini { font-size: 12.5px; color: var(--soft); }

/* ---------- Lecteur : immersif bleu ---------- */
.page-lecteur { background: var(--bleu); }
.page-lecteur .pied { background: transparent; color: rgba(255,255,255,.8); }
.page-lecteur .entete-lecteur { background: var(--charbon); }
.lecteur { max-width: 480px; margin: 0 auto; text-align: center; padding: 18px 24px 46px; color: #fff; }
.lecteur h1 { font-size: 32px; margin: 4px 0 6px; color: #fff; }
.lecteur .depart { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.lecteur .date-lecteur { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .9; }
.chip-etat { display: inline-flex; align-items: center; gap: 7px; background: var(--jaune); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 12px; }
.disque { width: 210px; height: 210px; margin: 6px auto 24px; border-radius: 50%; background: rgba(255,255,255,.12); border: 3px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.disque.joue { border-color: var(--jaune); }
.disque .etat-txt { font-size: 15px; color: #fff; padding: 0 26px; }
.decompte { font-family: 'Geologica', sans-serif; font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 800; color: #fff; }
.progression { height: 8px; background: rgba(255,255,255,.3); border-radius: 6px; overflow: hidden; margin: 20px auto 6px; max-width: 420px; }
.progression .barre { height: 100%; width: 0%; background: var(--jaune); transition: width .3s; }
.temps { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; max-width: 420px; margin: 0 auto; }
.controles { display: none; gap: 10px; justify-content: center; margin-top: 16px; }
.controles.visible { display: flex; }
.controles button { background: #fff; border: 0; color: var(--ink); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Geologica', sans-serif; }
.consigne { font-size: 13.5px; color: rgba(255,255,255,.88); margin-top: 14px; }
.consigne a, .lecteur a { color: #fff; }
.lecteur .pilule.bleu { background: #fff; color: var(--ink); }
.geo-carte { background: rgba(255,255,255,.12); border: 0; border-radius: var(--rayon); padding: 20px; margin: 30px auto 0; text-align: left; max-width: 440px; }
.geo-carte h3 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.geo-carte p { font-size: 13px; color: rgba(255,255,255,.85); }
.geo-carte select { width: 100%; background: #fff; color: var(--ink); border: 0; border-radius: 10px; padding: 12px; font-family: 'Geologica', sans-serif; margin-top: 10px; }
.geo-boutons { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.geo-boutons .pilule.bleu { background: #fff; color: var(--ink); }
.geo-boutons .secondaire { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }

/* ---------- Lieux ---------- */
.lieux-liste { max-width: 560px; margin: 0 auto; text-align: left; }
.lieu { background: transparent; border-top: 1.5px solid var(--ligne); border-radius: 0; padding: 14px 2px; display: flex; justify-content: space-between; gap: 10px; text-align: left; }
.lieux-liste .lieu:last-child { border-bottom: 1.5px solid var(--ligne); }
.lieu strong { color: var(--ink); }
.lieu .zone { color: var(--soft); font-size: 13px; }
.filtres { display: flex; gap: 10px; margin: 0 auto 16px; flex-wrap: wrap; justify-content: center; }
.filtres select { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-family: 'Geologica', sans-serif; }

/* ---------- Pied ---------- */
.pied { background: var(--charbon); color: rgba(255,255,255,.85); padding: 30px 20px; text-align: center; font-size: 12.5px; }
.pied a { color: #fff; }
.pied .slogan { color: var(--jaune); font-weight: 800; margin-bottom: 6px; letter-spacing: .04em; }
.pied-liens { margin-top: 8px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.juridique { margin-top: 12px; font-size: 11px; opacity: .6; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: 14px; padding: 14px 20px; background: var(--charbon); font-size: 14px; flex-wrap: wrap; }
.admin-nav a { color: #d3d6d8; text-decoration: none; }
main.admin { max-width: 980px; margin: 0 auto; padding: 22px 20px 60px; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; background: var(--papier); border-radius: 12px; overflow: hidden; border: 1.5px solid var(--ligne); }
table.tableau th, table.tableau td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ligne); color: var(--ink); }
table.tableau th { color: var(--soft); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.flash { background: var(--papier); border: 1.5px solid var(--ligne); border-left: 5px solid var(--bleu); padding: 11px 13px; margin: 12px 0; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink); }
.admin-saisie { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 6px 9px; font-family: 'Geologica', sans-serif; }

@media (max-width: 560px) {
  .sec { padding: 30px 18px; }
  .logo-carte img { height: 78px; }
  .rangee-soiree .rs-info strong { font-size: 16.5px; }
}

/* ---------- Admin v2 : mobile first ---------- */
.admin-page { background: var(--bg); }
.admin-haut { position: sticky; top: 0; z-index: 60; background: var(--charbon); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.admin-tete { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 8px; color: #fff; }
.admin-tete strong { font-size: 16px; font-weight: 900; letter-spacing: .02em; }
.admin-page-nom { font-size: 13px; font-weight: 700; color: #aab0b4; text-transform: uppercase; letter-spacing: .1em; }
.admin-tete .quitter { margin-left: auto; color: #d3d6d8; text-decoration: none; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 0; }
.admin-nav { display: flex; gap: 8px; padding: 6px 14px 12px; background: var(--charbon); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { flex: 0 0 auto; display: flex; align-items: center; min-height: 42px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.09); color: #d3d6d8; text-decoration: none; font-weight: 800; font-size: 14.5px; }
.admin-nav a.actif { background: #fff; color: var(--charbon); }
main.admin { max-width: 980px; margin: 0 auto; padding: 16px 16px 90px; }
main.admin h1 { font-size: 28px; font-weight: 900; color: var(--ink); margin: 12px 0 2px; letter-spacing: -.01em; }

.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 720px) { .tuiles { grid-template-columns: repeat(4, 1fr); } }
.tuile { background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 16px; padding: 16px 15px 14px; }
.tuile .t-val { font-size: 27px; font-weight: 900; color: var(--ink); line-height: 1.05; }
.tuile .t-lib { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--soft); margin-top: 6px; }

details.accordeon { background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 16px; margin-top: 14px; overflow: hidden; }
details.accordeon > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 17px 18px; min-height: 58px; font-size: 16.5px; font-weight: 900; color: var(--ink); user-select: none; }
details.accordeon > summary::-webkit-details-marker { display: none; }
details.accordeon > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--soft); border-bottom: 2.5px solid var(--soft); transform: rotate(45deg); transition: transform .16s ease; flex: 0 0 auto; margin-top: -4px; }
details.accordeon[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.accordeon > summary .s-sous { font-size: 12.5px; font-weight: 600; color: var(--soft); display: block; margin-top: 2px; }
details.accordeon > summary .s-bloc { display: flex; flex-direction: column; min-width: 0; }
details.accordeon > summary .badge { flex: 0 0 auto; }
.accordeon-corps { padding: 2px 18px 18px; border-top: 1px solid var(--ligne); }
.accordeon-corps > :first-child { margin-top: 14px; }

.carte-item { background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 16px; padding: 15px 16px; margin-top: 10px; }
.carte-item .ci-haut { display: flex; align-items: flex-start; gap: 10px; }
.carte-item .ci-titre { font-weight: 900; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.carte-item .ci-sous { font-size: 13px; color: var(--soft); margin-top: 3px; }
.carte-item .ci-haut .badge { margin-left: auto; flex: 0 0 auto; }
.carte-item .ci-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.defile table.tableau { min-width: 620px; }

.champ-ligne { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.champ-ligne .admin-saisie { flex: 1 1 150px; }
main.admin .grille-2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { main.admin .grille-2 { grid-template-columns: 1fr 1fr; } }

main.admin .bouton { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
main.admin .bouton.mini-b { min-height: 40px; padding: 7px 16px; font-size: 13.5px; }
.admin-saisie, main.admin input[type=text], main.admin input[type=email], main.admin input[type=tel], main.admin input[type=number], main.admin select, main.admin textarea { font-size: 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 11px 12px; font-family: 'Geologica', sans-serif; max-width: 100%; }
main.admin input[type=file] { font-size: 14px; max-width: 100%; }
main.admin label.etiquette { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin: 12px 0 5px; }

@media (max-width: 560px) {
  main.admin h1 { font-size: 25px; }
  .carte-item .ci-actions form, .carte-item .ci-actions .bouton { flex: 1 1 auto; }
  .carte-item .ci-actions .bouton { width: 100%; }
}

/* ---------- Lecteur C : photo plein écran + feuille ---------- */
body.page-lecteur { background: #0b0d10; min-height: 100vh; }
body.page-lecteur::before { content: ""; position: fixed; inset: 0; background: url('/assets/img/fireworks-crowd.jpg') center/cover no-repeat; z-index: 0; }
body.page-lecteur::after { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.78) 0%, rgba(10,12,16,.62) 38%, rgba(10,12,16,.88) 76%, rgba(10,12,16,.97) 100%); z-index: 0; }
body.page-lecteur > * { position: relative; z-index: 1; }
body.page-lecteur .pied { color: rgba(255,255,255,.75); }
.lecteur { display: flex; flex-direction: column; min-height: calc(100vh - 150px); padding: 8px 18px 30px; }
.lecteur .date-lecteur { color: var(--jaune); }
.lecteur h1 { text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.lecteur .depart { margin-bottom: 8px; }
.disque { width: auto; height: auto; min-height: 150px; border: 0; background: transparent; margin: 14px auto; display: flex; align-items: center; justify-content: center; flex: 1; }
.disque .etat-txt { font-size: 15.5px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.decompte { font-size: 74px; font-weight: 900; line-height: 1.05; text-shadow: 0 4px 26px rgba(0,0,0,.65); }
.disque.joue .decompte { color: var(--jaune); }
.feuille-lecteur { background: #fff; color: var(--ink); border-radius: 22px; padding: 20px 20px 24px; margin-top: auto; box-shadow: 0 10px 40px rgba(0,0,0,.35); text-align: center; }
.feuille-lecteur .pilule.bleu.large { background: var(--bleu); color: #fff; width: 100%; }
.feuille-lecteur .consigne { color: var(--soft); margin-top: 12px; }
.feuille-lecteur .progression { background: #e9e6e2; margin: 16px auto 6px; }
.feuille-lecteur .progression .barre { background: var(--bleu); }
.feuille-lecteur .temps { color: var(--soft); }
.feuille-lecteur .controles button { background: var(--charbon); color: #fff; }
.feuille-lecteur #lien-controles { color: var(--soft); }
.feuille-lecteur .geo-carte { background: #f4f2ef; margin-top: 18px; }
.feuille-lecteur .geo-carte h3 { color: var(--ink); }
.feuille-lecteur .geo-carte p { color: var(--soft); }
.feuille-lecteur .geo-carte select { border: 2px solid var(--ink); }
.feuille-lecteur .geo-boutons .pilule.bleu { background: var(--bleu); color: #fff; }
.feuille-lecteur .geo-boutons .secondaire { background: #fff; border: 2px solid var(--ink); color: var(--ink); }
.feuille-lecteur .prochaine-lien a { color: var(--bleu); font-weight: 700; }
.fin-cta { display: none; margin-top: 6px; }
.fin-cta .pilule.orange { display: block; width: 100%; background: var(--orange); color: #fff; text-decoration: none; }
@media (max-width: 380px) { .decompte { font-size: 62px; } }
.page-lecteur .entete-lecteur { background: transparent; }

/* ---------- Soft wall géoloc ---------- */
.geo-mur { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(10,12,16,.82); align-items: flex-end; justify-content: center; }
.geo-mur.visible { display: flex; }
.geo-mur .geo-carte { background: #fff; color: var(--ink); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 26px 22px 30px; margin: 0; box-shadow: 0 -10px 40px rgba(0,0,0,.4); text-align: left; }
.geo-mur .geo-carte h3 { color: var(--ink); font-size: 20px; font-weight: 900; line-height: 1.25; }
.geo-mur .geo-carte p { color: var(--soft); font-size: 13.5px; margin-top: 8px; }
.geo-mur .geo-carte select { width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 13px 12px; font-size: 16px; font-family: 'Geologica', sans-serif; margin-top: 14px; background: #fff; color: var(--ink); }
.geo-mur .geo-boutons { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.geo-mur .geo-boutons .pilule.bleu { background: var(--bleu); color: #fff; width: 100%; }
.geo-refus { background: transparent; border: 0; color: var(--soft); font-family: 'Geologica', sans-serif; font-size: 13.5px; text-decoration: underline; padding: 12px; cursor: pointer; }
body.page-lecteur main { z-index: 2; }
body.page-lecteur .pied { z-index: 0; }

/* Mes soirées */
.etat-debloquee { display: inline-block; font-size: 12px; font-weight: 800; color: var(--vert); margin-top: 3px; }
.pilule.bleu.petite { background: var(--bleu); color: #fff; }

/* Fiches partenaires officiels */
.fiche-partenaire { display: flex; gap: 14px; align-items: flex-start; background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 16px; padding: 16px; }
.fiche-partenaire .fp-info { min-width: 0; flex: 1; }
.fp-badge { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--vert); background: rgba(0,168,90,.12); border-radius: 999px; padding: 5px 12px; margin-bottom: 6px; }
.fiche-partenaire strong { display: block; font-size: 17px; }
.fp-desc { font-size: 13.5px; color: var(--soft); margin-top: 6px; }
.fp-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: 0 0 auto; }
.fp-lien { font-size: 13px; color: var(--bleu); font-weight: 700; }
@media (max-width: 480px) {
  .fiche-partenaire { flex-direction: column; }
  .fp-actions { flex-direction: row; align-items: center; width: 100%; }
  .fp-actions .pilule { flex: 1; text-align: center; justify-content: center; }
}

/* Ajouts multi-soirées au checkout */
.ajouts-soirees { background: #f4f2ef; border-radius: 14px; padding: 14px 16px; margin: 6px 0 4px; }
.ajouts-titre { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--charbon); margin-bottom: 6px; }
.case-ajout { font-size: 14px; }
.fp-vignette { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; border: 1.5px solid var(--ligne); }
.fp-vignette-defaut { display: flex; align-items: center; justify-content: center; background: #f0eeeb; }
@media (max-width: 480px) { .fiche-partenaire { flex-direction: row; flex-wrap: wrap; } .fp-vignette { width: 56px; height: 56px; } }

/* Guide pas-à-pas du lecteur */
.guide-bouton { display: block; margin: 10px auto 0; background: transparent; border: 0; color: var(--soft); font-family: 'Geologica', sans-serif; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.guide-mur { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(10,12,16,.82); align-items: center; justify-content: center; padding: 20px; }
.guide-mur.visible { display: flex; }
.guide-carte { background: #fff; color: var(--ink); width: 100%; max-width: 400px; border-radius: 22px; padding: 30px 24px 24px; text-align: center; box-shadow: 0 16px 60px rgba(0,0,0,.4); }
.guide-etape { display: none; }
.guide-etape.active { display: block; }
.guide-ico { font-size: 46px; line-height: 1; margin-bottom: 12px; }
.guide-carte h3 { font-size: 21px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.guide-carte p { font-size: 15.5px; line-height: 1.5; color: var(--charbon); min-height: 72px; }
.guide-points { display: flex; gap: 8px; justify-content: center; margin: 16px 0 14px; }
.guide-points span { width: 9px; height: 9px; border-radius: 50%; background: #ddd9d4; }
.guide-points span.actif { background: var(--bleu); }
.guide-carte .pilule.bleu { background: var(--bleu); color: #fff; width: 100%; }

/* Onde sonore animée pendant la lecture */
.onde-live { display: flex; gap: 5px; align-items: center; justify-content: center; height: 64px; }
.onde-live i { display: block; width: 7px; border-radius: 4px; background: var(--jaune); height: 18px; animation: onde-pulse 1.15s ease-in-out infinite; }
.onde-live i:nth-child(1) { animation-delay: 0s; }
.onde-live i:nth-child(2) { animation-delay: .12s; }
.onde-live i:nth-child(3) { animation-delay: .24s; }
.onde-live i:nth-child(4) { animation-delay: .36s; }
.onde-live i:nth-child(5) { animation-delay: .48s; }
.onde-live i:nth-child(6) { animation-delay: .36s; }
.onde-live i:nth-child(7) { animation-delay: .24s; }
.onde-live i:nth-child(8) { animation-delay: .12s; }
.onde-live i:nth-child(9) { animation-delay: 0s; }
.onde-texte { font-size: 14px; color: #fff; margin-top: 10px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
@keyframes onde-pulse { 0%, 100% { height: 14px; opacity: .75; } 50% { height: 56px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .onde-live i { animation: none; height: 34px; } }

/* État terminé du lecteur */
.commanditaire { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.fin-message { font-size: 26px; font-weight: 900; line-height: 1.25; color: #fff; text-shadow: 0 3px 20px rgba(0,0,0,.6); padding: 0 10px; }
.depart.heure-maj { color: var(--jaune); font-weight: 800; animation: heure-flash 1s ease 3; }
@keyframes heure-flash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Outil régie */
.regie { max-width: 430px; margin: 0 auto; padding: 20px 18px 60px; text-align: center; color: #fff; }
.regie h1 { color: #fff; font-size: 26px; margin-top: 6px; }
.regie-date { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 2px; }
.regie-carte { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25); border-radius: 18px; padding: 20px; margin-top: 16px; }
.regie-lib { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.regie-heure { font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; margin: 6px 0; color: #fff; }
.regie-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.regie .pilule { min-height: 54px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; font-size: 17px; border-radius: 999px; }
.regie .pilule.blanche { background: #fff; color: var(--charbon); }
.regie .pilule.bleu { background: var(--bleu); color: #fff; }
.regie .pilule.orange { background: var(--orange); color: #fff; width: 100%; margin-top: 10px; }
.regie-exacte { display: flex; gap: 10px; margin-top: 10px; }
.regie-exacte input[type=time] { flex: 1; font-size: 22px; font-weight: 800; text-align: center; border: 0; border-radius: 12px; padding: 10px; font-family: 'Geologica', sans-serif; }
.regie-confirme { border-color: var(--jaune); }
.regie-annuler { display: inline-block; margin-top: 12px; color: rgba(255,255,255,.8); font-size: 14px; }
.regie-flash { background: rgba(0,168,90,.2); border: 1.5px solid var(--vert); color: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 14.5px; }
.regie-note { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 16px; line-height: 1.5; }

/* Bénéfices licence commerciale */
.benefices-partenaire { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .benefices-partenaire { grid-template-columns: repeat(3, 1fr); } }
.bp-item { background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 14px; padding: 14px 15px; display: flex; flex-direction: column; gap: 4px; }
.bp-item strong { font-size: 14.5px; color: var(--ink); }
.bp-item span { font-size: 13px; color: var(--soft); line-height: 1.45; }

/* ---------- firmes pyrotechniques ---------- */
.rs-firme { display: block; font-size: 11.5px; color: #8a8a92; line-height: 1.35; margin-top: 2px; }
.firme-soiree { font-size: 13px; color: #6d6d76; margin: 2px 0 6px; line-height: 1.4; }

/* ---------- entete burger + menu plein ecran ---------- */
.entete-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; }
.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 3.5px; width: 100%; background: #fff; border-radius: 3px; }
.menu-plein { position: fixed; inset: 0; z-index: 80; background: #141418; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; animation: menu-entre .18s ease-out; }
@keyframes menu-entre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-plein[hidden] { display: none; }
.menu-fermer { position: absolute; top: 14px; right: 16px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.menu-liens { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.menu-liens a { display: block; padding: 9px 18px; color: var(--creme, #f6f1e7); font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: 0.2px; }
.menu-liens a:active, .menu-liens a:hover { color: var(--jaune, #f4ec4a); }
.menu-bas { margin-top: 26px; display: flex; gap: 26px; }
.menu-bas a { color: #b9b9c2; font-size: 15px; font-weight: 600; text-decoration: none; }
body.menu-actif { overflow: hidden; }

/* ---------- Porte d'entrée : gate plein écran à l'arrivée sur l'accueil ----------
   Se glisse SOUS le vrai en-tête du site (.entete-site, 96px, z-index 20/21) au lieu d'en
   dupliquer un : même en-tête partout, logo suspendu compris. */
.accueil-porte { --or: #cf9d67; position: fixed; top: 96px; left: 0; right: 0; bottom: 0; z-index: 15; overflow-y: auto; background: #05070b; display: flex; flex-direction: column; }
.accueil-porte[hidden] { display: none; }
.ap-fond {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,11,.2) 0%, rgba(5,7,11,.4) 55%, rgba(5,7,11,.84) 100%),
    url('/assets/img/porte-fond-bureau.webp') center center / cover no-repeat;
}
.ap-fermer { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(0,0,0,.3); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.ap-corps { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 40px 22px 56px; text-align: center; animation: ap-monte .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.ap-contenu { width: min(100%, 620px); }
.ap-eyebrow { color: var(--or); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; margin: 0 0 14px; }
.ap-titre { color: #fff; font-size: clamp(30px, 6vw, 52px); letter-spacing: -.03em; line-height: 1.06; margin: 0; text-wrap: balance; }
.ap-soustitre { color: rgba(255,255,255,.85); font-size: clamp(15px, 2vw, 18px); max-width: 480px; margin: 18px auto 0; line-height: 1.55; }
.ap-actions { width: min(100%, 440px); margin: 28px auto 0; display: grid; gap: 12px; }
.ap-actions .pilule { width: 100%; }
.ap-actions .pilule.secondaire { border-color: rgba(255,255,255,.7); color: #fff; }
.ap-note { display: flex; align-items: flex-start; gap: 10px; justify-content: flex-start; text-align: left; max-width: 440px; margin: 22px auto 0; color: rgba(255,255,255,.78); font-size: 12.5px; line-height: 1.5; }
.ap-cadenas { flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 999px; border: 1.5px solid var(--or); color: var(--or); display: flex; align-items: center; justify-content: center; }
body.porte-active { overflow: hidden; }
@keyframes ap-monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
  .ap-fond { background: linear-gradient(180deg, rgba(5,7,11,.2) 0%, rgba(5,7,11,.42) 62%, rgba(5,7,11,.88) 100%), url('/assets/img/porte-fond-mobile.webp') center top / cover no-repeat; }
  .ap-corps { padding: 24px 20px 40px; }
  .ap-titre { font-size: clamp(28px, 9vw, 40px); }
  .ap-note { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .accueil-porte, .accueil-porte * { animation: none !important; transition: none !important; } }
