/* ==========================================================================
   PAGE D'ACCUEIL - HOME.CSS (FULL-WIDTH BREAKOUT FIX)
   ========================================================================== */

/* ── 1. BREAKOUT BREAKOUT GLOBAL POUR TOUTES LES SECTIONS D'ACCUEIL ── 
   Permet d'annuler les paddings du conteneur parent (<main> / .container)
   et de coller les fonds/bannières aux deux bords de l'écran (0 marge). */
.hero-section,
.countdown-section,
.vote-cta-section,
.how-it-works-section,
.proclamation-section,
.live-ticker {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

/* ── 2. HERO SECTION BASE ── */
.hero-section {
    min-height: 85vh;
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1200 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184,144,28,.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-brand-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(212,175,55,0.4));
}

.hero-section .gold-line {
    width: 60px; 
    height: 2px;
    background: linear-gradient(90deg, transparent, #b8901c, transparent);
}

.hero-edition-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    border: 1px solid rgba(184,144,28,.4);
    color: #b8901c;
    font-size: 10px; 
    letter-spacing: .25em; 
    text-transform: uppercase;
    padding: 6px 18px; 
    background: rgba(184,144,28,.07);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
}

.hero-title.gold { 
    color: #b8901c; 
    font-style: italic; 
}

.hero-subtitle {
    font-size: 13px; 
    letter-spacing: .15em; 
    color: rgba(255,255,255,.6);
    text-transform: uppercase; 
    font-weight: 400;
}

.hero-description {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    max-width: 460px;
    line-height: 1.7;
}

/* Stats Hero */
.hero-stat { text-align: center; }
.hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; 
    font-weight: 700; 
    color: #b8901c;
}
.hero-stat .lbl { 
    font-size: 10px; 
    letter-spacing: .15em; 
    color: rgba(255,255,255,.4); 
    text-transform: uppercase; 
}

/* Boutons Hero */
.btn-hero-primary {
    background: linear-gradient(135deg, #b8901c, #e8b84b);
    color: #fff; 
    border: none; 
    border-radius: 0;
    font-size: 11px; 
    letter-spacing: .2em; 
    text-transform: uppercase;
    padding: 12px 28px; 
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 32px rgba(184,144,28,.35); 
    color: #fff; 
}

.btn-hero-outline {
    border: 1px solid rgba(255,255,255,.25); 
    color: rgba(255,255,255,.85);
    border-radius: 0; 
    font-size: 11px; 
    letter-spacing: .2em; 
    text-transform: uppercase;
    padding: 12px 28px; 
    font-weight: 600; 
    background: transparent;
    transition: border-color .2s, color .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover { 
    border-color: #b8901c; 
    color: #b8901c; 
    transform: translateY(-2px);
}

/* ── 3. CARROUSEL INTÉGRÉ AU HERO ── */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(184,144,28,.12);
    margin: 0;
}

.hero-carousel-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(to right, #0a0a0a 0%, rgba(10,10,10,0) 18%, rgba(10,10,10,0) 82%, #0a0a0a 100%),
        linear-gradient(to bottom, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 78%, #1a1200 100%);
}

.hero-carousel-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(184,144,28,.10) 0%, transparent 75%);
}

.hero-carousel {
    position: relative;
    width: 100%;
}

.hero-carousel .carousel-item {
    height: 480px;
    overflow: hidden;
    position: relative;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88) contrast(1.05) saturate(1.05);
    transition: transform 6s ease-in-out;
}

.hero-carousel .carousel-item.active img {
    transform: scale(1.05);
}

/* Contrôles carrousel */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(184, 144, 28, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    z-index: 11;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: #b8901c;
    border-color: #b8901c;
    opacity: 1;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 15px;
    z-index: 11;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 20px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    background-color: #b8901c;
    width: 32px;
}

/* ── 4. COUNTDOWN SECTION ── */
.countdown-section {
    background: #0f0f0f;
    border-top: 1px solid rgba(184,144,28,.15);
    border-bottom: 1px solid rgba(184,144,28,.15);
    padding: 24px 0;
}

.countdown-unit .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; 
    font-weight: 700; 
    color: #b8901c; 
    line-height: 1;
}

.countdown-unit .lbl { 
    font-size: 10px; 
    letter-spacing: .2em; 
    color: rgba(255,255,255,.35); 
    text-transform: uppercase; 
}

.countdown-sep { 
    font-size: 2rem; 
    color: rgba(184,144,28,.4); 
    font-weight: 300; 
    align-self: flex-start; 
    padding-top: 4px; 
}

/* ── 5. SECTIONS TITLES & CANDIDATES ── */
.section-eyebrow {
    font-size: 10px; 
    letter-spacing: .3em; 
    text-transform: uppercase;
    color: #b8901c; 
    font-weight: 600;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700; 
    color: #111;
}

.section-description {
    color: rgba(255,255,255,.5);
    max-width: 520px;
    margin: 0 auto;
    font-size: 14px;
}

.gold-hr { 
    width: 40px; 
    height: 2px; 
    background: #b8901c; 
    border: none; 
    margin: 0 auto; 
}

#candidates-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.candidate-card {
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}

.candidate-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 24px 48px rgba(0,0,0,.12) !important; 
}

/* ── 6. VOTE CTA BANNER ── */
.vote-cta-section {
    background: linear-gradient(135deg, #111 0%, #1a1200 50%, #111 100%);
    position: relative; 
    overflow: hidden;
    padding: 60px 0;
}

.vote-cta-section::before {
    content: '';
    position: absolute; 
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(184,144,28,.15), transparent 70%);
}

.vote-cta-section .section-title { color: #fff; }

/* ── 7. HOW IT WORKS ── */
.how-it-works-section {
    background: #f8f8f6;
    padding: 80px 0;
}

.step-card {
    border: 1px solid #e5e5e5;
    border-top: 3px solid #b8901c;
    padding: 28px 20px;
    text-align: center;
    background: #fff;
}

.step-num {
    width: 44px; 
    height: 44px;
    border: 1px solid #b8901c; 
    color: #b8901c;
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    font-family: 'Playfair Display', serif; 
    font-size: 1.1rem; 
    font-weight: 700;
    margin-bottom: 14px;
}

.btn-step {
    font-size: 10px;
    letter-spacing: .15em;
}

/* ── 8. PROCLAMATION & TICKER ── */
.proclamation-section {
    background: #111;
    padding: 80px 0;
    color: #fff;
}

.live-ticker {
    background: #b8901c;
    font-size: 11px; 
    letter-spacing: .1em; 
    color: #fff;
    padding: 8px 0; 
    overflow: hidden; 
    white-space: nowrap;
}

.live-ticker-inner { 
    display: inline-flex; 
    gap: 48px; 
    animation: ticker 30s linear infinite; 
}

@keyframes ticker { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==========================================================================
   OPTIMISATIONS RESPONSIVES
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    .hero-title,
    .hero-title.gold {
        font-size: 2.2rem !important;
    }

    .hero-brand-logo {
        height: 70px !important;
    }

    .hero-subtitle {
        font-size: 11px !important;
        letter-spacing: 1px !important;
        margin-bottom: 15px !important;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 10px !important;
    }

    .hero-stat .num {
        font-size: 1.5rem !important;
    }

    .hero-carousel-wrapper {
        margin-top: 0;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .hero-carousel .carousel-item {
        height: 300px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .hero-carousel .carousel-item {
        height: 340px !important;
    }
}

@media (max-width: 575.98px) {
    .countdown-unit .num {
        font-size: 2rem !important;
    }
    
    .countdown-unit .lbl {
        font-size: 8px !important;
    }

    .step-card {
        padding: 20px 15px !important;
    }

    .hero-carousel .carousel-item {
        height: 300px !important;
    }
}
