:root {
  /* Palette par défaut. /brand.css la surcharge avec celle de l'installation. */
  --bg: #06060f;
  --bg-2: #0d0b18;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #ece9f7;
  --muted: #9a93b4;
  --violet: #a855f7;
  --purple: #9333ea;
  --pink: #db2777;
  --magenta: #ec4899;
  --cyan: #22d3ee;
  --cyan-light: #67e8f9;
  --accent: #a855f7;
  --accent-2: #db2777;
  /* Recomposés à partir des couleurs ci-dessus : changer la marque suffit. */
  --accent-grad: linear-gradient(to right bottom, var(--purple), var(--pink));
  --title-grad: linear-gradient(135deg, #ffffff 15%, var(--violet) 50%, var(--cyan) 85%);
  /* Composantes des couleurs de marque, pour les teintes transparentes :
     rgba(var(--violet-rgb), .3). Surchargées elles aussi par /brand.css. */
  --purple-rgb: 147, 51, 234;
  --violet-rgb: 168, 85, 247;
  --pink-rgb: 219, 39, 119;
  --magenta-rgb: 236, 72, 153;
  --cyan-rgb: 34, 211, 238;
  --cyan-light-rgb: 103, 232, 249;
  /* Couleurs de statut : elles portent un sens, pas la marque — donc fixes. */
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 18px;
  /* Typo : deux variables, tout le reste en hérite */
  --font-titre: "Bebas Neue", Impact, "Haettenschweiler", sans-serif;
  --font-texte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-texte);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at 15% -5%, rgba(var(--purple-rgb), 0.20) 0%, transparent 45%),
    radial-gradient(circle at 88% 105%, rgba(var(--cyan-rgb), 0.13) 0%, transparent 45%),
    var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-texte);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding: 22px 16px 60px;
}

/* ============ FOND AURORE (page invité) ============ */
/* Fond uni sur le body ; l'aurore se superpose, le contenu passe au-dessus */
body.has-aurora { background: var(--bg); }
body.has-aurora .wrap { position: relative; z-index: 1; }

.aurora {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
  /* 👉 Intensité du fond aurore : 0 = éteint, 1 = maximum */
  opacity: 0.25;
}
.aurora span {
  position: absolute; inset: -60% -30%;
  background-repeat: no-repeat;
  filter: blur(55px);
  will-change: transform;
}
/* Nappe 1 — violet → magenta, dérive lente */
.aurora .a1 {
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0%, rgba(var(--violet-rgb),.95) 11%, rgba(var(--pink-rgb),.85) 21%, transparent 33%);
  opacity: .85;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
/* Nappe 2 — cyan, sens inverse */
.aurora .a2 {
  background-image: repeating-linear-gradient(
    75deg,
    transparent 0%, rgba(var(--cyan-rgb),.80) 13%, rgba(var(--violet-rgb),.70) 25%, transparent 38%);
  opacity: .7;
  animation: auroraDrift2 34s ease-in-out infinite alternate;
}
/* Halo de sol, pour asseoir la composition */
.aurora .a3 {
  inset: 35% -20% -40%;
  background-image: radial-gradient(65% 65% at 50% 100%, rgba(var(--violet-rgb),.75), transparent 70%);
  filter: blur(50px); opacity: .9;
  animation: auroraGlow 12s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-8%, -4%, 0) rotate(-4deg) scale(1.05); }
  to   { transform: translate3d(8%, 4%, 0) rotate(4deg) scale(1.15); }
}
@keyframes auroraDrift2 {
  from { transform: translate3d(6%, 3%, 0) rotate(3deg) scale(1.12); }
  to   { transform: translate3d(-6%, -3%, 0) rotate(-3deg) scale(1.02); }
}
@keyframes auroraGlow {
  from { opacity: .55; } to { opacity: .95; }
}
/* Voile sombre léger : garde un peu de profondeur sans étouffer l'aurore */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(6,6,15,.50) 0%, rgba(6,6,15,.04) 32%,
    rgba(6,6,15,.08) 68%, rgba(6,6,15,.55) 100%);
}
/* Cartes dépolies au-dessus de l'aurore : le texte reste net */
body.has-aurora .card {
  background: rgba(10, 8, 22, 0.62);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
body.has-aurora .disclaimer {
  background: linear-gradient(135deg, rgba(var(--purple-rgb),.22), rgba(var(--magenta-rgb),.18)), rgba(10,8,22,.5);
}
/* Encart devis : on garde la teinte mais on assoit le contraste du texte */
body.has-aurora .offer-card {
  background: linear-gradient(135deg, rgba(var(--purple-rgb),.30), rgba(var(--cyan-rgb),.16)), rgba(10,8,22,.58);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
}

.wrap { max-width: 460px; margin: 0 auto; }

/* Bannière : bords fondus, sauf le bas qui reste net (source de lumière) */
/* Classe distincte de .banner (bandeaux d'alerte) pour éviter toute collision */
.hero-banner {
  display: block; width: 100%; height: auto;
  margin: 0; padding: 0;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 100%);
  mask-composite: intersect;
}
.wrap-wide { max-width: 760px; margin: 0 auto; }

/* Header — éclairé par la bande lumineuse sous la bannière */
.brand { text-align: center; margin-bottom: 22px; position: relative; padding-top: 30px; }

/* La bande lumineuse : trait net juste sous la photo */
.brand::after {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(var(--cyan-light-rgb),.9) 16%, #ffffff 50%, rgba(var(--magenta-rgb),.9) 84%, transparent 100%);
  box-shadow: 0 0 14px rgba(var(--cyan-rgb),.85), 0 0 34px rgba(var(--violet-rgb),.65);
  animation: beamPulse 4s ease-in-out infinite;
}
/* Le halo qui se diffuse vers le bas et éclaire le texte */
.brand::before {
  content: ""; position: absolute; top: 0; left: -12%; right: -12%; height: 210px;
  background: radial-gradient(72% 100% at 50% 0%,
    rgba(var(--violet-rgb),.50) 0%, rgba(var(--cyan-rgb),.16) 42%, transparent 72%);
  pointer-events: none;
}
/* Le texte passe au-dessus du halo */
.brand .sub, .brand h1, .brand .equalizer, .brand .logo { position: relative; }
.brand h1.ask-title { text-shadow: 0 0 26px rgba(var(--violet-rgb),.55); }

@keyframes beamPulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .brand::after { animation: none; } }
.brand .disc { font-size: 46px; display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand .logo {
  display: block; margin: 10px auto 0;
  width: 220px; max-width: 72%; height: auto;
  filter: drop-shadow(0 6px 24px rgba(var(--violet-rgb), 0.35));
}
.brand h1 {
  font-family: var(--font-titre);
  font-size: 56px; font-weight: 400; letter-spacing: 1.5px; margin-top: 8px;
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.brand .sub {
  color: var(--cyan-light);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 3px;
}
.brand h1.ask-title { font-size: 44px; margin-top: 6px; }

/* Motif égaliseur (repris du site) */
.equalizer {
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  height: 30px; margin-top: 16px;
}
.equalizer span {
  width: 4px; border-radius: 4px;
  background: linear-gradient(to top, var(--magenta), var(--cyan));
  animation: eq 1.1s ease-in-out infinite;
}
.equalizer span:nth-child(1) { animation-delay: -0.9s; }
.equalizer span:nth-child(2) { animation-delay: -0.2s; }
.equalizer span:nth-child(3) { animation-delay: -0.6s; }
.equalizer span:nth-child(4) { animation-delay: -0.1s; }
.equalizer span:nth-child(5) { animation-delay: -0.75s; }
.equalizer span:nth-child(6) { animation-delay: -0.4s; }
.equalizer span:nth-child(7) { animation-delay: -0.15s; }
.equalizer span:nth-child(8) { animation-delay: -0.55s; }
.equalizer span:nth-child(9) { animation-delay: -0.3s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .equalizer span { animation: none; height: 16px; }
  .brand .disc { animation: none; }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

/* ============================================================
   CADRE LUMINEUX
   Une seule variable : --glow (0 = éteint, 1 = à fond).
   Dégradé conique tournant, en deux couches : ::before le liseré,
   ::after le halo flouté.
   Les deux sont des ANNEAUX — le centre est évidé par le masque.
   C'est ce qui permet de poser l'effet sur une carte qui contient
   déjà du texte, sans enrobage et sans z-index négatif : aucune
   couche ne passe jamais au-dessus du contenu.
   ============================================================ */
@property --glow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Pas sur .req-card en général : le statut d'une demande se lit à la couleur de
   sa bordure (verte = validée, rouge = refusée). Seules celles en attente,
   qui n'ont pas de code couleur, portent le cadre — ce sont justement celles
   qui attendent une décision. */
.glow-frame, .card, .offer-card, .stat, .stat-box, .req-card.pending {
  --glow: 1;
  position: relative;
}
.glow-frame::before, .glow-frame::after,
.card::before, .card::after,
.offer-card::before, .offer-card::after,
.stat::before, .stat::after,
.stat-box::before, .stat-box::after,
.req-card.pending::before, .req-card.pending::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;        /* ne bloque pas les boutons des cartes */
  background: conic-gradient(from var(--glow-angle),
    var(--cyan), var(--purple), var(--pink), #f472b6, var(--purple), var(--cyan));
  animation: glow-turn 7s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}
.glow-frame::before, .card::before, .offer-card::before,
.stat::before, .stat-box::before, .req-card.pending::before {
  inset: -1.5px; padding: 1.5px;
  opacity: calc(var(--glow) * .95);
}
.glow-frame::after, .card::after, .offer-card::after,
.stat::after, .stat-box::after, .req-card.pending::after {
  inset: -2px; padding: 7px;
  filter: blur(12px);
  opacity: calc(var(--glow) * .6);
}
@keyframes glow-turn { to { --glow-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .glow-frame::before, .glow-frame::after,
  .card::before, .card::after,
  .offer-card::before, .offer-card::after,
  .stat::before, .stat::after,
  .stat-box::before, .stat-box::after,
  .req-card.pending::before, .req-card.pending::after { animation: none; }
}

/* Funny disclaimer */
.disclaimer {
  background: linear-gradient(135deg, rgba(var(--violet-rgb),0.14), rgba(var(--magenta-rgb),0.14));
  border: 1px solid rgba(var(--magenta-rgb),0.3);
}
.disclaimer .emoji { font-size: 30px; }
.disclaimer h2 { font-size: 17px; margin: 8px 0 6px; }
.disclaimer p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.disclaimer p + p { margin-top: 8px; }

/* Form */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input, textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 62px; }

.btn {
  display: block; width: 100%;
  background: var(--accent-grad);
  color: #fff; border: none; border-radius: 999px;
  padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 18px;
  box-shadow: 0 8px 28px rgba(var(--pink-rgb), 0.28);
  transition: transform .1s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent; border: 1px solid var(--card-border); color: var(--text);
}
/* CTA devis — bouton plein dégradé (options 3 & 4) */
.cta-grad {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--accent-grad); color: #fff; border: none; border-radius: 999px;
  padding: 16px; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(var(--pink-rgb), 0.42);
  transition: transform .1s;
}
.cta-grad:active { transform: scale(0.98); }

/* Option 4 : CTA après l'envoi */
#postSendCta { margin-bottom: 16px; animation: ctaPop .35s ease; }
@keyframes ctaPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Option 3 : encart offre */
.offer-card {
  background: linear-gradient(135deg, rgba(var(--purple-rgb), 0.17), rgba(var(--cyan-rgb), 0.12));
  border: 1px solid rgba(var(--violet-rgb), 0.35);
  border-radius: var(--radius); padding: 22px; text-align: center; margin-bottom: 16px;
}
.offer-emoji { font-size: 28px; display: block; margin-bottom: 6px; }
.offer-title { font-family: var(--font-titre); font-size: 27px; letter-spacing: 0.8px; margin-bottom: 6px; }
.offer-text { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }

/* Counter pill */
.counter { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.counter b { color: var(--text); }

/* Status banners */
.banner { border-radius: 12px; padding: 14px; font-size: 14px; text-align: center; font-weight: 600; margin-bottom: 16px; }
.banner.closed { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.banner.ok { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35); color: #86efac; }
.banner.warn { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35); color: #fcd34d; }

.hidden { display: none !important; }

/* My requests list */
.myreq { margin-top: 4px; }
.myreq-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.25); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px;
}
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.tag.pending { background: rgba(245,158,11,0.2); color: var(--amber); }
.tag.accepted { background: rgba(34,197,94,0.2); color: var(--green); }
.tag.rejected { background: rgba(239,68,68,0.2); color: var(--red); }
.tag.played { background: rgba(var(--cyan-rgb),0.2); color: var(--cyan-light); }

/* Titres votables (côté invité) */
.track {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.track .info { flex: 1; min-width: 0; }
.track .info .s { font-weight: 600; font-size: 14px; }
.track .info .a { font-size: 12px; color: var(--muted); }
.track .played { font-size: 11px; font-weight: 700; color: var(--green); }
.track .already { font-size: 11px; font-weight: 700; color: var(--cyan-light); }
.vote-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  background: rgba(var(--cyan-rgb),0.08); border: 1px solid var(--cyan); color: var(--cyan-light);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: transform .1s;
}
.vote-btn:active { transform: scale(0.95); }
.vote-btn.voted { background: var(--accent-grad); border-color: transparent; color: #fff; }
.vote-btn .n { font-size: 14px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }

/* ============ DJ PANEL ============ */
.dj-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dj-header h1 { font-family: var(--font-titre); font-size: 36px; font-weight: 400; letter-spacing: 1.2px; }
.notif-btn {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 22px; cursor: pointer; transition: background .15s, border-color .15s;
}
.notif-btn.on {
  background: rgba(var(--cyan-rgb), 0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.12);
}

.push-status {
  font-size: 13px; line-height: 1.4; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--muted); cursor: pointer;
}
.push-status:empty { display: none; }
.push-status.ok { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.35); color: #86efac; }
.push-status.warn { background: rgba(245,158,11,0.13); border-color: rgba(245,158,11,0.35); color: #fcd34d; }
.push-status .dbg { display: none; margin-top: 8px; font-size: 11px; font-family: monospace; color: var(--muted); word-break: break-all; }
.push-status.expanded .dbg { display: block; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.toggle-row .status-label { font-weight: 700; font-size: 16px; }
.switch { position: relative; width: 62px; height: 34px; flex-shrink: 0; }
.switch input { display: none; }
.slider {
  position: absolute; inset: 0; background: var(--red); border-radius: 999px; transition: .25s; cursor: pointer;
}
.slider::before {
  content: ""; position: absolute; height: 26px; width: 26px; left: 4px; top: 4px;
  background: #fff; border-radius: 50%; transition: .25s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(28px); }

/* Stepper (limite par invité) */
.stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.step-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.35); color: var(--text); font-size: 22px; font-weight: 700;
  cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.step-btn:active { background: var(--accent); }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-value { min-width: 34px; text-align: center; font-size: 24px; font-weight: 800; }

/* Présence temps réel */
.live-bar {
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.30);
  color: #86efac; border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; font-size: 14px;
}
.live-bar b { color: #fff; font-size: 17px; }
.live-bar .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  margin-right: 9px; flex-shrink: 0; animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

/* Compteur de votes sur une demande */
.req-votes {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-grad); color: #fff; border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 700; margin-left: 8px;
}
.req-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.req-hot { border-color: rgba(var(--magenta-rgb),0.55); box-shadow: 0 0 0 1px rgba(var(--magenta-rgb),0.25); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.stat .n { font-size: 22px; font-weight: 800; }
/* Inter est un peu plus large que Poppins : interlettrage resserré pour que
   « EN ATTENTE » tienne sur une ligne dans les 4 colonnes. */
.stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .2px; margin-top: 2px; }

/* Six onglets ne tiennent pas de front sur un mobile : la barre défile.
   scrollbar masquée, le dégradé du dernier onglet suffit d'indice. */
/* Deux rangées, pas une bande qui défile : sur un téléphone le glissement
   latéral ne s'invente pas, et les trois derniers onglets — dont Abonnement —
   restaient hors de l'écran. `.tabs-saut` force la coupure après le 4e. */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs-saut { flex-basis: 100%; height: 0; margin: 0; }
/* Sur un écran large les sept tiennent sur une ligne : la coupure n'a plus
   lieu d'être. Le panneau reste pensé pour le téléphone, mais autant ne pas
   étirer sept boutons sur deux rangées quand la place ne manque pas. */
@media (min-width: 620px) { .tabs-saut { display: none; } }
.tab { flex: 1 1 auto; background: var(--card); border: 1px solid var(--card-border); color: var(--muted);
  padding: 11px 6px; border-radius: 12px; font-weight: 700; font-size: 12.5px; cursor: pointer;
  text-align: center; white-space: nowrap; }
.tab.active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.req-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 15px; margin-bottom: 12px; }
.req-card.accepted { border-color: rgba(34,197,94,0.4); }
.req-card.rejected { border-color: rgba(239,68,68,0.4); opacity: .6; }
.req-song { font-size: 17px; font-weight: 700; }
.req-artist { color: var(--muted); font-size: 14px; }
.req-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.req-msg { font-size: 13px; margin-top: 8px; padding: 8px 10px; background: rgba(0,0,0,0.25); border-radius: 8px; font-style: italic; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.req-actions button { flex: 1; border: none; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.btn-accept { background: rgba(34,197,94,0.2); color: var(--green); }
.btn-accept.on { background: var(--green); color: #fff; }
.btn-reject { background: rgba(239,68,68,0.2); color: var(--red); }
.btn-reject.on { background: var(--red); color: #fff; }
/* Déjà jouée : sur toute la largeur, sous les deux autres */
.req-actions .btn-played { flex: 1 1 100%; background: rgba(var(--cyan-rgb),0.14); color: var(--cyan-light); }
.req-actions .btn-played.on { background: var(--cyan); color: #06060f; }

.req-card.played { border-color: rgba(var(--cyan-rgb),0.45); opacity: .85; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }

/* ============ STATISTIQUES ============ */
.party-name { font-family: var(--font-titre); font-size: 26px; letter-spacing: 0.8px; color: var(--cyan-light); }
.scope-select {
  width: 100%; background: rgba(0,0,0,0.35); border: 1px solid var(--card-border);
  color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; margin-bottom: 16px;
}
.report-link { margin-top: 12px; }
.report-link .url {
  background: rgba(0,0,0,0.35); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: var(--cyan-light); word-break: break-all; margin-bottom: 10px;
}
.report-link .acts { display: flex; gap: 8px; }
.report-link .acts button, .report-link .acts a {
  flex: 1; text-align: center; text-decoration: none; border-radius: 10px; padding: 11px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; border: 1px solid var(--cyan);
  background: rgba(var(--cyan-rgb),0.08); color: var(--cyan-light);
}
/* Le rapport se génère en deux versions : la mienne et celle du client */
.report-part { margin-bottom: 16px; }
.report-part:last-child { margin-bottom: 0; }
.report-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.report-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-box {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px; text-align: center;
}
.stat-box .v { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-box .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.stat-box .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat-box.accent .v { color: var(--cyan-light); }
.stat-box.good .v { color: var(--green); }

.stat-section { margin-bottom: 18px; }
.stat-section h3 {
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.rank { display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 10px; margin-bottom: 6px; font-size: 14px; }
.rank .pos { width: 22px; flex-shrink: 0; font-weight: 800; color: var(--muted); font-size: 13px; }
.rank .who { flex: 1; min-width: 0; }
.rank .who .s { font-weight: 600; }
.rank .who .a { font-size: 12px; color: var(--muted); }
.rank .n {
  flex-shrink: 0; background: var(--accent-grad); color: #fff;
  border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700;
}
.rank.cold .n { background: rgba(239,68,68,0.25); color: #fca5a5; }

.hours { display: flex; align-items: flex-end; gap: 3px; height: 90px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px 8px 6px; }
.hours .hbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hours .hbar i {
  display: block; width: 100%; border-radius: 3px 3px 0 0; min-height: 2px;
  background: linear-gradient(to top, var(--magenta), var(--cyan));
}
.hours .hbar b { font-size: 8px; color: var(--muted); text-align: center; font-weight: 400; margin-top: 3px; }

/* QR */
.qr-box { text-align: center; }
.qr-box img { width: 100%; max-width: 280px; border-radius: 14px; background: #fff; padding: 10px; }
.qr-url { font-size: 13px; color: var(--muted); margin-top: 10px; word-break: break-all; }

/* Blacklist */
.bl-add { display: flex; gap: 8px; margin-bottom: 14px; }
.bl-add input { flex: 1; }
.bl-add button { width: auto; padding: 0 18px; margin: 0; }
.bl-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.bl-item button { background: none; border: none; color: var(--red); font-size: 18px; cursor: pointer; }

/* ============ PRÉPARATION D'ÉVÉNEMENT ============ */
/* Aide courte sous les titres de sections */
.prep-aide { color: var(--muted); font-size: 12px; margin-bottom: 10px; line-height: 1.5; }

/* Formulaire client (page publique) */
.prep-ajout { display: grid; gap: 8px; margin-top: 10px; }
.prep-ajout .btn { margin-top: 0; padding: 11px; font-size: 14px; }
.prep-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.25); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 8px; font-size: 14px;
}
.prep-item i { color: var(--muted); font-size: 12px; }
.prep-item button { background: none; border: none; color: var(--red); font-size: 16px; cursor: pointer; flex-shrink: 0; }

/* Cartes de la liste d'événements */
.evt-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 15px; margin-bottom: 12px; cursor: pointer;
}
.evt-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.evt-nom { font-size: 16px; font-weight: 700; }
.evt-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.evt-statut {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--muted);
  white-space: nowrap;
}
.evt-statut.s-pret { background: rgba(34,197,94,0.15); color: var(--green); }
.evt-statut.s-enCours { background: rgba(var(--cyan-rgb),0.15); color: var(--cyan-light); }
.evt-compteurs { font-size: 12px; color: var(--muted); margin-top: 8px; }
.evt-alerte { color: var(--amber); font-weight: 700; margin-left: 6px; }

/* Éditeur : blocs de timeline et lignes de morceaux */
.tl-bloc {
  background: rgba(0,0,0,0.25); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px; margin-bottom: 10px;
}
.tl-ligne { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tl-ligne input, .tl-ligne select { margin: 0; }
.tl-ligne input[type="time"] { flex: 0 0 110px; }
.tl-ligne select {
  flex: 1; background: rgba(0,0,0,0.35); border: 1px solid var(--card-border);
  color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.tl-bloc textarea { min-height: 40px; font-size: 13px; }
.tl-actions { display: flex; gap: 6px; flex-shrink: 0; }
.tl-actions button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.35); color: var(--text); font-size: 15px; cursor: pointer;
}
.tl-actions button:disabled { opacity: 0.3; cursor: default; }
.tl-suppr { color: var(--red) !important; }

.mo-ligne {
  background: rgba(0,0,0,0.25); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px; margin-bottom: 10px;
}
.mo-ligne input { margin: 0; }
.mo-ligne > input { margin-top: 8px; }
/* la ligne bloc + ★ + ✕ peut replier sur petit écran plutôt que d'écraser */
.mo-ligne .tl-ligne { flex-wrap: wrap; }
/* Un morceau critique se repère au premier coup d'œil, même en préparation */
.mo-ligne.critique { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(245,158,11,0.3); }
.mo-critique {
  display: flex; align-items: center; gap: 6px; margin: 0; flex-shrink: 0;
  font-size: 12px; font-weight: 700; color: var(--amber); cursor: pointer;
}
.badge-critique {
  display: inline-block; background: var(--amber); color: #1a1200;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 999px; vertical-align: middle;
}
.dnp-ligne { margin-bottom: 8px; }

/* Propositions du client */
.prop {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 13.5px;
}
.prop.validee, .prop.ecartee { opacity: 0.55; }
.prop-texte { min-width: 0; }
.prop-texte i { color: var(--muted); font-size: 12px; }
.prop-auteur { font-size: 11px; color: var(--muted); margin-top: 2px; }
.prop-actions { display: flex; gap: 6px; flex-shrink: 0; }
.prop-actions button {
  width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.35); font-size: 15px; cursor: pointer; color: var(--text);
}
.prop-etat { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.prop-archives { margin-top: 10px; }
.prop-archives summary { font-size: 12.5px; color: var(--muted); cursor: pointer; margin-bottom: 8px; }

/* ============ VOLET JOUR J ============ */
.jj-volet { padding: 14px 16px; }
.jj-entete {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; color: var(--text); font-family: inherit;
  font-size: 15px; cursor: pointer; padding: 0; text-align: left;
}
.jj-fleche { font-size: 11px; color: var(--muted); flex-shrink: 0; }
/* Le prochain morceau imposé reste visible en permanence, volet replié inclus */
.jj-prochain {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px;
  background: rgba(var(--cyan-rgb),0.1); border: 1px solid rgba(var(--cyan-rgb),0.4);
}
.jj-prochain.critique { background: rgba(245,158,11,0.12); border-color: var(--amber); }
.jj-ou { color: var(--muted); font-size: 12px; }
.jj-blocs { margin-top: 10px; }
.jj-bloc {
  border-left: 3px solid var(--card-border); padding: 8px 0 8px 12px; margin-left: 4px;
}
.jj-bloc.actif { border-left-color: var(--cyan); }
.jj-bloc.fait { opacity: 0.45; }
.jj-coche { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.jj-coche input {
  width: 22px; height: 22px; flex-shrink: 0; margin: 0; accent-color: var(--green);
}
.jj-titre { font-size: 14.5px; font-weight: 700; color: var(--text); }
.jj-heure { font-size: 12px; color: var(--cyan-light); font-weight: 700; }
.jj-ambiance {
  font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(255,255,255,0.08); color: var(--muted);
  padding: 2px 8px; border-radius: 999px;
}
.jj-morceau { font-size: 13px; margin: 6px 0 0 32px; }
.jj-morceau.critique { color: var(--amber); font-weight: 700; }
.jj-morceau i { color: var(--muted); font-weight: 400; font-size: 12px; }
.jj-notes { font-size: 12px; color: var(--muted); margin: 6px 0 0 32px; font-style: italic; }

/* Login gate */
.gate { max-width: 360px; margin: 60px auto; }

/* ============ COMPTE & ABONNEMENT ============ */
.compte-etat { font-size: 14px; line-height: 1.55; }
.compte-carte { font-size: 13px; color: var(--muted); margin-top: 8px; }

.offres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 480px) { .offres { grid-template-columns: 1fr; } }
.offre {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column;
}
.offre.active { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), .35); }
.offre-nom { font-family: var(--font-titre); font-size: 24px; letter-spacing: .8px; }
.offre-prix { font-size: 21px; font-weight: 800; margin: 4px 0 8px; color: var(--cyan-light); }
.offre-prix span { font-size: 12px; font-weight: 500; color: var(--muted); }
.offre-caps { list-style: none; margin: 0 0 4px; padding: 0; flex: 1; }
.offre-caps li { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.offre .btn { margin-top: 10px; padding: 11px; font-size: 14px; }
.offre-tag {
  margin-top: 10px; text-align: center; font-size: 12px; font-weight: 700;
  color: var(--cyan-light); background: rgba(var(--cyan-rgb), .1);
  border: 1px solid var(--cyan); border-radius: 999px; padding: 9px;
}
.offre-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }

/* ============ RÉGLAGES ============ */
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 420px) { .color-grid { grid-template-columns: 1fr; } }
.color-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: 10px 12px; font-size: 13px;
}
.color-row input[type="color"] {
  width: 44px; height: 32px; padding: 0; border: 1px solid var(--card-border);
  border-radius: 8px; background: transparent; cursor: pointer;
}
.reg-logo {
  display: block; max-width: 200px; max-height: 110px; margin: 4px auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

/* Le liseré lumineux remplace la bordure d'origine.
   Déclaré en fin de feuille : .disclaimer et .offer-card reposent la leur
   après le bloc du cadre, il faut donc passer après elles dans la cascade. */
.card, .offer-card, .stat, .stat-box, .req-card.pending { border-color: transparent; }

/* Les espaces d'un compte (formule Pro) : une liste sobre, pas un tableau. */
.espaces { list-style: none; margin: 0 0 10px; padding: 0; }
.espaces li {
  font-size: 14px; padding: 7px 0;
  border-bottom: 1px solid rgba(var(--purple-rgb), .18);
}
.espaces li:last-child { border-bottom: 0; }
.espaces .muted { font-size: 12.5px; }
.pastille {
  font-size: 11.5px; color: var(--green); margin-left: 6px; white-space: nowrap;
}

/* Bandeau d'état du compte, en haut du panneau DJ. Il ne crie pas : le DJ
   travaille, il n'a pas besoin d'une alarme — mais il doit savoir. */
.bandeau-compte {
  margin: 0 0 12px; padding: 11px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--text);
  background: rgba(var(--cyan-rgb), .07);
  border: 1px solid rgba(var(--cyan-rgb), .3);
}
.bandeau-compte a { color: var(--cyan-light); font-weight: 600; white-space: nowrap; }

.deconnexion {
  margin: 14px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.deconnexion a { color: var(--muted); text-decoration: underline; margin-left: 4px; }
