/* Améliorations culturelles marocaines pour Vote Maroc */

/* Motifs décoratifs marocains */
.moroccan-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.zellige-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('images/zellige-pattern.png');
    background-size: cover;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.zellige-pattern.left {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
}

.zellige-pattern.right {
    bottom: 20%;
    right: -50px;
    animation-delay: 3s;
}

.geometric-ornament {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('images/geometric-pattern.jpg');
    background-size: cover;
    opacity: 0.08;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.geometric-ornament.top-left {
    top: 10%;
    left: 10%;
}

.geometric-ornament.bottom-right {
    bottom: 10%;
    right: 10%;
    animation-direction: reverse;
}

/* Badge royal marocain */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #C41E3A, #006233);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.hero-badge i {
    color: #FFD700;
    font-size: 16px;
}

/* Statistiques en temps réel */
.hero-stats {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    display: block;
    animation: countUp 2s ease-out;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* Boutons améliorés avec style marocain */
.moroccan-btn {
    position: relative;
    background: linear-gradient(135deg, #C41E3A, #006233);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.moroccan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.moroccan-btn:hover .btn-shine {
    left: 100%;
}

.quiz-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    position: relative;
    overflow: hidden;
}

.quiz-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Souris de défilement marocaine */
.moroccan-mouse {
    border: 2px solid #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.moroccan-mouse .wheel {
    background: #FFD700;
}

/* Section Quiz Interactif */
.quiz-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
}

.quiz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/moroccan-motif.jpg');
    background-size: 200px;
    opacity: 0.03;
    pointer-events: none;
}

.moroccan-underline {
    background: linear-gradient(90deg, #C41E3A, #FFD700, #006233);
    height: 4px;
    width: 100px;
    margin: 20px auto;
    border-radius: 2px;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-progress {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C41E3A, #006233);
    width: 20%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    font-weight: bold;
    color: #495057;
    font-size: 16px;
}

.quiz-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.quiz-card:hover {
    transform: translateY(-5px);
}

.question-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.4;
}

.answers-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.answer-btn {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-btn:hover {
    border-color: #C41E3A;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #C41E3A, #006233);
    color: white;
    border-color: #C41E3A;
}

.answer-btn.correct {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
}

.answer-btn.incorrect {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border-color: #dc3545;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.quiz-actions .btn {
    flex: 1;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 10px;
}

/* Résultats du quiz */
.quiz-results {
    text-align: center;
}

.results-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C41E3A, #006233);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    position: relative;
    animation: pulse 2s infinite;
}

.score-number {
    font-size: 36px;
    font-weight: bold;
}

.score-total {
    font-size: 18px;
    opacity: 0.8;
}

.results-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.results-message {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Illustration de vote améliorée */
.vote-illustration.enhanced {
    position: relative;
}

.moroccan-flag-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 40px;
    background: linear-gradient(to bottom, #C41E3A 0%, #C41E3A 33%, #006233 33%, #006233 66%, #C41E3A 66%);
    border-radius: 8px;
    opacity: 0.8;
    animation: wave 3s ease-in-out infinite;
}

.moroccan-flag-bg::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #006233;
    font-size: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .stat-item {
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .answers-container {
        grid-template-columns: 1fr;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 200px;
    }
}

