:root {
    /* Palette de couleurs moderne et épurée */
    --primary-color: #0028f1b5; /* Bleu violet tendance */
    --secondary-color: #ff00008a; /* Bleu clair doux */
    --accent-color: #72727240;
    --background-light: #f9fbfc; /* Blanc cassé très léger */
    --background-lighter: #ffffff; /* Blanc très légèrement plus clair - Ajouté pour cohérence, si utilisé ailleurs */
    --background-dark: #505050; /* Gris foncé pour le footer */
    --text-dark: #000000; /* Gris très foncé pour le texte principal */
    --text-muted: #000000; /* Gris moyen pour le texte secondaire */
}

/* Police Cambria Math (à adapter/supprimer si non utilisée) */
@font-face {
    font-family: 'CambriaMath';
    src: url('../../../assets/font/CambriaMath-02.ttf') format('truetype'); /* CHEMIN À VÉRIFIER/ADAPTER */
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'CambriaMath', serif;
    background-color: rgba(255, 255, 255, 0.8); /* Blanc semi-transparent */
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;

    background-image: url('../../../assets/image/alberto.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    background-blend-mode: screen; /* Essayez d'autres modes! */
}

/* Styles Navbar, Hero, Card, Buttons, Badges, Footer (Copier-coller le CSS complet ici) */
/* ... (CSS complet du quiz précédent -  Ne pas modifier sauf personnalisation) ... */
/* ==================================================
   Visitor Counter Styles (Joli Compteur) - Conserver si vous l'utilisez
   ================================================== */
.visitor-counter-style {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgb(224, 224, 224); /* Conserver ou adapter la couleur de fond */
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1em;
    box-shadow: 0 0 0.25rem rgb(0, 0, 0); /* Conserver ou adapter l'ombre */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.visitor-counter-style i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.2em;
}

/* ==================================================
   Navbar épurée et moderne - Adapté du nouveau style
   ================================================== */
.navbar {
    background-color: #fff; /* Fond blanc épuré */
    box-shadow: 0 0.125rem 0.25rem rgb(0, 0, 0); /* Ombre subtile */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.7rem 1rem;
    transition: color 0.3s ease;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: 0; /* Supprimer la bordure */
    box-shadow: 0 0.5rem 1rem rgb(0, 0, 0); /* Ombre légère */
}

/* ==================================================
   Hero section moderne et impactante - Adapté du nouveau style
   ================================================== */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: rgb(0, 0, 0);
    padding: 8rem 0;
    border-radius: 0.5rem;
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    display: flex; /* Pour le centrage vertical, comme précédemment */
    justify-content: center; /* Pour le centrage vertical, comme précédemment */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.8; /* Opacité légère pour l'image de fond */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center; /* Centrage horizontal du texte */
    display: flex;                  /* Active Flexbox pour centrage vertical */
    flex-direction: column;         /* Aligne les éléments en colonne */
    justify-content: center;      /* Centre verticalement */
    height: 100%;                  /* Assure que le conteneur prend toute la hauteur de .hero */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.hero p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.hero .btn-light {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 0.25rem 0.5rem rgb(0, 0, 0); /* Ombre légère */
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.hero .btn-light:hover {
    background-color: var(--accent-color);
    color: white;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgb(0, 0, 0); /* Ombre légère */
}

/* ==================================================
   Cartes modernes - Adapté du nouveau style
   ================================================== */
.card {
    border: none; /* Supprimer la bordure */
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.5rem rgb(0, 0, 0); /* Ombre très légère */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff; /* Fond blanc */
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgb(0, 0, 0); /* Ombre légère au survol */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
    position: relative;
    padding-bottom: 5px;
}

.card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 20%;
    background: var(--secondary-color);
}

.card-text {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'CambriaMath', sans-serif;
    font-size: 18px; /*  Taille fixe en pixels */
}



.card.question-completed {
    background-color: #f0f7f0; /* Couleur de fond légèrement plus claire */
    border: 2px solid #c3e6c3; /* Bordure verte plus marquée */
    opacity: 0.8; /* Légère transparence pour indiquer que c'est complété */
    pointer-events: none; /* Empêcher toute interaction supplémentaire avec la carte (optionnel, mais renforce le "blocage") */
}

.card.question-completed .card-body {
    color: #777; /* Texte plus grisé dans la carte complétée */
}

.card.question-completed .options-list button {
    /* Vous pouvez aussi griser davantage les boutons désactivés si vous voulez */
    background-color: #ddd;
    color: #999;
    border-color: #ccc;
}

.list-unstyled li {
    margin-bottom: 0.7rem;
    color: var(--text-dark);  /* Force le texte des listes à être noir */
    font-size: 18px; /*  Taille fixe en pixels */
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.list-unstyled i {
    color: var(--secondary-color);
    font-size: 18px; /*  Taille fixe en pixels */
    margin-right: 0.5rem;
}

/* ==================================================
   Button Styles - Adapté du nouveau style et garde CambriaMath
   ================================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==================================================
   Badge and Progress Bar Styles - Adapté du nouveau style et garde CambriaMath
   ================================================== */
.badge-primary {
    background-color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.badge-success {
    background-color: #28a745; /* Vert Bootstrap standard */
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.badge-info {
    background-color: #17a2b8; /* Cyan Bootstrap standard */
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.chapter-progress {
    background-color: #e9ecef; /* Gris très clair pour la barre de fond */
    border-radius: 0.25rem;
    overflow: hidden;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.chapter-progress-bar {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    height: 0.5rem;
    width: 0%; /* Initial width - set dynamically with JS if needed */
}

.resource-icon {
    background-color: var(--secondary-color);
    color: rgb(228, 228, 228);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    margin-right: 1rem;
}

/* ==================================================
   Footer moderne et sombre - Adapté du nouveau style et garde CambriaMath
   ================================================== */
footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 4rem;
    padding-bottom: 4rem;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer .social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ==================================================
   Animations AOS plus subtiles (optionnel, déjà bien dans le code original)
   ================================================== */
[data-aos] {
    transition-property: opacity, transform;
}

/* ==================================================
   Responsive pour les grands écrans (optionnel, peut être ajusté)
   ================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ==================================================
   Styles spécifiques au Quiz (Conserver - Pas de changement majeur ici)
   ================================================== */
.quiz-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

.question-number {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.options-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.options-list li {
    margin-bottom: 8px;
}

.options-list li button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    background-color: var(--background-lighter);
    transition: background-color 0.3s, color 0.3s;
    font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
    font-size: 16px; /*  Taille fixe en pixels */
}

.options-list li button:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.options-list li button.selected {
    background-color: var(--primary-color);
    color: white;
}

.correction {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background-color: #f0f8ff; /* Conserver ou adapter la couleur de fond de la correction */
    color: var(--text-dark); /* Force le texte des corrections à être noir */
     font-family: 'CambriaMath', sans-serif; /* Garder la police CambriaMath */
}

.correction p {
    margin-bottom: 10px;
}

.feedback {
    margin-top: 10px;
    font-style: italic;
    font-family: 'CambriaMath', serif; /* Garder la police CambriaMath */
     color: var(--text-dark); /* Force le texte du feedback à être noir */
}

.score-container {
    background-color: #f0f8ff; /* Conserver ou adapter la couleur de fond du score */
    padding: 1rem;
    text-align: center;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-family: 'CambriaMath', serif; /* Garder la police CambriaMath */
     color: var(--text-dark); /* Force le texte du score à être noir */
}

.score-container strong {
    color: var(--primary-color);
}

.MathJax_SVG {
    font-family: 'CambriaMath', serif; /* Garder la police CambriaMath pour MathJax */
    color: var(--text-dark) !important; /* Force la couleur MathJax à être noir */
}

.MathJax * {
     color: var(--text-dark) !important;
}