:root {
    /* Palette de couleurs plus vibrantes */
    --primary-color: hsl(246, 96%, 49%);
    --secondary-color:rgba(255, 0, 0, 0.48);
    --accent-color: #0040ff;
    --background-light: #eaeaea70;
    --background-lighter: #ffffff;
    --background-dark: #000000;
    --text-dark: #000000;
    --text-muted: #000;
}

/* 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; /* Police Cambria Math */
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    /* background-image: url('path/to/subtle-pattern.png');  Ajout d'un motif subtil (optionnel) */
    /* background-repeat: repeat; */
}

/* ==================================================
   Visitor Counter Styles - Amélioré
   ================================================== */
.visitor-counter-style {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgb(224, 224, 224);
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1em;
    box-shadow: 0 0 0.25rem rgb(255, 0, 0);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visitor-counter-style:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0.5rem rgb(0, 0, 0);
}

.visitor-counter-style i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease; /* Ajout d'une animation */
}

.visitor-counter-style:hover i {
    color: var(--primary-color);
    transform: rotate(15deg); /* Légère rotation au survol */
}

/* ==================================================
   Navbar - Améliorée avec animation
   ================================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgb(0, 0, 0);
    padding-top: 1rem;
    padding-bottom: 1rem;
    animation: fadeInDown 1s; /* Animation au chargement */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-brand {
    font-weight: 1000;
    color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif;
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    color: #000;
    font-weight: 1000;
    padding: 0.7rem 1rem;
    transition: color 0.3s ease;
    font-family: 'CambriaMath', sans-serif;
    position: relative;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.dropdown-menu {
    border: 0;
    box-shadow: 0 0.5rem 1rem rgb(0, 0, 0);
}

/* ==================================================
   Hero section - Plus dynamique
   ================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color),rgb(98, 98, 98), var(--secondary-color));
    background-size: 100% 100%;
    animation: gradientAnimation 10s ease infinite, fadeInDown 1s;
    color: white;
    padding: 8rem 0;
    border-radius: 0.5rem;
    margin-top: 3rem;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../../assets/image/Lycee.jpg'); /* Chemin à adapter */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2; /* Opacité réduite */
    z-index: 0;
    animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'CambriaMath', sans-serif;
    background: linear-gradient(to right, var(--secondary-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgb(0, 0, 0); /* Ombre portée */
    letter-spacing: 1px;
}

.hero p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'CambriaMath', sans-serif;
}

.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);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'CambriaMath', sans-serif;
}

.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);
}

/* ==================================================
   Cartes - Effet 3D et animations
   ================================================== */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.5rem rgb(0, 0, 0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.3s ease;
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d; /* Important pour l'effet 3D */
    animation: fadeInUp 1s 0.5s both; /* Animation au chargement */
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet 3D au survol */
.card:hover {
    transform: perspective(800px) rotateY(15deg) scale(1.05);
    box-shadow: 0 1rem 3rem rgb(0, 0, 0);
    background-color: #f8f8f8;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    font-family: 'CambriaMath', sans-serif;
    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: #000;
    margin-bottom: 1.5rem;
    font-family: 'CambriaMath', sans-serif;
}

/* ... (Styles pour .card.question-completed - inchangés) ... */

.list-unstyled li {
    margin-bottom: 0.7rem;
    color: #000;
    font-family: 'CambriaMath', sans-serif;
}

.list-unstyled i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* ==================================================
   Button Styles - Améliorés
   ================================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif;
}

.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;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Styles pour les options de quiz */
.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, transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'CambriaMath', sans-serif;
    position: relative;
    overflow: hidden;
}

.options-list li button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3));
    transition: left 0.4s ease;
    z-index: -1;
}

.options-list li button:hover::before {
    left: 0;
}

/* Effet de survol amélioré */
.options-list li button:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 5px 10px rgb(0, 0, 0);
    transform: scale(1.05) translateX(5px);
}

.options-list li button.selected {
    background-color: var(--primary-color);
    color: white;
}

/* ==================================================
   Badge and Progress Bar Styles - Améliorés
   ================================================== */
.badge-primary {
    background-color: var(--primary-color);
    font-family: 'CambriaMath', sans-serif;
}

.badge-success {
    background-color: #28a745;
    font-family: 'CambriaMath', sans-serif;
}

.badge-info {
    background-color: #17a2b8;
    font-family: 'CambriaMath', sans-serif;
}

.chapter-progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
    font-family: 'CambriaMath', sans-serif;
}

.chapter-progress-bar {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    height: 0.5rem;
    width: 0%;
    transition: width 0.5s ease;
    animation: gradientAnimation 5s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.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 - inchangé
   ================================================== */
footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 4rem;
    padding-bottom: 4rem;
    font-family: 'CambriaMath', sans-serif;
}

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 - inchangé
   ================================================== */
[data-aos] {
    transition-property: opacity, transform;
}

/* ==================================================
   Responsive pour les grands écrans - inchangé
   ================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ==================================================
   Styles spécifiques au Quiz - inchangés
   ================================================== */
.quiz-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

.question-number {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #000;
    font-family: 'CambriaMath', sans-serif;
}

.options-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.options-list li {
    margin-bottom: 8px;
}

.correction {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background-color: #e2f2ff;
    font-family: 'CambriaMath', sans-serif;
}

.correction p {
    margin-bottom: 10px;
    color: #000;
}

.feedback {
    margin-top: 10px;
    font-style: italic;
    font-family: 'CambriaMath', serif;
    color: #000;
}

.score-container {
    background-color: #f0f8ff;
    padding: 1rem;
    text-align: center;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-family: 'CambriaMath', serif;
}

.score-container strong {
    color: var(--primary-color);
}

.MathJax_SVG {
    font-family: 'CambriaMath', serif;
}

/* ==================================================
   Base pour le thème Okaidia - Améliorations modernes
   ================================================== */
pre[class*="language-"],
code[class*="language-"] {
    color: #a0a0a0; /* Couleur du texte principale */
    background: none;
    text-shadow: 0 1px rgb(0, 0, 0);
    font-family: 'Courier New', Courier, monospace; /* Police à chasse fixe */
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    tab-size: 4;
    hyphens: none;
}

/* Fond des blocs de code */
pre[class*="language-"] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
    border-radius: 0.3em;
    background: #272822; /* Fond sombre */
    box-shadow: 1px 1px 5px rgb(0, 0, 0); /* Ombre légère */
}

/* Style du bouton "Copier" - Plugin Toolbar */
.toolbar .toolbar-item button,
.toolbar .toolbar-item a {
    background: #2969ff; /* Bleu */
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    border-radius: 0.3em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9em;
}

.toolbar .toolbar-item button:hover,
.toolbar .toolbar-item a:hover {
    background: #457cf3; /* Bleu plus foncé au survol */
    box-shadow: 1px 1px 3px rgb(0, 0, 0);
}

/* Couleurs spécifiques pour Python */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #696969; /* Gris pour les commentaires */
    font-style: italic;
}

.token.punctuation {
    color: #f8f8f2; /* Ponctuation claire */
}

.token.namespace {
    opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f92672; /* Rose */
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a6e22e; /* Vert */
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #fd951f; /* Orange */
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #08d6ff; /* Bleu clair */
}

.token.function,
.token.class-name {
    color: #e6db74; /* Jaune */
}

.token.regex,
.token.important,
.token.variable {
    color: #fd5ff0; /* Violet */
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* ==================================================
  style.css pour les tableaux
   ================================================== */
.sign-table {
    width: auto; /* Ajuste la largeur automatiquement */
    border-collapse: collapse; /* Fusionne les bordures */
    margin: 20px auto; /* Centre le tableau avec une marge */
    font-family: 'Cambria Math', serif; /* Ou une autre police que vous aimez */
}

.sign-table th, .sign-table td {
    border: 1px solid black; /* Bordure fine */
    padding: 10px; /* Espacement interne */
    text-align: center; /* Centre le contenu */
}

.sign-table th {
    background-color: #f2f2f2; /* Couleur de fond pour l'en-tête */
    font-weight: bold;
}

.sign-table td:first-child {
    font-weight: bold; /* Première colonne en gras */
}

/* Pour les valeurs interdites (doubles barres) */
.sign-table td.valeur-interdite {
    position: relative;
}

.sign-table td.valeur-interdite::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 2px solid black;
    transform: translateX(-50%);
}

.sign-table th, .sign-table td {
    width: 30px; /* Ajustez la largeur des colonnes ici */
  }




