 :root { --fg:#0f172a; --muted:#475569; --bg:#ffffff; --accent:#2563eb; --card:#f8fafc;}
    *{box-sizing:border-box}
    html,body{
	margin:0;padding:0;background:var(--bg);color:var(--fg);font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;line-height:1.6
}
     
    a{color:var(--accent);text-decoration:none}
    a:hover{text-decoration:underline}
    header{padding:2rem 1rem 1rem;max-width:900px;margin:0 auto}
    header h1{margin:0 0 .25rem 0;font-size:2rem}
    header p{margin:.125rem 0;color:var(--muted)}
    main{max-width:900px;margin:0 auto;padding:1rem}
    section{background:var(--card);border-radius:1rem;padding:1.25rem;margin:1rem 0;box-shadow:0 1px 2px rgba(0,0,0,.04)}
    h2{margin-top:1.2rem}
    h3{margin-top:1rem}
    p{margin:.4rem 0}
    .exercice{border-left:4px solid var(--accent);padding-left:.75rem}
.exercice ol li {
    padding-left: 10px; /* Augmentez ou diminuez cette valeur pour l'espacement */
  }
    .note{font-size:.95rem;color:var(--muted)}
    code,kbd,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
    ul{padding-left:1.2rem;margin:.25rem 0}
    .footer{color:var(--muted);font-size:.9rem;margin-top:2rem;text-align:center;padding:1rem 0}
    .toc{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem}
    .toc a{background:#eef2ff;border-radius:999px;padding:.25rem .6rem;font-size:.9rem}
  .columns-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .columns-flex li {
    width: 48%; /* Pour laisser un petit espace entre les colonnes */
  }

nav {
    position: fixed;
    top: 0;
    left: 0; /* Ou 'right: 0;' pour la mettre à droite */
    width: 250px; /* Une largeur fixe pour éviter qu'elle ne prenne toute la largeur */
    height: 100%; /* Prend toute la hauteur de la fenêtre */
    padding: 15px; /* Ajoutez un peu d'espace intérieur */
    background-color: #f0f0f0; /* Une couleur de fond pour la distinguer */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Une ombre légère pour la mettre en valeur */
    overflow-y: auto; /* Permet le défilement si le contenu est trop long */
}
/* Base commune pour tous les blocs de type mathématique */
.bloc-math {
  padding: 20px 24px;
  margin: 25px 0;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  max-width: 700px;
}

/* Titre généré dynamiquement */
.bloc-math::before {
  position: absolute;
  top: -14px;
  left: 20px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  font-family: inherit;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
}

/* Blocs spécifiques */
.methode {
  background-color: #eafaf1;
  color: #14532d;
}
.methode::before {
  content: "Méthode";
  background-color: #27ae60;
}

.propriete {
  background-color: #f3e8fb;
  color: #4a0072;
}
.propriete::before {
  content: "Propriété";
  background-color: #8e44ad;
}

.Correction {
  background-color: #fdecea;
  color: #8b0000;
}
.Correction::before {
  content: "Correction";
  background-color: #c0392b;
}

.competence {
  background-color: #eef6fb;
  color: #003049;
}
.competence::before {
  content: "Compétence";
  background-color: #f39c12;
}

/* Liste de définitions à l'intérieur d’un bloc mathématique */
.bloc-math dl {
  margin: 0;
  padding: 0;
}

.bloc-math dt {
  font-weight: bold;
  margin-top: 15px;
  color: inherit;
}

.bloc-math dd {
  margin-left: 20px;
  margin-bottom: 10px;
  color: inherit;
}


/* NOUVEAU CSS POUR LE CONTENEUR */
.exercice-container {
    display: flex;
    justify-content: space-between; /* Distribue l'espace entre les éléments */
    align-items: flex-start; /* Aligner les éléments en haut */
    gap: 20px;
    width: 100%;
}

/* Styles pour le bloc de compétences */
.competence-bloc {
    flex-shrink: 0; /* Empêche le bloc de se rétrécir */
    width: 90%; /* Taille fixe pour le bloc de compétence */
}

/* Styles pour le bouton de correction */
.correction-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #eef2ff;
    color: var(--card);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid var(--accent);
    transition: background-color 0.3s ease;
    align-self: flex-end; /* Pousse le bouton vers le bas dans l'alignement */
}

.correction-btn:hover {
    background-color: #0056b3;
}