/* Styles supplémentaires pour le frontend */
/* La plupart des styles sont dans app-container.php */

.wave-vote-app {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --dark-color: #1e1e2f;
    --light-color: #f8f9fa;
}

/* Accessibilité */
.wave-vote-app *:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animations pour les cartes */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candidate-card {
    animation: cardAppear 0.5s ease-out;
    animation-fill-mode: both;
}

.candidate-card:nth-child(1) { animation-delay: 0.1s; }
.candidate-card:nth-child(2) { animation-delay: 0.2s; }
.candidate-card:nth-child(3) { animation-delay: 0.3s; }
.candidate-card:nth-child(4) { animation-delay: 0.4s; }
.candidate-card:nth-child(5) { animation-delay: 0.5s; }
.candidate-card:nth-child(6) { animation-delay: 0.6s; }
.candidate-card:nth-child(7) { animation-delay: 0.7s; }
.candidate-card:nth-child(8) { animation-delay: 0.8s; }

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .wave-vote-app {
        background: #1a1a2e;
        color: #fff;
    }
    
    .candidate-card {
        background: #16213e;
    }
    
    .candidate-name {
        color: #fff;
    }
    
    .candidate-description {
        color: #b0b0b0;
    }
    
    .vote-count {
        background: #0f3460;
        color: #fff;
    }
}

/* Impression */
@media print {
    .countdown-timer,
    .btn-vote,
    .vote-modal {
        display: none !important;
    }
    
    .candidate-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Notifications */
.wave-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideIn 0.3s;
    max-width: 300px;
}

.wave-notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wave-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.wave-notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}