/* style.css */
:root {
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
    --text-color: #34495e;
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --correct-color: #27ae60;
    --incorrect-color: #c0392b;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Lora', serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
}

.logo { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; }
.score-container { font-family: var(--font-title); font-weight: 600; font-size: 1.1rem; background-color: #ecf0f1; padding: 0.5rem 1rem; border-radius: 20px; }
#score { color: var(--primary-color); }

#game-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.question-intro h2 { font-family: var(--font-title); margin-bottom: 0.5rem; }
.question-intro p { color: #7f8c8d; }

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 45%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card.no-hover:hover { transform: none; box-shadow: var(--shadow); cursor: not-allowed; }
.card.correct { border-color: var(--correct-color); }
.card.incorrect { border-color: var(--incorrect-color); }

.card-headline { font-family: var(--font-title); font-size: 1.1rem; }

.feedback-container { margin-top: 2rem; }

button {
    font-family: var(--font-title);
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#next-question-btn, #restart-btn {
    background-color: var(--primary-color);
    color: white;
}
#next-question-btn:hover, #restart-btn:hover { background-color: var(--primary-dark); }

.hidden { display: none !important; }

/* Styles de la Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: all; }

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content { transform: scale(1); }

.close-btn { position: absolute; top: 10px; right: 15px; font-size: 1.8rem; background: none; border: none; cursor: pointer; color: #95a5a6; }
#modal-result-icon { font-size: 3rem; margin-bottom: 1rem; }
#modal-result-title { font-family: var(--font-title); margin-bottom: 0.5rem; }
#modal-bias-name { color: var(--primary-color); font-style: italic; margin-bottom: 1rem; }

.main-footer { text-align: center; padding: 1rem; background: #e0e6e8; font-size: 0.9rem; }
#reset-score-btn { background: none; color: #7f8c8d; text-decoration: underline; font-size: 0.8rem; padding: 0.2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .cards-container { flex-direction: column; align-items: center; gap: 1rem; }
    .card { width: 90%; }
    .main-header { flex-direction: column; gap: 0.5rem; }
}