@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;700&family=Open+Sans:wght@400;600&display=swap');

/* --- RESET & BASE --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f6f8;
    color: #444;
    font-size: 18px; /* CORRECTION : 18px est la taille pro standard. 30px c'était trop gros. */
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
}

h1 {
    text-align: center;
    margin-top: 45px;
    font-size: 2.5em;
    font-weight: 300;
}

main {
    max-width: 95%; /* On centre le site proprement sur les grands écrans */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* --- BARRE DE NAVIGATION --- */
.navbar {
    background: linear-gradient(90deg, #FF9900 0%, #ffac33 100%);
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 60px; /* Ajusté pour être proportionnel */
    width: auto;
    display: block;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 16px; /* Taille menu standard */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- LE SLIDER --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

/* --- MISE EN PAGE ACCUEIL (2 COLONNES) --- */
.accueil-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

/* COLONNE GAUCHE (Infos) - CORRIGÉE */
.col-gauche {
    flex: 0 0 500px; /* CORRECTION : 320px fixe. C'est la bonne taille. */
    max-width: 500px;
    position: sticky;
    top: 100px;
}

.carte-img {
    width: 100%;
    height: 250px; /* CORRECTION : 250px suffisent largement pour une carte */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.infos-box {
    background: white;
    padding: 25px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #FF9900;
}

.infos-box h3 {
    margin-top: 0;
    color: #FF9900;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.infos-list-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infos-list-vertical li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1rem; /* Texte info normal */
    color: #555;
}

.infos-list-vertical strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.infos-list-vertical li:last-child { border-bottom: none; }

/* COLONNE DROITE (Contenu) */
.col-droite {
    flex: 1; /* Prend tout le reste */
}

.col-droite p {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
/* BLOC BOUTON QUIZ SUR L'ACCUEIL */
.quiz-cta-box {
    background: linear-gradient(135deg, #ffffff 0%, #fff8ee 100%);
    border: 2px solid #FF9900;
    border-radius: 10px;
    padding: 22px 28px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.12);
}

.quiz-cta-text h3 {
    margin: 0 0 6px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.quiz-cta-text p {
    margin: 0 !important;
    color: #666;
    font-size: 1rem !important;
}

.btn-quizz-accueil {
    background-color: #FF9900;
    color: white !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.05rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.25);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-quizz-accueil:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 153, 0, 0.35);
}

/* VIDÉO */
.video-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- SECTION ACTUALITÉS (MAGAZINE LAYOUT) --- */
.magazine-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    height: 500px; /* Hauteur équilibrée */
}

/* La grosse actu à gauche */
.actu-main {
    flex: 2;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.actu-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.actu-main:hover img { transform: scale(1.05); }

.actu-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    box-sizing: border-box;
}

.actu-overlay h3 {
    color: white;
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.actu-overlay .date {
    color: #ddd;
    font-weight: bold;
}

/* La colonne de droite (Petites actus) */
.actu-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actu-mini {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.actu-mini img {
    width: 40%;
    object-fit: cover;
}

.mini-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

/* --- HISTORIQUE --- */
.historique-container {
    margin-top: 50px;
    border-top: 2px solid #ddd;
    padding-top: 30px;
}

.histoire-item {
    display: flex;
    background: white;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.histoire-img {
    flex: 0 0 250px; /* Taille fixe raisonnable */
}

.histoire-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.histoire-content {
    flex: 1;
    padding: 30px;
}

/* --- MODULES (Tableau de bord) --- */
.module-page { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.module-dashboard { display: flex; gap: 20px; height: 400px; margin-bottom: 40px; }
.module-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.module-btn {
    flex: 1;
    background: white;
    border: 3px solid #333;
    color: #333;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-weight: bold; font-size: 1.2rem; text-transform: uppercase;
    transition: all 0.3s;
}
.module-btn:hover { background: #333; color: white; }
.module-btn.active { background: #FF9900; border-color: #FF9900; color: white; }
.module-center { flex: 2; border: 3px solid #333; background: #000; overflow: hidden; }
.module-center img { width: 100%; height: 100%; object-fit: cover; }
.module-content-box { background: white; padding: 40px; border: 1px solid #ddd; }
.module-content-box h1 { border-bottom: 4px solid #FF9900; display: inline-block; padding-bottom: 10px; }


/* --- STYLES DE LA PAGE QUIZ --- */
.quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.quiz-intro {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.quiz-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-top: 5px solid #FF9900;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #888;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.quiz-question {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 15px 20px;
    font-size: 1.05rem;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
}

.answer-btn:hover:not(:disabled) {
    background: #fff3e0;
    border-color: #FF9900;
}

.answer-btn.correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724;
    font-weight: bold;
}

.answer-btn.wrong {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24;
}

.quiz-feedback {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
}

.correct-msg { background: #e8f5e9; color: #2e7d32; }
.wrong-msg { background: #ffebee; color: #c62828; }

.quiz-btn {
    margin-top: 25px;
    padding: 12px 28px;
    background: #FF9900;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.quiz-btn:hover {
    background: #e68a00;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .accueil-layout { flex-direction: column-reverse; }
    .col-gauche { width: 100%; position: static; max-width: 100%; flex: auto; }
    .carte-img { height: 200px; }
    .magazine-layout { flex-direction: column; height: auto; }
    .quiz-cta-box {
        flex-direction: column;
        text-align: center;
    }
    .btn-quizz-accueil {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}



}