.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: bold;
}

.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #0dcaf0; /* text-warning */
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

@media (min-width: 992px) {
  .navbar-nav {
    gap: 1rem;
  }
}

.badge-tag {
  background-color: #d1ecf1;
  color: #0c5460;
  margin-right: 6px;
  font-weight: 500;
  font-size: 0.75rem;
}

.niveau-badge {
  font-weight: 600;
  padding: 0.25em 0.5em;
  border-radius: 0.35rem;
  font-size: 0.85rem;
}

.niveau-success {
  background-color: #d4edda;
  color: #155724;
}

.niveau-warning {
  background-color: #fff3cd;
  color: #856404;
}

.niveau-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.niveau-secondary {
  background-color: #e2e3e5;
  color: #6c757d;
}

/* Bloc de code - style général */
.code-box,
.code-box code[class*="language-"] {
  /* font-family:monospace; */
  font-size: 1rem;           /* ✅ PC */
  border-radius: 0.5rem;
  /* line-height: 1.5; */
  /* white-space: pre-wrap;      */
  /* word-break: break-word; */
  /* overflow-x: auto;
  padding: 0.5rem;
  
  display: block;
  max-width: 100%;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05); */
}

/* Tablette (max-width: 992px = Bootstrap md breakpoint) */
@media (max-width: 992px) {
  .code-box,
  .code-box code[class*="language-"] {
    font-size: 0.95rem;
  }
}

/* Téléphone (max-width: 576px = Bootstrap sm breakpoint) */
@media (max-width: 576px) {
  .code-box,
  .code-box code[class*="language-"] {
    font-size: 0.85rem;
  }
}


.enonce {
  background-color: #f1f3f5;
  /* Fond très clair, légèrement gris */
  border-left: 6px solid #0d6efd;
  /* Bande colorée à gauche (bleu bootstrap) */
  padding: 20px 25px;
  /* Espacement interne confortable */
  margin: 1.5rem 0;
  /* Marge verticale uniforme */
  border-radius: 10px;
  /* Bords arrondis un peu plus doux */

  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  /* Meilleure hauteur de ligne pour la lisibilité */
  color: #333333;
  /* Texte gris foncé, doux pour les yeux */
  text-align: justify;
  /* Justification du texte */

  box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
  /* Ombre légère pour relief */
  transition: box-shadow 0.3s ease;
  /* Transition douce sur l’ombre */

  word-wrap: break-word;
  /* Eviter les débordements de mots longs */
  hyphens: auto;
  /* Coupure automatique des mots pour fluidité */
  user-select: text;
  /* Permet la sélection du texte */
  overflow-wrap: break-word;
  /* Compatibilité supplémentaire */
}

@media (max-width: 576px) {
  .enonce {
    font-size: 0.95rem; /* légèrement plus petit pour les petits écrans */
    padding: 15px 18px; /* réduire un peu le padding */
    line-height: 1.5;
    text-align: left;
  }
}

.enonce:hover,
.enonce:focus {
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.1);
  /* Ombre plus marquée au survol/focus */
  outline: none;
  /* Supprime le contour au focus si c’est un élément focusable */
}

.niveau-badge {
  padding: 0.25rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.35rem;
  display: inline-block;
  vertical-align: middle;
}

.badge-tag {
  background-color: #e9ecef;
  color: #495057;
  font-size: 0.85rem;
  padding: 0.15rem 0.25rem;
  margin-left: 0.3rem;
  border-radius: 0.35rem;
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

p.mb-1.fs-6 > span {
  display: flex;
  align-items: center;
}

p.mb-1.fs-6 > span strong {
  margin-right: 0.3rem;
  white-space: nowrap;
}

/* Optionnel : un petit effet hover sur les tags */
.badge-tag:hover {
  background-color: #dee2e6;
  cursor: default;
}

@media (max-width: 767.98px) {
  header .row.align-items-center {
    flex-direction: column;
    text-align: center !important;
  }
  header .col-md-9 {
    margin-bottom: 1rem;
  }
  .niveau-badge,
  .badge-tag {
    margin-left: 0 !important;
    margin-top: 0.25rem;
    display: inline-block;
  }
}

@media (min-width: 768px) {
  header .row.align-items-center {
    flex-wrap: nowrap;
    text-align: left !important;
  }
  header .col-md-9 {
    margin-bottom: 0;
  }
  .niveau-badge,
  .badge-tag {
    margin-left: 0.3rem;
    margin-top: 0;
  }
}
