/* 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; min-height: 100dvh; 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: flex; width: 100%; background: var(--orange); color: #fff; text-decoration: none; }
.fin-cta .pilule.bleu { display: flex; width: 100%; background: var(--bleu); color: #fff; margin-bottom: 10px; }
@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 ----------
   Couvre TOUT le viewport, en-tête du site inclus (top:0, z-index au-dessus de .entete-site/.logo-carte,
   20/21) : c'est un vrai écran d'accueil à 100 %, pas un popup superposé au-dessus du contenu (demande
   client, 29 juillet). Aucun bouton fermer : seuls les 3 choix de la porte permettent d'en sortir. */
.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-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; }
/* Billet et burger retirés du header tant que la porte est affichée (demande client) : le logo
   reste visible/cliquable (juste un lien vers "/", inoffensif), mais ces deux-là menaient ailleurs
   sans passer par un des 3 choix de la porte. */
body.porte-active .entete-ico, body.porte-active .burger { display: none; }
@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; } }

/* ==========================================================================
   v30 — Moteur temporel visible + lecteur minimaliste (refonte 15 aout 2026)
   ========================================================================== */

/* L'attribut hidden doit TOUJOURS gagner, meme contre display:flex */
[hidden] { display: none !important; }

/* Badges d'etat des soirees (alimentes par etat_soiree, jamais ecrits a la main) */
.badge.direct { background: #b41f2e; color: #fff; animation: pulse-direct 1.6s ease-in-out infinite; }
.badge.cesoir { background: var(--ink, #14141f); color: #fff; }
.badge.replay { background: #e8f4ec; color: #0b6b38; }
@keyframes pulse-direct { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Soiree pertinente : plus de poids visuel, sans retirer les autres (mode saison) */
.rangee-soiree.vedette { border: 2px solid var(--ink, #14141f); border-radius: 14px; padding: 14px 12px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.rangee-soiree.vedette .rs-info strong { font-size: 1.12em; }

/* Statut de synchronisation — la ligne de verite du direct */
.sync-etat { text-align: center; font-weight: 700; font-size: 15px; margin: 10px 0 2px; color: #0b6b38; }
.sync-etat.demo { margin: 0; }

/* Actions du direct : deux gestes secondaires, jamais une rangee de boutons equivalents */
.actions-live { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.actions-live .pilule { padding: 12px 18px; font-size: 15px; }

/* Interruption : on le dit, et le bon geste est UN SEUL gros bouton */
.banniere-interrompu { text-align: center; background: #fdf3e7; border: 2px solid #e8b04b; border-radius: 14px; padding: 16px 14px 18px; margin-bottom: 14px; }
.banniere-interrompu p { font-weight: 800; margin: 0 0 12px; }

/* Test de son (avant T0) */
#btn-test-son { margin-top: 10px; }
#test-son-msg { min-height: 1em; margin-top: 8px; }

/* Reecoute enrichie : controles complets, meme langage visuel que le direct */
.controles-reecoute { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.controles-reecoute button { border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; min-width: 64px; }
.controles-reecoute #btn-r-pp { font-size: 18px; }
#prog { cursor: default; }
.lecteur[data-etat] .progression.saut-actif { cursor: pointer; }

/* Guide 3 ecrans : replique inerte du VRAI UI (memes classes que le lecteur) */
.guide-demo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; pointer-events: none; }
.guide-demo .pilule.demo { display: inline-block; }
.guide-demo .onde-live.demo { display: inline-flex; }

/* Aide (depannage) : reutilise l'ossature du guide-mur */
.aide-carte { text-align: left; }
.aide-carte h3 { text-align: center; margin-bottom: 14px; }
.aide-item { padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); }
.aide-item:first-of-type { border-top: 0; }
.aide-item .aide-q { font-weight: 700; margin: 0 0 8px; }
.aide-item .pilule { display: inline-block; }
.aide-avance-lien { background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; color: inherit; }
#aide-fermer { margin-top: 14px; width: 100%; }

/* Sticky CTA (home + pages soiree SEULEMENT — jamais le lecteur) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink, #14141f); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(0,0,0,.22); }
.sticky-cta .sc-txt { min-width: 0; }
.sticky-cta .sc-titre { display: block; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .sc-ligne2 { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .85; }
.sticky-cta .sc-point { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; animation: pulse-direct 1.6s ease-in-out infinite; }
.sticky-cta .pilule { flex: none; }
body.avec-sticky { padding-bottom: 84px; }
@media (min-width: 741px) { .sticky-cta { display: none; } body.avec-sticky { padding-bottom: 0; } }

/* ==========================================================================
   v32 — Stabilisation UI (15 aout 2026) : cartes soirees mobiles, footer/sticky,
   lecteur par phase, aide compacte, checkout, hierarchie des boutons
   ========================================================================== */

/* ---- P0.1 Programmation mobile : cartes verticales structurelles (pas de retrecissement de police) ---- */
@media (max-width: 560px) {
  .liste-soirees .rangee-soiree {
    display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "ico info" "action action";
    row-gap: 12px; column-gap: 12px; align-items: start;
    background: #fff; border: 1.5px solid var(--ligne); border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
  }
  .liste-soirees .rangee-soiree:last-child { border-bottom: 1.5px solid var(--ligne); margin-bottom: 0; }
  .rangee-soiree .aster-rond { grid-area: ico; width: 40px; height: 40px; }
  .rangee-soiree .aster-rond svg { width: 22px; height: 22px; }
  .rangee-soiree .rs-info { grid-area: info; }
  .rangee-soiree .rs-info strong { font-size: 16.5px; }
  .rangee-soiree .rs-action { grid-area: action; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; }
  .rangee-soiree .rs-action .pilule { margin-left: auto; min-height: 44px; }
  .rangee-soiree.passee { background: transparent; }
}

/* ---- P0.2 Soiree vedette : hierarchie discrete, pas une boite geante ---- */
.rangee-soiree.vedette { border: 2px solid var(--ink, #14141f); border-radius: 14px; padding: 14px 12px; background: #fff; box-shadow: none; }
.rangee-soiree.vedette .rs-info strong { font-size: inherit; }
@media (max-width: 560px) { .liste-soirees .rangee-soiree.vedette { padding: 14px; } }

/* ---- P0.3 + P0.4 Espace apres le pied de page : la reserve du sticky vit DANS le footer sombre,
   une seule fois, safe-area comprise. Fini la bande claire sous le footer. ---- */
body.avec-sticky { padding-bottom: 0; }
body.avec-sticky footer.pied { padding-bottom: calc(30px + 88px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 741px) { body.avec-sticky footer.pied { padding-bottom: 30px; } }

/* iOS : 100vh fantome -> unites dynamiques quand disponibles */
body.page-lecteur { min-height: 100vh; min-height: 100dvh; }
.lecteur { min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); }

/* ---- Sticky CTA compact ---- */
.sticky-cta { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
.sticky-cta .sc-titre { font-size: 14.5px; }
.sticky-cta .sc-ligne2 { font-size: 12px; }
.sticky-cta .pilule { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
body.sticky-repli .sticky-cta { transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta { transition: transform .25s ease; }

/* ---- P1 Lecteur : tailles de panneau par phase ---- */
.lecteur[data-phase="live"] .feuille-lecteur { padding: 16px 16px 18px; }
.lecteur[data-phase="live"] .disque { min-height: 170px; }
.lecteur[data-phase="fin"] .feuille-lecteur, .lecteur[data-phase="reecoute"] .feuille-lecteur { padding: 18px 18px 20px; }
.sync-etat { font-size: 14.5px; }

/* ---- P1 Guide : -25 %, compteur "1 de 3", replique UI compacte ---- */
.guide-carte { padding: 24px 20px 20px; max-width: 380px; }
.guide-carte h3 { font-size: 19px; margin-bottom: 6px; }
.guide-carte p { font-size: 14.5px; min-height: 0; }
.guide-points { margin: 14px 0 6px; }
.guide-compteur { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
#guide-suivant { width: 100%; min-height: 48px; }
.guide-demo { margin-bottom: 12px; gap: 8px; }
.guide-demo .onde-live { height: 40px; }
.guide-demo .onde-live i { width: 5px; }
@keyframes onde-pulse-demo { 0%, 100% { height: 10px; } 50% { height: 34px; } }
.guide-demo .onde-live i { animation-name: onde-pulse-demo; }

/* ---- P1 Aide : bottom sheet compacte, lignes scannables ---- */
#aide-mur { align-items: flex-end; padding: 0; }
#aide-mur .guide-carte { max-width: none; width: 100%; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 50px rgba(0,0,0,.45); }
@media (min-width: 560px) { #aide-mur { align-items: center; padding: 20px; } #aide-mur .guide-carte { max-width: 420px; border-radius: 20px; } }
.aide-carte { position: relative; text-align: left; padding: 20px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
.aide-carte h3 { text-align: left; font-size: 18px; margin-bottom: 8px; padding-right: 40px; }
.aide-x, #aide-fermer { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.aide-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0,0,0,.08); }
.aide-item .ai-txt { flex: 1; min-width: 0; }
.aide-item .ai-txt strong { display: block; font-size: 14.5px; color: var(--ink); }
.aide-item .ai-txt span { display: block; font-size: 12.5px; color: var(--soft); line-height: 1.4; margin-top: 2px; }
.aide-item .pilule.petite { flex: none; min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.aide-pied { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); font-size: 13px; color: var(--soft); }
.aide-pied a { color: var(--soft); }

/* ---- P2 Checkout : notes de champ, consentements titres + texte secondaire, ajouts produit ---- */
.champ-note { font-size: 12px; color: var(--soft); line-height: 1.4; margin-top: 6px; }
.case-txt { flex: 1; min-width: 0; }
.case-txt strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.case-txt > span { display: block; font-size: 12.5px; color: var(--soft); line-height: 1.45; }
.ajouts-soirees { display: grid; gap: 8px; background: transparent; padding: 0; margin: 6px 0 4px; }
.ajouts-titre { margin-bottom: 2px; }
.case-ajout { align-items: center; background: #fff; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 12px 14px; gap: 12px; }
.case-ajout .aj-txt { flex: 1; min-width: 0; }
.case-ajout .aj-txt strong { display: block; font-size: 14.5px; color: var(--ink); }
.case-ajout .aj-txt span { display: block; font-size: 12.5px; color: var(--soft); margin-top: 1px; }
.case-ajout .aj-prix { flex: none; font-weight: 800; font-size: 14px; color: var(--ink); background: #f4f2ef; border-radius: 999px; padding: 7px 12px; white-space: nowrap; }

/* ---- P3 Porte + hierarchie des boutons : orange = conversion, bleu = action app, contour = secondaire ---- */
.ap-lien { display: inline-block; color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.lien-deja { display: block; text-align: center; margin-top: 14px; font-size: 13px; }

/* ---- P3 Pied de page ---- */
.pied-sig { margin-top: 10px; opacity: .75; font-size: 12px; }
.pied-sig a { font-weight: 700; }

/* ---- v33 : correctifs QA bêta ---- */
/* La porte d'entrée a son propre chemin de conversion : pas de sticky par-dessus (il masquait la note). */
body.porte-active .sticky-cta { display: none; }
/* Le bouton bleu de l'aide ne doit PAS heriter du width:100% du guide (la carte partage .guide-carte). */
#aide-mur .guide-carte .pilule.bleu { width: auto; }

/* ---- v34 : ordre des soirees + bordure vedette ---- */
/* La regle :last-child (border-bottom 1.5px ligne) ecrasait le bas de la bordure encre 2px
   de la carte vedette (specificite 0-3-0 vs 0-2-0). On la re-affirme au meme niveau, plus tard. */
.liste-soirees .rangee-soiree.vedette { border: 2px solid var(--ink, #14141f); }

/* ==========================================================================
   v35 — Finition premium : entete d'achat, lecteur, guide/aide aux couleurs
   des Grands Feux (jaune #f4ec4a, rose #ec3e5c, bleu #3896e8, orange #ff5a30,
   vert #00a85a, violet #7231B8, encre #14141f, creme #f6f1e7)
   ========================================================================== */

/* ---- Entete de la page d'achat : rythme vertical serre et regulier ---- */
.entete-achat .kicker { margin-bottom: 10px; }
.entete-achat .soiree-bloc .date { margin-bottom: 5px; opacity: .7; }
.entete-achat .soiree-bloc h3 { font-size: clamp(25px, 6.6vw, 30px); margin-bottom: 3px; letter-spacing: -.015em; }
.entete-achat .firme-soiree { margin: 0; }
.entete-achat .badge-ligne { margin: 12px 0 10px; }
.entete-achat .infos { font-size: 13.5px; }

/* ---- Lecteur : feuille blanche premium ---- */
.feuille-lecteur { border-radius: 26px; padding: 26px 22px 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.feuille-lecteur .pilule.bleu.large, .feuille-lecteur .pilule.orange.large { min-height: 56px; font-size: 17px; }
.feuille-lecteur .pilule.bleu.large { box-shadow: 0 10px 28px rgba(56, 150, 232, .32); }
.consigne { font-size: 14.5px; line-height: 1.55; color: #6a6a72; max-width: 310px; margin: 12px auto 0; }
#btn-test-son { margin-top: 14px; }
.guide-bouton { margin-top: 16px; font-size: 13px; color: #8a8a92; }
.prochaine-lien { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(20, 20, 31, .08); max-width: none; }
.feuille-lecteur .prochaine-lien a, .prochaine-lien a { color: var(--charbon, #202223); font-weight: 800; text-decoration: none; }
.prochaine-lien a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Guide + aide : cartes premium, replique dans une scene creme ---- */
.guide-carte { border-radius: 26px; padding: 26px 20px 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.guide-demo { background: #f2eadb; border: 1px solid rgba(20, 20, 31, .05); border-radius: 18px; padding: 24px 16px; margin: 0 0 16px; position: relative; }
.guide-demo .scene-aster { position: absolute; top: 12px; right: 12px; }
.guide-carte h3 { font-size: 20px; margin-bottom: 7px; }
.guide-carte p { font-size: 15px; color: var(--charbon, #202223); }
.guide-pied-points { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 14px; }
.guide-points { margin: 0; gap: 8px; }
.guide-points span { width: 10px; height: 10px; transition: transform .2s ease, opacity .2s ease; opacity: .25; }
.guide-points span:nth-child(1) { background: #f4ec4a; }
.guide-points span:nth-child(2) { background: #ec3e5c; }
.guide-points span:nth-child(3) { background: #3896e8; }
.guide-points span.actif { opacity: 1; transform: scale(1.3); }
.guide-compteur { margin-bottom: 0; }
.guide-carte .pilule.orange { background: var(--orange, #ff5a30); color: #fff; width: 100%; min-height: 52px; box-shadow: 0 10px 28px rgba(255, 90, 48, .32); }
#aide-mur .guide-carte .pilule.bleu { box-shadow: none; min-height: 40px; font-size: 13.5px; }

/* ==========================================================================
   v38 — Lecteur = ecran app fixe (aucun defilement de page) + soirees passees
   ========================================================================== */

/* Logo lecteur */
.logo-lecteur { height: 116px; margin: 0 auto; display: block; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)); }

/* Verrou plein ecran : la page du lecteur ne defile JAMAIS. La feuille blanche
   defile a l'interne si son contenu depasse (ex. ecran de fin avec sondage). */
body.page-lecteur { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.page-lecteur main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.lecteur { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0 18px 4px; }
.lecteur .l-haut { flex: none; }
.disque { flex: 1 1 auto; min-height: 40px; margin: 2px auto; }
.feuille-lecteur { flex: 0 1 auto; min-height: 0; margin-top: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Nouveau pied du lecteur : une signature discrete DANS l'ecran, pas de vide en dessous */
.pied-lecteur { flex: none; text-align: center; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 10.5px; line-height: 1.55; color: rgba(255, 255, 255, .5); }
.pied-lecteur span { display: block; }
.pied-lecteur a { color: rgba(255, 255, 255, .78); font-weight: 700; text-decoration: none; }

/* Ecrans courts : on compacte pour que tout tienne */
@media (max-height: 760px) {
  .logo-lecteur { height: 88px; }
  .lecteur .l-haut h1 { font-size: 28px; }
  .feuille-lecteur { padding: 20px 18px 18px; }
  .pied-lecteur { font-size: 10px; padding-top: 6px; }
}
/* Paysage tres court : le verrou cederait du contenu — on redonne le defilement */
@media (max-height: 480px) {
  body.page-lecteur { height: auto; min-height: 100dvh; overflow-y: auto; }
}

/* Soirees passees sur la programmation : presence attenuee, sans bouton d'achat */
.rangee-soiree.estompee { opacity: .72; }

/* ==========================================================================
   v39 — Verrou du defilement au-dela du pied de page (toutes les pages)
   Chrome/mesures : la page se termine exactement au footer (ecart 0 px).
   Le "vide blanc" vient du rebond elastique iOS qui etire au-dela du bord :
   1) le fond du document devient charbon -> plus jamais de bande blanche;
   2) overscroll-behavior none -> plus d'etirement au-dela des bords (iOS 16+).
   ========================================================================== */
html { background: var(--charbon, #202223); overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }

/* ==========================================================================
   v40 — Pilules reduites de ~20 % partout (public), titres des cartes soirees
   plus affirmes, cartes passees sans badge
   ========================================================================== */

/* Boutons : -15 a -25 % sur toute l'interface publique.
   (.regie et l'admin gardent leurs regles dediees, plus specifiques.) */
.pilule { min-height: 44px; padding: 0 22px; font-size: 15px; }
.pilule.large { min-height: 48px; }
.pilule.petite { min-height: 36px; padding: 0 15px; font-size: 13px; }
.rangee-soiree .rs-action .pilule { min-height: 38px; }
.sticky-cta .pilule { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.feuille-lecteur .pilule.bleu.large, .feuille-lecteur .pilule.orange.large { min-height: 48px; font-size: 16px; }
.guide-carte .pilule.orange, #guide-suivant { min-height: 44px; }
.aide-item .pilule.petite { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.actions-live .pilule { padding: 9px 15px; font-size: 13.5px; }
.controles-reecoute button { padding: 10px 15px; font-size: 13.5px; min-width: 56px; }
.controles-reecoute #btn-r-pp { font-size: 16px; }

/* Titres des cartes soirees : un vrai heading */
.rangee-soiree .rs-info strong { font-size: 19px; letter-spacing: -.01em; }

/* Rangee d'action absente (soirees passees) : la carte reste compacte */
.rangee-soiree .rs-action:empty { display: none; }

/* v41 : le titre 19px s'applique aussi a la carte vedette (battait la regle par "inherit") */
.rangee-soiree .rs-info strong, .liste-soirees .rangee-soiree.vedette .rs-info strong { font-size: 19px; }

/* v42 : logo lecteur nettement plus grand (116px, 88px sur ecrans courts, 64px en tres court) */
@media (max-height: 620px) { .logo-lecteur { height: 64px; } }

/* ==========================================================================
   v44 — REDESIGN VISUEL DU LECTEUR (reference : demo interactif Matthieu)
   Deux zones : EXPERIENCE (plein ecran immersif) + PLATEAU utilitaire compact.
   Roles des couleurs dans le lecteur : bleu = interaction, vert = synchro ok,
   jaune = onde, rouge sobre = LIVE, neutre pour le reste. Jamais d'orange ici.
   ========================================================================== */

/* ---- Fond : la photo respire, degrade vertical + vignette (comme le demo) ---- */
body.page-lecteur::after {
  background:
    radial-gradient(circle at 50% 28%, transparent 0 17%, rgba(0, 0, 0, .08) 44%, rgba(0, 0, 0, .42) 100%),
    linear-gradient(180deg, rgba(3, 4, 7, .08) 0%, rgba(3, 4, 7, .2) 38%, rgba(3, 4, 7, .62) 70%, rgba(3, 4, 7, .94) 100%);
}

/* ---- Marque : discrete, l'etat prime sur le logo ---- */
.logo-lecteur { height: 84px; }

/* ---- ZONE A — EXPERIENCE ---- */
.lecteur { padding: 0 22px 4px; }
.lecteur .date-lecteur { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--jaune); opacity: 1; }
.lecteur .l-haut h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.03; margin: 9px 0 0; }
.commanditaire { font-size: 12.5px; color: rgba(255, 255, 255, .75); margin-top: 7px; text-shadow: none; }
.lecteur .depart { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* Etat temporel : libelle calme + decompte heroique */
.disque { margin: 6px auto 2px; }
.etat-txt { font-size: 18px; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.etat-txt .decompte { font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.06em; margin-top: 4px; color: #fff; font-variant-numeric: tabular-nums; }
.derniere-minute .etat-txt .decompte { color: var(--jaune); }
@media (max-width: 350px) { .etat-txt .decompte { font-size: 64px; } .lecteur .l-haut h1 { font-size: 30px; } }
@media (max-height: 700px) { .etat-txt .decompte { font-size: 60px; } }

/* LIVE : badge sobre (sans clignotement) + onde signature + phrase calme */
.etat-txt .badge.direct { display: inline-flex; align-items: center; gap: 8px; background: rgba(200, 70, 88, .92); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; animation: none; }
.etat-txt .badge.direct::before { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.onde-live { height: 76px; gap: 6px; margin: 13px auto 5px; justify-content: center; }
.onde-live i { width: 6px; border-radius: 999px; background: #f3df2f; animation: onde-scale 1.05s ease-in-out infinite; }
.onde-live i:nth-child(1) { height: 24px; animation-delay: -.8s; }
.onde-live i:nth-child(2) { height: 44px; animation-delay: -.67s; }
.onde-live i:nth-child(3) { height: 58px; animation-delay: -.54s; }
.onde-live i:nth-child(4) { height: 36px; animation-delay: -.41s; }
.onde-live i:nth-child(5) { height: 66px; animation-delay: -.28s; }
.onde-live i:nth-child(6) { height: 48px; animation-delay: -.15s; }
.onde-live i:nth-child(7) { height: 30px; animation-delay: -.62s; }
.onde-live i:nth-child(8) { height: 50px; animation-delay: -.34s; }
.onde-live i:nth-child(9) { height: 25px; animation-delay: -.1s; }
@keyframes onde-scale { 0%, 100% { transform: scaleY(.58); opacity: .68; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .onde-live i { animation: none; transform: scaleY(.8); } }
.onde-texte { font-size: 14px; color: rgba(255, 255, 255, .9); margin-top: 5px; text-shadow: none; }
.fin-message { font-size: 24px; }

/* ---- ZONE B — PLATEAU utilitaire compact (remplace le grand panneau blanc) ---- */
.feuille-lecteur { background: rgba(250, 250, 248, .97); color: #17191d; border-radius: 26px; padding: 20px; box-shadow: 0 22px 60px rgba(0, 0, 0, .36); }
.lecteur[data-phase="live"] .feuille-lecteur { padding: 17px 18px; }
.lecteur[data-phase="fin"] .feuille-lecteur, .lecteur[data-phase="reecoute"] .feuille-lecteur { padding: 20px; }

/* Bouton principal : substantiel, sans halo */
.feuille-lecteur .pilule.bleu.large { min-height: 58px; font-size: 18px; font-weight: 800; box-shadow: none; border-radius: 999px; }
.feuille-lecteur .pilule.bleu.large:active { transform: scale(.985); filter: brightness(.96); }
/* Secondaires : contour fin, neutres */
.feuille-lecteur .pilule.secondaire { min-height: 46px; border: 1.7px solid #24272c; color: #202329; font-size: 14px; font-weight: 700; padding: 0 18px; }
/* Blanc (vote, hors roles du lecteur) */
.pilule.blanche { background: #fff; color: #17191d; border: 1.7px solid #24272c; }

/* Consigne courte sous le bouton */
.feuille-lecteur .consigne { font-size: 13.5px; line-height: 1.45; color: #6b6f76; margin: 13px 4px 0; max-width: none; }
#btn-test-son { margin-top: 14px; }
#test-son-msg { font-size: 14px; margin-top: 10px; min-height: 0; }
#test-son-msg.ok { color: #1d9a59; font-weight: 800; }
#test-son-msg:empty { display: none; }
.guide-bouton { margin-top: 12px; font-size: 13px; font-weight: 650; color: #555a61; text-decoration: underline; text-underline-offset: 3px; }

/* Statut de synchro : indicateur, pas un titre */
.sync-etat { color: #1d9a59; font-size: 16px; font-weight: 800; margin: 2px 0 0; }
.sync-etat.en-cours { color: #6b6f76; }
.actions-live { gap: 10px; margin-top: 14px; }

/* Progression discrete */
.progression { height: 4px; background: #e8e6e2; border-radius: 999px; overflow: hidden; margin-top: 15px; }
.progression .barre { background: var(--bleu); height: 100%; }
.temps { color: #7a7e84; font-size: 12px; margin-top: 6px; display: flex; justify-content: space-between; }

/* Interruption : etat clair, action bleue unique */
.banniere-interrompu { background: transparent; border: 0; padding: 2px 0 6px; margin-bottom: 4px; }
.banniere-interrompu p#interrompu-titre { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: #17191d; }
.banniere-interrompu .tray-sous { font-size: 13.5px; color: #6b6f76; margin: 0 0 14px; font-weight: 400; }

/* Reecoute : cercles -15 / +15, meme langage que le demo */
.controles-reecoute { gap: 12px; margin-top: 14px; align-items: center; }
.controles-reecoute button { width: 50px; height: 50px; min-width: 0; padding: 0; border: 1.6px solid #222; border-radius: 50%; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.controles-reecoute #btn-r-pp { width: 58px; height: 58px; font-size: 19px; }

/* Fin : reecouter bleu, vote blanc, note calme */
.fin-cta .pilule.bleu { margin-bottom: 10px; }
.fin-cta .pilule.blanche { display: flex; width: 100%; margin-bottom: 10px; }

/* Prochaine soiree : tertiaire, jamais un element majeur */
.prochaine-lien { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e8e6e2; }
.feuille-lecteur .prochaine-lien a, .prochaine-lien a { color: #555a61; font-weight: 650; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* Pied : ne rivalise jamais avec l'experience */
.pied-lecteur { color: rgba(255, 255, 255, .35); font-size: 10.5px; }
.pied-lecteur a { color: rgba(255, 255, 255, .5); }

/* ---- GUIDE : superposition du VRAI produit, sobre ---- */
#guide-mur, #aide-mur { background: rgba(4, 5, 8, .74); backdrop-filter: blur(3px); }
#guide-mur .guide-carte { background: #fbfbf9; border-radius: 28px; width: min(92%, 360px); max-width: 360px; padding: 22px; box-shadow: 0 26px 70px rgba(0, 0, 0, .4); }
.guide-demo { background: #f0ece2; border: 0; border-radius: 18px; padding: 15px; margin: 0 0 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.guide-demo .pilule.demo { box-shadow: none; }
.guide-demo .pilule.bleu.demo { background: var(--bleu); color: #fff; width: auto; min-height: 0; padding: 12px 22px; font-size: 15px; font-weight: 800; }
.guide-demo .badge.direct.demo { background: #ce6875; padding: 7px 11px; font-size: 11px; }
.guide-demo .badge.direct.demo::before { display: none; }
.guide-demo .onde-live.demo { height: 38px; gap: 4px; margin: 0; }
.guide-demo .onde-live.demo i { width: 5px; }
.guide-demo .onde-live.demo i:nth-child(1) { height: 18px; }
.guide-demo .onde-live.demo i:nth-child(2) { height: 28px; }
.guide-demo .onde-live.demo i:nth-child(3) { height: 38px; }
.guide-demo .onde-live.demo i:nth-child(4) { height: 25px; }
.guide-demo .onde-live.demo i:nth-child(5) { height: 33px; }
.guide-demo .onde-live.demo i:nth-child(6) { height: 20px; }
.guide-demo .sync-etat.demo { font-size: 14px; margin: 0; }
.guide-demo .pilule.secondaire.demo { min-height: 0; padding: 10px 17px; border-width: 1.6px; font-size: 14px; font-weight: 800; }
.guide-carte h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 0; }
.guide-carte p { font-size: 14.5px; line-height: 1.45; color: #62666d; margin: 8px auto 16px; max-width: 290px; min-height: 0; }
.guide-points { display: none !important; }
.guide-meta { display: flex; align-items: center; justify-content: space-between; }
.guide-compteur { font-size: 11px; font-weight: 800; color: #7a7e84; letter-spacing: .08em; margin: 0; }
#guide-suivant { width: auto; min-height: 44px; padding: 0 18px; border: 1.7px solid #24272c; background: transparent; color: #202329; font-size: 14px; font-weight: 700; box-shadow: none; }

/* ---- AIDE : vraie bottom sheet, divulgation progressive ---- */
#aide-mur .guide-carte { background: #fbfbf9; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .4); padding: 22px 22px calc(16px + env(safe-area-inset-bottom, 0px)); max-height: 78dvh; overflow-y: auto; }
@media (min-width: 560px) { #aide-mur .guide-carte { border-radius: 28px; } }
.aide-carte h3 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px; }
.aide-item { display: block; padding: 14px 0; border-top: 1px solid #e8e6e2; }
.aide-item:first-of-type { border-top: 0; }
.aide-item .ai-txt strong { font-size: 16px; }
.aide-item .ai-txt span { font-size: 13.5px; color: #6c7076; line-height: 1.4; margin: 4px 0 0; }
.aide-item .pilule { margin-top: 10px; }
.aide-item .pilule.petite, .aide-item .pilule.bleu.petite, .aide-item .pilule.secondaire.petite { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 700; }
.aide-item .pilule.bleu.petite { background: transparent; border: 1.7px solid #24272c; color: #202329; }
.aide-pied { justify-content: flex-start; gap: 16px; border-top: 1px solid #e8e6e2; padding-top: 14px; margin-top: 2px; }
#aide-fermer-bas { width: 100%; margin-top: 16px; min-height: 52px; font-size: 16px; font-weight: 800; box-shadow: none; }

/* ==========================================================================
   v45 — LECTEUR : CONCEPT 03 RAFFINE (reference definitive de Matthieu)
   Ilot creme, boutons rectangles arrondis, barre utilitaire, note d'heure,
   badge pret en zone A, guide compteur haut + Retour/Suivant, aide a icones.
   Moteur audio et logique d'etats intacts.
   ========================================================================== */

/* ---- Fond : la photo respire en haut, scrim bas ---- */
body.page-lecteur::after {
  background:
    linear-gradient(180deg, rgba(6, 7, 10, .18) 0%, rgba(6, 7, 10, .04) 20%, rgba(6, 7, 10, .12) 39%, rgba(6, 7, 10, .48) 64%, rgba(6, 7, 10, .94) 88%, rgba(6, 7, 10, .99) 100%),
    radial-gradient(circle at 50% 40%, rgba(79, 37, 83, .07), transparent 40%);
}

/* ---- Barre utilitaire : logo centre discret + langue a droite ---- */
.barre-utilitaire { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 46px; padding: max(14px, env(safe-area-inset-top, 0px)) 20px 4px !important; text-align: center; }
.barre-utilitaire > a { grid-column: 2; }
.logo-lecteur { height: 52px; filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .4)); }
.pilule-langue { grid-column: 3; justify-self: end; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .72); border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 750; text-decoration: none; }

/* ---- Zone A ---- */
.lecteur { padding: 0 20px 4px; }
.lecteur .date-lecteur { font-size: 12px; letter-spacing: .18em; }
.lecteur .l-haut { padding-top: 10px; }
.lecteur .l-haut h1 { font-size: 39px; letter-spacing: -.045em; line-height: 1; max-width: 330px; margin-left: auto; margin-right: auto; }
.commanditaire { font-size: 13px; color: rgba(255, 255, 255, .66); max-width: 320px; margin-left: auto; margin-right: auto; }

/* Etat central : decompte heroique + note d'heure + badge pret */
.disque { flex-direction: column; }
.etat-txt { font-size: 15px; color: rgba(255, 255, 255, .82); }
.etat-txt .decompte { font-size: 82px; font-weight: 720; line-height: .86; letter-spacing: -.065em; margin-top: 7px; }
.derniere-minute .etat-txt .decompte { color: var(--jaune); }
.count-note { display: none; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.lecteur[data-phase="avant"] .count-note, .lecteur[data-phase="arme"] .count-note { display: block; }
.ready-badge { display: none; margin: 17px auto 0; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 720; color: #d4eddd; }
.ready-badge i { width: 7px; height: 7px; border-radius: 50%; background: #3ba66c; }
.lecteur[data-phase="arme"] .ready-badge { display: flex; }
@media (max-width: 350px) { .etat-txt .decompte { font-size: 69px; } .lecteur .l-haut h1 { font-size: 35px; } }
@media (max-height: 700px) { .etat-txt .decompte { font-size: 64px; } }

/* LIVE : kicker sobre + onde signature (halo doux) */
.etat-txt .badge.direct { background: transparent; padding: 0; font-size: 12px; letter-spacing: .13em; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 8px; animation: none; }
.etat-txt .badge.direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d65e6c; box-shadow: 0 0 0 5px rgba(214, 94, 108, .12); }
.onde-live { height: 78px; gap: 5px; margin: 16px auto 7px; justify-content: center; }
.onde-live i { width: 7px; border-radius: 999px; background: #f1df45; box-shadow: 0 0 12px rgba(241, 223, 69, .16); animation: onde-scale 1.05s ease-in-out infinite; }
.onde-texte { font-size: 15px; color: rgba(255, 255, 255, .84); }

/* ---- Ilot de controle creme ---- */
.feuille-lecteur { background: rgba(244, 239, 229, .97); color: #17181c; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 24px 90px rgba(0, 0, 0, .40); padding: 17px; }
.lecteur[data-phase="live"] .feuille-lecteur { padding: 17px; }

/* Boutons : rectangles arrondis, plus de pilules dans le lecteur */
.feuille-lecteur .pilule.bleu.large { min-height: 58px; border-radius: 15px; font-size: 17px; font-weight: 760; letter-spacing: -.01em; box-shadow: 0 10px 26px rgba(49, 149, 232, .20); }
.feuille-lecteur .pilule.bleu.large:active { background: #1f79c6; transform: translateY(1px); filter: none; }
.feuille-lecteur .pilule.bleu { border-radius: 15px; }
.feuille-lecteur .pilule.secondaire { min-height: 46px; border: 1.5px solid #26282d; color: #1d1f23; border-radius: 14px; padding: 0 16px; font-weight: 730; font-size: 14px; }
.pilule.blanche { border-radius: 15px; }
.feuille-lecteur .consigne { font-size: 12px; line-height: 1.45; color: #6f7279; margin: 10px 3px 0; }
.lecteur[data-phase="arme"] .feuille-lecteur .consigne { color: #3ba66c; font-size: 14px; font-weight: 760; }
#test-son-msg.ok { color: #3ba66c; }

/* Rangee d'actions : Tester a gauche, Comment ca marche a droite */
.actions-rangee { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.guide-bouton { margin-top: 0; font-size: 13px; font-weight: 700; color: #5e6269; text-decoration: underline; text-underline-offset: 4px; padding: 8px 2px; }

/* Live : statut vert + grille 2 colonnes + progression */
.sync-etat { display: flex; align-items: center; justify-content: center; gap: 8px; color: #3ba66c; font-size: 14px; font-weight: 760; margin: 2px 0 0; }
.sync-etat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ba66c; }
.sync-etat.en-cours { color: #73767c; }
.sync-etat.en-cours::before { background: #73767c; }
.actions-live { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.actions-live .pilule { width: 100%; padding: 0 10px; }
.progression { height: 3px; background: #ddd6ca; margin-top: 15px; }
.temps { font-size: 11px; color: #7e8186; font-variant-numeric: tabular-nums; }

/* Interruption */
.banniere-interrompu p#interrompu-titre { font-size: 21px; font-weight: 760; letter-spacing: -.025em; }
.banniere-interrompu .tray-sous { font-size: 12px; color: #6f7279; margin: 0 0 14px; }

/* Reecoute : rectangles arrondis */
.controles-reecoute button { border-radius: 13px; border-width: 1.5px; width: auto; min-width: 45px; height: 45px; padding: 0 12px; font-size: 12.5px; }
.controles-reecoute #btn-r-pp { width: 52px; height: 52px; border-radius: 13px; font-size: 17px; }

/* Meta-rangee sous l'ilot */
.meta-rangee { display: flex; justify-content: center; gap: 18px; margin-top: 11px; flex: none; }
.meta-rangee button, .meta-rangee a { border: 0; background: none; color: rgba(255, 255, 255, .42); font-size: 10px; font-weight: 700; text-decoration: none; cursor: pointer; padding: 2px; }
.lecteur[data-phase="live"] .meta-rangee, .lecteur[data-phase="interrompu"] .meta-rangee { visibility: hidden; }
.pied-lecteur { font-size: 9px; color: rgba(255, 255, 255, .22); padding-top: 4px; }
.pied-lecteur a { color: rgba(255, 255, 255, .35); }

/* ---- GUIDE concept 03 : compteur haut-gauche, X haut-droite, Retour/Suivant ---- */
#guide-mur { background: rgba(6, 7, 10, .76); backdrop-filter: blur(4px); }
#guide-mur .guide-carte { background: #f4efe5; width: min(92%, 360px); border-radius: 28px; padding: 20px; }
.guide-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
.guide-compteur { font-size: 11px; letter-spacing: .11em; font-weight: 800; color: #85888d; }
.guide-x { border: 0; background: transparent; color: #757980; font-size: 23px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.guide-demo { background: #e9e1d4; border: 1px solid rgba(20, 22, 26, .06); border-radius: 18px; min-height: 124px; display: grid; place-items: center; padding: 16px; margin: 18px 0 17px; }
.guide-demo > * { margin: 0; }
.guide-demo .pilule.bleu.demo { border-radius: 13px; padding: 13px 22px; font-weight: 760; font-size: 15px; width: auto; min-height: 0; background: var(--bleu); color: #fff; }
.guide-demo .pilule.secondaire.demo { border-radius: 13px; border: 1.5px solid #292b30; padding: 12px 18px; font-weight: 740; font-size: 14px; min-height: 0; }
.guide-demo .badge.direct.demo { background: transparent; padding: 0; font-size: 11px; letter-spacing: .1em; font-weight: 800; color: #17181c; display: inline-flex; align-items: center; gap: 7px; }
.guide-demo .badge.direct.demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d65e6c; }
.guide-demo .onde-live.demo { height: 39px; gap: 4px; margin: 9px 0; }
.guide-demo .onde-live.demo i { width: 5px; box-shadow: none; }
.guide-demo .sync-etat.demo { font-size: 13px; color: #2f8f5b; font-weight: 760; margin: 0; }
.guide-demo .sync-etat.demo::before { display: none; }
.guide-carte h3 { font-size: 24px; letter-spacing: -.035em; }
.guide-carte p { font-size: 14px; color: #666a71; margin: 8px auto 18px; }
.guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-retour { border: 0; background: none; color: #5e6269; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 2px; }
#guide-suivant { width: auto; min-width: 120px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 15px; background: var(--bleu); color: #fff; font-size: 15px; font-weight: 760; box-shadow: 0 10px 26px rgba(49, 149, 232, .20); }

/* ---- AIDE : rangees a icones ---- */
#aide-mur { background: rgba(6, 7, 10, .76); backdrop-filter: blur(4px); padding: 14px; }
#aide-mur .guide-carte { background: #f4efe5; border-radius: 28px; max-height: min(76dvh, 650px); box-shadow: 0 24px 90px rgba(0, 0, 0, .40); }
.aide-carte h3 { font-size: 28px; letter-spacing: -.04em; }
.aide-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid rgba(20, 22, 26, .10); }
.ai-ico { width: 38px; height: 38px; border-radius: 12px; background: #e7e0d4; display: grid; place-items: center; font-size: 17px; color: #17181c; }
.aide-item .ai-txt strong { font-size: 15px; }
.aide-item .ai-txt span { font-size: 12px; color: #6d7177; line-height: 1.35; margin-top: 3px; }
.aide-item .pilule { margin-top: 0; }
.aide-item .pilule.petite, .aide-item .pilule.secondaire.petite { min-height: 40px; padding: 0 13px; border-radius: 12px; border: 1.3px solid #27292d; background: transparent; color: #17181c; font-weight: 720; font-size: 12px; }
.aide-pied { border-top: 1px solid rgba(20, 22, 26, .10); }
.aide-pied button, .aide-pied a { font-size: 13px; font-weight: 700; color: #5e6269; }

/* ---- v46 : finitions concept 03 ---- */
/* L'ilot occupe toujours toute la largeur (les marges auto le retrecissaient en reecoute) */
.feuille-lecteur { width: 100%; margin-left: 0; margin-right: 0; }
/* Resynchroniser / Aide sur une seule ligne */
.actions-live .pilule { white-space: nowrap; font-size: 13px; }
/* Rangees d'aide : CTA compacts, le texte respire */
.aide-item .pilule { white-space: nowrap; }

/* ==========================================================================
   v47 — Polish final du lecteur (direction concept 03 VERROUILLEE)
   Reduction, hierarchie, coherence. Aucun nouveau langage visuel.
   ========================================================================== */

/* 1. Langue = utilitaire discret haut-droite (cible 44px, visuel leger) */
.pilule-langue { background: transparent; color: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 0; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }

/* 2. Un seul « Son prêt » : la zone immersive le porte, le plateau se tait */
.lecteur[data-phase="arme"] .feuille-lecteur .consigne { display: none; }

/* 4. Prochaine soiree hors du plateau : tertiaire dans la meta-rangee */
.meta-rangee .prochaine-lien { margin: 0; padding: 2px; border: 0; color: rgba(255, 255, 255, .42); font-size: 10px; font-weight: 700; text-decoration: none; }

/* 6. Hierarchie du direct : Resynchroniser > Aide */
#btn-sync { border-color: #26282d; color: #17181c; font-weight: 700; }
#btn-aide { border-color: rgba(38, 40, 45, .38); color: #55585e; font-weight: 600; }

/* 7. Progression = statut en direct (jamais scrubbable hors reecoute) */
#prog { cursor: default; }
.lecteur[data-phase="reecoute"] .progression.saut-actif { cursor: pointer; }

/* 10. Resynchronisation : icone qui tourne, calme */
.sync-etat.en-cours::before { content: "↻"; width: auto; height: auto; background: transparent; border-radius: 0; font-size: 13px; line-height: 1; animation: gf-tourne 1s linear infinite; }
@keyframes gf-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-etat.en-cours::before { animation: none; } }

/* 12. Etiquette d'etat (REECOUTE / Controles manuels) */
.etiquette-etat { font-size: 10.5px; letter-spacing: .14em; font-weight: 800; color: #85888d; text-transform: uppercase; text-align: center; margin: 2px 0 0; }
.etiquette-reecoute { display: none; }
.lecteur[data-phase="reecoute"] .etiquette-reecoute { display: block; }

/* 13. Controles manuels : meme systeme, un cran sous l'Aide */
#lien-controles { margin-top: 14px; }
.controles { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.controles button { background: transparent; border: 1.3px solid rgba(38, 40, 45, .5); color: #4a4d53; border-radius: 12px; min-height: 40px; padding: 0 13px; font-size: 12.5px; font-weight: 650; font-family: inherit; cursor: pointer; white-space: nowrap; }

/* 14-16. Aide : icones SVG coherentes, CTA alignes */
.ai-ico { background: #e9e1d4; color: #17181c; }
.ai-ico svg { display: block; }
.aide-item .pilule { align-self: center; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* 17-21. Guide : moins d'imbrication, X discret, rythme -12 % */
.guide-demo { background: #eee8dc; border: 0; min-height: 106px; padding: 12px; margin: 14px 0 14px; }
.guide-carte p { margin: 6px auto 14px; }
.guide-x { font-size: 18px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; margin: -10px -12px 0 0; }

/* 22-23. Hierarchie typographique : le gras est reserve */
.feuille-lecteur .pilule.secondaire { font-weight: 600; }
.guide-bouton, .guide-retour { font-weight: 600; }
.sync-etat { font-weight: 600; }
.ready-badge { font-weight: 600; }
.feuille-lecteur .consigne, .banniere-interrompu .tray-sous, .count-note { font-weight: 400; }
.aide-item .pilule.petite, .aide-item .pilule.secondaire.petite { font-weight: 600; }
.temps { font-weight: 400; }

/* 24. Cremes unifiees : surface #f4efe5, incrustations #e9e1d4 (demo #eee8dc allegee) */

/* 26. Pied quasi invisible */
.pied-lecteur { font-size: 8.5px; color: rgba(255, 255, 255, .18); }
.pied-lecteur a { color: rgba(255, 255, 255, .28); font-weight: 600; }

/* v47b : cibles tactiles >= 44px sur les liens utilitaires */
.guide-bouton, .guide-retour { min-height: 44px; display: inline-flex; align-items: center; }
.meta-rangee button, .meta-rangee a { min-height: 44px; display: inline-flex; align-items: center; }
.aide-pied button, .aide-pied a { min-height: 44px; display: inline-flex; align-items: center; }

/* v48b : la langue vit sur la rangee du logo, a droite (specificite grille) */
.barre-utilitaire > a.pilule-langue { grid-column: 3; grid-row: 1; justify-self: end; }

/* v50 : le lecteur occupe toute la largeur (les marges auto le retrecissaient a son contenu) */
.lecteur { width: 100%; max-width: 480px; }
.etiquette-reecoute { margin-bottom: 8px; }

/* v51 : les controles manuels adoptent VRAIMENT le systeme concept 03
   (l'ancienne regle .feuille-lecteur .controles button les gardait charbon) */
.feuille-lecteur .controles button { background: transparent; color: #4a4d53; border: 1.3px solid rgba(38, 40, 45, .5); border-radius: 12px; min-height: 40px; padding: 0 13px; font-size: 12.5px; font-weight: 650; }
.feuille-lecteur #lien-controles { color: #85888d; }

/* v52 : tres petits ecrans (SE / paysage court) — tout tient sans coupure */
@media (max-height: 620px) {
  .lecteur .l-haut { padding-top: 4px; }
  .lecteur .l-haut h1 { font-size: 29px; }
  .etat-txt { font-size: 13px; }
  .etat-txt .decompte { font-size: 54px; }
  .count-note { margin-top: 6px; font-size: 11px; }
  .ready-badge { margin-top: 10px; font-size: 12px; }
  .feuille-lecteur { padding: 14px; }
  .feuille-lecteur .pilule.bleu.large { min-height: 50px; font-size: 16px; }
  .feuille-lecteur .consigne { font-size: 11.5px; margin-top: 9px; }
  .feuille-lecteur .pilule.secondaire { min-height: 42px; }
  .actions-rangee { margin-top: 9px; }
  .onde-live { height: 56px; }
}

/* ==========================================================================
   v53 — Derniere passe UX/UI (design critique)
   ========================================================================== */

/* Interruption : une seule voix. La zone immersive se tait (l'ancien texte
   « Tape Activer le son » contredisait le bouton « Reprendre en direct ») —
   l'ilot porte l'etat et l'action. */
.lecteur[data-phase="interrompu"] .etat-txt { display: none; }

/* Reecoute : la piste EST interactive — elle doit le montrer (5 px + poignee).
   En direct elle reste fine et sans poignee. */
.lecteur[data-phase="reecoute"] .progression { height: 5px; overflow: visible; }
.lecteur[data-phase="reecoute"] .progression .barre { position: relative; }
.lecteur[data-phase="reecoute"] .progression .barre::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--bleu); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

/* Ilot « pret » : deux utilitaires seuls -> rangee centree, plus posee */
.lecteur[data-phase="arme"] .actions-rangee { justify-content: center; gap: 22px; }

/* Guide etape 2 : point LIVE lisible sur sable */
.guide-demo .badge.direct.demo::before { width: 7px; height: 7px; background: #c94b59; }

/* Lisibilite des metadonnees de la zone immersive sur photo chargee */
.count-note { color: rgba(255, 255, 255, .62); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.ready-badge { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* Retour tactile discret sur les commandes secondaires */
.feuille-lecteur .pilule.secondaire:active, .controles-reecoute button:active, .controles button:active { transform: scale(.98); }

/* ==========================================================================
   v54 — PASSE FINALE P0 (jour de la Grande Finale)
   1. Scrim haut renforcé : le texte porte sur la photo sans la tuer.
   2. Contrôles manuels masqués par défaut (régression v47 corrigée) —
      visibles uniquement via Aide -> Contrôles avancés, ou en réécoute.
   3. Échec de chargement (phase echec) : écran de récupération seul.
   4. Guide : composants démo = les VRAIS composants du lecteur.
   Aucune modification du moteur audio.
   ========================================================================== */

/* 1. Fond : haut assombri (date/titre/décompte lisibles), milieu allégé,
      scrim bas conservé pour l'îlot et le pied. */
body.page-lecteur::after {
  /* v63 : nettement plus sombre (demande Matthieu) — la photo devient une texture d'ambiance */
  background:
    linear-gradient(180deg, rgba(4, 5, 8, .70) 0%, rgba(4, 5, 8, .62) 26%, rgba(4, 5, 8, .56) 46%, rgba(4, 5, 8, .70) 64%, rgba(4, 5, 8, .95) 88%, rgba(4, 5, 8, .99) 100%),
    radial-gradient(circle at 50% 40%, rgba(79, 37, 83, .07), transparent 40%);
}

/* 2. Défaut sûr restauré : la règle v47 (.controles en flex) rendait
      Lecture/Pause/Resynchroniser toujours visibles. .controles.visible
      (base, spécificité supérieure) reste le seul chemin d'affichage. */
.controles { display: none; }

/* 3. Échec de chargement (.echec-audio, classe posée par player.js — pas la
      phase, que le tick réécrit) : UI de récupération uniquement — Réessayer
      + consigne + lien soutien. Aucun autre contrôle, aucune distraction. */
.lecteur.echec-audio .actions-rangee,
.lecteur.echec-audio #lien-controles,
.lecteur.echec-audio .controles,
.lecteur.echec-audio .sync-etat,
.lecteur.echec-audio .actions-live,
.lecteur.echec-audio .banniere-interrompu,
.lecteur.echec-audio .prochaine-lien { display: none !important; }
.lecteur.echec-audio .feuille-lecteur .consigne { font-size: 13px; color: #17181c; font-weight: 600; }

/* 4. Guide : mêmes rayons, bordures, graisses, paddings et onde que le
      vrai lecteur (spécifications v45/v47 exactes). */
.guide-demo .pilule.bleu.demo { border-radius: 15px; min-height: 58px; padding: 0 26px; font-size: 17px; font-weight: 760; letter-spacing: -.01em; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(49, 149, 232, .20); }
.guide-demo .pilule.secondaire.demo { border-radius: 14px; min-height: 46px; padding: 0 16px; border: 1.5px solid #26282d; color: #17181c; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.guide-demo .badge.direct.demo { font-size: 12px; letter-spacing: .13em; gap: 8px; }
.guide-demo .badge.direct.demo::before { box-shadow: 0 0 0 5px rgba(201, 75, 89, .12); display: inline-block; } /* la règle v44 le masquait */
.guide-demo .onde-live.demo { height: 78px; gap: 5px; margin: 0; }
.guide-demo .onde-live.demo i { width: 7px; box-shadow: 0 0 12px rgba(241, 223, 69, .16); animation-name: onde-scale; }
.guide-demo .onde-live.demo i:nth-child(1) { height: 24px; }
.guide-demo .onde-live.demo i:nth-child(2) { height: 44px; }
.guide-demo .onde-live.demo i:nth-child(3) { height: 58px; }
.guide-demo .onde-live.demo i:nth-child(4) { height: 36px; }
.guide-demo .onde-live.demo i:nth-child(5) { height: 66px; }
.guide-demo .onde-live.demo i:nth-child(6) { height: 48px; }
.guide-demo .sync-etat.demo { font-size: 14px; color: #3ba66c; font-weight: 600; }
.guide-demo .sync-etat.demo::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ba66c; font-size: 0; animation: none; }

/* ==========================================================================
   v55 — LAYOUT DE LA MAQUETTE, FONTS ET COULEURS D'ORIGINE (Matthieu, 15 août)
   Structure de la maquette : encoche aster, tête de carte, CTA à icône onde,
   rangée Tester / Comment en cartes à icônes, deux-points jaunes, ornements.
   Typo : Geologica partout (tailles concept 03). États et moteur inchangés.
   ========================================================================== */

/* --- Marque + langue --- */
.logo-lecteur { height: 74px; }
.pilule-langue { color: rgba(255, 255, 255, .82); font-weight: 750; text-decoration-color: var(--jaune); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* --- Zone A : tailles concept 03 conservées --- */
body.page-lecteur .l-haut h1 { font-weight: 800; font-size: 39px; letter-spacing: -.045em; line-height: 1; max-width: 330px; }
.commanditaire { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .66); }
.orne-aster { display: block; width: 19px; height: 19px; margin: 14px auto 0; fill: var(--jaune); filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); }
.etat-txt { font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .85); }
.etat-txt .decompte { font-weight: 720; font-size: clamp(46px, 16vw, 72px); letter-spacing: -.02em; line-height: .92; margin-top: 8px; font-variant-numeric: tabular-nums; }
.etat-txt .decompte b { font-weight: inherit; display: inline-block; width: .58em; text-align: center; }
.etat-txt .decompte i { font-style: normal; color: var(--jaune); display: inline-block; margin: 0 .03em; transform: translateY(-.05em); }
.count-note { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .62); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); display: none; align-items: center; justify-content: center; gap: 12px; }
.lecteur[data-phase="avant"] .count-note, .lecteur[data-phase="arme"] .count-note { display: flex; }
.count-note::before, .count-note::after { content: ""; width: 24px; height: 1.5px; background: var(--jaune); opacity: .85; }

/* --- Îlot : encoche aster + tête de carte --- */
.feuille-notch { position: relative; z-index: 3; width: 52px; height: 52px; margin: auto auto -27px; border-radius: 50%; background: #f7ecca; border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 10px 30px rgba(0, 0, 0, .30); display: grid; place-items: center; flex: none; }
.feuille-notch svg { width: 21px; height: 21px; fill: #c9a22f; }
.feuille-lecteur { margin-top: 0; padding-top: 36px; }
.feuille-titre { margin: -6px 0 14px; }
.feuille-titre h2 { font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: #17181c; margin: 0 0 6px; }
.feuille-titre p { font-size: 10.5px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: #8b8e93; margin: 0; }

/* --- CTA : pilule pleine à icône onde --- */
.feuille-lecteur .pilule.bleu.large { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ico-onde { width: 20px; height: 20px; flex: none; }

/* --- Rangée d'actions : deux cartes à icônes --- */
.actions-rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.lecteur[data-phase="arme"] .actions-rangee { gap: 12px; }
.feuille-lecteur .actions-rangee .pilule.secondaire,
.feuille-lecteur .actions-rangee .guide-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; margin: 0; padding: 0 10px; border: 1.3px solid rgba(38, 40, 45, .30); border-radius: 15px; background: rgba(255, 255, 255, .55); color: #212429; font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.ico-act { width: 18px; height: 18px; color: var(--bleu); flex: none; }
.ico-q { width: 19px; height: 19px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1; display: inline-grid; place-items: center; flex: none; font-family: 'Geologica', sans-serif; }

/* --- Séparateur dinkus --- */
.separateur-aster { display: flex; align-items: center; gap: 12px; margin: 15px 2px 0; }
.separateur-aster::before, .separateur-aster::after { content: ""; height: 1px; background: rgba(23, 24, 28, .10); flex: 1; }
.separateur-aster svg { width: 11px; height: 11px; fill: var(--jaune); flex: none; }

/* --- Gating par état : la tête de carte et le dinkus vivent avant le show --- */
.lecteur[data-phase="live"] .feuille-titre, .lecteur[data-phase="interrompu"] .feuille-titre,
.lecteur[data-phase="fin"] .feuille-titre, .lecteur[data-phase="reecoute"] .feuille-titre,
.lecteur[data-phase="arme"] .feuille-titre, .lecteur.echec-audio .feuille-titre { display: none; }
.lecteur[data-phase="live"] .separateur-aster, .lecteur[data-phase="interrompu"] .separateur-aster,
.lecteur[data-phase="fin"] .separateur-aster, .lecteur[data-phase="reecoute"] .separateur-aster,
.lecteur.echec-audio .separateur-aster { display: none; }
.lecteur[data-phase="live"] .feuille-lecteur, .lecteur[data-phase="interrompu"] .feuille-lecteur,
.lecteur[data-phase="fin"] .feuille-lecteur, .lecteur[data-phase="reecoute"] .feuille-lecteur,
.lecteur.echec-audio .feuille-lecteur { padding-top: 24px; }

/* --- Guide : la démo du CTA reste identique au vrai bouton --- */
.guide-demo .pilule.bleu.demo { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.guide-demo .ico-onde { width: 18px; height: 18px; }

/* --- Pied : deux lignes empilées, centrées, PLEIN BLANC (visibilité) --- */
.pied-lecteur { line-height: 1.7; color: #fff; font-size: 10px; }
.pied-lecteur a { color: #fff; font-weight: 700; }
.pied-lecteur span { display: block; }

/* --- v58 : murs hors de l'îlot (correctif iOS) --- */
/* Le mur geoloc n'hérite plus des gabarits de l'îlot : son CTA garde la taille des grands boutons. */
.geo-carte .pilule.bleu.large { min-height: 56px; border-radius: 999px; font-size: 17px; font-weight: 760; }

/* --- Note de synchronisation (remplace Contact support dans le pied) --- */
.note-sync { color: #fff; font-size: 11px; font-weight: 600; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.meta-rangee { align-items: center; }
.meta-rangee button, .meta-rangee a { color: rgba(255, 255, 255, .9); }
/* La note est une attente a poser, pas une navigation : elle reste visible en direct. */
.lecteur[data-phase="live"] .meta-rangee, .lecteur[data-phase="interrompu"] .meta-rangee { visibility: visible; }

/* --- Petits écrans --- */
@media (max-height: 620px) {
  .logo-lecteur { height: 56px; }
  .etat-txt { font-size: 13px; }
  .etat-txt .decompte { font-size: clamp(40px, 13vw, 54px); }
  .feuille-notch { width: 44px; height: 44px; margin-bottom: -23px; }
  .feuille-notch svg { width: 18px; height: 18px; }
  .feuille-lecteur { padding-top: 28px; }
  .feuille-titre h2 { font-size: 19px; }
  .orne-aster { margin-top: 8px; width: 15px; height: 15px; }
}
@media (max-width: 350px) { body.page-lecteur .l-haut h1 { font-size: 35px; } }

/* ==========================================================================
   v59 — Respiration (retour Matthieu, captures iPhone) : décompte plus
   discret, îlot compacté — boutons, typos et paddings réduits d'un cran.
   ========================================================================== */

/* Décompte : présent sans dominer — l'îlot regagne l'espace */
.etat-txt .decompte { font-size: clamp(38px, 11.5vw, 50px); margin-top: 6px; }
.etat-txt { font-size: 14px; }
.count-note { font-size: 11px; gap: 10px; }
.count-note::before, .count-note::after { width: 20px; }
.orne-aster { width: 16px; height: 16px; margin-top: 12px; }

/* Encoche et tête de carte : un cran plus fins */
.feuille-notch { width: 46px; height: 46px; margin-bottom: -24px; }
.feuille-notch svg { width: 18px; height: 18px; }
.feuille-lecteur { padding-top: 30px; }
.feuille-titre { margin: -4px 0 10px; }
.feuille-titre h2 { font-size: 19px; margin-bottom: 4px; }
.feuille-titre p { font-size: 9.5px; letter-spacing: .13em; }

/* CTA et consigne */
.feuille-lecteur .pilule.bleu.large { min-height: 52px; font-size: 16px; }
.ico-onde { width: 18px; height: 18px; }
.feuille-lecteur .consigne { font-size: 11.5px; margin-top: 8px; }
#test-son-msg { font-size: 12.5px; margin-top: 7px; }

/* Séparateur et rangée d'actions compactés */
.separateur-aster { margin: 11px 2px 0; }
.separateur-aster svg { width: 10px; height: 10px; }
.actions-rangee { margin-top: 11px; gap: 10px; }
.feuille-lecteur .actions-rangee .pilule.secondaire,
.feuille-lecteur .actions-rangee .guide-bouton { min-height: 46px; font-size: 12.5px; gap: 8px; border-radius: 13px; }
.ico-act { width: 16px; height: 16px; }
.ico-q { width: 17px; height: 17px; font-size: 11px; }

/* Alignement parfait de la rangée : la vieille règle #btn-test-son{margin-top:14px}
   (spécificité d'identifiant) battait le margin:0 des cartes et décalait Tester. */
#btn-test-son { margin-top: 0; }
.actions-rangee { align-items: stretch; }

/* v61-v62 : la tête de carte respire — air au-dessus de Ready for tonight
   (sous l'encoche) et entre la sous-ligne et le CTA */
.feuille-titre { margin-top: 6px; margin-bottom: 18px; }
.feuille-titre h2 { margin-bottom: 6px; }

/* Pied : un souffle de moins */
.note-sync { font-size: 10.5px; }
.meta-rangee { margin-top: 9px; }

/* Très petits écrans : mêmes proportions, déjà couverts par la média 620 */
@media (max-height: 620px) {
  .etat-txt .decompte { font-size: clamp(34px, 10.5vw, 44px); }
  .feuille-titre h2 { font-size: 17px; }
  .feuille-lecteur { padding-top: 26px; }
}
