/* =========================================================
   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; }
.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; } }

/* ----- 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 option { color: var(--ink); }

/* é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; }
}
