/* ==========================================================
   Global — typography tweaks
   ========================================================== */

b, strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

/* =========================================================
   CC — Icons sizing scopes (works on Columns OR Group)
   Usage:
   - Add class "cc-icons cc-icons--80" on the wrapper for 80px icons
   - Add class "cc-icons cc-icons--60" on the wrapper for 60px icons
   ========================================================= */

/* Base: neutralize Ollie default width + make SVG actually resize */
.cc-icons .wp-block-outermost-icon-block .icon-container{
  width: auto !important;            /* cancels inline default (48px) */
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-icons .wp-block-outermost-icon-block .icon-container > svg{
  width: auto !important;            /* keep aspect ratio */
  display: block;                    /* remove inline SVG gaps */
}

/* Sizes */
.cc-icons--80 .wp-block-outermost-icon-block .icon-container > svg{
  height: 80px !important;
}

.cc-icons--60 .wp-block-outermost-icon-block .icon-container > svg{
  height: 60px !important;
}

.cc-icons--48 .wp-block-outermost-icon-block .icon-container > svg{
  height: 48px !important;
}

.cc-icons--40 .wp-block-outermost-icon-block .icon-container > svg{
  height: 40px !important;
}

.toc ul {
	padding-inline-start: var(--wp--preset--spacing--small) !important;
}

/* assets/post-links.css
 * Liens dans le contenu d'articles : soulignement fin, accessible (WCAG 2.1 AA).
 * Cible le contenu rédactionnel uniquement, pas la chrome.
 */

.single-post .entry-content a:where(:not(.wp-block-button__link)) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(
        in srgb,
        var(--wp--preset--color--main) 50%,
        transparent
    );
    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease,
        text-decoration-thickness 0.15s ease;
}

.single-post .entry-content a:where(:not(.wp-block-button__link)):hover,
.single-post .entry-content a:where(:not(.wp-block-button__link)):focus-visible {
    color: var(--wp--preset--color--main);
    text-decoration-color: var(--wp--preset--color--main);
    text-decoration-thickness: 2px;
}