/* ==========================================================================
   PROCLAMATION DES RÉSULTATS - MISS UNASMOH
   Podium Top 3 + Liste native (style Android / Material 3)
   ========================================================================== */

:root { 
    --gold: #b8901c; 
    --gold-lt: #e8b84b; 
    --dark: #111; 
}

/* ── Header ── */
.proclamation-header {
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1200 55%, #0a0a0a 100%);
    color: #fff; 
    padding: 70px 0 50px; 
    text-align: center;
    position: relative; 
    overflow: hidden;

    /* ✅ AJOUTÉ — breakout "fondu" plein écran, DESKTOP + MOBILE.
       .proclamation-header est un enfant direct de <main class="max-w-7xl
       mx-auto px-4..."> : sans ce breakout, le fond noir reste contraint
       par ce max-width + padding, exactement le même problème que pour
       .hero-section de la page d'accueil. Même technique, universelle
       (pas de media query) : le fond touche les bords du viewport quelle
       que soit la largeur d'écran. Le contenu (.container) garde son
       propre padding Bootstrap, donc seul le FOND devient edge-to-edge. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}
.proclamation-header::before {
    content: ''; 
    position: absolute; 
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(184,144,28,.18), transparent 70%);
    pointer-events: none;
}
.proclamation-header .container { 
    position: relative; 
    z-index: 2; 
}
.proclamation-header h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2rem, 5vw, 3.5rem); 
}
.gold-hr { 
    width: 40px; 
    height: 2px; 
    background: linear-gradient(90deg, var(--gold), var(--gold-lt)); 
    border: none; 
    margin: 16px auto; 
}
.section-eyebrow { 
    font-size: 10px; 
    letter-spacing: .3em; 
    text-transform: uppercase; 
    color: var(--gold); 
}

.session-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: rgba(184,144,28,.12); 
    border: 1px solid rgba(184,144,28,.3);
    color: var(--gold-lt); 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: .15em;
    text-transform: uppercase; 
    padding: 8px 20px; 
    border-radius: 20px; 
    margin-top: 16px;
}
.live-dot { 
    width: 8px; 
    height: 8px; 
    background: #ef4444; 
    border-radius: 50%; 
    animation: blink 1s infinite; 
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.2 } }
.countdown-mini { 
    font-family: 'Courier New', monospace; 
    color: var(--gold-lt); 
    font-weight: 700; 
    margin-left: 6px; 
}

/* ── Stats rapides ── */
.stats-row .stat-card {
    background: #fff; 
    border-radius: 14px; 
    border: 1px solid #f0f0f0;
    padding: 20px; 
    text-align: center; 
    transition: transform .2s, box-shadow .2s;
}
.stats-row .stat-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 24px rgba(0,0,0,.06); 
}
.stats-row .stat-num { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--gold); 
}
.stats-row .stat-lbl { 
    font-size: 10px; 
    letter-spacing: .15em; 
    text-transform: uppercase; 
    color: #aaa; 
}

.podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.podium-photo-wrap {
    position: relative;
    margin-bottom: 10px;
}

.podium-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

.podium-crown {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    line-height: 1;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.podium-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
}

.podium-faculte {
    font-size: 12px;
    color: #757575;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.podium-votes,
.podium-likes {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.podium-votes { color: #d4a017; }
.podium-likes { color: #ef4444; }

.podium-block {
    width: 100%;
    margin-top: 12px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.podium-block.p1 {
    height: 140px;
    background: linear-gradient(180deg, #ffd54f, #ffb300);
    order: 2;
}
.podium-block.p2 {
    height: 100px;
    background: linear-gradient(180deg, #e0e0e0, #bdbdbd);
    order: 1;
}
.podium-block.p3 {
    height: 75px;
    background: linear-gradient(180deg, #d7bfff, #b39ddb);
    order: 3;
}

.podium-block.p1::after,
.podium-block.p2::after,
.podium-block.p3::after {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
}
.podium-block.p1::after { content: "1"; }
.podium-block.p2::after { content: "2"; }
.podium-block.p3::after { content: "3"; }

.podium-item:nth-child(1) { order: 1; }
.podium-item:nth-child(2) { order: 2; }
.podium-item:nth-child(2) .podium-photo { width: 110px; height: 110px; }
.podium-item:nth-child(3) { order: 3; }

/* ==========================================================================
   LISTE NATIVE FLAT (STYLE ANDROID / MATERIAL 3)
   ========================================================================== */

#candidates-native-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.candidate-flat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.candidate-flat-row:hover,
.candidate-flat-row:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.row-left-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.row-right-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.rank-badge-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-top-1 { background: #fff8e1; color: #ffb300; border: 1px solid #ffe082; }
.rank-top-2 { background: #f5f5f5; color: #757575; border: 1px solid #e0e0e0; }
.rank-top-3 { background: #efe5fd; color: #7e57c2; border: 1px solid #d1c4e9; }
.rank-top-other { background: #f8f9fa; color: #6c757d; border: 1px solid #dee2e6; }

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.candidate-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.candidate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.candidate-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-number {
    font-size: 11px;
    color: #757575;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.native-progress-wrap {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.native-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.votes-badge-count {
    background: #f5f5f5;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #212121;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.votes-badge-count i {
    color: #ffc107;
}

.btn-more-actions {
    background: none;
    border: none;
    color: #9e9e9e;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-more-actions:hover {
    background: #f5f5f5;
    color: #212121;
}

/* ==========================================================================
   RESPONSIVE & FULL-MOBILE-WIDTH BREAKOUT (LOGIQUE APPLIQUÉE)
   ========================================================================== */

@media (max-width: 992px) {
    .native-progress-wrap {
        max-width: 220px;
    }

    .stats-row .stat-card {
        padding: 16px 12px;
    }
    .stats-row .stat-num {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    /* 
       ✅ FORCE PLEINE LARGEUR (Breakout horizontal)
       Ces éléments restent en breakout mobile-only : ce sont des listes
       de contenu (podium, cartes) qui n'ont pas besoin d'être edge-to-edge
       en desktop — contrairement au header/hero qui est maintenant
       universel plus haut dans le fichier.
    */
    .podium-wrap,
    #candidates-native-list {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    .podium-wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
        gap: 8px;
    }

    .candidate-flat-row {
        border-radius: 0 !important; 
        margin-bottom: 2px !important;
        padding: 12px 16px !important; 
        box-shadow: none !important;
        border-bottom: 1px solid #edf0f2;
    }

    .native-progress-wrap {
        max-width: 140px;
    }

    .podium-photo {
        width: 76px !important;
        height: 76px !important;
    }
    .podium-item:nth-child(2) .podium-photo {
        width: 92px !important;
        height: 92px !important;
    }
    .podium-crown {
        font-size: 24px !important;
        top: -20px !important;
    }
    .podium-name {
        font-size: 13px !important;
    }
    .podium-faculte {
        font-size: 11px !important;
    }
    .podium-votes,
    .podium-likes {
        font-size: 11px !important;
    }
    .podium-block.p1 { height: 110px !important; }
    .podium-block.p2 { height: 80px !important; }
    .podium-block.p3 { height: 60px !important; }

    /* ── Header de proclamation (mobile) ── */
    .proclamation-header {
        padding: 45px 0 35px !important;
    }
    .proclamation-header .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .proclamation-header h1 {
        font-size: 1.7rem !important;
        line-height: 1.25 !important;
    }
    .section-eyebrow {
        font-size: 9px !important;
        letter-spacing: .2em !important;
    }
    .gold-hr {
        margin: 12px auto !important;
    }
    .proclamation-header p {
        font-size: 13px !important;
    }
    .session-badge {
        font-size: 10px !important;
        letter-spacing: .1em !important;
        padding: 7px 14px !important;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        max-width: 100%;
    }
    .countdown-mini {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-top: 4px;
    }

    .stats-row {
        margin-top: 20px !important;
    }
    .stats-row [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 12px;
    }
    .stats-row .stat-card {
        padding: 14px 8px;
        border-radius: 10px;
    }
    .stats-row .stat-card:hover {
        transform: none;
    }
    .stats-row .stat-num {
        font-size: 1.3rem;
    }
    .stats-row .stat-lbl {
        font-size: 8.5px;
        letter-spacing: .1em;
    }
}

@media (max-width: 360px) {
    .podium-photo {
        width: 62px !important;
        height: 62px !important;
    }
    .podium-item:nth-child(2) .podium-photo {
        width: 76px !important;
        height: 76px !important;
    }
    .podium-name {
        font-size: 12px !important;
    }
    .native-progress-wrap {
        max-width: 90px;
    }
    .votes-badge-count {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .proclamation-header {
        padding: 35px 0 28px !important;
    }
    .proclamation-header h1 {
        font-size: 1.45rem !important;
    }
    .session-badge {
        font-size: 9px !important;
        padding: 6px 10px !important;
    }

    .stats-row .stat-card {
        padding: 10px 6px;
    }
    .stats-row .stat-num {
        font-size: 1.1rem;
    }
    .stats-row .stat-lbl {
        font-size: 7.5px;
    }
}