/* =========================================================
   TEDxWassakara 2026 — feuille de style principale
   ========================================================= */

:root {
    --red: #e62b1e;
    --red-dark: #c21f13;
    --black: #0b0b0c;
    --ink: #151517;
    --ink-2: #1e1e21;
    --text: #3b3b40;
    --muted: #6d6d75;
    --soft: #f5f4f2;
    --line: #e7e5e1;
    --white: #fff;
    --radius: 14px;
    --font: 'Barlow', system-ui, sans-serif;
    --script: 'Caveat', cursive;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--text); font-size: 17px; line-height: 1.65; background: var(--white); }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; }
.text-red { color: var(--red); }

/* ----- Boutons ----- */
.btn { font-weight: 700; border-radius: 999px; padding: .6rem 1.4rem; transition: all .2s ease; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn-red { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-red:hover, .btn-red:focus { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-light { border-width: 2px; }

/* ----- Barre supérieure ----- */
.topbar { background: var(--red); color: #fff; font-size: 14px; padding: 8px 0; }
.topbar a, .topbar span { color: #fff; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info i { margin-right: 6px; }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social span { margin-right: 4px; font-weight: 600; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.topbar-social a:hover { background: #fff; color: var(--red); }

/* ----- Navigation ----- */
.navbar { background: var(--black); padding: 14px 0; transition: padding .25s ease, box-shadow .25s ease; }
.navbar.is-scrolled { padding: 8px 0; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.navbar-brand img { height: 38px; width: auto; }
.navbar .nav-link { color: rgba(255,255,255,.82); font-weight: 600; padding: .5rem .9rem !important; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link.active::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px; }
.navbar-toggler { border: 0; color: #fff; font-size: 30px; padding: 0; box-shadow: none !important; }

/* ----- Hero ----- */
.hero { position: relative; min-height: calc(100vh - 110px); min-height: calc(100svh - 110px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--black); padding: 100px 0 120px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.7) 45%, rgba(230,43,30,.35) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-tag { display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; padding: 6px 14px; border-radius: 4px; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.04; margin-bottom: 22px; }
.hero-lead { font-size: 1.2rem; max-width: 600px; color: rgba(255,255,255,.85); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 26px 0 34px; font-weight: 600; }
.hero-meta i { color: var(--red); margin-right: 6px; }
.lieu-lien { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.lieu-lien:hover { color: var(--red); }
.hero-meta .lieu-lien i, .lieu-lien i { font-size: .8em; margin: 0 0 0 4px; color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; animation: bob 2s infinite; }
.hero-scroll:hover { color: #fff; border-color: var(--red); background: var(--red); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ----- Compte à rebours ----- */
.countdown-band { background: var(--ink); color: #fff; padding: 40px 0; border-top: 4px solid var(--red); }
.countdown-band h2 { color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.countdown div { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); text-align: center; padding: 16px 8px; }
.countdown strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--red); font-weight: 800; }
.countdown span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }

/* ----- Sections ----- */
.section { padding: 110px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--black); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--red); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 22px; }
.section-lead { max-width: 640px; color: var(--muted); }
.section-dark .section-lead { color: rgba(255,255,255,.7); }

/* soulignement façon "coup de pinceau" (inspiration Politicia) */
.underline { position: relative; display: inline-block; white-space: nowrap; }
.underline::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 60 1 120 6 T 198 4' fill='none' stroke='%23e62b1e' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }

/* ----- Qui sommes-nous ----- */
.about-visual { position: relative; padding: 0 0 30px 30px; }
.about-visual::before { content: ''; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; background: var(--red); border-radius: var(--radius); }
.about-visual img { position: relative; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.18); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-badge { position: absolute; right: -10px; bottom: 60px; background: var(--black); color: #fff; padding: 18px 22px; border-radius: var(--radius); display: flex; align-items: center; gap: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.about-badge strong { font-size: 2.6rem; line-height: 1; color: var(--red); }
.about-badge span { font-size: 14px; line-height: 1.3; }
.signature { font-family: var(--script); font-size: 2rem; color: var(--red); margin-top: 18px; }
.value-card { height: 100%; padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); transition: all .25s ease; background: #fff; }
.value-card i { font-size: 34px; color: var(--red); display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; background: rgba(230,43,30,.08); border-radius: 50%; margin-bottom: 18px; }
.value-card h3 { font-size: 1.35rem; }
.value-card p { margin: 0; color: var(--muted); }
.value-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }

/* ----- Speakers ----- */
.speaker-card { background: var(--ink-2); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .25s ease; }
.speaker-card:hover { transform: translateY(-6px); }
.speaker-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #2a2a2e; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.speaker-card:hover .speaker-photo img { transform: scale(1.05); }
.speaker-card.is-hidden .speaker-photo { background: radial-gradient(circle at 50% 40%, #2c2c31 0%, #141416 70%); }
.speaker-mystery { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.speaker-mystery i { font-size: 14rem; line-height: .8; color: #2f2f35; }
.speaker-mystery b { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); font-size: 5.5rem; font-weight: 800; color: var(--red); line-height: 1; text-shadow: 0 6px 24px rgba(230,43,30,.45); }
.speaker-body { padding: 18px 20px 22px; border-top: 3px solid var(--red); }
.speaker-body h3 { font-size: 1.2rem; margin: 0 0 2px; }
.speaker-body p { margin: 0; font-size: 15px; color: rgba(255,255,255,.6); }
.speaker-body .speaker-num { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 700; margin-bottom: 2px; }
.speaker-body .speaker-role { color: rgba(255,255,255,.65); line-height: 1.4; }

.past-speakers { margin-top: 90px; }
.past-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.past-title { font-size: 1.5rem; margin: 0; }
.past-nav { display: flex; gap: 10px; flex-shrink: 0; }
.past-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 18px; transition: all .2s; }
.past-btn:hover { background: var(--red); border-color: var(--red); }
.past-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.past-track::-webkit-scrollbar { display: none; }
.past-card { margin: 0; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
/* recadrage des affiches 2023 sur la personne (masque les petits textes de l'affiche) */
.past-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.past-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.past-photo.is-poster img { inset: auto; width: 217%; height: auto; max-width: none; left: -58.6%; top: -47%; }
.past-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, var(--ink-2)); }
.past-card:hover .past-photo img { transform: scale(1.04); }
.past-card figcaption { padding: 4px 20px 22px; border-top: 3px solid var(--red); }
.past-card strong { display: block; color: #fff; font-size: 1.15rem; line-height: 1.25; margin: 14px 0 4px; }
.past-card span { display: block; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.4; }
.past-card em { display: inline-block; margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
@media (max-width: 991.98px) { .past-track { grid-auto-columns: calc((100% - 20px) / 2.3); } }
@media (max-width: 575.98px) { .past-track { grid-auto-columns: 78%; } .past-title { font-size: 1.2rem; } }

/* ----- Replay : lecteur playlist ----- */
.pl-wrap { display: grid; grid-template-columns: 380px 1fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.12); }
.pl-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.pl-head { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.pl-head-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pl-label { font-weight: 800; letter-spacing: .35em; text-transform: uppercase; color: var(--ink); font-size: 15px; }
.pl-count { color: var(--muted); font-size: 14px; }
.pl-editions { display: flex; gap: 6px; margin-top: 14px; }
.pl-ed { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 10px; font-weight: 700; font-size: 14px; font-family: inherit; color: var(--ink); }
.pl-ed.active { background: var(--red); border-color: var(--red); color: #fff; }
.pl-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.pl-item { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 22px; font-family: inherit; border-left: 3px solid transparent; transition: background .15s; }
.pl-item:hover { background: #f7f6f4; }
.pl-item.active { background: #fdf0ef; border-left-color: var(--red); }
.pl-thumb { position: relative; flex: 0 0 104px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb i { position: absolute; right: 6px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pl-item.active .pl-thumb i { background: var(--red); color: #fff; }
.pl-text { min-width: 0; }
.pl-text strong { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-text span { display: block; font-size: 13px; color: var(--red); font-weight: 700; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }
.pl-main { background: #000; display: flex; flex-direction: column; }
.pl-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pl-player iframe, .pl-player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-cover { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.pl-cover span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; box-shadow: 0 0 0 10px rgba(230,43,30,.25); }
.pl-now { padding: 18px 24px; color: #fff; display: flex; align-items: center; gap: 16px; background: var(--black); flex: 1; }
.pl-now div { flex: 1; min-width: 0; }
.pl-now small { color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.pl-now strong { display: block; font-size: 1.15rem; line-height: 1.3; }
.pl-auto { color: rgba(255,255,255,.6); font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.pl-auto .form-check-input { margin: 0; }
.pl-auto .form-check-input:checked { background-color: var(--red); border-color: var(--red); }

@media (max-width: 991.98px) {
    .pl-wrap { grid-template-columns: 1fr; }
    .pl-side { order: 2; border-right: 0; border-top: 1px solid var(--line); }
    .pl-list { max-height: 360px; }
}
@media (max-width: 575.98px) {
    .pl-head, .pl-item { padding-left: 16px; padding-right: 16px; }
    .pl-thumb { flex-basis: 88px; }
    .pl-now { flex-wrap: wrap; padding: 14px 16px; }
}

/* ----- Formulaires ----- */
.form-card { background: #fff; border-radius: 18px; padding: 40px; box-shadow: 0 24px 60px rgba(0,0,0,.08); border-top: 5px solid var(--red); }
.form-label { font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.form-control, .form-select { border-radius: 10px; border: 1px solid var(--line); padding: .75rem 1rem; background-color: #fbfbfa; }
.form-control:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(230,43,30,.15); background-color: #fff; }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
.form-check-label { font-size: 15px; }
.was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: var(--red); }
/* champ piège anti-robots : invisible pour les humains */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
.ticket-widget.has-widget { display: block; border-style: solid; background: #fff; padding: 10px; }
.form-feedback { margin-top: 18px; display: none; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-feedback.is-success { display: block; background: #e9f7ef; color: #146c43; }
.form-feedback.is-error { display: block; background: #fdecea; color: var(--red-dark); }

.form-card-dark { background: var(--ink-2); box-shadow: none; }
.form-card-dark .form-label { color: #fff; }
.form-card-dark .form-control, .form-card-dark .form-select { background-color: var(--ink); border-color: rgba(255,255,255,.1); color: #fff; }
.form-card-dark .form-control::placeholder { color: rgba(255,255,255,.4); }
.form-card-dark .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); }
.form-card-dark .form-select { color-scheme: dark; }
.form-card-dark .form-select option { background-color: var(--ink-2); color: #fff; }

/* étapes de candidature */
.steps { list-style: none; padding: 0; margin: 30px 0 0; }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #d8d5cf; }
.steps li:last-child { border-bottom: 0; }
.steps span { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--ink); }
.steps div { font-size: 15px; color: var(--muted); }

/* ----- Billetterie ----- */
.ticket-info { height: 100%; background: var(--black); color: rgba(255,255,255,.85); border-radius: 18px; padding: 36px; position: relative; overflow: hidden; }
.ticket-info::after { content: 'x'; position: absolute; right: -20px; bottom: -80px; font-size: 260px; font-weight: 800; color: var(--red); opacity: .15; line-height: 1; }
.ticket-info h3 { color: #fff; font-size: 1.4rem; margin-bottom: 18px; }
.ticket-info ul { list-style: none; padding: 0; margin: 0 0 26px; }
.ticket-info li { padding: 6px 0; }
.ticket-info li i { color: var(--red); margin-right: 8px; }
.ticket-meta { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; position: relative; z-index: 1; }
.ticket-meta p { margin-bottom: 8px; font-size: 15px; }
.ticket-meta i { color: var(--red); margin-right: 8px; }
.ticket-widget { height: 100%; min-height: 380px; border: 2px dashed var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--soft); overflow: hidden; }
.ticket-widget iframe { width: 100%; border: 0; }
.ticket-placeholder { text-align: center; padding: 40px; }
.ticket-placeholder i { font-size: 54px; color: var(--red); }
.ticket-placeholder h3 { margin-top: 12px; }
.ticket-placeholder p { color: var(--muted); margin: 0; }

/* ----- Contact ----- */
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-list i { flex: 0 0 48px; height: 48px; border-radius: 12px; background: rgba(230,43,30,.15); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-list small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; opacity: .6; }
.contact-list a { color: #fff; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--red); }

/* ----- Pied de page ----- */
.site-footer { background: #000; color: rgba(255,255,255,.6); padding: 60px 0 0; font-size: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-logo { height: 40px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .footer-bottom a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--red); }
.footer-social { display: inline-flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { margin-top: 40px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.to-top { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; }

/* ----- Animations d'apparition ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-scroll { animation: none; }
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .navbar-collapse { padding: 14px 0; }
    .navbar .nav-link.active::after { display: none; }
    .navbar .btn-red { margin-top: 10px; }
    .hero { min-height: 88vh; padding: 80px 0 110px; }
    .section { padding: 80px 0; }
    .about-badge { right: 10px; }
}
@media (max-width: 575.98px) {
    .navbar-brand img { height: 30px; }
    .countdown { gap: 8px; }
    .countdown div { padding: 12px 4px; }
    .form-card { padding: 26px 20px; }
    .ticket-info { padding: 28px; }
    .about-visual { padding: 0 0 20px 20px; }
    .about-badge { bottom: 36px; padding: 12px 16px; }
    .about-badge strong { font-size: 2rem; }
    .underline { white-space: normal; }
}

/* ----- Billetterie : formulaire d'achat ----- */
.buy-card { background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 24px 60px rgba(0,0,0,.08); border-top: 5px solid var(--red); height: 100%; position: relative; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.buy-price strong { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.buy-price span { color: var(--muted); font-weight: 600; }
.buy-stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #146c43; background: #e9f7ef; padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.buy-stock.is-low { color: var(--red-dark); background: #fdecea; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fbfbfa; }
.qty button { width: 46px; height: 48px; border: 0; background: transparent; font-size: 20px; color: var(--ink); }
.qty button:hover { background: #f1efec; }
.qty input { width: 56px; height: 48px; border: 0; text-align: center; font-weight: 800; font-size: 1.15rem; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-total { display: flex; justify-content: space-between; align-items: center; background: var(--soft); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.buy-total strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.buy-ci { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); background: #fff8e6; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.buy-ci i { color: #c98a00; font-size: 18px; }
.buy-moyens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: center; }
.buy-moyens span { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--muted); }
.buy-closed { text-align: center; padding: 40px 20px; }
.buy-closed i { font-size: 54px; color: var(--red); }

/* ----- Page « Mes billets » ----- */
.billet-page { background: var(--soft); min-height: 100vh; }
.billet-header { background: var(--black); padding: 16px; text-align: center; border-bottom: 4px solid var(--red); }
.billet-header img { height: 38px; }
.billet-main { padding: 50px 16px 70px; }
.billet-etat { max-width: 560px; margin: 40px auto; text-align: center; background: #fff; border-radius: 18px; padding: 44px 30px; box-shadow: 0 20px 50px rgba(0,0,0,.06); }
.billet-etat > i { font-size: 54px; color: var(--red); display: block; margin-bottom: 10px; }
.billet-etat h1 { font-size: 1.8rem; }
.billet-intro { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.billet-intro h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.ticket { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.08); break-inside: avoid; }
.ticket-off { opacity: .55; }
.ticket-top { background: var(--black); display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ticket-top img { height: 26px; }
.ticket-body { padding: 22px; text-align: center; border-bottom: 2px dashed var(--line); }
.ticket-qr { display: inline-block; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 186px; }
.ticket-qr img, .ticket-qr canvas { display: block; }
.ticket-code { font-family: Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: 3px; margin: 12px 0 6px; color: var(--ink); }
.ticket dl { text-align: left; margin: 16px 0 0; font-size: 14px; }
.ticket dt { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ticket dd { margin-bottom: 8px; font-weight: 600; }
.ticket-foot { padding: 12px 18px; font-size: 12px; color: var(--muted); text-align: center; }
@media print {
    .billet-page { background: #fff; }
    .billet-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ticket { box-shadow: none; border: 1px solid #ccc; }
    .ticket-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* Billetterie complète : formulaire grisé + bandeau SOLD OUT */
.buy-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.buy-card.is-soldout fieldset { opacity: .38; filter: grayscale(1); pointer-events: none; user-select: none; }
.soldout-badge { position: absolute; z-index: 3; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); background: var(--red); color: #fff;
    font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: .08em; padding: 10px 40px; border-radius: 10px;
    box-shadow: 0 18px 40px rgba(230,43,30,.35); white-space: nowrap; border: 4px solid #fff; }
.soldout-texte { text-align: center; font-weight: 600; color: var(--ink); margin: 18px 0 0; }
.buy-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.buy-note i { color: #146c43; }

/* Badges colorés (classes « text-bg-* » de Bootstrap 5.2, absentes de la version 5.1 utilisée) */
.text-bg-success { color: #fff !important; background-color: #198754 !important; }
.text-bg-danger { color: #fff !important; background-color: #dc3545 !important; }
.text-bg-warning { color: #000 !important; background-color: #ffc107 !important; }
.text-bg-info { color: #000 !important; background-color: #0dcaf0 !important; }
.text-bg-secondary { color: #fff !important; background-color: #6c757d !important; }
.text-bg-dark { color: #fff !important; background-color: #212529 !important; }
.text-bg-light { color: #000 !important; background-color: #f8f9fa !important; }

/* Crédit du pied de page */
.footer-credit { color: #fff !important; font-weight: 600; }
.footer-credit:hover { color: var(--red) !important; }
