/* Nouveau style.css modernisé */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

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

#homePage {
    text-align: center;
    padding: 2rem;
}

.title {
    background: linear-gradient(45deg, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    color: #6b7280;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.btn {
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn:hover::before {
    left: 100%;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    color: #4f46e5;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.question {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #1f2937;
    font-weight: 500;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.answers {
    display: grid;
    gap: 1rem;
}

.answer-btn {
    padding: 1.2rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #374151;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
}

.answer-btn:hover:not(.correct):not(.incorrect) {
    border-color: #4f46e5;
    transform: translateX(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.answer-btn::before {
    content: '→';
    margin-right: 1rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.answer-btn:hover::before {
    color: #4f46e5;
    transform: scale(1.2);
}

.correct {
    border-color: #10b981 !important;
    background: #10b98120 !important;
    color: #10b981;
}

.incorrect {
    border-color: #ef4444 !important;
    background: #ef444420 !important;
    color: #ef4444;
}

#endScreen {
    text-align: center;
    padding: 2rem;
}

#endScreen h2 {
    color: #4f46e5;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#finalScore {
    font-size: 2.2rem;
    color: #10b981;
    font-weight: 700;
    display: block;
    margin: 1rem 0;
}

.question-recap {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    text-align: left;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #4f46e5;
    width: 0;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .answer-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
}