/* ============================================
   CHRU Nancy — Composants (Figma-faithful)
   ============================================ */

/* === Container === défini dans style.css (source unique) */

/* === Transitions globales sur les liens === */
a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* === Ancres : décalage sous le header sticky (retour Marie 07/07) ===
   Toute cible d'ancre (#id) doit atterrir SOUS le header sticky (~150px),
   y compris en arrivant depuis une AUTRE page (comportement natif du
   navigateur, aucun JS ne compense dans ce cas). :where() = spécificité 0 :
   les règles plus ciblées existantes (structures, formations…) gardent la main. */
:where([id]) {
    scroll-margin-top: calc(var(--header-height, 150px) + 20px);
}

/* === Force majuscule sur 1re lettre des liens "en savoir plus" === */
.chru-ressource-card__link::first-letter,
.chru-info-utile__link::first-letter {
    text-transform: uppercase;
}

/* === Boutons WordPress (Gutenberg) — style CHRU === */
/* WP Core utilise :root :where(.wp-element-button) {...} (spécificité 0,0,0 via :where)
   donc notre .wp-element-button (0,1,0) gagne nativement, sans !important.
   Hello-elementor n'est plus parent depuis le 2026-06-19 → tous les !important
   défensifs ont été retirés. Si jamais un plugin tiers casse le rendu, restaurer
   sélectivement plutôt qu'en bloc. */
.wp-element-button,
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    background-color: var(--chru-secondary, #14446B);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.37 !important;
    padding: 9px 35px !important;
    /* Border 2px de la même couleur que bg au repos → invisible.
       Au hover bg devient transparent → border visible (outline-style),
       comme le `.chru-btn--primary` qui est la référence validée par Marie.
       padding 9+2=11, 35+2=37 → dimensions extérieures identiques (border-box). */
    border-style: solid !important;
    border-width: 2px !important;
    border-color: var(--chru-secondary, #14446B) !important;
    box-sizing: border-box !important;
    border-radius: 30px;
    text-decoration: none !important;
    text-decoration-thickness: 0 !important;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease !important;
    cursor: pointer;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover,
.wp-element-button:focus,
.wp-element-button:focus-visible,
.wp-block-button__link:focus,
.wp-block-button__link:focus-visible {
    /* Pattern de référence Marie KUSY 2026-06-22 = `.chru-btn--primary`
       inversion fill → outline au hover (transparent + bord + texte bleus). */
    background-color: transparent !important;
    color: var(--chru-secondary, #14446B) !important;
    border-color: var(--chru-secondary, #14446B) !important;
    border-width: 2px !important;
    transform: none !important;
    text-decoration: none !important;
    text-decoration-thickness: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.37 !important;
    padding: 9px 35px !important;
    box-shadow: none !important;
}

/* Variante outline */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--chru-secondary, #14446B);
    border: 2px solid var(--chru-secondary, #14446B);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--chru-secondary, #14446B);
    color: #fff;
}

/* === Reset boutons Hello Elementor pour composants CHRU ===
   Ne cible que les boutons SANS classe chru-* (sinon les tags, modals, carrousels
   avec leur propre style voient leur padding/color/radius annulés). */
.chru-carousel-nav__btn,
.chru-points-forts__nav-btn,
.chru-fiche-ecole__btn,
[class*="chru-"] button:not([class*="chru-"]):not(.wp-element-button) {
    border-color: inherit;
    border-radius: inherit;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: inherit;
}

/* Reset boutons natifs sans classe CHRU : défaut bordure ronde + couleurs DS. */
[type=button]:not([class*="chru-"]):not(.wp-element-button),
[type=submit]:not([class*="chru-"]):not(.wp-element-button),
button:not([class*="chru-"]):not(.wp-element-button) {
    border-color: var(--chru-secondary, #14446B);
    color: var(--chru-secondary, #14446B);
    border-radius: 30px;
    font-family: 'Open Sans', sans-serif;
}

/* === Breadcrumb — SOURCE UNIQUE ===
 * Couvre TOUTES les variantes de fil d'Ariane utilisées sur le site :
 *   - `.chru-breadcrumb a`           (helper principal chru_render_breadcrumb)
 *   - `.chru-breadcrumb__link`       (variant BEM utilisé dans event / campagne)
 *   - `[class*="__breadcrumb"] a`    (wrappers {page}__breadcrumb évenement, campagne, archive…)
 *   - `[class*="-breadcrumb"] a`     (wrappers -breadcrumb)
 *
 * Comportement :
 *   - par défaut : soulignement 1px, offset 3px
 *   - au hover/focus : soulignement 2px (épaissi)
 *   - couleur = héritée (`currentColor`) pour que chaque contexte
 *     (hero sombre vs clair) ne redéfinisse QUE la couleur.
 *
 * Toute modif se fait ICI uniquement. */
/* La taille du breadcrumb est laissée héritée (chaque contexte la fixe :
   articles 0.8125rem, hero service 16px, etc.). Seul le weight est uniformisé. */
.chru-breadcrumb,
[class*="__breadcrumb"],
[class*="-breadcrumb"] {
    font-weight: var(--weight-semibold, 600);
}

.chru-breadcrumb a,
.chru-breadcrumb__link,
[class*="__breadcrumb"] a,
[class*="__breadcrumb"] .chru-breadcrumb__link,
[class*="-breadcrumb"] a,
[class*="-breadcrumb"] .chru-breadcrumb__link {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-thickness 150ms ease, color 150ms ease;
}

.chru-breadcrumb a:hover,
.chru-breadcrumb a:focus-visible,
.chru-breadcrumb__link:hover,
.chru-breadcrumb__link:focus-visible,
[class*="__breadcrumb"] a:hover,
[class*="__breadcrumb"] a:focus-visible,
[class*="__breadcrumb"] .chru-breadcrumb__link:hover,
[class*="__breadcrumb"] .chru-breadcrumb__link:focus-visible,
[class*="-breadcrumb"] a:hover,
[class*="-breadcrumb"] a:focus-visible,
[class*="-breadcrumb"] .chru-breadcrumb__link:hover,
[class*="-breadcrumb"] .chru-breadcrumb__link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.chru-breadcrumb .separator,
[class*="__breadcrumb"] .separator,
[class*="-breadcrumb"] .separator {
    font-weight: var(--weight-bold, 700);
    margin: 0 4px;
}

.chru-breadcrumb .current,
.chru-breadcrumb strong,
[class*="__breadcrumb"] strong,
[class*="-breadcrumb"] strong,
[class*="__breadcrumb"] span[aria-current="page"],
[class*="-breadcrumb"] span[aria-current="page"] {
    font-weight: var(--weight-bold, 700);
    text-decoration: none;
}

/* === Liens éditoriaux (contenu rédigé) — SOURCE UNIQUE ===
 * Politique uniforme du soulignement des liens dans TOUT le contenu
 * (pages, articles, services, structures, écoles, examens) ET dans les
 * blocs CHRU custom (plan-acces, infos-pratiques, liens-externes…).
 *
 * Comportement :
 *   - Par défaut : thickness 1px (trait fin, pas de "gras visuel")
 *   - Au hover/focus : thickness 2px (trait épaissi — SEULE différence visuelle)
 *   - AUCUN changement de font-size, font-weight ou line-height au hover.
 *     Le texte ne doit jamais "grossir" en taille ou en graisse.
 *   - Soulignement par défaut appliqué uniquement dans les balises texte
 *     (p, li, h*, td, blockquote…) pour ne pas casser les cards stylisées. */

/* Thickness fin par défaut ; trait épaissi au hover */
.chru-content a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px;
}
.chru-content a:hover,
.chru-content a:focus-visible {
    text-decoration-thickness: 2px !important;
}

/* Garde-fou : empêche TOUT changement de taille ou de graisse sur le label
   d'un lien éditorial au hover. Seul le trait de soulignement peut s'épaissir
   (règle au-dessus). Si un bloc futur redéfinit font-weight/size au hover,
   cette règle l'annule (l'élément garde la valeur héritée de son état initial).

   ⚠️ Exclusion des liens "bouton" (gélules/CTA). Ces liens portent une graisse
   propre AU REPOS via leur classe (ex. .chru-se-rendre-auto__directions = 700).
   Leur appliquer `font-weight: inherit !important` au hover les ferait DÉGRAISSER
   (700 → 400 hérité) → bug d'épaisseur signalé sur « J'y vais ». On les exclut
   donc, comme la règle de soulignement ci-dessous le fait déjà pour les boutons.
   Même cas pour .chru-kit__link (bouton du Kit de Ressources, 700 au repos). */
/* 🔴 `inherit` ÉTAIT LE BUG (retour Marie 05/08/2026, « problème de mise en page
   au survol, partout »). Un lien écrit DANS un <strong> hérite au survol de la
   graisse de ce <strong> — que le navigateur calcule à 900 (`bolder` appliqué à
   un parent déjà à 600). Mesuré sur /service/allergologie/ : le libellé passait
   de 600 à 900 au survol, s'élargissait de 282 à 293px et poussait la suite de
   la ligne de 10px. Le garde-fou censé EMPÊCHER le rebond le provoquait.
   On fige donc la valeur de repos des liens éditoriaux (600) au lieu de la faire
   hériter : le garde-fou continue d'annuler toute règle de graisse posée par un
   bloc, sans jamais dépendre du contexte. Les liens-boutons (700 au repos)
   restent exclus par les :not() ci-dessous. */
.chru-content a:not(.wp-block-button__link):not(.wp-element-button):not(.chru-btn):not(.chru-se-rendre-auto__directions):not(.chru-kit__link):hover,
.chru-content a:not(.wp-block-button__link):not(.wp-element-button):not(.chru-btn):not(.chru-se-rendre-auto__directions):not(.chru-kit__link):focus,
.chru-content a:not(.wp-block-button__link):not(.wp-element-button):not(.chru-btn):not(.chru-se-rendre-auto__directions):not(.chru-kit__link):focus-visible {
    font-weight: var(--weight-semibold, 600) !important;
    font-size: inherit !important;
}

/* Soulignement par défaut dans les balises texte, en excluant les boutons */
.chru-content :is(p, li, h1, h2, h3, h4, h5, h6, td, dd, dt, blockquote, figcaption) a:not(.wp-block-button__link):not(.wp-element-button):not(.chru-btn) {
    text-decoration: underline;
}

/* === H2 éditoriaux — valeur canonique du site (Marie, 13/08/2026) ==========
 * « Les H2 ne sont pas assez gros et ne sont pas à la même taille que les
 * autres modèles de page. Est-ce que tu peux harmoniser le tout ? » + « pour le
 * line-height des H2, tu pourrais mettre 1.2 ? ».
 *
 * Relevé avant correction, en navigateur réel, sur les 9 gabarits : la taille
 * divergeait (20px sur événement et campagne, 24px partout ailleurs) et
 * l'interligne prenait QUATRE valeurs différentes (1 sur service / page /
 * article / examen, 1.2 sur structure, 1.25 sur formation, 1.3 sur école).
 * Cible unique : `--h2-size` (24px desktop, 20px mobile) + interligne 1.2.
 *
 * Portée volontairement étroite : `h2.wp-block-heading` = le bloc Titre de
 * Gutenberg, donc UNIQUEMENT ce que le rédacteur écrit dans le contenu. Les
 * titres internes des blocs maison (`chru-contacter__title`,
 * `chru-texte-image__title`…) n'ont pas cette classe et gardent leur typo ;
 * l'interligne global des titres (`h1…h6 { line-height: 1 }` de style.css)
 * n'est pas touché, sans quoi tous les héros et toutes les cartes du site
 * bougeraient.
 *
 * ⚠️ Spécificité 0,2,1, et TOUS les CSS de gabarit dépendent de
 * `chru-components` — ils sont donc chargés APRÈS. Un gabarit qui redéclare ses
 * H2 à spécificité égale ou supérieure gagne : c'est pourquoi événement,
 * campagne, formation, école et structure portent la même valeur chez eux.
 * Toute nouvelle règle `<wrapper> h2` doit reprendre ces deux valeurs. */
.chru-content h2.wp-block-heading {
    font-size: var(--h2-size, 24px);
    line-height: 1.2;
}

/* === Section === */
.chru-section {
    padding: var(--space-2xl, 64px) 0;
}

.chru-section--grey {
    background: var(--chru-grey, #F6F6F6);
}

.chru-section--blue {
    background: var(--chru-blue-service, #14446B);
    color: #fff;
}

.chru-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg, 36px);
}

/* Variante sans titre : le bouton CTA reste aligné à droite. */
.chru-section__header--no-title {
    justify-content: flex-end;
    margin-bottom: var(--space-md, 24px);
}

.chru-section__title {
    font-size: var(--h2-size, 24px);
    font-weight: var(--weight-bold, 700);
    color: var(--chru-blue-service, #14446B);
    margin: 0 0 47px;
}

/* Quand le titre est dans un header flex, c'est le header qui gère l'espacement */
.chru-section__header .chru-section__title {
    margin-bottom: 0;
}

.chru-section__title span,
.chru-section__title em,
.chru-section__title strong {
    color: var(--chru-blue-light, #0096D6);
    font-style: normal;
    font-weight: inherit;
}

.chru-section--blue .chru-section__title,
.chru-section--blue .chru-section__title span {
    color: #fff;
}

/* ============================================
   HERO SERVICE — Split blue/image
   Figma: blue left 730px, image right 710px
   Total height: ~596px (blue) / 644px (image)
   ============================================ */

.chru-hero-service {
    position: relative;
    display: flex;
    min-height: 596px;
    /* Décrochage Figma (photo dépassant de 48px sous le bleu) essayé le 24/07
       puis RETIRÉ le jour même à la demande de Marie KUSY (« il vaut mieux que
       ça ne dépasse pas ») — divergence assumée avec la maquette. */
    overflow: hidden;
}

/* Pas d'image mise en avant : bande bleue pleine largeur, sans panneau d'image.
   Le placeholder (icône générique) a été retiré le 31/08/2026 à la demande de Thomas —
   il laissait deux aplats bleus séparés par une césure visible à 50,7 %.
   Concerne 96 contenus publiés (38 pages, 58 fiches service). */
.chru-hero-service--no-image {
    min-height: 380px;
}

.chru-hero-service--no-image .chru-hero-service__content {
    width: 100%;
}

/* Blue panel (left) */
.chru-hero-service__content {
    position: relative;
    z-index: 2;
    background: var(--chru-blue-service, #14446B);
    width: 50.7%;  /* 730 / 1440 */
    padding: 60px var(--container-padding, 80px) 60px;
    padding-left: max(var(--container-padding, 80px), calc((100vw - 17px - var(--page-width, 1440px)) / 2 + var(--container-padding, 80px)));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg, 36px);
}

/* Breadcrumb du hero service : style de base hérité de .chru-breadcrumb (source unique).
   Ici : juste la couleur blanche sur hero sombre. */
.chru-hero-service__breadcrumb,
.chru-hero-service__breadcrumb a {
    color: #fff;
}

.chru-hero-service__title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 475px;
}

.chru-hero-service__title {
    font-size: var(--h1-size, 45px);
    font-weight: var(--weight-bold, 700);
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* Globale : em / i en italique seulement (jamais bold héritée).
 * Note : .chru-section__title em garde son propre style (couleur bleu clair, non italique)
 * défini plus haut dans ce fichier — il sert de marqueur de couleur dans les titres. */
em, i {
    font-weight: 400;
    font-style: italic;
}
strong em, strong i, b em, b i,
em strong, em b, i strong, i b {
    font-weight: 700;
}

/* Decorative underline below H1 */
.chru-hero-service__title::after {
    content: '';
    display: block;
    width: 212px;
    height: 3px;
    background: var(--chru-blue-light, #0096D6);
    margin-top: 12px;
    border-radius: 2px;
}

/* Séparateur hero par profil : anciennement Étudiant = orange / Professionnel = jaune
   (#13/Sprint10). Retiré le 07/07/2026 (Marie KUSY) : elle veut le BLEU CLAIR partout,
   liseré du hero compris. Le liseré reprend donc la couleur par défaut (#0096D6). */

/* Couleur complémentaire par profil.
   Retour Marie KUSY (07/07/2026) : l'accent doré/orange des pages Pro/Étudiant
   (anciens #8A5A00 / #A2630A) était perçu comme « orange marron » et incohérent
   avec le reste du site. → on garde le BLEU CLAIR partout, y compris sur ces pages
   (--chru-accent conserve donc sa valeur par défaut, cf. variables.css). */

.chru-hero-service__intro {
    font-size: var(--chapo-size, 24px);
    font-weight: var(--weight-semibold, 600);
    color: #fff;
    line-height: 1.4;
    margin: 0;
    max-width: 602px;
}

/* Image panel (right) */
.chru-hero-service__image {
    position: relative;
    z-index: 1;
    width: 49.3%;  /* 710 / 1440 */
    min-height: 644px;
}

.chru-hero-service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.chru-hero-service__credit {
    position: relative;
    z-index: 3;
    font-size: 16px;
    font-weight: var(--weight-regular, 400);
    font-style: italic;
    color: var(--chru-blue-text, #2D4356);
    padding: 12px var(--container-padding, 80px);
    text-align: right;
}

/* ============================================
   SOMMAIRE SIDEBAR
   Figma: 369px wide, #F6F6F6, 14px border-radius
   ============================================ */

.chru-sommaire {
    position: sticky;
    top: calc(var(--header-height, 150px) + 20px);
    background: var(--chru-grey, #F6F6F6);
    border-radius: var(--radius-md, 14px);
    padding: 48px;
    width: 100%;
    max-width: 100%;
    /* Sur les écrans courts, le sommaire ne doit pas dépasser le viewport :
       il défile en interne pour rester lisible « en un regard » (retour client). */
    max-height: calc(100vh - var(--header-height, 150px) - 40px);
    overflow-y: auto;
}

.chru-sommaire__title {
    font-size: var(--h3-size, 20px);
    font-weight: var(--weight-bold, 700);
    color: var(--chru-blue-service, #14446B);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chru-sommaire__title-icon {
    width: 18px;
    height: 16px;
    flex-shrink: 0;
}

/* Separator after title */
.chru-sommaire__separator {
    width: 100%;
    height: 1px;
    background: var(--chru-blue-service, #14446B);
    margin-bottom: var(--space-lg, 36px);
    border: none;
}

.chru-sommaire__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm, 14px);
}

.chru-sommaire .chru-sommaire__list {
    list-style: none;
    padding-left: 0;
}
.chru-sommaire .chru-sommaire__list a,
.chru-sommaire .chru-sommaire__list a:hover,
.chru-sommaire .chru-sommaire__list a:focus {
    text-decoration: none;
}
.chru-sommaire .chru-sommaire__list a {
    display: block;
    color: var(--chru-blue-text, #2D4356);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.35;
    font-weight: var(--weight-semibold, 600);
    transition: color var(--transition-fast, 150ms ease);
}

.chru-sommaire__list a:hover,
.chru-sommaire__list a.is-active {
    color: var(--chru-blue-light, #0096D6);
    text-decoration-color: var(--chru-blue-light, #0096D6);
}

/* Special item (Votre parcours de soins) */
.chru-sommaire__special {
    margin-top: var(--space-lg, 36px);
}

.chru-sommaire__special a {
    font-size: var(--h4-size, 18px);
    font-weight: var(--weight-bold, 700);
    color: var(--chru-blue-text, #2D4356);
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chru-sommaire__special-icon {
    width: 14px;
    height: 19px;
    flex-shrink: 0;
}

/* ============================================
   LAYOUT SERVICE (sidebar + contenu)
   ============================================ */

.chru-service-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width, 369px) 1fr;
    gap: var(--space-xl, 48px);
    align-items: start;
    padding: var(--space-xl, 48px) 0;
}

/* Pages sans sommaire (contenu pleine largeur, ex. profil Étudiant) : même
   rythme vertical que le layout sommaire (48px haut/bas) pour ne pas coller le
   contenu au hero (retour David 06/2026 : « espaces non uniformes » entre la
   page Étudiant et la page Professionnel). */
.chru-page-content {
    padding: var(--space-xl, 48px) 0;
}

.chru-service-content {
    min-width: 0;
}

/* Espacement entre blocs Gutenberg CHRU dans le contenu */
.chru-service-content > [class*="wp-block-chru-"] {
    margin-top: 0;
    margin-bottom: 48px;
}

.chru-service-content > [class*="wp-block-chru-"]:last-child {
    margin-bottom: 0;
}

/* Exception : le bloc « Titre avec picto » se comporte comme un titre H2
   (retour Marie 06/2026 : « réduire l'espace sous le bloc »). On ramène son
   espace bas au rythme d'un H2 normal (~24px de gap après collapse avec le
   margin-top du paragraphe suivant), au lieu des 48px génériques inter-blocs.
   Placé après la règle générique → l'emporte à spécificité égale. */
.chru-service-content > .chru-titre-picto:not(:last-child) {
    margin-bottom: 20px;
}

/* Groupes Gutenberg : même rythme vertical */
.chru-service-content > .wp-block-group {
    margin-bottom: 48px;
}

.chru-service-content > .wp-block-group:last-child {
    margin-bottom: 0;
}

/* ============================================
   STRUCTURE CARDS
   Figma: 305px wide, 14px border-radius, colored headers
   ============================================ */

.chru-cards-structures {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md, 20px);
    padding-bottom: 8px;
}

.chru-card-structure {
    width: 305px;
    min-width: 305px;
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Colored header */
.chru-card-structure__header {
    padding: 21px 24px;
    border-radius: var(--radius-md, 14px) var(--radius-md, 14px) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Color variants */
.chru-card-structure__header--etp {
    background: var(--chru-blue-light, #0096D6);
}

.chru-card-structure__header--centre {
    background: var(--chru-blue-canard, #0096D6);
}

.chru-card-structure__header--service {
    background: var(--chru-blue-service, #14446B);
}

.chru-card-structure__header--rare {
    background: var(--chru-dark-pink, #D12C6F);
}

.chru-card-structure__header-title {
    font-size: var(--h4-size, 18px);
    font-weight: var(--weight-bold, 700);
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.chru-card-structure__header-arrow {
    width: 19px;
    height: 17px;
    flex-shrink: 0;
}

/* Card body */
.chru-card-structure__body {
    border: 1px solid var(--chru-gray-border-alt, #DDDDDD);
    border-top: none;
    border-radius: 0 0 var(--radius-md, 14px) var(--radius-md, 14px);
    padding: 12px 24px;
    flex: 1;
}

/* Color-matched borders */
.chru-card-structure--etp .chru-card-structure__body {
    border-color: var(--chru-blue-light, #0096D6);
}

.chru-card-structure--centre .chru-card-structure__body {
    border-color: var(--chru-blue-canard, #0096D6);
}

.chru-card-structure--service .chru-card-structure__body {
    border-color: var(--chru-blue-service, #14446B);
}

.chru-card-structure__body p {
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-text, #2D4356);
    margin: 0;
    line-height: 1.5;
}

.chru-card-structure__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast, 150ms ease);
}

.chru-card-structure__link:hover {
    transform: translateY(-2px);
}

/* ============================================
   EVENT CARDS
   Figma: 413px wide, 30px radius, gradient overlay
   ============================================ */

.chru-cards-events {
    display: flex;
    gap: var(--space-md, 20px);
    overflow-x: auto;
    padding-bottom: 8px;
}

.chru-card-event {
    width: 413px;
    min-width: 413px;
    border: 1px solid var(--chru-gray-border-alt, #DDDDDD);
    border-radius: var(--radius-pill, 30px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chru-card-event__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image area with gradient overlay */
.chru-card-event__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-pill, 30px) var(--radius-pill, 30px) 0 0;
}

.chru-card-event__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chru-card-event__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(217.627deg, rgba(255, 255, 255, 0) 19.245%, rgba(0, 0, 0, 0.68) 80.755%);
    pointer-events: none;
}

/* Date badge */
.chru-card-event__date {
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 2;
    background: var(--chru-blue-service, #14446B);
    border-radius: 0 var(--radius-md, 14px) 0 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.chru-card-event__date-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.chru-card-event__date-separator {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.4);
}

.chru-card-event__date-text {
    display: flex;
    flex-direction: column;
}

.chru-card-event__date-day {
    font-size: 22px;
    font-weight: var(--weight-bold, 700);
    line-height: 1.1;
}

.chru-card-event__date-year {
    font-size: 18px;
    font-weight: var(--weight-regular, 400);
}

/* Content area */
.chru-card-event__content {
    padding: 16px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.chru-card-event__category {
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-service, #14446B);
}

.chru-card-event__title {
    font-size: var(--h3-size, 20px);
    font-weight: var(--weight-bold, 700);
    color: var(--chru-blue-service, #14446B);
    margin: 0;
    line-height: 1.3;
}

/* Footer */
.chru-card-event__footer {
    padding: 14px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.chru-card-event__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: var(--weight-bold, 700);
    color: var(--chru-blue-service, #14446B);
}

.chru-card-event__location-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--chru-blue-light, #0096D6);
}

/* Ne contient plus qu'une flèche depuis le 31/08/2026 (A15 : le libellé « Ça
   m'intéresse » a été retiré, la tuile entière étant cliquable). Le
   soulignement est donc supprimé : il ne portait plus que sur un pictogramme. */
.chru-card-event__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-service, #14446B);
    text-decoration: none;
}

.chru-card-event__more-icon {
    width: 19px;
    height: 17px;
}

/* Campaign tag (overlay bottom-right on card image) */
.chru-card-event__campaign-tag {
    position: absolute;
    bottom: -1px;
    right: 0;
    background: var(--chru-blue-light, #0096D6);
    padding: 10px 21px;
    font-size: var(--tag-size, 15px);
    font-weight: var(--weight-semibold, 600);
    color: #fff;
    z-index: 3;
    border-top-left-radius: var(--radius-md, 14px);
}

/* Carousel variant: 2 cards visible */
.chru-card-event--carousel {
    width: auto;
    min-width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
    flex: 0 0 calc((100% - 20px) / 2);
    scroll-snap-align: start;
}

/* Generic icon utility */
.chru-icon {
    flex-shrink: 0;
}

/* Carousel navigation (shared) — SVG circulaire Figma */
.chru-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm, 14px);
    margin-top: 24px;
}

.chru-carousel-nav__btn {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--chru-blue-light, #0096D6);
    transition: color var(--transition-fast, 150ms ease);
}

.chru-carousel-nav__btn:hover,
.chru-carousel-nav__btn:focus {
    color: var(--chru-blue-service, #14446B);
    background-color: transparent;
}

/* Flip next arrow to point right */
.chru-carousel-nav__btn--next svg {
    transform: scaleX(-1);
}

/* ============================================
   ARTICLE CARDS
   Figma: 631px wide, horizontal layout, 30px radius
   ============================================ */

.chru-cards-articles {
    display: flex;
    gap: var(--space-md, 20px);
    overflow-x: auto;
    padding-bottom: 8px;
}

.chru-card-article {
    width: 631px;
    min-width: 500px;
    height: 303px;
    display: flex;
    border-radius: var(--radius-pill, 30px);
    overflow: hidden;
    background: #fff;
}

.chru-card-article__link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Image (left ~34%) */
.chru-card-article__image {
    width: 34.4%;
    flex-shrink: 0;
    overflow: hidden;
}

.chru-card-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content (right ~66%) */
.chru-card-article__content {
    width: 65.6%;
    border: 1px solid var(--chru-gray-border, #E9E9E9);
    border-left: none;
    border-radius: 0 var(--radius-pill, 30px) var(--radius-pill, 30px) 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.chru-card-article__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Category tag pill */
.chru-card-article__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 5px 14px;
    border-radius: var(--radius-pill, 30px);
    font-size: var(--tag-size, 15px);
    font-weight: var(--weight-semibold, 600);
    color: #fff;
    width: fit-content;
}

/* Tag dot */
.chru-card-article__tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

/* Tag color variants */
.chru-card-article__tag--soins {
    background: var(--chru-metiers, #CD3620);
}

.chru-card-article__tag--recherche {
    background: var(--chru-blue-canard, #0096D6);
}

.chru-card-article__tag--formation {
    background: var(--chru-formation, #DC992A);
}

.chru-card-article__tag--evenement {
    background: var(--chru-blue-service, #14446B);
}

.chru-card-article__title {
    font-size: var(--h3-size, 20px);
    font-weight: var(--weight-bold, 700);
    color: var(--chru-blue-service, #14446B);
    margin: 0;
    line-height: 1.3;
}

.chru-card-article__excerpt {
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-text, #2D4356);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article footer (date + read more) */
.chru-card-article__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chru-card-article__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-gray-text, #6C6C6C);
}

.chru-card-article__date-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.chru-card-article__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-service, #14446B);
    text-decoration: underline;
    text-decoration-color: var(--chru-blue-service, #14446B);
}

.chru-card-article__read-more-icon {
    width: 19px;
    height: 17px;
    flex-shrink: 0;
}

/* ============================================
   BOUTONS CTA
   Figma: 30px radius, 44px height, 15px bold
   ============================================ */

.chru-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 11px 37px;
    border-radius: var(--radius-pill, 30px);
    font-weight: var(--weight-bold, 700);
    font-size: var(--button-size, 15px);
    font-family: inherit;
    text-decoration: none !important;
    text-decoration-thickness: 0 !important;
    cursor: pointer;
    border: 1px solid transparent;
    /* Transitions explicites — surtout PAS `all` (qui animait l'épaisseur
       du soulignement hérité de .chru-content a:hover et créait un micro-
       décalage perçu comme un rebond du bouton). */
    transition: background-color var(--transition-fast, 150ms ease),
                color var(--transition-fast, 150ms ease),
                border-color var(--transition-fast, 150ms ease),
                box-shadow var(--transition-fast, 150ms ease);
    white-space: nowrap;
    line-height: 1.368;
}

.chru-btn:hover,
.chru-btn:focus,
.chru-btn:focus-visible {
    text-decoration: none !important;
    text-decoration-thickness: 0 !important;
}

.chru-btn__icon {
    width: 19px;
    height: 17px;
    flex-shrink: 0;
    transition: inherit;
}

/* Arrow SVG : default = white fill, blue stroke */
.chru-btn--primary .chru-btn__icon path {
    fill: #fff;
    stroke: var(--chru-blue-service, #14446B);
    transition: fill var(--transition-fast, 150ms ease), stroke var(--transition-fast, 150ms ease);
}

/* Arrow SVG hover : blue fill, white stroke */
.chru-btn--primary:hover .chru-btn__icon path,
.chru-btn--primary:focus .chru-btn__icon path {
    fill: var(--chru-blue-service, #14446B);
    stroke: #fff;
}

.chru-btn--primary {
    background: var(--chru-blue-service, #14446B);
    color: #fff;
    border-color: var(--chru-blue-service, #14446B);
}

.chru-btn--primary:hover,
.chru-btn--primary:focus {
    background: transparent;
    border-color: var(--chru-blue-service, #14446B);
    color: var(--chru-blue-service, #14446B);
}

.chru-btn--outline {
    background: transparent;
    color: var(--chru-blue-service, #14446B);
    border-color: var(--chru-blue-service, #14446B);
}

/* Bouton « fantôme » des sections de bas de page d'accueil (« Tous nos sites »,
   « Tous nos événements », « Tous nos articles »).

   ⚠️ Cette variante était UTILISÉE par trois gabarits et DÉFINIE nulle part :
   elle n'existait que scopée à `.chru-fp-focus__actions` dans front-page.css
   (retour David 06/2026, écrit pour le seul bouton « Tous nos articles »). Les
   deux autres boutons portaient donc `.chru-btn` nu — bordure transparente,
   fond transparent — c'est-à-dire un texte bleu avec 37 px de padding
   invisible : mesuré `border 1px solid rgba(0,0,0,0)`. C'est le « le CSS a
   sauté sur les boutons » remonté par Marie le 01/09/2026.

   Le style vit désormais sur la VARIANTE, jamais sur un conteneur : c'est la
   règle « source unique components.css » du projet. Ne pas le redéfinir
   ailleurs. */
.chru-btn--secondary {
    background: transparent;
    color: var(--chru-blue-service, #14446B);
    border: 1.5px solid var(--chru-blue-service, #14446B);
}
.chru-btn--secondary svg {
    transition: transform .2s ease;
}
/* :focus autant que :focus-visible — après un clic SOURIS seul :focus est posé
   (cf. le bug « bouton bleu clair une fois cliqué » du 17/07). */
.chru-btn--secondary:hover,
.chru-btn--secondary:focus,
.chru-btn--secondary:focus-visible {
    /* Le survol d'origine remplissait en bleu clair #0096D6, ce qui met le
       libellé blanc à 3,05:1 — sous AA pour du 15 px gras. On remplit en bleu
       service : 10,15:1, et c'est la logique du design system (repos outline →
       survol plein, comme le bouton du bloc Kit de ressources). */
    background: var(--chru-blue-service, #14446B);
    border-color: var(--chru-blue-service, #14446B);
    color: #fff;
}
.chru-btn--secondary:hover svg,
.chru-btn--secondary:focus svg,
.chru-btn--secondary:focus-visible svg {
    transform: translateX(4px);
}

.chru-btn--outline:hover,
.chru-btn--outline:focus-visible {
    /* Marie KUSY 2026-06-22 : « hover des boutons = pas de couleur de fond ».
       On garde le style outline, seules les couleurs du bord et du texte
       passent en bleu clair pour le feedback. */
    background: transparent;
    color: var(--chru-blue-light, #0096D6);
    border-color: var(--chru-blue-light, #0096D6);
}

/* Variante --sm : dimensions compactes pour cards / listings. */
.chru-btn--sm {
    height: auto;
    padding: 8px 16px;
    font-size: 13px;
}

.chru-btn--white {
    background: #fff;
    color: var(--chru-blue-service, #14446B);
    border-color: #fff;
}

/* ⚠️ Survol quasi invisible corrigé le 05/08/2026 (retour client, structure
 * Hôpital Central) : passer le fond de #fff à --chru-grey (#F6F6F6) ne
 * produisait qu'un delta de 9/255 par canal — imperceptible sur un bouton
 * de cette taille. `.chru-btn--white` n'a qu'un seul usage dans tout le
 * projet (`chru-etab-acces__cta`, sur la carte bleue #14446B du hero
 * structure) : on applique donc la même logique d'INVERSION que
 * `.chru-btn--primary` (plein → contour), qui donne un changement net et
 * reste ≥ AA dans les deux états (mesuré : 10,15:1 repos, 10,15:1 survol).
 *
 * 🛑 CETTE VARIANTE SUPPOSE UN FOND SOMBRE. Au survol le bouton devient
 * transparent avec un libellé BLANC : posé sur un fond clair, il serait
 * invisible. Avant de la réutiliser ailleurs, vérifier le fond — ou créer
 * une variante dédiée ICI plutôt qu'une surcharge locale (les surcharges
 * locales de `.chru-btn--*` sont la cause des remontées à répétition). */
.chru-btn--white:hover,
.chru-btn--white:focus,
.chru-btn--white:focus-visible {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* Variante sur fond sombre (hero structure, blocs Info utile / Encart école…).
 * ⚠️ SOURCE UNIQUE — retour Marie 30/07/2026 (3e remontée) : ces boutons doivent
 * se comporter EXACTEMENT comme ceux du bloc « Encart école » teal/bleu :
 *   repos  = fond transparent, liseré blanc, libellé blanc
 *   survol = fond blanc plein, libellé bleu foncé
 * Ne redéfinir ce comportement NULLE PART ailleurs (ni dans un bloc, ni dans un
 * gabarit) : c'est la redéfinition locale qui a fait revenir le bug 3 fois.
 * La double classe `.chru-btn.chru-btn--outline-white` (0,3,0) est VOLONTAIRE :
 * elle passe devant les règles de couleur des blocs (0,2,0) quel que soit
 * l'ordre de chargement des feuilles. */
.chru-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.chru-btn.chru-btn--outline-white:hover,
.chru-btn.chru-btn--outline-white:focus,
.chru-btn.chru-btn--outline-white:focus-visible {
    background: #fff;
    color: var(--chru-blue-service, #14446B);
    border-color: #fff;
}

/* Bouton "Urgences" du header — alerte rouge, surdimensionnée pour
   être lisible sur fond sombre. NB : ne suit pas les dimensions standard
   .chru-btn (8px 16px au lieu de 11px 37px) car compact dans la barre nav. */
.chru-btn--urgences {
    background: var(--chru-urgences, #DA1500);
    color: #fff;
    font-size: 0.8125rem;
    padding: 8px 16px;
    border: 2px solid #fff;
    border-radius: 60px;
    height: auto;
    transition: background 0.2s, color 0.2s;
}

.chru-btn--urgences:hover,
.chru-btn--urgences:focus-visible {
    background: #fff;
    color: var(--chru-urgences, #DA1500);
}

.chru-btn--urgences:hover svg,
.chru-btn--urgences:focus-visible svg {
    color: var(--chru-urgences, #DA1500);
}

.chru-btn--urgences svg {
    flex-shrink: 0;
}

/* ============================================
   LIENS INTERNES
   Figma: 16px semibold, underline, fleche 15x12
   Icon uses currentColor → auto-adapts to label color
   ============================================ */

.chru-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-service, #14446B);
    text-decoration: underline;
    text-decoration-color: currentColor;
    line-height: 1.368;
    transition: color var(--transition-fast, 150ms ease), font-weight var(--transition-fast, 150ms ease);
}

.chru-link:hover,
.chru-link:focus {
    color: var(--chru-blue-light, #0096D6);
}

.chru-link__icon {
    width: 15px;
    height: 12px;
    flex-shrink: 0;
    color: inherit;
}

/* SVG uses fill="currentColor" in HTML — inherits link color */

/* White variant (on colored backgrounds) */
.chru-link--white {
    color: #fff;
}

.chru-link--white:hover,
.chru-link--white:focus {
    color: #fff;
}

/* External variant (external link icon instead of arrow) */
.chru-link--external .chru-link__icon {
    width: 14px;
    height: 14px;
}

.chru-card-event__more:hover,
.chru-card-event__more:focus {
    color: var(--chru-blue-light, #0096D6);
}

.chru-card-article__read-more:hover,
.chru-card-article__read-more:focus {
    color: var(--chru-blue-light, #0096D6);
    text-decoration-color: var(--chru-blue-light, #0096D6);
}

/* ============================================
   GRILLES
   ============================================ */

.chru-grid {
    display: grid;
    gap: var(--space-md, 20px);
}

.chru-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.chru-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.chru-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   HERO ARCHIVE (bandeau bleu plein écran)
   ============================================ */

.chru-hero-archive {
    background: var(--chru-blue-service, #14446B);
    color: #fff;
    text-align: center;
    padding: var(--space-xl, 48px) 0;
}

.chru-hero-archive__title {
    font-size: var(--h1-size, 45px);
    font-weight: var(--weight-bold, 700);
    margin: 0;
}

.chru-hero-archive__subtitle {
    font-size: 16px;
    margin: 16px 0 0;
    opacity: 0.85;
}

/* ============================================
   FILTRES
   ============================================ */

.chru-filters {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.chru-filters__label {
    font-weight: var(--weight-semibold, 600);
    color: var(--chru-blue-service, #14446B);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chru-filters__btn {
    background: var(--chru-blue-service, #14446B);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-pill, 30px);
    font-weight: var(--weight-semibold, 600);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   PAGINATION
   ============================================ */

.chru-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: var(--space-xl, 48px) 0;
}

.chru-pagination a,
.chru-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: var(--weight-semibold, 600);
    font-size: 15px;
    color: var(--chru-blue-service, #14446B);
    border: 1px solid var(--chru-gray-border, #E9E9E9);
    transition: all var(--transition-fast, 150ms ease);
}

.chru-pagination a:hover {
    background: var(--chru-grey, #F6F6F6);
}

.chru-pagination .current {
    background: var(--chru-blue-service, #14446B);
    color: #fff;
    border-color: var(--chru-blue-service, #14446B);
}

/* ============================================
   ALERT BOX
   ============================================ */

.chru-alert {
    border-radius: var(--radius-md, 14px);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.chru-alert--info {
    background: #e8f4fd;
    border-left: 4px solid var(--chru-blue-canard, #0096D6);
}

.chru-alert--warning {
    background: #fff8e1;
    border-left: 4px solid #FAB200;
}

.chru-alert--important {
    background: #fce8e8;
    border-left: 4px solid var(--chru-urgences, #DA1500);
}

.chru-alert__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.chru-alert__content {
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================
   LINKS LIST ("Pour aller plus loin")
   ============================================ */

.chru-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chru-links-list li {
    border-bottom: 1px solid var(--chru-gray-border, #E9E9E9);
}

.chru-links-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    text-decoration: underline;
    color: var(--chru-blue-text, #2D4356);
    font-size: 15px;
    font-weight: var(--weight-semibold, 600);
    transition: color var(--transition-fast, 150ms ease);
}

.chru-links-list a:hover {
    color: var(--chru-blue-light, #0096D6);
}

.chru-links-list__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* OVERRIDES chru-service-template — supprimé (plugin non installé) */

/* ============================================
   OVERRIDES BLOCS GUTENBERG
   Uniformisation boutons + couleurs liens
   ============================================ */

/* Texte-Image button → style chru-btn--primary.
 * Retours V3 : le texte « rebondit » au hover → on tue toute transition
 * sur typo / box-model et on stabilise font-weight + padding. */
.chru-texte-image__button {
    border: 1px solid var(--chru-blue-service, #14446B) !important;
    font-weight: 700 !important;
    transition: background-color var(--transition-fast, 150ms ease),
                color var(--transition-fast, 150ms ease),
                border-color var(--transition-fast, 150ms ease) !important;
}

.chru-texte-image__button:hover,
.chru-texte-image__button:focus,
.chru-texte-image__button:focus-visible {
    background: transparent !important;
    color: var(--chru-blue-service, #14446B) !important;
    border-color: var(--chru-blue-service, #14446B) !important;
    font-weight: 700 !important;
}

.chru-texte-image__button path {
    fill: #fff;
    stroke: var(--chru-blue-service, #14446B);
    transition: fill var(--transition-fast, 150ms ease), stroke var(--transition-fast, 150ms ease);
}

.chru-texte-image__button:hover path,
.chru-texte-image__button:focus path {
    fill: var(--chru-blue-service, #14446B);
    stroke: #fff;
}

/* Info-utile link : preserve white on dark bg */
.chru-info-utile__link {
    color: #fff !important;
}

.chru-info-utile__link:hover,
.chru-info-utile__link:focus {
    color: var(--chru-blue-pastel, #c5e1ff) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .chru-service-layout {
        grid-template-columns: 1fr;
    }

    .chru-sommaire {
        position: static;
        width: 100%;
    }

    .chru-cards-structures,
    .chru-cards-events,
    .chru-cards-articles {
        flex-wrap: wrap;
    }

    .chru-card-structure {
        width: calc(50% - 10px);
        min-width: 0;
    }

    .chru-card-event {
        width: calc(50% - 10px);
        min-width: 0;
    }

    .chru-card-event--carousel {
        min-width: 300px;
        max-width: none;
        flex: 0 0 300px;
    }

    .chru-card-article {
        width: 100%;
        min-width: 0;
    }

    .chru-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chru-hero-service {
        flex-direction: column;
        min-height: auto;
    }

    .chru-hero-service__content {
        width: 100%;
        padding: 40px 20px;
    }

    .chru-hero-service__image {
        width: 100%;
        min-height: 300px;
        position: relative;
    }

    .chru-hero-service__image img {
        position: relative;
    }

    .chru-hero-service__credit {
        padding: 8px 20px;
    }

    .chru-grid--2,
    .chru-grid--3 {
        grid-template-columns: 1fr;
    }

    .chru-grid--4 {
        grid-template-columns: 1fr;
    }

    .chru-card-structure,
    .chru-card-event {
        width: 100%;
    }

    .chru-card-event--carousel {
        min-width: 280px;
        max-width: none;
        flex: 0 0 280px;
    }

    .chru-card-article {
        flex-direction: column;
        height: auto;
    }

    /* Le flex image+contenu est porté par __link (pas par .chru-card-article) :
       sans ceci le lien reste en ligne, l'image (flex-shrink:0, width:100%) prend
       toute la largeur et le titre/lien sont écrasés à 0 → « seulement l'image »
       sur mobile (retour Marie KUSY 07/07/2026). */
    .chru-card-article__link {
        flex-direction: column;
    }

    .chru-card-article__image {
        width: 100%;
        height: 200px;
    }

    .chru-card-article__content {
        width: 100%;
        border-left: 1px solid var(--chru-gray-border, #E9E9E9);
        border-radius: 0 0 var(--radius-pill, 30px) var(--radius-pill, 30px);
    }

    .chru-card-article__image img {
        border-radius: var(--radius-pill, 30px) var(--radius-pill, 30px) 0 0;
    }

    .chru-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ============================================
 * CHRU Accent — format RichText custom (span.chru-accent)
 * ============================================ */
.chru-accent {
    color: var(--chru-accent, #0096D6);
}

/* ============================================
 * Scroll-top button — orange CHRU pour rester visible y compris au-dessus
 * du footer bleu foncé (retour client : avec un bouton bleu, on ne le voit
 * plus quand on est tout en bas de la page).
 * ============================================ */
#chru-scroll-top {
    background-color: var(--chru-blue-light, #009FE3) !important;
    border-color: #fff !important;
}
#chru-scroll-top,
#chru-scroll-top svg,
#chru-scroll-top svg path {
    color: #fff !important;
    fill: #fff !important;
}
#chru-scroll-top:hover,
#chru-scroll-top:focus {
    background-color: var(--chru-blue-canard, #0096D6) !important;
}

/* ============================================
 * Cartes articles liés — partagées single-service / single-post
 * ============================================ */

.chru-articles-lies,
.chru-post-others {
    margin-bottom: 48px;
}

.chru-articles-lies > h2,
.chru-post-others__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--chru-blue-service, #14446b);
    margin: 0 0 47px;
}

.chru-articles-lies__grid,
.chru-post-others .chru-blog-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chru-article-card {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    background-color: #fff;
    border: none;
    box-shadow: none;
    transition: box-shadow 250ms ease;
    text-decoration: none;
}

.chru-article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chru-article-card__image {
    flex-shrink: 0;
    width: 217px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chru-gray, #F6F6F6);
}

.chru-article-card__image img,
.chru-article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.chru-article-card__image-placeholder {
    width: 96px;
    height: 96px;
    opacity: 0.3;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314446B' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.chru-article-card__body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chru-article-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background-color: var(--badge-color, var(--chru-green, #3FA535));
    text-decoration: none;
}

.chru-article-card__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.chru-article-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--chru-blue-light, #0096d6);
    margin-top: auto;
}

.chru-article-card__date svg {
    flex-shrink: 0;
}

.chru-article-card__title {
    font-size: 18px;
    /* Gras 800 pour titre bien visible (retour client : « titre en gras »). */
    font-weight: 800;
    color: var(--chru-blue-service, #14446b);
    margin: 0;
    line-height: 1.3;
}

.chru-article-card__title a {
    color: inherit;
    text-decoration: none;
}

.chru-article-card__title a:hover,
.chru-article-card__title a:focus {
    text-decoration: underline;
}

.chru-article-card__excerpt {
    font-size: 16px;
    color: var(--chru-blue-text, #2d4356);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.chru-article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.chru-article-card__link {
    font-size: 16px;
    font-weight: 600;
    color: var(--chru-blue-service, #14446b);
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chru-article-card__link:hover,
.chru-article-card__link:focus {
    color: var(--chru-blue-canard, #0096D6);
}

@media (max-width: 768px) {
    .chru-article-card {
        flex-direction: column;
    }
    .chru-article-card__image {
        width: 100%;
        height: 200px;
    }
}

/* ============================================================
 * RETOURS CLIENT — overrides bloc Gutenberg (chru-blocks)
 * ============================================================ */

/* --- Bloc À retenir : marges + padding badge titre --- */
.chru-a-retenir {
    padding: 64px 45px 28px !important;
    margin-top: 56px !important;
    margin-bottom: 24px;
}
.chru-a-retenir__badge {
    top: -26px !important;
    padding: 15px 20px !important;
    line-height: 1 !important;
}
.chru-a-retenir__badge-label {
    line-height: 1 !important;
}
.chru-a-retenir__col p,
.chru-a-retenir__col ul,
.chru-a-retenir__col ol {
    margin: 0 0 10px;
}
.chru-a-retenir__col p:last-child,
.chru-a-retenir__col ul:last-child,
.chru-a-retenir__col ol:last-child { margin-bottom: 0; }
.chru-a-retenir__col ul,
.chru-a-retenir__col ol { padding-left: 20px; font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--chru-primary, #2d4356); }
.chru-a-retenir__col li { margin-bottom: 4px; }

/* --- Bloc Liens utiles : suppr doublon picto, soulign déco, poids --- */
.chru-liens-utiles__link {
    text-decoration: none !important;
}
.chru-liens-utiles__label {
    font-weight: 700 !important;
    text-decoration: none !important;
}
.chru-liens-utiles__desc {
    font-weight: 400 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.chru-liens-utiles__link:hover .chru-liens-utiles__desc,
.chru-liens-utiles__link:focus-visible .chru-liens-utiles__desc {
    text-decoration: underline;
}
/* Quand le lien est externe : ne pas dupliquer la flèche à droite (gardée) avec icône externe à gauche.
   On force l'icône gauche à rester l'icône "lien" (chaîne), même pour les externes. */
.chru-liens-utiles__item .chru-liens-utiles__icon svg {
    /* L'icône externe et l'icône lien sont déjà fournies par le bloc.
       Sur le rendu front, on masque la flèche droite uniquement quand le lien est externe
       car l'utilisateur trouvait qu'il y avait doublon. On garde plutôt l'icône externe. */
}
.chru-liens-utiles__link[target="_blank"] .chru-liens-utiles__arrow {
    display: none;
}

/* --- Bloc Liens externes (Pour aller plus loin) : poids domaine + souligné desc --- */
.chru-liens-externes__link {
    text-decoration: none !important;
}
.chru-liens-externes__link-label {
    font-weight: 700 !important;
    text-decoration: none !important;
}
.chru-liens-externes__link-domain {
    font-weight: 400 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
/* Liens internes : masquer le domaine (URL CHRU non pertinente) */
.chru-liens-externes__link[data-internal="1"] .chru-liens-externes__link-domain {
    display: none;
}

/* --- Bouton retour en haut de page : picto plus arrondi/grand --- */
.chru-back-to-top,
.chru-scroll-top,
#chru-back-top {
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
}
.chru-back-to-top svg,
.chru-scroll-top svg,
#chru-back-top svg {
    width: 26px !important;
    height: 26px !important;
}

/* --- Bloc Texte + image : image à coins droits en haut (V3) ---
 * Le client veut le haut de l'image à plat (cohérence avec bloc CHRU).
 * On laisse le clip par le parent (border-radius 0 0 30 30) gérer le bas,
 * et on force l'IMG en radius 0 pour neutraliser tout arrondi local. */
.chru-texte-image__image,
.chru-texte-image figure,
.chru-texte-image picture,
.chru-texte-image__media {
    overflow: hidden;
    border-radius: 0;
    background: transparent !important;
}
.chru-texte-image img {
    display: block;
    border-radius: 0;
}

/* --- Galerie : légende sous l'image, sans flou ni ombre portée ---
   WP core applique par défaut sur .wp-block-gallery.has-nested-images :
   - un pseudo ::before avec backdrop-filter: blur(3px) en bas de chaque image
   - un figcaption en position:absolute, texte blanc avec text-shadow noir
     sur un dégradé sombre
   Consigne client (Marie KUSY, 19/06) : virer ces effets, légende + crédit
   doivent être lisibles, en clair sous la photo. */
.wp-block-gallery figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-image figcaption,
.chru-gallery figcaption {
    position: static !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--chru-blue-text, #2D4356) !important;
    opacity: 1;
    background: transparent !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    padding: 6px 10px 0;
    margin: 0;
    text-align: left;
    border-radius: 0;
}

/* Tuer le pseudo flou WP core (backdrop-filter:blur(3px) en bas d'image) */
.wp-block-gallery.has-nested-images figure.wp-block-image::before,
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
    content: none !important;
    display: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* --- Accordéons (services + examens) : chevron 20px + padding homogène --- */
.chru-accordeon__chevron,
.chru-accordeon-section__chevron,
.chru-examen-section__chevron,
.chru-examen-detail__chevron,
.chru-accordeon details > summary svg,
.chru-accordeon-section details > summary svg,
.chru-examen-detail details > summary svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}
.chru-accordeon__panel,
.chru-accordeon__content,
.chru-accordeon-section__panel,
.chru-accordeon-section__content,
.chru-examen-section__panel,
.chru-examen-section__content,
.chru-examen-detail__section-content {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}
.chru-accordeon__panel > *:first-child,
.chru-accordeon__content > *:first-child,
.chru-accordeon-section__panel > *:first-child,
.chru-accordeon-section__content > *:first-child,
.chru-examen-section__panel > *:first-child,
.chru-examen-section__content > *:first-child,
.chru-examen-detail__section-content > *:first-child { margin-top: 0; }
.chru-accordeon__panel > *:last-child,
.chru-accordeon__content > *:last-child,
.chru-accordeon-section__panel > *:last-child,
.chru-accordeon-section__content > *:last-child,
.chru-examen-section__panel > *:last-child,
.chru-examen-section__content > *:last-child,
.chru-examen-detail__section-content > *:last-child { margin-bottom: 0; }

/* --- Liste de boutons examens sur page service --- */
.chru-links-list--examens {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.chru-links-list--examens .chru-btn--sm {
    padding: 10px 20px;
    font-size: 15px;
}

/* ==============================================================
 * SOMMAIRE (TOC) — SOURCE UNIQUE
 * Utilisé sur : single-service_de_soins.php, single.php (articles)
 * Toute modif doit se faire ICI uniquement. Ne pas dupliquer.
 * Les layouts spécifiques (sticky pour articles, variants urgences,
 * display mobile) restent dans single-post.css / single-service.css.
 * ============================================================== */

.chru-sommaire {
    background: var(--chru-grey, #F6F6F6);
    border-radius: 14px;
    padding: 32px 24px;
}

.chru-sommaire__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--chru-blue-service, #14446B);
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(20, 68, 107, 0.4);
    line-height: 1.2;
}

.chru-sommaire__title-icon,
.chru-sommaire__icon {
    flex-shrink: 0;
    width: 18px;
    height: 16px;
}

.chru-sommaire__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chru-sommaire__item {
    position: relative;
    padding-left: 18px;
    border-left: none;
}

/* Puce (flèche) — toujours visible, plus marquée au hover ou si item actif */
.chru-sommaire__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--chru-blue-canard, #0096D6);
    border-right: 2px solid var(--chru-blue-canard, #0096D6);
    transform: rotate(45deg);
    opacity: 1;
    transition: border-color 150ms ease, transform 150ms ease;
}

.chru-sommaire__item:hover::before,
.chru-sommaire__item:focus-within::before {
    border-top-color: var(--chru-blue-service, #14446B);
    border-right-color: var(--chru-blue-service, #14446B);
}
.chru-sommaire__item.is-active::before {
    border-top-color: var(--chru-accent, #0096D6);
    border-right-color: var(--chru-accent, #0096D6);
}

.chru-sommaire__link {
    display: block;
    padding: 0;
    color: var(--chru-blue-text, #2D4356);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    /* Interlignage très resserré pour le texte qui wrappe (item sur 2 lignes) ;
       le gap entre items gère l'espacement entre liens distincts. */
    line-height: 1.2;
    text-underline-offset: 3px;
    transition: color 150ms ease;
}

/* Item actif (scrollspy) : gras, bleu clair, sans souligné
   (consigne client 2026-06-18 — mettre davantage en avant le titre courant). */
.chru-sommaire__item.is-active .chru-sommaire__link {
    text-decoration: none;
    font-weight: 800;
    color: var(--chru-accent, #0096D6);
}

/* Survol : couleur seule.
   Retour Marie 06/08/2026 — « liens du sommaire soulignés au survol ». Le
   soulignement au survol y était repris de la convention des liens ÉDITORIAUX,
   or un sommaire est une liste de navigation : le chevron et le changement de
   couleur suffisent à signaler l'état, et le trait faisait « bouger » la ligne
   à l'œil. Le souligné est CONSERVÉ au focus clavier (`:focus-visible`), où il
   double utilement le contour de focus — un utilisateur souris ne le voit
   jamais. Seul le trait change, jamais le texte (pas de rebond). */
.chru-sommaire__link:hover {
    color: var(--chru-blue-canard, #0096D6);
}

.chru-sommaire__link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    color: var(--chru-blue-canard, #0096D6);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .chru-sommaire {
        padding: 24px 16px;
    }
    .chru-sommaire__title {
        font-size: 20px;
    }
}

/* Print : fond neutre + bordure légère */
@media print {
    .chru-sommaire {
        background: none;
        border: 1px solid #ccc;
    }
}


/* ============================================================
 * Crédit photo (.chru-photo-credit)
 * Affiché sous l'image, italique gris foncé lisible.
 * Lisibilité renforcée 2026-06-18 (le crédit paraissait « flouté »
 * sur examens en gris clair #929292).
 * ============================================================ */
.chru-photo-credit {
    display: block;
    margin-top: 6px;
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: var(--chru-blue-text, #2D4356);
    opacity: 1;
    filter: none;
    text-align: right;
}

/* Hero — fond image foncé, crédit en blanc semi-transparent */
.chru-photo-credit--hero {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin: 0;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    z-index: 2;
}

.chru-hero__image {
    position: relative;
}

/* Bloc core/image : aligner sur la largeur de la figure */
.wp-block-image .chru-photo-credit--core-image {
    text-align: right;
    margin-top: 4px;
    padding: 0 4px;
}

/* ============================================================
 * GARDE-FOU UNIVERSEL — boutons dans les conteneurs de contenu
 * ============================================================
 * Bug récurrent : les wrappers .chru-content / .chru-ecole-content /
 * .chru-formation-content / .chru-formation-tabpanel__content définissent
 * des règles `a { color/underline }` qui SCRASENT la couleur et le style
 * des boutons enfants (chru-btn, blocks-buttons, blocs maison comme
 * chru-texte-image__button, chru-kit__link, chru-mise-en-avant a, …)
 * à cause d'une spécificité 0,2,0 vs 0,1,0.
 *
 * On force ici : `text-decoration: none` (pas de soulignement parasite) ET
 * on définit `color: revert-layer` n'est pas portable → on s'appuie sur
 * la non-application de la règle de contenu via `:not(...)` dans
 * single-ecole.css / single-formation.css (déjà fait).
 *
 * Le rôle de ce garde-fou : 1) virer le soulignement pour tous les
 * éléments à apparence bouton, où qu'ils soient ; 2) servir de témoin
 * documenté pour qu'à la prochaine régression on sache où chercher.
 */
:where(.chru-content, .chru-ecole-content, .chru-formation-content, .chru-formation-tabpanel__content, .entry-content)
:is(.chru-btn, .wp-block-button__link, a[class*="__button"], a[class*="__cta"], a[class$="__link"]:not([href^="#"])) {
    text-decoration: none !important;
    text-decoration-thickness: 0 !important;
}


/* ============================================
 * RÈGLE MAÎTRE GLOBALE BOUTONS — anti-rebond
 * ============================================
 * Marie KUSY 2026-06-22 — appliqué à tous les boutons CTA du site,
 * sur tous les états (rest + hover + focus + focus-visible) :
 *  - figeage strict de la graisse, taille, hauteur de ligne, padding
 *  - aucun soulignement, aucun text-decoration-thickness
 *  - aucun transform, aucun scale
 *  - cible TOUS les sélecteurs de boutons connus dans le projet
 *
 * !important partout pour battre :
 *  - les styles inline injectés par Gutenberg (background, font-size)
 *  - les règles `:root :where()` du block library WP core
 *  - les overrides par bloc (.chru-fp-*, .chru-card-*, etc.)
 * ============================================ */
:is(
    .chru-btn,
    .chru-btn--primary,
    .chru-btn--outline,
    .chru-btn--white,
    .chru-btn--outline-white,
    .chru-btn--sm,
    .chru-kit__link,
    .chru-card-post__link,
    .chru-card-text__link,
    .chru-card-event__link,
    .chru-card-service__link,
    .chru-fp-recherche__btn,
    .chru-fp-formation-rec__btn,
    .chru-se-rendre-auto__directions,
    .chru-infos-pratiques__cta,
    .chru-equipe__cv,
    .chru-documents-list__link,
    .chru-fiche-ecole__btn,
    .chru-mise-en-avant__link,
    .chru-texte-image__button,
    .wp-block-button__link,
    .wp-element-button
),
:is(
    .chru-btn,
    .chru-btn--primary,
    .chru-btn--outline,
    .chru-btn--white,
    .chru-btn--outline-white,
    .chru-btn--sm,
    .chru-kit__link,
    .chru-card-post__link,
    .chru-card-text__link,
    .chru-card-event__link,
    .chru-card-service__link,
    .chru-fp-recherche__btn,
    .chru-fp-formation-rec__btn,
    .chru-se-rendre-auto__directions,
    .chru-infos-pratiques__cta,
    .chru-equipe__cv,
    .chru-documents-list__link,
    .chru-fiche-ecole__btn,
    .chru-mise-en-avant__link,
    .chru-texte-image__button,
    .wp-block-button__link,
    .wp-element-button
):hover,
:is(
    .chru-btn,
    .chru-btn--primary,
    .chru-btn--outline,
    .chru-btn--white,
    .chru-btn--outline-white,
    .chru-btn--sm,
    .chru-kit__link,
    .chru-card-post__link,
    .chru-card-text__link,
    .chru-card-event__link,
    .chru-card-service__link,
    .chru-fp-recherche__btn,
    .chru-fp-formation-rec__btn,
    .chru-se-rendre-auto__directions,
    .chru-infos-pratiques__cta,
    .chru-equipe__cv,
    .chru-documents-list__link,
    .chru-fiche-ecole__btn,
    .chru-mise-en-avant__link,
    .chru-texte-image__button,
    .wp-block-button__link,
    .wp-element-button
):focus,
:is(
    .chru-btn,
    .chru-btn--primary,
    .chru-btn--outline,
    .chru-btn--white,
    .chru-btn--outline-white,
    .chru-btn--sm,
    .chru-kit__link,
    .chru-card-post__link,
    .chru-card-text__link,
    .chru-card-event__link,
    .chru-card-service__link,
    .chru-fp-recherche__btn,
    .chru-fp-formation-rec__btn,
    .chru-se-rendre-auto__directions,
    .chru-infos-pratiques__cta,
    .chru-equipe__cv,
    .chru-documents-list__link,
    .chru-fiche-ecole__btn,
    .chru-mise-en-avant__link,
    .chru-texte-image__button,
    .wp-block-button__link,
    .wp-element-button
):focus-visible {
    text-decoration: none !important;
    text-decoration-thickness: 0 !important;
    text-underline-offset: 0 !important;
    letter-spacing: normal !important;
    transform: none !important;
}

/* ============================================
 * Zone de bas de page (événements / pages en lien / articles)
 * Retour Marie 20/07 : « trop gros, pas lisible, pas intuitif — ça prend trop
 * d'espace pour peu d'éléments ». Chaque section a désormais un titre (côté
 * PHP) et un rythme vertical resserré.
 * ============================================ */
.chru-section--bottom {
    padding: 40px 0;
}

.chru-section--bottom .chru-section__header {
    margin-bottom: 20px;
}

.chru-section--bottom .chru-section__title {
    font-size: 24px;
    margin-bottom: 0;
}

/* Cartes de la zone basse : un cran plus compactes que sur les archives. */
.chru-section--bottom .chru-cards-structures,
.chru-section--bottom .chru-cards-events,
.chru-section--bottom .chru-cards-articles {
    gap: 20px;
}

@media (max-width: 781px) {
    .chru-section--bottom {
        padding: 28px 0;
    }
}


/* ── Fil d'Ariane « nu » (hors hero) ─────────────────────────────────────────
   Deux gabarits seulement rendent le fil d'Ariane comme enfant direct d'un
   `.chru-container`, donc sans hero pour lui donner de l'air : la fiche
   documenthèque et la fiche glossaire. Mesuré le 01/09/2026 : le fil y
   démarrait à 109px, c'est-à-dire EXACTEMENT au pixel où le header se termine,
   collé à lui (retour Thomas : « manque de gap en haut »). Partout ailleurs le
   fil vit dans un hero (`chru-archive-hero__content`, `chru-post-hero-band`,
   `chru-etab-hero-band`) qui porte déjà son propre padding — d'où le sélecteur
   d'enfant direct, qui ne peut pas les atteindre. */
/* ⚠️ `:not([class*="__"])` — la parade maison, ici pour une raison mesurée :
   la fiche campagne pose `.chru-campagne__breadcrumb { margin-top: 23px }` et
   n'était donc PAS collée. Sans l'exclusion, ma règle (0,2,0) écrasait la
   sienne (0,1,0) et la faisait passer de 23 à 36px — une retouche sur un
   gabarit que personne n'avait signalé, la veille de la mise en ligne. Un
   gabarit qui nomme son fil d'Ariane garde donc la main sur son espacement. */
.chru-container > .chru-breadcrumb:not([class*="__"]) {
    margin-top: var(--space-lg, 36px);
}
