
.article-content__content, .article-content__aside section{
  padding: 0 !important;
}

.article-content__content #table_des_matieres{
  padding: 0;
}
.article-content__content #content{
  padding: 0;
}

.main-body{
  padding: 0;
}

.article-list {
  margin: 0 auto;
  max-width: 1200px;
}

.article-card:hover .article-card__cover img {
  transform: scale(1.1);
}

.article-card__cover img {
  width: 100%;
  height: auto;

  aspect-ratio: 16/9;
  object-fit: cover;

  transition: 0.3s ease-in-out;
}

.article-card__cover {
  display: flex;
  overflow: hidden;

  margin-bottom: 20px;

  border-radius: 12px;
}

.article-card__title {
  font-size: 16px;
  line-height: 160%;
}

.article-content__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 30px;
}

.article-content__breadcrumb,
.article-content__breadcrumb a {
  font-size: 14px;
  color: var(--grey-400);
  font-family: "Montserrat-Regular";
}

.article-content {
  margin: 0 auto;
  max-width: 1200px;
}

.article-content .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.article-content__title {
  margin-bottom: 10px;
  line-height: 150%;
}

.article-content__subtitle {
  color: var(--grey-500);
  margin-bottom: 10px;
}

.article-content__tags {
  display: flex;
  gap: 10px;

  margin-bottom: 30px;
}

.article-content__cover {
  display: flex;
  overflow: hidden;

  width: 100%;
  height: auto;

  aspect-ratio: 16/9;
  object-fit: cover;

  margin-bottom: 20px;

  border-radius: 12px;
}

.article-content__aside h2 {
  font-size: 16px !important;
  margin-bottom: 20px;
}

.article-content__aside section {
  margin-bottom: 50px;
}

.article-horizontal-card {
  display: flex;
  gap: 10px;
  align-items: center;

  border-radius: 12px;
  border: 1px solid #e5e6eb;

  overflow: hidden;

  width: 100%;
  margin-bottom: 20px;

  transition: 0.2s ease-in-out;
}

.article-horizontal-card:hover {
  background-color: var(--grey-100);
}

.article-horizontal-card__cover {
  width: 100px;
  min-width: 100px;
  height: auto;
  aspect-ratio: 3/4;

  object-fit: cover;
}

.article-horizontal-card__content {
  flex-grow: 1;
  padding: 4px 6px;
}

.article-horizontal-card__uptitle {
  color: var(--grey-400);
  font-size: 12px;
}

.article-horizontal-card__title {
  font-size: 14px;
  line-height: 146%;
  color: var(--black);
}

.article-content__share {
  display: flex;
  gap: 2px;
  border-radius: 20px;
  overflow: hidden;
}

.article-content__share button {
  flex-grow: 1;
  background: #f4f4f6;
  border-radius: 0;
  padding: 25px 5px;
  outline: none;
  cursor: pointer;
}

.article-content__share img {
  opacity: 0.4;
  transition: 0.1s ease-in-out;
}

.article-content__share button:hover > img {
  opacity: 1;
}

.article-content__newsletter a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  font-family: "Montserrat-Regular";
}

.article-content__content {
  margin-bottom: 50px;
}

.article-content__content #table_des_matieres {
  margin: 50px 0;
}

.article-content__content #content > div > div {
  margin: 50px 0 !important;

  padding: 20px;
  border-radius: 20px !important;
  border: 2px solid var(--blue-100) !important;
}

.article-content__content #table_des_matieres > .rounded {
  padding: 20px;
  border-radius: 20px !important;
  border: 0 !important;
  background: var(--purple-50);
}

.article-content__content #table_des_matieres ol {
  padding-left: 30px;
  list-style-type: none !important;
}

.article-content__content #table_des_matieres li{
  list-style-type: none !important;
}

.article-content__content a {
  color: var(--secondary);
  transition: 0.2s ease-in-out;
}

.article-content__content a:hover {
  color: #5055d1;
}

.article-content__content .raw-html-embed > .container {
  max-width: unset !important;
  width: 100% !important;
}

.article-content__content #content h1,
.article-content__content #content h2,
.article-content__content #content h3 {
  margin: 50px 0 20px 0 !important;
  line-height: 150%;
  color: var(--primary);
  text-align: left;

  scroll-margin-top: 100px;
}

.article-content__content #content h1 {
  font-size: 28px !important;
}

.article-content__content #content h2 {
  font-size: 22px !important;
}

.article-content__content #content h3 {
  font-size: 20px !important;
}

#content p {
  margin-bottom: 20px !important;
  line-height: 180%;
  font-size: 16px;
  margin-top: 0;
}

.article-content__content #content p:last-of-type {
  margin-bottom: 0px !important;
}

.article-content__content #content > div > div > p:first-of-type {
  font-family: "Montserrat-Bold";
  color: var(--secondary);
  margin-bottom: 0px !important;
}

.article-content__content #content br {
  content: " ";
  display: block;
  margin-bottom: 20px;
}

/* --- STYLE TABLE DES MATIÈRES SQUARIMO --- */

/* 1. La boîte globale (déjà gérée par vos classes Bootstrap 'rounded p-3', mais on assure la bordure) */
.toc-container {
  border: 3px solid #1F2159;
  /* background-color est déjà dans votre HTML inline, pas besoin de le remettre ici */
}

/* 2. La Liste Principale (Niveau 1 - Chiffres Romains) */
/* On utilise ' .toc-list ul' (sans >) pour trouver la liste n'importe où dedans */
.toc-list ul {
  list-style-type: upper-roman !important; /* Force I, II, III */
  padding-left: 20px;
  margin-bottom: 0;
}

/* 3. La Sous-liste (Niveau 2 - Chiffres Décimaux) */
.toc-list ul ul {
  list-style-type: decimal !important; /* Force 1, 2, 3 */
  margin-top: 5px; /* Un peu d'espace au-dessus du bloc de sous-titres */
}

/* --- ESPACEMENT DES LIGNES (Votre demande) --- */

/* Espacer tous les éléments de la liste */
.toc-list li {
  margin-bottom: 5px !important; /* ✅ C'est ici qu'on gère l'écart */
}

/* Espacer un peu moins les sous-éléments pour garder la hiérarchie visuelle */
.toc-list ul ul li {
  margin-bottom: 8px !important;
}

/* 4. Style des liens */
.toc-list a {
  color: #1F2159;
  text-decoration: none;
  font-weight: 600;
  display: inline-block; /* Aide à la propreté des marges */
  line-height: 1; /* Aère le texte si le titre fait 2 lignes */
}

.toc-list a:hover {
  text-decoration: none;
  color: #5055d1;
}

.box-heading {
  font-family: "Montserrat-Bold";
  margin-bottom: 0px !important;
  color: #23266b;
}