:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(255,255,255,0.03);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gold: #D4AF37;
    --gold-dark: #B8960C;
    --gold-light: #E5C55E;
    --border: rgba(212,175,55,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== ARRIÈRE-PLAN PROFESSIONNEL ========== */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1117 50%, #0a0a0a 100%);
    background-size: contain;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Particules dorées scintillantes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(212,175,55,0.5), rgba(0,0,0,0)),
        radial-gradient(3px 3px at 80px 120px, rgba(255,215,0,0.3), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 60px, rgba(212,175,55,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 250px 200px, rgba(255,215,0,0.4), rgba(0,0,0,0)),
        radial-gradient(3px 3px at 350px 40px, rgba(212,175,55,0.3), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 500px 160px, rgba(255,215,0,0.5), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 620px 300px, rgba(212,175,55,0.4), rgba(0,0,0,0)),
        radial-gradient(3px 3px at 750px 90px, rgba(255,215,0,0.3), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 900px 380px, rgba(212,175,55,0.5), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1050px 50px, rgba(255,215,0,0.4), rgba(0,0,0,0)),
        radial-gradient(3px 3px at 1200px 250px, rgba(212,175,55,0.3), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 1300px 130px, rgba(255,215,0,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1400px 350px, rgba(212,175,55,0.4), rgba(0,0,0,0));
    background-size: 200px 200px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    animation: starsFloat 6s ease-in-out infinite;
}

@keyframes starsFloat {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Cercle lumineux central subtil */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

/* Assure que tout le contenu est au-dessus */
.main-header, .nav-links, .welcome-section, .vote-section, .dashboard-section, .results-section, .main-footer {
    position: relative;
    z-index: 1;
}
h1, h2, h3, .main-title {
    font-family: 'Cormorant Garamond', serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========== ANIMATION 25 ANS ========== */
.anniversary-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: bold;
    animation: pulseGold 2s ease-in-out infinite, shine 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.anniversary-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(25deg);
    animation: shineSlide 3s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

@keyframes shineSlide {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(25deg);
    }
}

@keyframes shine {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

.anniversary-badge i {
    margin: 0 8px;
    font-size: 0.8rem;
    animation: iconRotate 2s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

.twenty-five {
    display: inline-block;
    animation: textGlow 1.5s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 2px gold;
    }
    50% {
        text-shadow: 0 0 10px gold, 0 0 5px #fff;
    }
}

/* Header */
.main-header {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-bottom: 1px solid var(--border);
}

.main-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.gold-separator {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 15px auto;
}

.date-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 40px;
    transition: all 0.3s;
}

.nav-link.active {
    background: var(--gold);
    color: #0a0a0a;
}

.nav-link:hover:not(.active) {
    background: var(--bg-card);
    color: var(--gold);
}

.nav-link i {
    margin-right: 8px;
}

/* Welcome Card */
.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.welcome-card h2 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.welcome-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.welcome-icon i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.notice {
    font-size: 0.75rem;
    background: rgba(212,175,55,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}
.fireworks-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fireworks-btn i {
    font-size: 1.1rem;
    margin: 0;
}

.fireworks-btn span, .fireworks-btn strong {
    margin: 0 5px;
}

.fireworks-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
    gap: 12px;
}


/* Section Header */
.section-header {
    text-align: center;
    margin: 40px 0 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--gold);
}

.section-header i {
    margin-right: 10px;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 10px auto;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--gold);
    transition: all 0.3s;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-top: 10px;
}

.category-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Candidates */
.candidates-panel {
    margin-top: 30px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.candidates-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.back-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--gold);
    color: #0a0a0a;
}

.back-btn i {
    margin-right: 8px;
}

.candidates-header h3 {
    font-size: 1.4rem;
    color: var(--gold);
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.candidate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.candidate-card:hover {
    border-color: var(--gold);
}

.candidate-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.candidate-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.vote-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 8px 25px;
    border-radius: 40px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard */
.dashboard-section {
    background: var(--bg-secondary);
    padding: 50px 0;
    margin-top: 50px;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
}

.result-card h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.total-votes {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.candidate-result {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}

.candidate-stats {
    color: var(--gold);
}

.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 3px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.5s;
}

.winner-badge {
    background: var(--gold);
    color: #0a0a0a;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* ========== PAGE RÉSULTATS ========== */
.results-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px dashed var(--gold);
    margin: 40px 0;
}

.results-message h2 {
    color: var(--gold);
    margin: 20px 0 10px;
}

.waiting-icon {
    margin-bottom: 20px;
}

.waiting-icon i {
    color: var(--gold);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.voting-status {
    margin: 20px 0;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 40px;
    display: inline-block;
    font-size: 0.85rem;
}

.voting-status i {
    margin-right: 8px;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.back-to-vote {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
}

.back-to-vote:hover {
    transform: translateX(-5px);
}

.back-to-vote i {
    margin-right: 8px;
}

.final-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.final-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-result-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.final-result-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.final-category-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.winner-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold-light);
    margin: 10px 0;
    animation: winnerGlow 2s ease-in-out infinite;
}

@keyframes winnerGlow {
    0%, 100% { text-shadow: 0 0 5px var(--gold); }
    50% { text-shadow: 0 0 15px var(--gold); }
}

.winner-medal {
    font-size: 2rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.second-place, .third-place {
    font-size: 0.75rem;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.congrats-banner {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
    border-radius: 24px;
    margin-top: 30px;
}

.congrats-banner i {
    color: var(--gold);
    margin: 0 8px;
    animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: #0a0a0a;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    transform: translateX(150%);
    transition: transform 0.3s;
    z-index: 1000;
    font-size: 0.85rem;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    margin-right: 8px;
}

.loading-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .main-title { font-size: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .category-card { padding: 15px 10px; }
    .candidates-grid { grid-template-columns: 1fr; }
    .dashboard-content { grid-template-columns: 1fr; }
    .nav-link { padding: 5px 15px; font-size: 0.8rem; }
    .welcome-card { padding: 25px; }
    .welcome-card h2 { font-size: 1.3rem; }
    .anniversary-badge { font-size: 0.7rem; padding: 5px 15px; }
}

@media (max-width: 480px) {
    .main-title { font-size: 1.5rem; }
    .nav-links { gap: 10px; }
    .nav-link { padding: 4px 12px; font-size: 0.7rem; }
}
/* ========== TOAST PROFESSIONNEL (AMÉLIORÉ) ========== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Animation d'entrée du toast */
@keyframes toastGlow {
    0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
    100% { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
}

.toast.show {
    animation: toastGlow 0.8s ease-out;
}
/* ========== ANIMATION DES VERRES CHAMPAGNE ========== */
.welcome-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.welcome-icon i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
    transition: all 0.3s;
    display: none; /* On cache l'icône originale */
}

/* Animation des verres */
.glasses-animation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    min-height: 80px;
}

.glass {
    width: 45px;
    height: 60px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Pied du verre */
.glass::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: var(--gold);
    border-radius: 2px;
}

/* Base du verre */
.glass::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.left-glass {
    transform: translateX(0) rotate(0deg);
}

.right-glass {
    transform: translateX(0) rotate(0deg);
}

/* Coupe du verre */
.glass .cup {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 2px solid var(--gold);
    border-top: none;
    border-radius: 0 0 30px 30px;
    bottom: 0;
    left: 0;
}

/* Liquide dans le verre */
.glass .liquid {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: calc(100% - 4px);
    background: linear-gradient(180deg, rgba(212,175,55,0.4), rgba(212,175,55,0.8));
    border-radius: 0 0 28px 28px;
    transition: height 0.3s;
    height: 70%;
}

/* Bulles dans le liquide */
.glass .bubble {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    bottom: 10%;
    animation: bubbleRise 1.5s ease-in-out infinite;
}

@keyframes bubbleRise {
    0% {
        bottom: 10%;
        opacity: 0.8;
        width: 4px;
        height: 4px;
    }
    100% {
        bottom: 80%;
        opacity: 0;
        width: 2px;
        height: 2px;
    }
}

/* Animation quand on survole */
.welcome-icon:hover .left-glass {
    animation: glassLeftClink 0.8s ease-in-out forwards;
}

.welcome-icon:hover .right-glass {
    animation: glassRightClink 0.8s ease-in-out forwards;
}

@keyframes glassLeftClink {
    0% { transform: translateX(0) rotate(0deg); }
    30% { transform: translateX(-15px) rotate(-8deg); }
    60% { transform: translateX(8px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes glassRightClink {
    0% { transform: translateX(0) rotate(0deg); }
    30% { transform: translateX(15px) rotate(8deg); }
    60% { transform: translateX(-8px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* ========== ANIMATION DES VERRES CHAMPAGNE ========== */
.welcome-icon {
    position: relative;
    display: inline-block;
}

.glasses-container i {
    font-size: 3.5rem;
    color: var(--gold);
    display: inline-block;
    animation: glassesCheers 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s;
}

.glasses-container i:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(212,175,55,0.6);
}

@keyframes glassesCheers {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    20% {
        transform: translateX(-8px) rotate(-5deg);
    }
    40% {
        transform: translateX(8px) rotate(5deg);
    }
    60% {
        transform: translateX(-4px) rotate(-3deg);
    }
    80% {
        transform: translateX(4px) rotate(3deg);
    }
}

/* Gouttes qui tombent */
.droplets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.droplet {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, var(--gold-light), var(--gold-dark));
    border-radius: 50%;
    opacity: 0;
    animation: dropletFall 1.2s ease-out forwards;
    box-shadow: 0 0 3px rgba(212,175,55,0.5);
}

@keyframes dropletFall {
    0% {
        opacity: 0.9;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(25px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.3);
    }
}

/* Petite éclaboussure au clic */
@keyframes splash {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.glass-splash {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light), transparent);
    pointer-events: none;
    animation: splash 0.5s ease-out forwards;
}
/* ========== PAGE INSTRUCTIONS ========== */
.instructions-header {
    text-align: center;
    margin: 60px 0 40px;
}

.instructions-icon i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.instructions-header h2 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.instructions-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Étapes */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--gold);
    margin: 15px 0;
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.step-tip {
    margin-top: 20px;
    padding: 10px;
    background: rgba(212,175,55,0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--gold-light);
}

.step-tip i {
    margin-right: 8px;
}

/* Règles */
.rules-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    margin: 30px 0;
}

.rules-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rules-header i {
    font-size: 2rem;
    color: var(--gold);
}

.rules-header h3 {
    font-size: 1.3rem;
    color: var(--gold);
}

.rules-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rules-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rules-list li i {
    color: var(--gold);
    font-size: 1rem;
}

/* Aide */
.help-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--gold);
    border-radius: 24px;
    padding: 35px;
    margin: 30px 0;
}

.help-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.help-card h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.help-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.help-contact {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212,175,55,0.1);
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--gold-light);
}

.help-contact i {
    font-size: 0.85rem;
    margin-right: 8px;
}

/* Bouton retour */
.back-to-vote-container {
    text-align: center;
    margin: 40px 0 60px;
}

.back-to-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-to-vote-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(212,175,55,0.4);
}

/* Responsive instructions */
@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .rules-list {
        grid-template-columns: 1fr;
    }
    
    .instructions-header h2 {
        font-size: 1.5rem;
    }
    
    .step-card {
        padding: 25px 20px;
    }
    
    .rules-card {
        padding: 20px;
    }
    
    .help-card {
        padding: 25px;
    }
}
/* ========== FOOTER AVEC SIGNATURE ========== */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-credit {
    font-size: 0.7rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-credit i {
    margin-right: 4px;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    opacity: 1;
    text-shadow: 0 0 5px rgba(212,175,55,0.5);
}

@media (max-width: 768px) {
    .footer-credit {
        flex-direction: column;
        gap: 5px;
    }
}
/* ========== PAGE ADMIN ========== */
.admin-body {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 40px 20px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.admin-logo i {
    font-size: 2.5rem;
    color: var(--gold);
}

.admin-logo h1 {
    font-size: 1.8rem;
    color: var(--gold);
}

.admin-badge {
    display: inline-block;
    background: rgba(212,175,55,0.15);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-top: 10px;
}

/* Zone de connexion */
.admin-login-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 45px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-icon i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.login-card h2 {
    color: var(--gold);
    margin-bottom: 10px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.admin-input {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin: 15px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.admin-input:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    width: 100%;
}

.admin-btn:hover {
    transform: scale(1.02);
}

.login-error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 0.8rem;
}

/* Zone admin */
.admin-zone {
    animation: fadeIn 0.5s ease-out;
}

.admin-actions-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.admin-action-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 12px 25px;
    border-radius: 40px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.admin-action-btn.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    border: none;
}

.admin-action-btn.warning {
    border-color: #e74c3c;
    color: #e74c3c;
}

.admin-action-btn.warning:hover {
    background: #e74c3c;
    color: #fff;
}

/* Sections admin */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.admin-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Résumé catégories */
.category-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-summary-card {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 15px;
}

.category-summary-card h4 {
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-summary-card .total {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.category-summary-card .winner {
    font-size: 0.85rem;
    color: var(--gold-light);
    padding: 5px 10px;
    background: rgba(212,175,55,0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Tableau votes */
.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    font-weight: 500;
    font-size: 0.85rem;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: rgba(212,175,55,0.05);
}

.loading-cell {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Système info */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: var(--gold);
    min-width: 140px;
}

.info-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-body {
        padding: 20px;
    }
    
    .admin-logo h1 {
        font-size: 1.3rem;
    }
    
    .admin-actions-bar {
        flex-direction: column;
    }
    
    .admin-action-btn {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-summary {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-table th, .admin-table td {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}
/* ========== TIMER POUR RÉSULTATS ========== */
.countdown-timer {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.timer-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: timerPulse 1s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(212,175,55,0.5);
}

.timer-number {
    font-size: 3rem;
    font-weight: bold;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
}

.timer-label {
    font-size: 0.7rem;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes timerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(212,175,55,0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(212,175,55,0.8);
    }
}

/* Animation d'apparition des résultats */
@keyframes winnerReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-message {
    transition: all 0.5s ease;
}
.admin-action-btn.danger {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.admin-action-btn.danger:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}
/* Status card */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-header i {
    color: var(--gold);
    font-size: 1.2rem;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
}

.status-badge.open {
    background: #2ecc71;
    color: #0a0a0a;
}

.status-badge.paused {
    background: #f39c12;
    color: #0a0a0a;
}

.status-badge.closed {
    background: #e74c3c;
    color: #fff;
}

.status-badge.published {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    animation: pulse 1s ease infinite;
}

/* Vote controls */
.vote-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.control-btn {
    padding: 12px 25px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.control-btn.open {
    background: #2ecc71;
    color: #0a0a0a;
}

.control-btn.pause {
    background: #f39c12;
    color: #0a0a0a;
}

.control-btn.close {
    background: #e74c3c;
    color: #fff;
}

.control-btn:hover {
    transform: translateY(-2px);
}

.control-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.6;
}

/* Publish controls */
.publish-controls {
    text-align: center;
}

.publish-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: #0a0a0a;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 1.5s ease infinite;
}

.publish-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(212,175,55,0.8);
}

.publish-note {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Danger section */
.danger-section {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.danger-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    padding: 12px 25px;
    border-radius: 40px;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.danger-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.danger-note {
    font-size: 0.7rem;
    color: #e74c3c;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .vote-controls {
        flex-direction: column;
    }
    
    .control-btn {
        justify-content: center;
    }
    
    .status-display {
        flex-direction: column;
        text-align: center;
    }
}
/* ========== SECTION COMMENTAIRES ========== */
.comments-section {
    background: var(--bg-secondary);
    padding: 50px 0;
    margin-top: 30px;
}

.comment-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
}

.comment-form-container h3 {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form input,
.comment-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.comment-char-count {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.comment-submit-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 12px 25px;
    border-radius: 40px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.comment-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
}

.comments-list-container h3 {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 20px;
    transition: all 0.3s;
}

.comment-card:hover {
    border-color: var(--gold);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author i {
    font-size: 1rem;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.comment-message {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.comment-delete {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s;
    margin-top: 10px;
}

.comment-delete:hover {
    opacity: 1;
}

.loading-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-comments i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Admin comment actions */
.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-comment-delete {
    background: rgba(231, 76, 60, 0.2);
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    color: #e74c3c;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-comment-delete:hover {
    background: #e74c3c;
    color: #fff;
}

@media (max-width: 768px) {
    .comment-form-container {
        padding: 20px;
    }
    
    .comment-submit-btn {
        width: 100%;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
.admin-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-comment-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
}

.admin-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.85rem;
}

.admin-comment-message {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.admin-comment-ip {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 10px;
}

.admin-comment-delete-btn {
    background: rgba(231, 76, 60, 0.2);
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    color: #e74c3c;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-comment-delete-btn:hover {
    background: #e74c3c;
    color: #fff;
}
 /* ========== PHOTOS DES CANDIDATS ========== */
.candidate-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.candidate-card:hover .candidate-photo {
    transform: scale(1.05);
    border-color: var(--gold-light);
    box-shadow: 0 8px 25px rgba(212,175,55,0.3);
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Version responsive */
@media (max-width: 768px) {
    .candidate-photo {
        width: 80px;
        height: 80px;
    }
}
/* ========== MODALE POUR PHOTOS - CORRIGÉE ========== */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.photo-modal-content {
    position: relative;
    margin: auto;
    padding: 50px 20px 20px 20px;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    animation: modalZoomIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes modalZoomIn {
    from { transform: translateY(-50%) scale(0.9); opacity: 0; }
    to { transform: translateY(-50%) scale(1); opacity: 1; }
}

.photo-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--gold);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.photo-modal-close:hover {
    color: var(--gold-light);
    transform: scale(1.1);
    background: rgba(0,0,0,0.8);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.modal-caption {
    text-align: center;
    color: var(--gold);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    background: rgba(0,0,0,0.5);
    border-radius: 30px;
    margin-top: 10px;
    width: auto;
    max-width: 90%;
}

/* Animation au clic sur la photo */
.candidate-photo {
    cursor: pointer;
    transition: all 0.3s;
}

.candidate-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
}

/* Correction pour que les photos ne soient pas coupées */
.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Garde cover pour la vignette */
}

/* Style du conteneur de photo dans la carte */
.candidate-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    background: rgba(0,0,0,0.3);
}

/* Pour les photos sans image */
.no-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--gold);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s;
}

.no-photo:hover {
    transform: scale(1.05);
    background: rgba(212,175,55,0.2);
}

/* Version responsive */
@media (max-width: 768px) {
    .candidate-photo {
        width: 90px;
        height: 90px;
    }
    
    .no-photo {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    .photo-modal-close {
        top: 5px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 30px;
    }
    
    .modal-caption {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .candidate-photo {
        width: 70px;
        height: 70px;
    }
    
    .no-photo {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ========== ARRIÈRE-PLAN AVEC IMAGE CDF ========== */
.welcome-section {
    position: relative;
    overflow: hidden;
}

/* ========== ARRIÈRE-PLAN AVEC IMAGE CDF - VERSION LUXE ========== */
.welcome-section {
    position: relative;
    overflow: hidden;
}

.welcome-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/cdf.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: bgSlowZoom 20s ease-in-out infinite alternate;
    filter: sepia(30%) brightness(0.9) contrast(1.05);
}

/* Zoom lent et élégant */
@keyframes bgSlowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Au survol - effet premium */
.welcome-section:hover .welcome-bg {
    opacity: 0.25;
    filter: sepia(20%) brightness(1) contrast(1.1);
    transition: all 0.4s ease-out;
}

/* Filtre dégradé doré élégant */
.welcome-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, 
        rgba(212,175,55,0.08) 0%, 
        transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Deuxième filtre pour l'effet vignette */
.welcome-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0,0,0,0.4) 0%, 
        rgba(212,175,55,0.05) 40%,
        rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Version mobile */
@media (max-width: 768px) {
    .welcome-bg {
        background-size: contain;
        background-position: center;
        opacity: 0.1;
    }
    
    .welcome-section:hover .welcome-bg {
        opacity: 0.18;
    }
    
    .welcome-bg::after {
        background: linear-gradient(135deg, 
            rgba(0,0,0,0.5) 0%, 
            rgba(212,175,55,0.03) 50%,
            rgba(0,0,0,0.4) 100%);
    }
}

/* Version desktop large */
@media (min-width: 1400px) {
    .welcome-bg {
        background-size: cover;
        filter: sepia(25%) brightness(0.92) contrast(1.08);
    }
}
/* ========== CORRECTION BOUTON CÉLÉBRER ========== */
.welcome-card {
    position: relative;
    z-index: 5;
    background: var(--bg-card);
}

.fireworks-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer;
}

.welcome-bg {
    z-index: 0;
    pointer-events: none;
}

.welcome-logo-float {
    z-index: 1;
    pointer-events: none;
}

/* S'assurer que tous les éléments interactifs sont cliquables */
.vote-btn, .back-btn, .category-card, .fireworks-btn, .nav-link, .comment-submit-btn {
    position: relative;
    z-index: 15;
    pointer-events: auto !important;
}
/* ========== TEXTE DORÉ POUR LA NOTICE ========== */
.notice {
    font-size: 0.75rem;
    background: rgba(212,175,55,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);  /* ← AJOUTEZ CETTE LIGNE */
    font-weight: 500;
}

.notice i {
    color: var(--gold);  /* ← AJOUTEZ CETTE LIGNE pour l'icône */
    margin-right: 5px;
}

.notice strong {
    color: var(--gold);  /* ← AJOUTEZ CETTE LIGNE pour le texte en gras */
}
/* ========== COMPLÉMENTS ADMIN ========== */
.table-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    flex: 1;
    min-width: 180px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Graphique */
#votesChart {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 15px;
}
/* Message quand aucun vote */
.empty-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px dashed var(--border);
}

.empty-comments i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-comments p {
    font-size: 1rem;
}
 /* ========== BANDEAU FIN DES VOTES (PROFESSIONNEL) ========== */
.vote-closed-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border-bottom: 2px solid var(--gold);
    padding: 15px 20px;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.vote-closed-banner.show {
    transform: translateY(0);
}

.vote-closed-banner-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.vote-closed-message {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vote-closed-icon {
    font-size: 2rem;
    animation: bellShake 2s ease-in-out infinite;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
    20%, 40%, 60%, 80% { transform: rotate(-10deg); }
}

.vote-closed-text h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Cormorant Garamond', serif;
}

.vote-closed-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.vote-closed-countdown {
    text-align: center;
    background: rgba(212,175,55,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(212,175,55,0.3);
}

.vote-closed-countdown .countdown-label {
    font-size: 0.7rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vote-closed-countdown .countdown-time {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.vote-closed-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a0a;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Page spécifique quand les votes sont terminés */
.votes-ended-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.votes-ended-icon {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 30px;
    animation: pulse 2s ease infinite;
}

.votes-ended-title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.votes-ended-message {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.votes-ended-button {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.votes-ended-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
}

/* Ajustement pour le bandeau */
body.has-vote-banner {
    padding-top: 0;
}

@media (max-width: 768px) {
    .vote-closed-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .vote-closed-message {
        justify-content: center;
    }
    
    .vote-closed-text h3 {
        font-size: 1rem;
    }
    
    .vote-closed-countdown .countdown-time {
        font-size: 1.2rem;
    }
    
    .votes-ended-title {
        font-size: 1.8rem;
    }
}
/* ========== TOAST AVEC BARRE DE PROGRESSION ========== */
.toast-warning {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-left: 4px solid var(--gold);
    color: var(--gold-light);
    padding: 0;
    border-radius: 12px;
    font-weight: 600;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    min-width: 280px;
    max-width: 350px;
}

.toast-warning.show {
    transform: translateX(0);
}

.toast-warning-content {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-warning-icon {
    font-size: 1.5rem;
    color: var(--gold);
    animation: warningPulse 0.5s ease;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.toast-warning-message {
    flex: 1;
}

.toast-warning-message strong {
    color: var(--gold);
    display: block;
    font-size: 0.9rem;
}

.toast-warning-message p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 3px;
}

.toast-warning-progress {
    height: 3px;
    background: rgba(212,175,55,0.3);
    width: 100%;
}

.toast-warning-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 3s linear;
    border-radius: 0 2px 2px 0;
}
/* ========== PUBLICATION PAR CATÉGORIE ========== */
.publish-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.publish-category-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.publish-category-card:hover:not(.published):not(.disabled) {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: rgba(212,175,55,0.05);
}

.publish-category-card.published {
    opacity: 0.6;
    cursor: default;
    border-color: #2ecc71;
}

.publish-category-card.published::after {
    content: '✓ Publié';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: #2ecc71;
}

.publish-category-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.publish-category-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.publish-category-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.publish-category-stats {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.publish-category-winner {
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-top: 8px;
    font-weight: bold;
}

.publish-all-container {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.publish-all-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: #0a0a0a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.publish-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.publish-all-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
}
/* ========== PHOTO DU GAGNANT DANS RÉSULTATS ========== */
.winner-photo-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.winner-photo-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(0,0,0,0.3));
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 20px 30px;
    text-align: center;
    transition: all 0.3s;
    animation: winnerPhotoAppear 0.8s ease-out;
}

@keyframes winnerPhotoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.winner-photo-img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.winner-photo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212,175,55,0.8);
}

.winner-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-photo-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold-light);
    margin: 15px 0 5px;
}

.winner-photo-caption {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Version responsive */
@media (max-width: 768px) {
    .winner-photo-img {
        width: 120px;
        height: 120px;
    }
    
    .winner-photo-name {
        font-size: 1rem;
    }
}
/* Photo du gagnant dans la carte des résultats */
.winner-card-photo {
    width: 80px;
    height: 80px;
    margin: 10px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s;
}

.winner-card-photo:hover {
    transform: scale(1.05);
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
}

.winner-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-card-photo.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.1);
    font-size: 2.5rem;
    color: var(--gold);
}
/* ========== MODALE DE TIMER POUR PUBLICATION ========== */
.publication-timer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-timer-modal.show {
    display: flex;
    opacity: 1;
}

.publication-timer-content {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    border: 2px solid var(--gold);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: timerModalZoom 0.4s ease-out;
}

@keyframes timerModalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.publication-timer-header {
    margin-bottom: 20px;
}

.publication-timer-header i {
    font-size: 3rem;
    color: var(--gold);
}

.publication-timer-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-top: 10px;
}

.publication-timer-body p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.publication-timer-body h2 {
    color: var(--gold-light);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.publication-timer-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: timerPulse 1s ease-in-out infinite;
}

.publication-timer-number {
    font-size: 4rem;
    font-weight: bold;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.publication-timer-label {
    font-size: 0.7rem;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.publication-timer-progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.publication-timer-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.publication-timer-warning {
    font-size: 0.75rem;
    color: var(--gold);
    margin-top: 10px;
}

.publication-timer-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.publication-cancel-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.publication-cancel-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.publication-confirm-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #0a0a0a;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.publication-confirm-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
}
/* ========== TIMER CÔTÉ RÉSULTAT - VERSION PROFESSIONNELLE ========== */
.results-countdown-wrapper {
    text-align: center;
    padding: 30px 20px;
    animation: fadeInUp 0.5s ease-out;
}

.results-countdown-icon {
    margin-bottom: 20px;
    color: var(--gold);
    animation: iconBounce 1s ease infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.results-countdown-title {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}

.results-countdown-category {
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.results-countdown-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.results-countdown-progress {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.results-countdown-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: rgba(212,175,55,0.2);
    stroke-width: 4;
}

.countdown-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.results-countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
}

.results-countdown-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 10px;
}

.results-countdown-message {
    color: var(--gold-light);
    font-size: 0.9rem;
    margin-top: 20px;
    animation: pulse 1.5s ease infinite;
}
/* ========== TIMER PROFESSIONNEL POUR RÉSULTATS ========== */
.results-countdown-timer {
    animation: fadeInScale 0.4s ease-out;
}

.countdown-container {
    background: linear-gradient(145deg, #0d0d1a 0%, #0a0a0f 100%);
    border-radius: 32px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(212,175,55,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.05) inset;
    max-width: 450px;
    margin: 0 auto;
}

.countdown-header {
    margin-bottom: 25px;
}

.countdown-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.countdown-title {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.countdown-category {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
}

.countdown-timer-wrapper {
    margin: 20px 0;
}

.countdown-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.countdown-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-bg-circle {
    fill: none;
    stroke: rgba(212,175,55,0.1);
    stroke-width: 6;
}

.countdown-progress-circle {
    fill: none;
    stroke: url(#goldGradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    transition: transform 0.2s ease;
}

.countdown-unit {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.countdown-progress-bar-wrapper {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    width: 0%;
    transition: width 1s linear;
    position: relative;
    overflow: hidden;
}

.countdown-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.countdown-footer {
    margin-top: 25px;
}

.countdown-message {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.countdown-suspense {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.suspense-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: suspenseDot 1.4s ease-in-out infinite;
}

.suspense-dot:nth-child(1) { animation-delay: 0s; }
.suspense-dot:nth-child(2) { animation-delay: 0.2s; }
.suspense-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes suspenseDot {
    0%, 60%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes countdownFlash {
    0% { background: rgba(212,175,55,0); }
    50% { background: rgba(212,175,55,0.2); }
    100% { background: rgba(212,175,55,0); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ========== DASHBOARD UTILISATEUR (VOTES PERSONNELS) ========== */
.my-vote {
    font-size: 0.9rem;
    color: var(--gold-light);
    margin: 15px 0;
    padding: 10px;
    background: rgba(212,175,55,0.1);
    border-radius: 12px;
}

.my-vote i {
    margin-right: 8px;
}

.vote-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 8px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.result-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ========== CORRECTION BANDEAU ET NAVIGATION ========== */
/* Pour que le bandeau ne cache pas la navigation quand il apparaît */
.vote-closed-banner {
    position: relative !important;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.vote-closed-banner.show {
    transform: translateY(0);
}

/* Navigation toujours visible */
.nav-results, .nav-links {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .vote-closed-banner {
        padding: 8px 12px;
    }
    .vote-closed-banner-content {
        gap: 8px;
    }
    .vote-closed-text h3 {
        font-size: 0.8rem;
    }
    .vote-closed-text p {
        font-size: 0.65rem;
    }
    .vote-closed-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}