:root {
    --nuit: #0b0a1a;
    --nuit-2: #15132b;
    --nuit-3: #1e1b3a;
    --ligne: #2a2750;
    --violet: #7c3aed;
    --rose: #ec4899;
    --or: #f59e0b;
    --doux: #a5a3c2;
}

body { background: var(--nuit); color: #f5f3ff; font-family: 'Inter', system-ui, sans-serif; }
h1, h2, .marque, .bebas { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: .03em; font-weight: 400; }
a { color: #c4b5fd; }
.texte-doux { color: var(--doux) !important; }

/* ---------- En-tête ---------- */
.entete { background: rgba(11,10,26,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 1000; }
.marque { font-size: 1.9rem; color: #fff; text-decoration: none; white-space: nowrap; }
.marque i { color: var(--rose); }
.marque span { color: var(--or); }
.nav-lien { color: var(--doux); text-decoration: none; font-weight: 500; }
.nav-lien:hover, .nav-lien.actif { color: #fff; }
.btn.btn-mes-billets { background: var(--nuit-3); color: #fff; border: 1px solid var(--ligne); border-radius: 999px; padding: .5rem 1.1rem; }
.btn.btn-mes-billets:hover, .btn.btn-mes-billets.actif { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Boutons ---------- */
.btn.btn-neon { background: linear-gradient(90deg, var(--violet), var(--rose)); color: #fff; border: 0; border-radius: 999px; font-weight: 600; padding: .7rem 1.5rem; }
.btn.btn-neon:hover { filter: brightness(1.12); color: #fff; }
.btn.btn-fantome { border: 1px solid var(--ligne); color: #fff; border-radius: 999px; padding: .65rem 1.4rem; }
.btn.btn-fantome:hover { background: var(--nuit-3); color: #fff; }

/* ---------- Affiches ---------- */
.affiche-visuel { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.9); font-size: 3.6rem;
    background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--c2) 85%, transparent), transparent 55%),
                radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c1) 90%, #000), transparent 60%),
                linear-gradient(135deg, var(--c1), var(--c2)); }
.affiche-visuel::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px); }
.affiche-visuel::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 60px rgba(255,255,255,.03); }
.affiche-visuel i { position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); transition: transform .35s; }
.affiche-visuel img { width: 100%; height: 100%; object-fit: cover; }
.affiche-grande { aspect-ratio: auto; height: 100%; min-height: 340px; font-size: 8rem; border-radius: 1.5rem; }

/* ---------- Cartes événements ---------- */
.carte-evt { display: block; background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: 1.25rem; overflow: hidden; color: #fff; text-decoration: none; height: 100%; transition: transform .25s, border-color .25s, box-shadow .25s; }
.carte-evt:hover { transform: translateY(-4px); border-color: var(--violet); color: #fff; box-shadow: 0 25px 50px -25px rgba(124,58,237,.7); }
.carte-evt:hover .affiche-visuel i { transform: scale(1.15) rotate(-6deg); }
.carte-evt h3 { font-weight: 700; }
.date-pastille { position: absolute; top: .8rem; left: .8rem; background: #fff; color: var(--nuit); border-radius: .8rem; text-align: center; padding: .3rem .6rem; line-height: 1; z-index: 2; }
.date-pastille strong { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; }
.date-pastille span { font-size: .65rem; font-weight: 700; }
.cat-pastille { position: absolute; top: .8rem; right: .8rem; font-size: .7rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; z-index: 2; color: #fff; }
.alerte-pastille { position: absolute; bottom: .8rem; left: .8rem; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); color: #fdba74; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; z-index: 2; }
.prix-depuis { font-size: .8rem; color: var(--doux); }
.prix-depuis strong { color: var(--or); font-size: .95rem; }

/* ---------- Accueil ---------- */
.une { position: relative; border-radius: 2rem; overflow: hidden; min-height: 480px; display: flex; align-items: end;
       background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 45%),
                   radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--c1) 85%, transparent), transparent 50%), var(--nuit-2); }
.une::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px); }
.une-icone { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); font-size: 16rem; opacity: .22; }
.une > * { position: relative; }
.une h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .9; }
.etiquette { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; }
.etiquette-live { background: var(--rose); font-weight: 600; }
.recherche-evt { background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: 1.25rem; padding: .6rem; margin-top: -2.2rem; position: relative; z-index: 5; box-shadow: 0 30px 60px -30px #000; }
.recherche-evt .form-control, .recherche-evt .form-select { background: transparent; border: 0; color: #fff; }
.recherche-evt .form-control::placeholder { color: var(--doux); }
.recherche-evt .form-select option { color: #000; }
.recherche-evt .separateur { width: 1px; background: var(--ligne); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: var(--nuit-2); border: 1px solid var(--ligne); color: #fff; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.chip:hover, .chip.actif { border-color: var(--violet); background: var(--nuit-3); color: #fff; }
.chip i { color: var(--c, var(--or)); }
.titre-section { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.25rem; }
.titre-section h2 { font-size: 2.4rem; margin: 0; }
.titre-section a { text-decoration: none; font-weight: 600; }
.ligne-evt { display: flex; gap: 1rem; align-items: center; padding: .9rem; border-radius: 1rem; text-decoration: none; color: #fff; border: 1px solid transparent; }
.ligne-evt:hover { background: var(--nuit-2); border-color: var(--ligne); color: #fff; }
.ligne-evt .affiche-visuel { width: 110px; aspect-ratio: 4 / 3; border-radius: .8rem; font-size: 1.8rem; flex-shrink: 0; }
.ligne-evt .affiche-visuel::after { display: none; }
.tuile-ville { display: block; padding: 1.4rem; border-radius: 1.25rem; background: linear-gradient(135deg, var(--nuit-3), var(--nuit-2)); border: 1px solid var(--ligne); color: #fff; text-decoration: none; }
.tuile-ville:hover { border-color: var(--rose); color: #fff; }
.chiffres { background: linear-gradient(90deg, rgba(124,58,237,.25), rgba(236,72,153,.2)); border: 1px solid var(--ligne); border-radius: 1.5rem; }
.chiffres strong { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; display: block; line-height: 1; }

/* ---------- Page événement ---------- */
.bandeau-evt { position: relative; overflow: hidden; border-bottom: 1px solid var(--ligne); }
.bandeau-evt .fond { position: absolute; inset: -40px; filter: blur(60px); opacity: .45; background: radial-gradient(circle at 20% 30%, var(--c2), transparent 50%), radial-gradient(circle at 80% 60%, var(--c1), transparent 50%); }
.bandeau-evt > .container { position: relative; }
.bandeau-evt h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: .95; }
.info-ligne { display: flex; gap: .8rem; align-items: start; margin-bottom: 1rem; }
.info-ligne i { font-size: 1.3rem; color: var(--or); width: 28px; }
.panneau { background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: 1.5rem; }
.artiste { display: flex; align-items: center; gap: .8rem; padding: .7rem; background: var(--nuit-3); border-radius: 1rem; }
.artiste .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.tarif { border: 1.5px solid var(--ligne); border-radius: 1.1rem; padding: 1rem 1.1rem; cursor: pointer; display: block; transition: border-color .2s, background .2s; }
.tarif:has(input:checked) { border-color: var(--violet); background: rgba(124,58,237,.12); }
.tarif.epuise { opacity: .45; cursor: not-allowed; }
.tarif input { accent-color: var(--violet); }
.jauge { height: 5px; background: var(--ligne); border-radius: 999px; overflow: hidden; }
.jauge div { height: 100%; background: linear-gradient(90deg, var(--rose), var(--or)); }
.form-control, .form-select { background: var(--nuit-3); border: 1px solid var(--ligne); color: #fff; border-radius: .8rem; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { background: var(--nuit-3); color: #fff; border-color: var(--violet); box-shadow: 0 0 0 .2rem rgba(124,58,237,.25); }
.form-control::placeholder { color: #6e6b91; }
.qte-select { display: flex; align-items: center; justify-content: space-between; background: var(--nuit-3); border-radius: .9rem; padding: .35rem; }
.qte-select button { width: 38px; height: 38px; border-radius: .7rem; border: 0; background: var(--ligne); color: #fff; }
.qte-select button:hover { background: var(--violet); }
.qte-select input { width: 50px; text-align: center; border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 1.1rem; }

/* ---------- Réservation / billets ---------- */
.zone-paiement form, .zone-paiement button { width: 100%; }
.zone-paiement button { border-radius: 999px !important; padding: .95rem !important; font-weight: 700 !important; font-size: 1.05rem !important; }
.compte-a-rebours { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--or); line-height: 1; }
.e-billet { display: flex; background: #fff; color: var(--nuit); border-radius: 1.25rem; overflow: hidden; position: relative; }
.e-billet .gauche { flex: 1; padding: 1.4rem; position: relative; }
.e-billet .bande { width: 12px; background: linear-gradient(180deg, var(--c1), var(--c2)); }
.e-billet .droite { width: 170px; padding: 1.1rem; border-left: 2px dashed #d4d4e0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.e-billet .droite canvas, .e-billet .droite img { width: 120px !important; height: 120px !important; }
.e-billet h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; margin: 0; line-height: 1; }
.e-billet small { color: #6b6890; }
.e-billet .code { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .08em; }
.e-billet .utilise { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 3px solid #dc2626; color: #dc2626; font-weight: 800; padding: .2rem .8rem; border-radius: .5rem; font-size: 1.4rem; opacity: .75; }
@media (max-width: 575px) { .e-billet { flex-direction: column; } .e-billet .droite { width: auto; border-left: 0; border-top: 2px dashed #d4d4e0; } }

.moyens { display: flex; gap: .4rem; flex-wrap: wrap; }
.moyens span { background: var(--nuit-3); border: 1px solid var(--ligne); border-radius: .5rem; padding: .25rem .6rem; font-size: .75rem; font-weight: 600; }

/* ---------- Pagination / pied ---------- */
.pagination .page-link { background: var(--nuit-2); border-color: var(--ligne); color: #fff; border-radius: .6rem !important; margin: 0 .15rem; }
.pagination .active .page-link { background: var(--violet); border-color: var(--violet); }
.pied { border-top: 1px solid var(--ligne); background: #08071a; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: #fff; }
.pied li { margin-bottom: .4rem; }

/* ---------- Espace organisateur ---------- */
.kpi { background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: 1.25rem; padding: 1.25rem; height: 100%; }
.kpi .valeur { font-family: 'Bebas Neue', sans-serif; font-size: 2.3rem; line-height: 1.1; }
.table-sombre { --bs-table-bg: transparent; --bs-table-color: #f5f3ff; --bs-table-border-color: var(--ligne); --bs-table-hover-bg: var(--nuit-3); --bs-table-hover-color: #fff; font-size: .9rem; }
.table-sombre th { color: var(--doux); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.toast { background: var(--nuit-2); color: #fff; border: 1px solid var(--ligne); }

/* ---------- La modale Afribapay garde son propre style ---------- */
.modal { color: #212529; }
.modal .form-control, .modal .form-select { background-color: #fff; color: #212529; border: 1px solid #dee2e6; }
.modal .form-control:focus, .modal .form-select:focus { background-color: #fff; color: #212529; }
.modal .form-control::placeholder { color: #9ca3af; }
