/* =====================
   HEADER
   ====================== */
#ast-desktop-header .ast-primary-header-bar {
	border-bottom-color: var(--ast-global-color-6);
}

#ast-mobile-header .ast-main-header-wrap .ast-primary-header-bar {
	border-bottom-color: var(--ast-global-color-6);
}

#ast-mobile-header .ast-mobile-header-content {
	padding: 10px;
}
#ast-mobile-header .ast-mobile-header-content .ast-builder-menu-mobile {
	border-radius: 12px;
	border: solid 1px var( --e-global-color-astglobalcolor6 );
}


/* =====================
   FIL D'ARIANE
   ====================== */

#breadcrumb .rank-math-breadcrumb {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.4em;
	letter-spacing: 0.1em;
	color: var( --e-global-color-astglobalcolor2 );
}

/* Fil d'arianne Blog */

body.blog .ast-breadcrumbs-wrapper .ast-breadcrumbs {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.4em;
	letter-spacing: 0.1em;
	color: var( --e-global-color-astglobalcolor2 );
}

@media (max-width: 767px) {
	#breadcrumb .rank-math-breadcrumb 	{
		font-size: 12px;
	}
	body.blog .ast-breadcrumbs-wrapper .ast-breadcrumbs {
		font-size: 12px;
	}
}

/* =====================
   BLOG
   ====================== */

/* 1 — Bandeau de titre : hero simple, centré, sans image */

body.blog .ast-container p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

body.blog .ast-container #primary {
	margin-top: 0; 	
}

/* 2 — Photos : un cadrage homogène, arrondi et sans effet */
body.blog .ast-article-post .post-thumb img,
body.blog .ast-article-post .wp-post-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.83 / 1;
  object-fit: cover;
  border-radius: 12px;
}

body.blog .ast-container #primary #main .ast-row article .ast-post-format- {
	box-shadow: none;
}


/* =====================
   ARTICLE UNIQUE
   ====================== */

/* IMAGE */ 
body.wp-singular .ast-single-post-featured-section img.wp-post-image {
	border-radius: 12px;
}

/* 1. SOMMAIRE RANK MATH
   HTML ciblé : <div id="rank-math-toc" class="wp-block-rank-math-toc-block"> */
body.single-post .entry-content #rank-math-toc {
  background: #F7F9FC;
  border: 1px solid #E6EAF0;
  border-radius: 12px;
  padding: 26px 31px;
  margin: 37px 0 52px;
  box-shadow: none;
  font-family: 'DM Sans', sans-serif;
}

/* Badge catégorie */
body.wp-singular .entry-meta .ast-terms-link a.ast-badge-tax {
	background-color: var( --e-global-color-astglobalcolor8 );
}

/* Le <p> natif de Rank Math sert de petit titre au sommaire. */
body.single-post .entry-content #rank-math-toc > p:first-child {
  margin: 0 0 14px;
  color: #19283D;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body.single-post .entry-content #rank-math-toc nav,
body.single-post .entry-content #rank-math-toc nav > div {
  margin: 0;
  padding: 0;
}

/* Rank Math génère ici des <div> imbriquées, non une <ol>. */
body.single-post .entry-content #rank-math-toc nav > div > div {
  margin: 0;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.55;
}

body.single-post .entry-content #rank-math-toc nav a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #3E4D60;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: #C5D0DD;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* Met en valeur le chiffre déjà présent dans le texte du lien (1., 2., etc.).
   Pas de compteur ajouté : on évite les numéros en double. */
body.single-post .entry-content #rank-math-toc nav a::first-letter {
  color: #0078D4;
  font-weight: 600;
}

body.single-post .entry-content #rank-math-toc nav a:hover,
body.single-post .entry-content #rank-math-toc nav a:focus-visible {
  color: #0078D4;
  text-decoration-color: #0078D4;
}

/* 2. ENCADRÉ « BON À SAVOIR » / « UN REPÈRE IMPORTANT »
   Groupe Gutenberg : classe additionnelle article-note.
   1er paragraphe = petit titre, 2e paragraphe = contenu. */
body.single-post .entry-content .article-note {
  position: relative;
  display: block;
  box-sizing: border-box;
  background: #F1F8FD;
  border: 0;
  border-left: 3px solid #0078D4;
  border-radius: 0 10px 10px 0;
  padding: 22px 24px 22px 64px;
  margin: 40px 0 48px;
  box-shadow: none;
}

/* Icône d'information décorative : aucun bloc/icône à ajouter à Gutenberg. */
body.single-post .entry-content .article-note::before {
  content: 'i';
  position: absolute;
  top: 22px;
  left: 23px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1.5px solid #0078D4;
  border-radius: 50%;
  color: #0078D4;
  font: italic 700 15px/1 Georgia, serif;
}

body.single-post .entry-content .article-note p {
  margin: 0 0 5px;
  color: #3E4D60;
  font-size: 15px;
  line-height: 1.72;
}

/* Le premier paragraphe est visuellement un titre, mais reste un <p>. */
body.single-post .entry-content .article-note > p:first-of-type,
body.single-post .entry-content .article-note > .wp-block-group__inner-container > p:first-of-type {
  margin: 0 0 5px;
  color: #19283D;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

body.single-post .entry-content .article-note p:last-child {
  margin-bottom: 0;
}

/* 3. ENCADRÉ « À RETENIR »
   Groupe Gutenberg : classe additionnelle article-resume.
   1er paragraphe = titre visuel, sans H2/H3 supplémentaire. */
body.single-post .entry-content .article-resume {
  background: #F7F9FC;
  border: none;
  border-radius: 12px;
  padding: 30px 34px;
  margin: 48px 0;
  box-shadow: none;
}

body.single-post .entry-content .article-resume > p:first-of-type,
body.single-post .entry-content .article-resume > .wp-block-group__inner-container > p:first-of-type {
  margin: 0 0 14px;
  color: #19283D;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

body.single-post .entry-content .article-resume p {
  color: #3E4D60;
  line-height: 1.78;
}

/* 4. ENCADRÉ « À LIRE ÉGALEMENT »
   Groupe Gutenberg : classe additionnelle article-related.
   1er paragraphe = titre, 2e paragraphe = lien vers un article.
*/

body.single-post .entry-content .article-related {
  box-sizing: border-box;
  background: #F7F9FC;
  border: 0;
  border-left: 3px solid #0078D4;
  border-radius: 0 10px 10px 0;
  padding: 22px 28px;
  margin: 40px 0 48px;
  box-shadow: none;
}

/* Texte du bloc */
body.single-post .entry-content .article-related p {
  margin: 0 0 8px;
  color: #3E4D60;
  font-size: 15px;
  line-height: 1.7;
}

/* Premier paragraphe : titre visuel, sans H2/H3 */
body.single-post .entry-content .article-related > p:first-of-type,
body.single-post .entry-content .article-related > .wp-block-group__inner-container > p:first-of-type {
  margin: 0 0 8px;
  color: #19283D;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* Dernier paragraphe */
body.single-post .entry-content .article-related p:last-child {
  margin-bottom: 0;
}

/* Liens */
body.single-post .entry-content .article-related a {
  color: #0078D4;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.single-post .entry-content .article-related a:hover {
  color: #005A9E;
}

body.single-post .entry-content .article-related a:focus-visible {
  outline: 2px solid #0078D4;
  outline-offset: 3px;
}

/* Adaptation mobile */
@media (max-width: 600px) {
  body.single-post .entry-content .article-related {
    padding: 18px 20px;
    margin: 32px 0 40px;
  }
}

/* No Médical */
body.single-post .no-medical {
	font-size: 14px;
}

body.single-post .entry-content .article-resume p:last-child {
  margin-bottom: 0;
}

/* Sur petit écran : conserver l'aération sans réduire la zone de lecture. */
@media (max-width: 700px) {
  body.single-post .entry-content #rank-math-toc {
    padding: 21px 19px;
    margin: 28px 0 40px;
  }

  body.single-post .entry-content #rank-math-toc nav > div > div {
    font-size: 14px;
    padding: 6px 0;
  }

  body.single-post .entry-content .article-note {
    padding: 20px 17px 20px 55px;
    margin: 32px 0 40px;
  }

  body.single-post .entry-content .article-note::before {
    top: 20px;
    left: 18px;
    width: 22px;
    height: 22px;
  }

  body.single-post .entry-content .article-resume {
    padding: 25px 22px;
    margin: 36px 0;
  }

  body.single-post .entry-content .article-resume > p:first-of-type,
  body.single-post .entry-content .article-resume > .wp-block-group__inner-container > p:first-of-type {
    font-size: 21px;
  }
}

/* FOOTER */

.site-footer .footer-widget-area #block-14 p {
	color: var(--ast-global-color-2);
}
.site-footer .footer-widget-area #block-11 p {
	font-size: 14px;
	color: var( --e-global-color-astglobalcolor7 );
}

#footer-site-navigation #astra-footer-menu {
	font-weight: 600;
}

footer.site-footer .site-below-footer-wrap .ast-builder-footer-grid-columns {
	border-top: solid 1px var(--ast-global-color-6);
	padding-top: 10px;
}

@media (max-width: 921px) {
	#footer-site-navigation #astra-footer-menu li a {
	padding: 5px 0;
	}
}
