/*
 * Base
 * -----------------------------
 */

/* Empêche tout scroll horizontal (flèches Slick hors grille, bleeds, etc.) */
html,
body {
    overflow-x: hidden;
    overflow-x: clip; /* préfère clip : ne casse pas position:sticky */
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-body);
    color: var(--text-dark);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Placeholder image / media */
.cn-placeholder {
    display: block;
    background-color: var(--placeholder-bg);
    background-image: none;
}

/* Zoom discret sur les images cliquables (compositor GPU pour éviter le saccadé)
   Spotlight hero (actu / live) : zoom écarté — zone trop petite pour l’effet */
.home-news__card-media-clip,
.home-sessions__media--play {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.home-news__card-media,
.home-sessions__media--play .home-sessions__media-img {
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-news__card-media-wrap:hover .home-news__card-media,
.home-sessions__media--play:hover .home-sessions__media-img {
    transform: translate3d(0, 0, 0) scale(1.014);
}

@media (prefers-reduced-motion: reduce) {
    .home-news__card-media,
    .home-sessions__media--play .home-sessions__media-img {
        transition: none;
    }

    .home-news__card-media-wrap:hover .home-news__card-media,
    .home-sessions__media--play:hover .home-sessions__media-img {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Buttons */
.btn-cn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cn--primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.btn-cn--primary:hover:not(:disabled) {
    background-color: var(--color-red-hover);
    border-color: var(--color-red-hover);
    color: var(--color-white);
}

.btn-cn:disabled,
.btn-cn[disabled] {
    background-color: #C8C7C6;
    border-color: #C8C7C6;
    color: var(--color-white);
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.btn-cn--outline-red {
    background: transparent;
    color: var(--color-red);
    border-color: var(--color-red);
}

.btn-cn--outline-red:hover {
    background: var(--color-red);
    color: var(--color-white);
}

/* Links */
.link-cn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body); /* 15px */
    font-weight: 900; /* Lato Black — liens inline rouges + flèche */
}

.link-cn i {
    font-size: 0.8em;
    transition: transform 0.1s ease;
}

.link-cn:hover i {
    transform: translateX(3px);
}

.link-cn--red {
    color: var(--color-red);
}

.link-cn--red:hover {
    color: var(--color-red-hover);
}

.link-cn--white {
    color: var(--color-white);
}


/*
 * Bootstrap container — xxl 1680px
 * -----------------------------
 */

@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1680px;
    }
}


/*
 * Header — pleine largeur (hors grille Bootstrap)
 * -----------------------------
 */

.site-header {
    /* --header-h : hauteur courante (réduite en sticky), déclarée ici pour que
       .site-header--nav-collapsed puisse redéfinir --header-height sur l’élément */
    --header-h: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-h);
    padding: 0;
    margin: 0;
    color: var(--color-white);
    /* Filet bas sur toute la largeur du header */
    border-bottom: var(--header-border-width) solid var(--header-border-color);
    box-sizing: border-box;
    transition:
        height var(--header-shrink-duration) var(--mega-anim-ease),
        /* Fond et ombre calés sur l’animation du mega-menu, pas sur la réduction sticky */
        background-color var(--mega-anim-duration) var(--mega-anim-ease),
        box-shadow var(--mega-anim-duration) var(--mega-anim-ease);
}

.site-header__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-header__logo {
    --logo-pad: var(--logo-margin);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
    padding: var(--logo-pad);
    /* Filet vertical entre logo et menu */
    border-right: var(--header-border-width) solid var(--header-border-color);
    transition: padding var(--header-shrink-duration) var(--mega-anim-ease);
}

.site-header__logo img {
    --logo-w: var(--logo-width);
    --logo-h: var(--logo-height);
    display: block;
    width: var(--logo-w);
    height: var(--logo-h);
    max-width: none;
    object-fit: contain;
    transition:
        width var(--header-shrink-duration) var(--mega-anim-ease),
        height var(--header-shrink-duration) var(--mega-anim-ease);
}

/*
 * Accueil : les deux logos sont superposés dans la même cellule de grille et
 * se fondent l’un dans l’autre quand le header passe en blanc (survol ou sticky).
 */
.site-header__logo-stack {
    display: grid;
}

.site-header__logo-stack img {
    grid-area: 1 / 1;
    transition:
        opacity var(--mega-anim-duration) var(--mega-anim-ease),
        width var(--header-shrink-duration) var(--mega-anim-ease),
        height var(--header-shrink-duration) var(--mega-anim-ease);
}

.site-header__logo-img--dark {
    opacity: 0;
}

body.is-header-sticky .site-header__logo-img--light,
body.is-header-hover .site-header__logo-img--light,
body.has-mega-open .site-header__logo-img--light,
body.is-nav-open .site-header__logo-img--light {
    opacity: 0;
}

body.is-header-sticky .site-header__logo-img--dark,
body.is-header-hover .site-header__logo-img--dark,
body.has-mega-open .site-header__logo-img--dark,
body.is-nav-open .site-header__logo-img--dark {
    opacity: 1;
}

.site-header__nav {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.site-header__menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.site-header__menu > li {
    display: flex;
    align-items: stretch;
    flex: 0 1 auto;
    height: 100%;
    position: static;
    min-width: 0;
}

.site-header__menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--nav-item-gap);
    height: 100%;
    padding: 0 var(--nav-item-pad-x);
    font-family: var(--font-sans);
    font-size: var(--font-size-nav);
    font-weight: var(--font-weight-nav);
    line-height: 1.2;
    color: var(--color-white);
    white-space: nowrap;
    transition: opacity 0.2s ease, color var(--mega-anim-duration) var(--mega-anim-ease);
}

.site-header__menu > li > a:hover,
.site-header__menu > li.is-mega-open > a,
.site-header__menu > li.is-active > a {
    opacity: 0.75;
}

.site-header__menu-caret {
    font-size: 0.6875rem;
    opacity: 0.85;
    transition: transform var(--mega-anim-duration) var(--mega-anim-ease);
}

/*
 * Mega-menu — 3 colonnes
 * -----------------------------
 */

.mega-menu {
    /* Palette locale : surchargée par la variante sombre (accueil sur vidéo) */
    --mega-panel: var(--color-white);
    --mega-panel-border: rgba(40, 40, 40, 0.06);
    --mega-panel-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    --mega-panel-blur: none;
    --mega-col-intro: var(--mega-bg-intro);
    --mega-col-level1: var(--mega-bg-level1);
    --mega-col-level2: var(--mega-bg-level2);
    --mega-col-border: var(--mega-border);
    --mega-title-color: var(--text-dark);
    --mega-text-color: var(--text-muted);
    --mega-link-color: var(--text-dark);
    --mega-accent-color: var(--color-red);
    --mega-hover-bg: rgba(40, 40, 40, 0.03);
    --mega-active-bg: rgba(198, 61, 51, 0.06);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--mega-panel);
    color: var(--mega-link-color);
    box-shadow: var(--mega-panel-shadow);
    border-top: 1px solid var(--mega-panel-border);
    backdrop-filter: var(--mega-panel-blur);
    -webkit-backdrop-filter: var(--mega-panel-blur);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
        opacity var(--mega-anim-duration) var(--mega-anim-ease),
        transform var(--mega-anim-duration) var(--mega-anim-ease),
        visibility var(--mega-anim-duration) var(--mega-anim-ease);
}

/*
 * Megas fermés hors flux : sinon un panneau suivant (opacity:0) reste au-dessus
 * dans le DOM et peut manger les clics du mega ouvert.
 */
.site-header__menu > li.has-mega-menu:not(.is-mega-open):not(.is-mobile-open) > .mega-menu {
    display: none;
}

/* Ouverture pilotée en JS (délais anti-survol accidentel) */
.site-header__menu > li.has-mega-menu.is-mega-open > .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Mega ouvert : overflow + hit-test sur toute la zone du panneau */
body.has-mega-open .site-header,
body.has-mega-open .site-header__inner,
body.has-mega-open .site-header__nav,
body.has-mega-open .site-header__menu {
    overflow: visible;
}

body.has-mega-open .site-header__menu > li.has-mega-menu.is-mega-open > .mega-menu {
    z-index: 200;
    pointer-events: auto;
}

.mega-menu__level2-item a {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/*
 * Bascule desktop entre deux parents : fondu seul.
 * Évite le clipping (l’ancien monte, le nouveau descend).
 * Classe posée brièvement en JS (.is-mega-swapping).
 */
.site-header.is-mega-swapping .mega-menu {
    transform: translateY(0);
    transition:
        opacity var(--mega-anim-duration) var(--mega-anim-ease),
        visibility var(--mega-anim-duration) var(--mega-anim-ease);
}

.site-header__menu > li.has-mega-menu.is-mega-open > a .site-header__menu-caret,
.site-header__menu > li.has-mega-menu.is-mobile-open > a .site-header__menu-caret {
    transform: rotate(180deg);
}

.mega-menu__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr;
    gap: 0;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    min-height: 0;
}

.mega-menu__intro {
    padding: 37px 40px 41px 36px;
    background: var(--mega-col-intro);
    border-right: 1px solid var(--mega-col-border);
}

/* Liseret or : suit toute la hauteur titre + texte */
.mega-menu__intro-body {
    border-left: 2px solid var(--color-gold);
    padding-left: 23px;
}

.mega-menu__title {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--mega-title-color);
}

.mega-menu__text {
    margin: 0;
    max-width: 320px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    font-style: italic;
    line-height: var(--line-height-body);
    color: var(--mega-text-color); /* --text-muted / variantes verre & dark */
}

.mega-menu__level1 {
    list-style: none;
    margin: 0;
    padding: 23px 0;
    background: var(--mega-col-level1);
    border-right: 1px solid var(--mega-col-border);
}

/* `> a` : en burger le panneau niv.2 est dans l’item — ne pas styler ses liens */
.mega-menu__level1-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 28px 13px 25px;
    border-left: 3px solid transparent;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 700;
    line-height: 1.25;
    color: var(--mega-link-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mega-menu__level1-item > a i {
    font-size: 0.6875rem;
    color: var(--mega-accent-color);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-menu__level1-item:hover > a {
    background: var(--mega-hover-bg);
}

.mega-menu__level1-item.is-active > a {
    color: var(--mega-accent-color);
    background: var(--mega-active-bg);
    border-left-color: var(--mega-accent-color);
}

.mega-menu__level1-item.has-children > a i {
    opacity: 0.55;
}

.mega-menu__level1-item.is-active > a i {
    opacity: 1;
}

.mega-menu__level2 {
    position: relative;
    padding: 23px 0;
    min-height: 100%;
    background: var(--mega-col-level2);
}

.mega-menu__level2-panel {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.mega-menu__level2-panel.is-active {
    display: block;
    position: relative;
}

/* Panneaux masqués : hors flux, aucun hit-test (évite de bloquer les liens) */
.mega-menu__level2-panel[hidden] {
    display: none !important;
}

/* Même langage que le niveau 1 : gras + liseret rouge au survol */
.mega-menu__level2-item a {
    display: block;
    padding: 13px 28px 13px 25px;
    border-left: 3px solid transparent;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 700;
    line-height: 1.25;
    color: var(--mega-link-color);
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mega-menu__level2-item a:hover {
    color: var(--mega-accent-color);
    background: var(--mega-hover-bg);
    border-left-color: var(--mega-accent-color);
}

/*
 * Mega-menu sur l’accueil, header transparent
 * -----------------------------
 * ACTIF : rien à surcharger. Le survol du header le fait passer en blanc
 * (classe `is-header-hover`, cf. plus bas), donc le panneau garde la palette
 * claire standard, identique aux pages internes.
 *
 * Variante mise de côté — verre clair : panneau blanc translucide + blur,
 * la vidéo se devine derrière. Réglages dans variables.css (--mega-glass-*).
body.has-header-transparent:not(.is-header-sticky) .mega-menu {
    --mega-panel: var(--mega-glass-panel);
    --mega-panel-border: var(--mega-glass-border);
    --mega-panel-shadow: var(--mega-glass-shadow);
    --mega-panel-blur: var(--mega-glass-blur);
    --mega-col-intro: var(--mega-glass-intro);
    --mega-col-level1: var(--mega-glass-level1);
    --mega-col-level2: var(--mega-glass-level2);
    --mega-col-border: var(--mega-glass-border);
    --mega-title-color: var(--text-dark);
    --mega-text-color: var(--mega-glass-text);
    --mega-link-color: var(--text-dark);
    --mega-accent-color: var(--color-red);
    --mega-hover-bg: var(--mega-glass-hover-bg);
    --mega-active-bg: var(--mega-glass-active-bg);
}
*/

/*
 * Variante mise de côté — verre fumé léger : matière sombre très transparente,
 * texte blanc et accent doré.
body.has-header-transparent:not(.is-header-sticky) .mega-menu {
    --mega-panel: rgba(28, 27, 26, 0.52);
    --mega-panel-border: rgba(255, 255, 255, 0.22);
    --mega-panel-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
    --mega-panel-blur: blur(26px) saturate(150%);
    --mega-col-intro: rgba(255, 255, 255, 0.06);
    --mega-col-level1: rgba(0, 0, 0, 0.06);
    --mega-col-level2: rgba(0, 0, 0, 0.12);
    --mega-col-border: rgba(255, 255, 255, 0.16);
    --mega-title-color: var(--color-white);
    --mega-text-color: rgba(255, 255, 255, 0.82);
    --mega-link-color: var(--color-white);
    --mega-accent-color: var(--color-gold);
    --mega-hover-bg: rgba(255, 255, 255, 0.1);
    --mega-active-bg: rgba(217, 183, 120, 0.16);
}

body.has-header-transparent:not(.is-header-sticky) .site-header__menu > li.is-mega-open > a {
    color: var(--color-gold-light);
    opacity: 1;
}
*/

/* Colonne CTA — filet vertical entre menu et zone droite */
.site-header__actions {
    --cta-pad-inline: var(--header-cta-margin-inline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    padding: 0 var(--cta-pad-inline);
    border-left: var(--header-border-width) solid var(--header-border-color);
    box-sizing: border-box;
    transition: padding var(--header-shrink-duration) var(--mega-anim-ease);
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    padding: 12px 18px;
    border-radius: 4px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-nav);
    line-height: 1.2;
    transition:
        background-color 0.2s ease,
        padding var(--header-shrink-duration) var(--mega-anim-ease);
}

.site-header__cta:hover {
    background-color: var(--color-red-hover);
    color: var(--color-white);
}

.site-header__cta i {
    font-size: var(--font-size-body);
    color: var(--color-gold-light);
    transition: color 0.2s ease;
}

.site-header__cta:hover i {
    color: var(--color-gold-hover);
}

.site-header__burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--header-height-mobile);
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--color-white);
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
}

/*
 * Header solide — toutes les pages hors accueil
 * L’accueil garde le header transparent (vidéo en arrière-plan).
 * Classe posée par cn_header_body_class() (inc/header-context.php).
 */
body.has-header-solid .site-header,
body.is-header-sticky .site-header,
body.is-header-hover .site-header,
body.has-mega-open .site-header,
body.is-nav-open .site-header {
    background: var(--color-white);
    color: var(--text-dark);
    /* box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); — écarté : doublonnait le border-bottom 1px */
}

body.has-header-solid .site-header__logo,
body.has-header-solid .site-header__menu a,
body.has-header-solid .site-header__burger,
body.is-header-sticky .site-header__logo,
body.is-header-sticky .site-header__menu > li > a,
body.is-header-sticky .site-header__burger,
body.is-header-hover .site-header__logo,
body.is-header-hover .site-header__menu > li > a,
body.is-header-hover .site-header__burger,
body.has-mega-open .site-header__logo,
body.has-mega-open .site-header__menu > li > a,
body.has-mega-open .site-header__burger,
body.is-nav-open .site-header__logo,
body.is-nav-open .site-header__menu > li > a,
body.is-nav-open .site-header__burger {
    color: var(--text-dark);
}

body.has-header-solid .site-header__menu > li > a:hover,
body.has-header-solid .site-header__menu > li.is-mega-open > a,
body.has-header-solid .site-header__menu > li.is-active > a,
body.is-header-sticky .site-header__menu > li > a:hover,
body.is-header-sticky .site-header__menu > li.is-mega-open > a,
body.is-header-sticky .site-header__menu > li.is-active > a,
body.is-header-hover .site-header__menu > li > a:hover,
body.is-header-hover .site-header__menu > li.is-mega-open > a,
body.is-header-hover .site-header__menu > li.is-active > a,
body.has-mega-open .site-header__menu > li > a:hover,
body.has-mega-open .site-header__menu > li.is-mega-open > a,
body.has-mega-open .site-header__menu > li.is-mobile-open > a,
body.has-mega-open .site-header__menu > li.is-active > a,
body.is-nav-open .site-header__menu > li.is-active > a {
    color: var(--color-red);
    opacity: 1;
}

body.has-header-solid .site-header,
body.has-header-solid .site-header__logo,
body.has-header-solid .site-header__actions,
body.is-header-sticky .site-header,
body.is-header-sticky .site-header__logo,
body.is-header-sticky .site-header__actions,
body.is-header-hover .site-header,
body.is-header-hover .site-header__logo,
body.is-header-hover .site-header__actions,
body.has-mega-open .site-header,
body.has-mega-open .site-header__logo,
body.has-mega-open .site-header__actions,
body.is-nav-open .site-header,
body.is-nav-open .site-header__logo,
body.is-nav-open .site-header__actions {
    border-color: var(--header-border-color-solid);
}

/* Le header étant fixé, on réserve sa hauteur sur les pages sans média derrière */
body.has-header-solid {
    padding-top: var(--header-height);
    transition: padding-top var(--header-shrink-duration) var(--mega-anim-ease);
}

/* Menu burger ouvert : bloque le scroll de page (renforcé en JS via position:fixed). */
html.is-nav-open,
body.is-nav-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}


/*
 * Header sticky — état réduit passé le seuil de scroll
 * Classe `is-header-sticky` posée en JS (seuil : 50px).
 * `has-nav-collapsed` (JS) = nav en mode burger : déjà compact, pas de réduction.
 */

body.is-header-sticky .site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.is-header-sticky:not(.has-nav-collapsed) .site-header {
    --header-h: var(--header-height-sticky);
}

body.is-header-sticky:not(.has-nav-collapsed) .site-header__logo {
    --logo-pad: var(--logo-margin-sticky);
    /* Valeurs explicites : primauté sur les overrides ≤1399 (width/padding en dur) */
    padding: var(--logo-margin-sticky);
}

body.is-header-sticky:not(.has-nav-collapsed) .site-header__logo img {
    --logo-w: var(--logo-width-sticky);
    --logo-h: var(--logo-height-sticky);
    width: var(--logo-width-sticky);
    height: var(--logo-height-sticky);
}

body.is-header-sticky:not(.has-nav-collapsed) .site-header__actions {
    --cta-pad-inline: var(--header-cta-margin-inline-sticky);
}

body.is-header-sticky:not(.has-nav-collapsed) .site-header__cta {
    padding: 9px 16px;
}

body.has-header-solid.is-header-sticky {
    padding-top: var(--header-height-sticky);
}

/* Mode burger : hauteur mobile dans les deux états */
body.has-header-solid.has-nav-collapsed {
    padding-top: var(--header-height-mobile);
}


/*
 * Hero — zone menu + hero = 860px
 * -----------------------------
 */

.home-hero {
    position: relative;
    width: 100%;
    height: var(--home-top-height);
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    overflow: visible;
}

.home-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--home-top-height);
    z-index: 0;
    background: var(--placeholder-bg);
    overflow: hidden;
}

.home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Fallback gris tant que la vidéo n’est pas prête */
.home-hero__media-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--placeholder-bg);
}

.home-hero__media-placeholder.is-hidden {
    display: none;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(20, 30, 45, 0.42) 0%,
        rgba(20, 30, 45, 0.28) 40%,
        rgba(20, 30, 45, 0.5) 100%
    );
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: var(--header-height);
    padding-bottom: var(--hero-cards-padding-bottom);
}

/* Nav passée en burger : le header ne fait plus que 85px, le hero s’aligne dessus */
body.has-nav-collapsed .home-hero__content {
    padding-top: var(--header-height-mobile);
}

.home-hero__intro {
    width: 100%;
    max-width: 760px;
    margin: auto;
    text-align: center;
    padding: 0;
}

.home-hero__title {
    margin: 0 0 var(--hero-title-to-text);
    color: var(--color-white);
}

.home-hero__title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: var(--hero-title-size);
    font-weight: 400;
    line-height: 1.05;
}

.home-hero__title-sub {
    display: block;
    margin-top: 0;
    font-family: var(--font-sans);
    font-size: var(--hero-subtitle-size);
    font-weight: 300;
    line-height: 1.15;
    opacity: 0.98;
}

.home-hero__text {
    margin: 0 auto var(--hero-text-to-search);
    max-width: var(--hero-text-max-width);
    font-family: var(--font-sans);
    font-size: var(--font-size-hero-text);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-hero-text);
    opacity: 0.95;
}

.home-hero__search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: var(--hero-search-width);
    height: var(--hero-search-height);
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card);
    padding: 0;
    overflow: hidden;
}

.home-hero__search-input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 20px;
    height: 100%;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    font-style: italic;
    line-height: var(--line-height-body);
    color: var(--text-dark);
    background: transparent;
    min-width: 0;
}

.home-hero__search-input::placeholder {
    color: #A0A0A0;
    font-style: italic;
}

.home-hero__search-btn {
    flex-shrink: 0;
    width: var(--hero-search-height);
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-hero__search-btn:hover {
    background: var(--color-gold-hover);
}

/* Rail commun : icône centrée + filet vertical dessous */
.home-hero__card-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 1.5rem;
    gap: 8px;
    padding-top: 5px; /* aligne l’icône sur la ligne de titre */
}

.home-hero__liseret {
    display: block;
    width: var(--hero-liseret-width);
    height: 20px;
    flex: 0 0 20px;
    background: var(--hero-liseret-color);
}

.home-hero__liseret--tall {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

/* Cartes bas de hero — mesures maquette (~826px centrées) */
.home-hero__cards {
    display: grid;
    grid-template-columns: var(--hero-cards-left-width) minmax(0, 1fr);
    gap: var(--hero-cards-gap);
    align-items: stretch;
    width: 100%;
    max-width: var(--hero-cards-width);
    margin: 0 auto;
    flex-shrink: 0;
}

.home-hero__cards-left {
    display: flex;
    flex-direction: column;
    gap: var(--hero-quick-cards-gap);
    align-self: stretch;
    min-height: 100%;
}

.home-hero__quick-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 0;
    height: auto;
    min-height: var(--hero-quick-card-height);
    padding: 20px 20px 18px;
    background: var(--color-white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.home-hero__quick-card:hover {
    color: var(--text-dark);
}

.home-hero__quick-card:hover .home-hero__quick-arrow {
    transform: translateX(3px);
}

.home-hero__quick-icon {
    display: block;
    color: var(--color-gold);
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    line-height: 1;
}

.home-hero__quick-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 9px;
}

.home-hero__quick-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.home-hero__quick-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.home-hero__quick-arrow {
    color: var(--color-red);
    font-size: 0.75rem;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.1s ease;
}

.home-hero__quick-sub {
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    line-height: 1.3;
    color: var(--text-dark);
}

.home-hero__cards-right {
    min-width: 0;
}

.home-hero__spotlight {
    display: flex;
    min-height: 100%;
    background: var(--color-white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Variante V5-1 — À votre écoute (sans image) */
.home-hero__spotlight--ecoute {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
    padding: 26px 32px;
}

.home-hero__spotlight--ecoute .home-hero__spotlight-icon {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    margin-top: 2px;
}

.home-hero__spotlight--ecoute .home-hero__spotlight-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    color: var(--text-dark);
}

.home-hero__spotlight--ecoute .home-hero__liseret--ecoute {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: stretch;
    width: var(--hero-liseret-width);
    height: auto;
    flex: none;
    min-height: 0;
}

.home-hero__spotlight--ecoute .home-hero__spotlight-copy {
    grid-column: 2;
    grid-row: 2;
}

.home-hero__spotlight-icon {
    display: block;
    color: var(--color-gold);
    font-size: 1.375rem;
    line-height: 1;
    text-align: center;
}

.home-hero__spotlight-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-hero__spotlight--ecoute .home-hero__spotlight-text {
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-hero__spotlight-text {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

/* Variantes V5-2 / V5-3 — avec média (padding + liseret + séparation) */
.home-hero__spotlight--live,
.home-hero__spotlight--actu {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    padding: 16px;
    overflow: visible;
    border: 1px solid var(--hero-liseret-color);
    box-shadow: var(--shadow-card);
}

.home-hero__spotlight-aside {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 48%;
    max-width: 260px; /* image fixe — le +50px va au body texte */
    padding-right: 19px; /* gap + filet */
}

.home-hero__spotlight-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.home-hero__spotlight-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-hero__spotlight-media--play {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__spotlight-media--play .home-hero__play {
    position: relative;
    z-index: 1;
}

.home-hero__play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.home-hero__liseret--spotlight {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--hero-liseret-width);
    height: auto; /* annule le 20px du .home-hero__liseret de base */
    flex: none;
    margin: 0;
    background: var(--hero-liseret-color);
}

.home-hero__spotlight--live .home-hero__spotlight-body,
.home-hero__spotlight--actu .home-hero__spotlight-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 4px 8px 4px 0;
    min-width: 0;
}

.home-hero__spotlight-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px 28px;
}

.home-hero__spotlight-kicker,
.home-hero__spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-red);
}

.home-hero__spotlight-label {
    animation: cn-live-label-pulse 2.8s ease-in-out infinite;
}

.home-hero__spotlight-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-red);
    flex-shrink: 0;
    animation: cn-live-dot-pulse 2.8s ease-in-out infinite;
}

.home-hero__spotlight-date {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.home-hero__spotlight--live .home-hero__spotlight-title,
.home-hero__spotlight--actu .home-hero__spotlight-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}


/*
 * Les piliers
 * -----------------------------
 */

.home-pillars {
    padding: 80px 0;
    background: var(--bg-light); /* #F8F7F6 */
}

.home-pillars__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media screen and (min-width: 992px) {
    .home-pillars__intro {
        padding-right: 60px;
    }
}

.home-pillars__title {
    margin: 0 0 1.25rem;
}

.home-pillars__title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.1875rem; /* 35px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.home-pillars__title-sub {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-sans); /* Lato */
    font-size: 1.5625rem; /* 25px */
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

.home-pillars__text {
    margin: 0 0 35px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-body);
    color: var(--text-dark);
    width: 100%;
    max-width: none;
}

.home-pillars__link {
    margin-top: 0;
}

.home-pillars__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 320px;
    padding: 35px;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-pillars__card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: var(--color-gold-light);
}

.home-pillars__card:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
    transform: translateY(-3px);
}

.home-pillars__icon {
    display: block;
    margin-bottom: 1.35rem;
    color: var(--color-gold-light);
    font-size: 3.5rem; /* 60px */
    line-height: 1;
}

.home-pillars__card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.85rem;
}

.home-pillars__card-line {
    display: block;
    width: 70px;
    height: 1px;
    background: var(--color-gold-light);
    flex-shrink: 0;
}

.home-pillars__card-arrow {
    display: block;
    color: var(--color-white);
    font-size: 0.8rem;
    line-height: 1;
}

.home-pillars__card-title {
    display: block;
    margin: 0 0 0.65rem;
    font-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

.home-pillars__card-text {
    display: block;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-white);
}


/*
 * Tags
 * -----------------------------
 */

.cn-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    line-height: 1.3;
}


/*
 * Actualités
 * -----------------------------
 */

.home-news {
    padding: 4rem 0 5rem;
    background: var(--color-white);
    overflow: hidden; /* coupe le bleed hors viewport à gauche si besoin */
}

.home-news > .container {
    overflow: visible;
}

.home-news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.home-news__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.75rem; /* 28px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

/* Déborde jusqu’au bord droit du viewport pour inviter au swipe */
.home-news__slider-bleed {
    width: calc(100% + max(0px, (100vw - 100%) / 2));
    max-width: none;
}

.home-news__slider {
    position: relative;
    /* ≥1800px : réserve la place du prev hors image (42px + 10px) ; annulé sous 1800 */
    padding-left: 52px;
    margin-left: -52px;
    --home-news-pad-left: 52px;
}

.home-news__card {
    padding: 0 12px;
}

.home-news__card:first-child,
.home-news__slider .slick-slide:first-child .home-news__card {
    padding-left: 0;
}

.home-news__card-media-wrap {
    position: relative;
    display: block;
}

.home-news__card-media-clip {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.home-news__card-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.home-news__card-media-wrap .cn-tag {
    position: absolute;
    left: 20px;
    bottom: 0;
    z-index: 1;
    transform: translateY(50%);
    margin: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem; /* 13px */
    border-radius: var(--radius-pill);
    line-height: 1.25;
}

.home-news__card-body {
    position: relative;
    padding: 2rem 0 0.25rem 20px; /* aligne date + titre avec le tag */
}

.home-news__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: var(--text-muted);
}

.home-news__date i {
    color: var(--color-gold);
    font-size: 0.95em;
}

.home-news__card-title {
    margin: 0.65rem 0 0;
    font-family: var(--font-serif);
    font-size: 1.125rem; /* 18px (était 20px) — accueil + landing */
    font-weight: 700;
    line-height: 1.3;
}

.home-news__card-title a {
    /* Bloc hover continu + max 2 lignes (accueil + landing) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--text-dark);
    font-weight: 700;
}

.home-news__card-title a:hover {
    color: var(--color-red);
}

/* Flèches Slick — centrées sur la zone image */
.home-news__arrow {
    position: absolute;
    top: calc(var(--home-news-media-h, 40%) / 2);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-white);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.home-news__arrow:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
}

.home-news__arrow i {
    font-size: 0.9rem;
    line-height: 1;
}

.home-news__arrow.slick-prev {
    left: 0; /* ≥1800 : hors image ; <1800 : inset via media query */
    transform: translateY(-50%);
}

.home-news__arrow.slick-next {
    /* left calculé en JS (≥1800 hors grille / <1800 intérieur container) */
    left: auto;
    right: auto;
    transform: translateY(-50%);
}

.home-news__arrow.slick-disabled {
    opacity: 0.35;
    cursor: default;
}

.home-news .slick-slide {
    height: auto;
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* Marge après le dernier slide (= demi-gouttière hors container 1680) */
.home-news .slick-slide:last-child {
    margin-right: max(1.25rem, calc((100vw - min(100vw, 1680px)) / 2));
}

.home-news .slick-slide.is-peeking {
    opacity: 0.35;
    pointer-events: none;
}

.home-news .slick-slide.is-peeking a {
    pointer-events: none;
}

.home-news .slick-list {
    overflow: hidden;
}

.home-news .slick-track {
    display: flex;
}

.home-news .slick-slide > div {
    height: 100%;
}


/*
 * Travail législatif récent
 * -----------------------------
 */

.home-laws {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: var(--bg-light); /* même gris que .home-pillars */
}

/* Zone image : du haut de la section jusqu’à mi-hauteur du panneau blanc
   (padding haut = padding bas → 50% de la section = milieu du panneau) */
.home-laws__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 0;
    overflow: hidden;
}

.home-laws__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-laws__bg::after {
    content: none;
}

.home-laws .container {
    position: relative;
    z-index: 1;
}

.home-laws__panel {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 5rem; /* 80px */
}

.home-laws__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.home-laws__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.75rem; /* 28px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.home-laws__all {
    flex-shrink: 0;
}

.home-laws__list {
    --laws-rail-x: calc(4.25rem + 1rem + 0.75rem); /* centre de la colonne rail */
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 3.5rem;
    border-bottom: 1px solid #E8E7E6; /* seul séparateur : avant la recherche */
}

/* UN seul filet continu : du 1er point jusqu’au bas du dernier texte */
.home-laws__list::before {
    content: '';
    position: absolute;
    left: var(--laws-rail-x);
    top: 0.2rem; /* petit dépassement au-dessus du 1er dot */
    bottom: 3rem; /* suit le padding-bottom */
    width: 1px;
    background: #D0D0D0;
    z-index: 0;
    pointer-events: none;
}

.home-laws__list > li {
    margin: 0;
    padding: 0;
}

.home-laws__item {
    display: grid;
    grid-template-columns: 4.25rem 1.5rem minmax(0, 1fr) 1.5rem;
    column-gap: 1rem;
    align-items: start;
    padding: 1.5rem 0;
    border: 0;
    color: var(--text-dark);
}

.home-laws__list > li:first-child .home-laws__item {
    padding-top: 0.25rem;
}

.home-laws__list > li:last-child .home-laws__item {
    padding-bottom: 0.5rem;
}

.home-laws__item:hover {
    color: var(--text-dark);
}

.home-laws__item:hover .home-laws__item-title {
    color: var(--color-red);
}

.home-laws__item:hover .home-laws__arrow {
    transform: translateX(3px);
}

.home-laws__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding-top: 0.15rem;
    text-align: center;
}

.home-laws__date-dm {
    font-family: var(--font-sans);
    font-size: 1.125rem; /* 18px */
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-red);
}

.home-laws__date-y {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-muted);
}

.home-laws__rail {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-self: start;
}

.home-laws__dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 10px;
    height: 10px;
    margin-top: 0.2rem; /* remonté pour s’aligner sur le milieu du badge or */
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-sizing: content-box;
    background: var(--color-gold);
    flex-shrink: 0;
}

.home-laws__body {
    min-width: 0;
    padding-right: 0.5rem;
}

.home-laws__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem 0.65rem;
    margin-bottom: 0.45rem;
}

.home-laws__num {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.home-laws__item-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    transition: color 0.15s ease;
}

.home-laws__type {
    position: relative;
    padding-left: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.home-laws__type::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 1px;
    background: #C8C7C6;
}

.home-laws__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-dark);
}

.home-laws__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--color-red);
    font-size: 0.85rem;
    transition: transform 0.1s ease;
}

.home-laws__search {
    padding-top: 2rem;
}

.home-laws__search-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-serif);
    font-size: 1.5rem; /* 24px */
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
}

.home-laws__search-text {
    margin: 0 0 1.35rem;
    width: 100%;
    max-width: none;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.home-laws__form {
    display: grid;
    grid-template-columns: 2.9fr 2fr 2.1fr 1.15fr;
    gap: 0.75rem;
    align-items: stretch;
}

.home-laws__field {
    position: relative;
    min-width: 0;
}

.home-laws__field input,
.home-laws__field select {
    width: 100%;
    height: 48px;
    padding: 0 0.95rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
}

.home-laws__field input::placeholder {
    color: #9A9896;
}

.home-laws__field select {
    padding-right: 2.25rem;
    color: var(--text-muted);
    cursor: pointer;
}

.home-laws__field select:focus,
.home-laws__field input:focus {
    outline: 1px solid var(--color-gold);
    outline-offset: 0;
}

.home-laws__select-caret {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: var(--color-red);
    font-size: 0.7rem;
    pointer-events: none;
    line-height: 1;
}

.home-laws__submit {
    height: 48px;
    width: 100%;
    padding-inline: 1rem;
    font-weight: 700;
}


/*
 * Prochaine séance publique
 * Layout : image collée à gauche (hors grille) ;
 * contenu aligné sur le panneau lois (col-lg-10 / col-xl-8)
 * -----------------------------
 */

.home-sessions {
    --sessions-gap: 100px;
    --sessions-gutter: 1.5rem; /* = Bootstrap --bs-gutter-x */
    padding: 0 0 5rem; /* pas de padding-top : l’espace vient du padding-bottom de .home-laws (~80px) */
    background: var(--bg-light);
    overflow: hidden;
}

.home-sessions__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
    padding-inline: 1.25rem;
}

.home-sessions__media {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.home-sessions__media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-sessions__media--play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.home-sessions__play {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-sessions__media--play:hover .home-sessions__play {
    transform: scale(1.06);
    background: var(--color-white);
}

.home-sessions__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* même que .home-hero__spotlight-label */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-red);
    animation: cn-live-label-pulse 2.8s ease-in-out infinite;
}

.home-sessions__live-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-red);
    flex-shrink: 0;
    animation: cn-live-dot-pulse 2.8s ease-in-out infinite;
}

@keyframes cn-live-label-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.72;
    }
}

@keyframes cn-live-dot-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(196, 58, 53, 0.35);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
        box-shadow: 0 0 0 5px rgba(196, 58, 53, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__spotlight-label,
    .home-hero__spotlight-dot,
    .home-sessions__live,
    .home-sessions__live-dot {
        animation: none;
    }
}

.home-sessions__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.25rem;
    min-width: 0;
}

.home-sessions__main {
    border-top: 1px solid #E0DEDC;
    border-bottom: 1px solid #E0DEDC;
    padding: 1.75rem 0 2rem;
}

.home-sessions__label {
    margin: 0 0 1.15rem;
    font-family: var(--font-serif);
    font-size: 1.5rem; /* 24px */
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
    text-transform: none;
}

.home-sessions__date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: var(--color-gold);
}

.home-sessions__date i {
    font-size: 0.95em;
    line-height: 1;
}

.home-sessions__title {
    margin: 0 0 1.15rem;
    font-family: var(--font-serif);
    font-size: 2.1875rem; /* 35px */
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.home-sessions__text {
    margin: 0 0 1.5rem;
    max-width: none;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.home-sessions__link {
    margin-top: 0.25rem;
}

.home-sessions__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
}

.home-sessions__card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    padding: 1.25rem 1.15rem 1.3rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    color: var(--text-dark);
}

.home-sessions__card:hover {
    color: var(--text-dark);
}

.home-sessions__card:hover .home-sessions__card-arrow {
    transform: translateX(3px);
}

.home-sessions__card-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 1.35rem;
    gap: 0.55rem;
    padding-top: 0.2rem;
}

.home-sessions__card-icon {
    display: block;
    color: var(--color-gold);
    font-size: 1.05rem;
    line-height: 1;
    text-align: center;
}

.home-sessions__card-line {
    display: block;
    flex: 1 1 auto;
    width: 1px;
    min-height: 2.25rem;
    background: var(--hero-liseret-color);
}

.home-sessions__card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-sessions__card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-sessions__card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem; /* 20px */
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
}

.home-sessions__card-arrow {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--color-red);
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 0.1s ease;
}

.home-sessions__card-text {
    font-family: var(--font-sans);
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Desktop : image full-bleed gauche ; contenu calé sur le bord droit de la grille BS */
@media screen and (min-width: 992px) {
    .home-sessions__layout {
        --sessions-container: 960px; /* Bootstrap lg */
        --sessions-side-cols: 0; /* ≤1399 : pleine grille à droite */
        --sessions-side: calc(
            (100vw - min(100vw, var(--sessions-container))) / 2
            + (min(100vw, var(--sessions-container)) - var(--sessions-gutter)) * var(--sessions-side-cols) / 12
            + (var(--sessions-gutter) * 0.5)
        );
        grid-template-columns: minmax(280px, 36vw) minmax(0, 1fr);
        column-gap: var(--sessions-gap);
        row-gap: 0;
        padding-inline: 0;
        padding-right: var(--sessions-side);
        align-items: stretch;
    }

    .home-sessions__media {
        min-height: 420px;
        height: 100%;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }

    .home-sessions__cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

@media screen and (min-width: 1200px) {
    .home-sessions__layout {
        --sessions-container: 1140px; /* Bootstrap xl */
    }
}

@media screen and (min-width: 1400px) {
    .home-sessions__layout {
        --sessions-container: 1680px; /* override projet */
        --sessions-side-cols: 2; /* aligne col-xxl-8 du panneau lois */
    }
}


/*
 * Pour en savoir plus
 * -----------------------------
 */

.home-more {
    padding: 5rem 0;
    background: var(--color-white);
    overflow: visible;
}

.home-more > .container {
    overflow: visible;
}

.home-more__header {
    margin-bottom: 2rem;
}

.home-more__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.75rem; /* 28px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.home-more__slider {
    position: relative;
    /* ≥1800px : place pour les flèches hors grille ; annulé sous 1800 */
    padding-inline: 40px;
    margin-inline: -40px;
}

.home-more__card {
    padding: 0 12px;
}

.home-more__slider .slick-slide:first-child .home-more__card {
    padding-left: 0;
}

.home-more__card-inner {
    position: relative;
    height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.home-more__card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.home-more__card-body {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0;
    z-index: 1;
    background: var(--color-white);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 1.5rem;
}

.home-more__card-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-serif);
    font-size: 1.375rem; /* 22px */
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
}

.home-more__card-text {
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.home-more__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-red);
    cursor: pointer;
    transform: translateY(-50%);
}

.home-more__arrow:hover {
    color: var(--color-red-hover);
}

.home-more__arrow i {
    font-size: 1.15rem;
    line-height: 1;
}

.home-more__arrow.slick-prev {
    left: 0;
}

.home-more__arrow.slick-next {
    right: 0;
}

.home-more__arrow.slick-disabled {
    opacity: 0.3;
    cursor: default;
}

.home-more .slick-list {
    overflow: hidden;
}

.home-more .slick-slide {
    height: auto;
}

@media screen and (min-width: 992px) {
    .home-more__card-inner {
        height: 600px;
    }

    .home-more__card-body {
        left: 70px;
        right: 70px;
        padding: 2rem 2.35rem;
    }
}


/*
 * Sliders Slick — flèches intérieures sous 1800px
 * Hors grille (gouttières) seulement quand le viewport le permet (≥1800).
 * En dessous : pastilles rouges sur les slides, lisibles sur image.
 * -----------------------------
 */

@media screen and (max-width: 1799px) {
    .home-news__slider {
        padding-left: 0;
        margin-left: 0;
        --home-news-pad-left: 0px;
    }

    .home-news__arrow {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    }

    .home-news__arrow.slick-prev {
        left: 24px;
    }

    .home-more__slider {
        padding-inline: 0;
        margin-inline: 0;
    }

    .home-more__arrow {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--color-red);
        color: var(--color-white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
        transition: background-color 0.2s ease;
    }

    .home-more__arrow:hover {
        background: var(--color-red-hover);
        color: var(--color-white);
    }

    .home-more__arrow i {
        font-size: 0.9rem;
    }

    .home-more__arrow.slick-prev {
        left: 24px;
    }

    .home-more__arrow.slick-next {
        right: 24px;
    }
}


/*
 * Conseil National des jeunes (CNJ)
 * Image : s’arrête à mi-hauteur de la carte blanche
 * -----------------------------
 */

.home-city {
    position: relative;
    background: var(--bg-light);
    padding: 0 0 5rem; /* 80px avant la galerie */
}

.home-city__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%; /* fallback ; JS aligne sur le milieu de .home-city__box */
    z-index: 0;
    overflow: hidden;
}

.home-city__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-city__content {
    position: relative;
    z-index: 1;
    padding-top: 14rem; /* zone image au-dessus de la carte */
}

.home-city__box {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 4rem 3.5rem 3rem;
    text-align: left;
}

.home-city__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.home-city__title {
    margin: 0.75rem 0 1rem;
    font-family: var(--font-sans);
    font-size: 1.5rem; /* 24px */
    font-weight: 900;
    line-height: 1.25;
    color: var(--color-cnj);
}

.home-city__text {
    margin: 0 0 1.35rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.home-city__link {
    color: var(--color-cnj);
}

.home-city__link:hover {
    color: var(--color-cnj-hover);
}

@media screen and (min-width: 992px) {
    .home-city__content {
        padding-top: 18rem;
    }

    .home-city__box {
        padding: 4.5rem 4rem 3.25rem;
    }
}


/*
 * Galerie / Instagram strip
 * -----------------------------
 */

.home-gallery__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.home-gallery__item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.home-gallery__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}


/*
 * Footer
 * -----------------------------
 */

.site-footer {
    background: var(--color-red);
    color: var(--color-white);
    padding: 4rem 0 3.5rem;
    border-top: 1px solid var(--color-white);
}

.site-footer a {
    color: var(--color-white);
    text-decoration: none;
}

.site-footer a:hover {
    opacity: 0.8;
    color: var(--color-white);
}

.site-footer__row {
    --bs-gutter-x: 2rem;
}

.site-footer__col {
    text-align: center;
}

.site-footer__heading {
    margin: 0 0 1.1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-white);
}

.site-footer__infos,
.site-footer__links,
.site-footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__infos li,
.site-footer__links li {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-white);
}

.site-footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0;
}

.site-footer__logo {
    display: inline-block;
    line-height: 0;
}

.site-footer__logo-img {
    display: block;
    width: auto;
    max-width: 240px;
    height: auto;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    align-items: center;
    justify-content: center;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.05rem;
    line-height: 1;
}

.site-footer__copy {
    margin: 0.35rem 0 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-white);
}

.site-footer__credit {
    margin: 1.1rem 0 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0.9;
}


/*
 * Media Queries
 * -----------------------------
 */

@media screen and (max-width: 1679px) {

    .site-header__actions {
        padding: 0 20px;
    }

    .site-header__cta {
        padding: 11px 14px;
    }

}

@media screen and (max-width: 1399px) {

    /* Hors sticky / hors burger — au scroll : tailles sticky (165×48) partout */
    body:not(.is-header-sticky):not(.has-nav-collapsed) .site-header__logo {
        padding: 22px 18px;
    }

    body:not(.is-header-sticky):not(.has-nav-collapsed) .site-header__logo img {
        width: 200px;
        height: auto;
    }

    .site-header__actions {
        padding: 0 16px;
    }

    :root {
        --hero-title-size: 3.25rem;
        --hero-subtitle-size: 1.5rem;
        --hero-cards-width: 880px; /* 780 + 100 */
        --hero-cards-left-width: 290px; /* 240 + 50 */
    }

    /* Piliers : intro au-dessus, cartes en 2+2 */
    .home-pillars__intro {
        margin-bottom: 1.75rem;
        padding-right: 0;
    }

    .home-pillars__row > [class*="col-"]:not(.home-pillars__intro) {
        margin-bottom: 24px; /* gap entre les 2 rangées */
    }

    .home-pillars__row > [class*="col-"]:not(.home-pillars__intro):nth-last-child(-n+2) {
        margin-bottom: 0;
    }

    .home-pillars__card {
        height: 270px; /* 320 − 50 */
    }

}

/*
 * Mode menu compact / burger
 * - forcé sous 992px
 * - ou activé en JS (.site-header--nav-collapsed) si ça ne rentre pas en taille mini
 */

.site-header--nav-collapsed {
    --header-height: var(--header-height-mobile);
}

.site-header--nav-collapsed .site-header__burger {
    display: inline-flex;
    order: -1;
    position: relative;
    z-index: 2;
}

.site-header--nav-collapsed .site-header__logo {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    z-index: 1;
    /* −15px : compensation visuelle du CTA à droite */
    transform: translateX(calc(-50% - 15px));
    margin: 0;
    padding: 15px 20px;
    border-right: 0;
}

.site-header--nav-collapsed .site-header__logo img {
    width: auto;
    height: 55px;
}

.site-header--nav-collapsed .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
    /* Plein viewport sous le header : pas de “trou” scrollable vers la page */
    height: calc(100vh - var(--header-height-mobile));
    height: calc(100dvh - var(--header-height-mobile));
    max-width: none;
    overflow: hidden; /* scroll uniquement avec .is-scrollable */
    overscroll-behavior: none;
    /* Surface blanche : header, panneau et sous-menu se lisent comme un seul bloc */
    background: var(--color-white);
    padding: 0;
    z-index: 101;
    border-top: var(--header-border-width) solid var(--header-border-color-solid);
}

.site-header--nav-collapsed .site-header__nav.is-open {
    display: block;
}

.site-header--nav-collapsed .site-header__nav.is-open.is-scrollable {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/*
 * Mega fermés hors flux : sinon Firefox les compte dans scrollHeight
 * (opacity:0 ne suffit pas) → faux scroll dans le panneau blanc.
 */
.site-header--nav-collapsed .mega-menu {
    display: none;
}

.site-header--nav-collapsed .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    overflow: visible;
}

.site-header--nav-collapsed .site-header__menu > li {
    height: auto;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    border-top: var(--header-border-width) solid var(--header-border-color-solid);
}

.site-header--nav-collapsed .site-header__menu > li > a {
    height: auto;
    padding: 16px 20px;
    font-size: var(--font-size-nav-max);
    gap: 8px;
    justify-content: flex-start;
    color: var(--text-dark);
}

.site-header--nav-collapsed .site-header__menu > li.is-active > a {
    color: var(--color-red);
}

.site-header--nav-collapsed .site-header__menu > li.has-mega-menu.is-mobile-open > .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    transform: none;
    box-shadow: none;
    border-top: 0;
}

.site-header--nav-collapsed .mega-menu__level2-panel {
    position: relative;
    top: 0;
}

.site-header--nav-collapsed .mega-menu__inner {
    grid-template-columns: 1fr;
    min-height: 0;
}

.site-header--nav-collapsed .mega-menu__intro,
.site-header--nav-collapsed .mega-menu__level1 {
    border-right: 0;
    border-bottom: 1px solid var(--mega-col-border);
}

.site-header--nav-collapsed .mega-menu__intro {
    padding: 20px;
}

.site-header--nav-collapsed .mega-menu__title {
    font-size: 1.5rem;
}

.site-header--nav-collapsed .mega-menu__level1-item > a,
.site-header--nav-collapsed .mega-menu__level2-item a {
    padding-left: 20px;
    padding-right: 20px;
}

.site-header--nav-collapsed .site-header__actions {
    margin-left: auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.site-header--nav-collapsed .site-header__cta {
    padding: 10px 12px;
}

.site-header--nav-collapsed .site-header__cta span {
    display: none;
}

.site-header--nav-collapsed .site-header__inner {
    position: relative;
}

/*
 * Accordéon du sous-menu en mode burger
 * Les panneaux de niveau 2 sont déplacés en JS dans leur item de niveau 1
 * (cnSyncMegaPanelPlacement) : ils se déplient juste sous le libellé tapé.
 * Portée par la classe body posée en JS, qui couvre les deux cas de mode compact.
 */
body.has-nav-collapsed .mega-menu__level2 {
    display: none;
}

body.has-nav-collapsed .mega-menu__level1-item + .mega-menu__level1-item {
    border-top: 1px solid var(--mega-col-border);
}

/* Chevron droite → bas à l’ouverture de l’accordéon (sub-sub) */
body.has-nav-collapsed .mega-menu__level1-item.has-children.is-active > a i {
    transform: rotate(90deg);
}

/* Panneau déplié : teinte gris desktop (--mega-col-level2), pas de rouge global */
body.has-nav-collapsed .mega-menu__level2-panel {
    position: relative;
    top: 0;
    padding: 4px 0 10px;
    background: var(--mega-col-level2);
}

body.has-nav-collapsed .mega-menu__level2-item a {
    padding-left: 25px;
    color: var(--mega-link-color);
    font-weight: 700;
}

/* Lien vers la page du niveau 1 : inutile sur desktop où le libellé est cliquable */
.mega-menu__level2-item--parent {
    display: none;
}

body.has-nav-collapsed .mega-menu__level2-item--parent {
    display: block;
}

body.has-nav-collapsed .mega-menu__level2-item--parent a {
    font-weight: 700;
    color: var(--mega-link-color);
}

body.has-nav-collapsed .mega-menu__level2-item--parent a:hover {
    color: var(--mega-accent-color);
}

@media screen and (max-width: 991px) {

    .site-header {
        --header-height: var(--header-height-mobile);
    }

    /* Nav forcée en burger : pas de réduction sticky, hauteur mobile dans les deux états */
    body.is-header-sticky .site-header {
        --header-h: var(--header-height-mobile);
    }

    body.has-header-solid {
        padding-top: var(--header-height-mobile);
    }

    .site-header__burger {
        display: inline-flex;
        order: -1;
        position: relative;
        z-index: 2;
    }

    .site-header__logo {
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        z-index: 1;
        /* −15px : compensation visuelle du CTA à droite */
        transform: translateX(calc(-50% - 15px));
        margin: 0;
        padding: 15px 20px;
        border-right: 0;
    }

    .site-header__logo img {
        width: auto;
        height: 55px;
    }

    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
        /* Plein viewport sous le header : pas de “trou” scrollable vers la page */
        height: calc(100vh - var(--header-height-mobile));
        height: calc(100dvh - var(--header-height-mobile));
        max-width: none;
        overflow: hidden; /* scroll uniquement avec .is-scrollable */
        overscroll-behavior: none;
        /* Surface blanche : header, panneau et sous-menu se lisent comme un seul bloc */
        background: var(--color-white);
        padding: 0;
        z-index: 101;
        border-top: var(--header-border-width) solid var(--header-border-color-solid);
    }

    .site-header__nav.is-open {
        display: block;
    }

    .site-header__nav.is-open.is-scrollable {
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* Idem : mega fermés hors flux (évite faux scroll Firefox) */
    .mega-menu {
        display: none;
    }

    .site-header__menu {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        overflow: visible;
    }

    .site-header__menu > li {
        height: auto;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        border-top: var(--header-border-width) solid var(--header-border-color-solid);
    }

    .site-header__menu > li > a {
        height: auto;
        padding: 16px 20px;
        font-size: var(--font-size-nav-max);
        gap: 8px;
        justify-content: flex-start;
        color: var(--text-dark);
    }

    .site-header__menu > li.is-active > a {
        color: var(--color-red);
        opacity: 1;
    }

    .site-header__menu > li.has-mega-menu.is-mobile-open > .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: relative;
        top: 0;
        left: auto;
        right: auto;
        transform: none;
        box-shadow: none;
        border-top: 0;
    }

    .mega-menu__level2-panel {
        position: relative;
        top: 0;
    }

    .mega-menu__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mega-menu__intro,
    .mega-menu__level1 {
        border-right: 0;
        border-bottom: 1px solid var(--mega-col-border);
    }

    .mega-menu__intro {
        padding: 20px;
    }

    .mega-menu__title {
        font-size: 1.5rem;
    }

    .mega-menu__level1-item > a,
    .mega-menu__level2-item a {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header__actions {
        margin-left: auto;
        padding: 0 16px;
        position: relative;
        z-index: 2;
    }

    .site-header__cta {
        padding: 10px 12px;
    }

    .site-header__cta span {
        display: none;
    }

    .site-header__inner {
        position: relative;
    }

    .home-hero__cards {
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .home-hero__spotlight--ecoute .home-hero__spotlight-title {
        font-size: 1.375rem;
    }

}

@media screen and (max-width: 991px) {

    :root {
        --hero-title-size: 2.5rem;
        --hero-subtitle-size: 1.25rem;
    }

    .home-hero {
        height: auto;
        min-height: 640px;
    }

    .home-hero__media {
        height: 100%;
        bottom: 0;
    }

    .home-hero__content {
        height: auto;
        min-height: 640px;
        padding-top: var(--header-height-mobile);
        padding-bottom: 24px;
    }

    .home-hero__intro {
        padding: 54px 16px 32px; /* +30px sous le header */
        margin: 0 auto;
    }

    .home-hero__title {
        margin-bottom: 25px; /* −15px vs --hero-title-to-text (40) */
    }

    .home-hero__cards {
        grid-template-columns: 1fr;
        margin-top: 8px;
    }

    .home-hero__cards-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--hero-quick-cards-gap);
    }

    .home-hero__quick-card {
        height: auto;
        min-height: var(--hero-quick-card-height);
    }

    .home-hero__spotlight--live,
    .home-hero__spotlight--actu {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }

    .home-hero__spotlight-aside {
        flex: none;
        width: 100%;
        max-width: none;
        padding-right: 0;
        padding-bottom: 15px; /* gap + filet horizontal */
    }

    /* Pleine largeur, hauteur inchangée (ex-420×3/4) — cover crope le surplus */
    .home-hero__spotlight-media {
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
        height: 315px;
    }

    /* Flèches sur la zone image, pas sur le bandeau texte */
    .home-more__arrow {
        top: 110px;
    }

    .home-hero__liseret--spotlight {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        height: var(--hero-liseret-width);
    }

    .home-hero__spotlight--live .home-hero__spotlight-body,
    .home-hero__spotlight--actu .home-hero__spotlight-body {
        padding: 0 4px 4px;
    }

    .home-pillars {
        padding: 64px 0 56px;
    }

    .home-pillars__intro {
        margin-bottom: 0.5rem;
    }

    .site-footer__col--brand,
    .site-footer__col--infos,
    .site-footer__col--links {
        margin-bottom: 2.5rem;
    }

    .site-footer__col--brand {
        order: -1;
    }

    .site-footer__logo-img {
        max-width: 200px;
    }

    .home-laws__form {
        grid-template-columns: 1fr 1fr;
    }

    .home-laws__field--keyword,
    .home-laws__submit {
        grid-column: 1 / -1;
    }

    .home-sessions__title {
        font-size: 1.75rem;
    }

    .home-sessions__content {
        gap: 1.25rem;
    }

}

@media screen and (min-width: 576px) and (max-width: 767px) {
    .home-pillars__card {
        height: 295px; /* 270 + 25 */
    }
}

@media screen and (max-width: 575px) {
    /* Spotlight : ratio 4/3 d’origine (plus de hauteur fixe 315px) */
    .home-hero__spotlight-media {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    /* Piliers : 1 colonne, hauteur selon le texte */
    .home-pillars__row > [class*="col-"]:not(.home-pillars__intro) {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .home-pillars__row > [class*="col-"]:not(.home-pillars__intro):nth-last-child(-n+2) {
        margin-bottom: 24px;
    }

    .home-pillars__row > [class*="col-"]:not(.home-pillars__intro):last-child {
        margin-bottom: 0;
    }

    .home-pillars__card {
        height: auto;
    }

    .home-news__card-title {
        font-size: 1.0625rem; /* 17px */
    }

    /* Lois : titre + lien empilés (évite le titre 3 lignes + lien coincé à droite) */
    .home-laws__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media screen and (max-width: 767px) {

    .home-hero__cards-left {
        grid-template-columns: 1fr;
    }

    .home-hero__spotlight--ecoute {
        padding: 20px;
        gap: 14px;
    }

    .home-hero__search-input {
        padding: 12px 16px;
    }

    .home-hero__search-btn {
        width: var(--hero-search-height);
    }

    .home-pillars__card-title {
        font-size: 1.2rem;
    }

    .home-news__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-laws__panel {
        padding: 1.5rem 1.25rem 1.5rem;
    }

    .home-laws__item {
        grid-template-columns: 3.5rem 1.25rem minmax(0, 1fr) 1.25rem;
        column-gap: 0.65rem;
        padding: 1.25rem 0;
    }

    .home-laws__list {
        --laws-rail-x: calc(3.5rem + 0.65rem + 0.625rem);
    }

    .home-laws__form {
        grid-template-columns: 1fr;
    }

    .home-laws__field--keyword,
    .home-laws__submit {
        grid-column: auto;
    }

    .home-city {
        padding-bottom: 2.5rem;
    }

    .home-city__content {
        padding-top: 10rem;
    }

    .home-city__box {
        padding: 3.25rem 1.5rem 2rem;
    }

    .home-city__badge {
        width: 84px;
        height: 84px;
    }

    .home-city__title {
        font-size: 1.375rem; /* 22px */
    }

}


/*
 * Landing — page enfant de 1er niveau
 * Bandeau : intro flush gauche + actus (padding 60, aligné grid BS à droite)
 * -----------------------------
 */

.main-landing {
    background: var(--color-white);
}

.landing-top {
    --landing-top-h: 500px; /* était 550px — calé après images actus 280px */
    --landing-news-pad: 60px;
    --landing-container: 960px; /* Bootstrap lg — surchargé aux breakpoints */
    --landing-gutter: 1.5rem;
    padding: 0;
    background: var(--color-white);
}

.landing-top__layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.landing-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border-radius: 0;
    overflow: hidden;
    color: var(--color-white);
}

/* Liseret or bas — 10px */
.landing-intro::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 10px;
    background: var(--color-gold);
}

.landing-intro__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.landing-intro__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Template Landing uniquement — image bannière en N&B */
.main-landing .landing-intro__img {
    filter: grayscale(100%);
}

.landing-intro__overlay {
    position: absolute;
    inset: 0;
    background: rgba(196, 58, 53, 0.9); /* était 0.82 */
}

.landing-intro__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* Mobile : resserré ; desktop calé maquette ci-dessous */
    padding: 2.5rem 1.5rem calc(1.5rem + 10px);
    min-height: 0;
    box-sizing: border-box;
}

.landing-intro__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    /* Boîte fixe = pas de décalage de layout en attendant le kit FA */
    width: 3.125rem; /* = font-size maquette */
    height: 3.125rem;
    margin: 0;
    color: var(--color-gold);
    font-size: 3.125rem; /* 50px — maquette */
    line-height: 1;
    overflow: visible;
}

/* <i> FA (webfont) ou SVG injecté par le kit */
.landing-intro__icon i,
.landing-intro__icon .svg-inline--fa {
    display: block;
    width: 1em;
    height: 1em;
    font-size: inherit;
    line-height: 1;
    overflow: visible;
}
.landing-intro__rule {
    display: block;
    flex-shrink: 0;
    width: 3.25rem; /* ~52px — largeur proche de l’icône */
    height: 1px;
    margin: 1.75rem 0; /* ~28px / côté */
    background: var(--color-white);
}

.landing-intro__title {
    margin: 0 0 1.5rem; /* ~24px → corps */
    font-family: var(--font-sans); /* Lato — maquette */
    font-size: 1.5625rem; /* 25px */
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-white);
}

.landing-intro__text {
    margin: 0;
    max-width: none; /* suit la largeur du bloc rouge (paddings du content) */
    font-family: var(--font-sans);
    font-size: var(--font-size-body); /* 15px — corps site */
    font-weight: 400;
    /* Un cran plus serré que --line-height-body (1.533) : même logique que le hero */
    line-height: var(--line-height-hero-text); /* 1.45 */
    text-align: justify;
    color: var(--color-white);
}

.landing-intro__text > *:first-child {
    margin-top: 0;
}

.landing-intro__text > *:last-child {
    margin-bottom: 0;
}

.landing-intro__text p {
    margin: 0 0 1em;
    text-align: justify;
    color: inherit;
}

.landing-intro__text p:last-child {
    margin-bottom: 0;
}

/* Breadcrumbs Yoast — bas du bloc intro */
.landing-intro #breadcrumbs {
    margin: auto 0 0;
    padding-top: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-white);
}

.landing-intro #breadcrumbs a {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-intro #breadcrumbs a:hover {
    color: var(--color-gold-light);
}

.landing-intro #breadcrumbs .breadcrumb_last {
    color: var(--color-white);
    font-weight: 400;
}

.landing-news {
    min-width: 0;
    position: relative;
    overflow: visible;
    background: var(--color-white);
}

.landing-news__inner {
    height: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.landing-news__slider {
    position: relative;
    padding-inline: 0;
    overflow: visible;
    --landing-news-media-h: 280px; /* était 330px (~−15 %) */
}

.landing-news__card {
    padding: 0 10px;
}

/* Image fixe — pas d’agrandissement/réduction via aspect-ratio */
.landing-news .home-news__card-media-clip {
    height: 280px;
}

.landing-news .home-news__card-media {
    width: 100%;
    height: 280px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

.landing-news__slider .slick-list {
    overflow: hidden;
}

.landing-news__slider .slick-track {
    display: flex;
}

.landing-news__slider .slick-slide {
    height: auto;
}

.landing-news__slider .slick-slide > div {
    height: 100%;
}

/* Flèches pastilles rouges — centrées verticalement sur l’image, « mordent » les bords */
.landing-news__arrow {
    position: absolute;
    top: calc(var(--landing-news-media-h, 40%) / 2);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.landing-news__arrow:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
}

.landing-news__arrow i {
    font-size: 0.9rem;
    line-height: 1;
}

/* 10px = padding carte ; prev un peu plus dehors que next */
.landing-news__arrow.slick-prev {
    left: 10px;
    transform: translate(-75%, -50%);
}

.landing-news__arrow.slick-next {
    right: 10px;
    transform: translate(50%, -50%);
}

.landing-news__arrow.slick-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Desktop : intro flush gauche sous header, actus calées sur la grid BS à droite */
@media screen and (min-width: 992px) {
    .landing-top {
        height: var(--landing-top-h);
        overflow: hidden;
    }

    .landing-top__layout {
        /* Bord droit = contenu .container BS (marge + demi-gouttière) */
        --landing-side: calc(
            (100vw - min(100vw, var(--landing-container))) / 2
            + (var(--landing-gutter) * 0.5)
        );
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); /* intro ~+15 %, actus ~−15 % */
        height: var(--landing-top-h);
        padding-right: var(--landing-side);
    }

    .landing-intro {
        height: 100%;
        min-height: 0;
    }

    .landing-intro__content {
        /* Gauche = bord contenu .container (comme domaines en bas) ; haut/droite/bas = maquette */
        --landing-pad-left: calc(
            (100vw - min(100vw, var(--landing-container))) / 2
            + (var(--landing-gutter) * 0.5)
        );
        /* ≤1399 : paddings maquette réduits de 60% (≈40 % restant) — base 94 / 120 / 60 → 38 / 48 / 24 */
        padding: 2.375rem 3rem 1.5rem max(20px, var(--landing-pad-left));
    }

    .landing-news {
        height: 100%;
    }

    .landing-news__inner {
        /* Maquette : 60px haut + gauche ; droite calée par le layout */
        padding: var(--landing-news-pad) 0 1.5rem var(--landing-news-pad);
    }
}

@media screen and (min-width: 1200px) {
    .landing-top {
        --landing-container: 1140px; /* Bootstrap xl */
    }
}

@media screen and (min-width: 1400px) {
    .landing-top {
        --landing-container: 1680px; /* override projet */
    }

    .landing-top__layout {
        /* XXL : intro élargie (~+15 % vs 36vw) */
        grid-template-columns: minmax(320px, 41.4vw) minmax(0, 1fr);
    }

    .landing-intro__content {
        /* 1400–1599 : paddings maquette verticaux/droite ≈70 % ; gauche = grille container */
        padding-top: 4.125rem;
        padding-right: 5.25rem;
        padding-bottom: 2.625rem;
        padding-left: max(20px, var(--landing-pad-left));
    }
}

@media screen and (min-width: 1600px) {
    .landing-intro__content {
        /* ≥1600 : paddings maquette verticaux/droite complets ; gauche = grille container */
        padding-top: 5.875rem;
        padding-right: 7.5rem;
        padding-bottom: 3.75rem;
    }
}

.landing-domains {
    padding: 5rem 0; /* 80px — même logique que .home-pillars / .home-more */
    background: var(--bg-light); /* gris clair charte */
}

.landing-domains__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.landing-domains__card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md); /* 4px — standard projet */
    overflow: hidden;
    background: var(--color-white);
    color: var(--text-dark);
    border: 0;
    box-shadow: none;
}

.landing-domains__card:hover {
    color: var(--text-dark);
}

.landing-domains__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9; /* était 16 / 11 */
    overflow: hidden;
}

.landing-domains__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-domains__card:hover .landing-domains__media img {
    transform: scale(1.014);
}

.landing-domains__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    /* 20px autour du liseret (haut / bas / gauche) ; 20px aussi entre liseret et texte */
    padding: 20px 20px 20px 42px; /* 20 + 2 (liseret) + 20 */
    background: var(--color-white);
    border: 0;
    border-radius: 0;
}

/* Liseret or inset — pas collé, pas full-height du footer */
.landing-domains__footer::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    background: var(--color-gold);
    pointer-events: none;
}

.landing-domains__card-title {
    font-family: var(--font-sans); /* Lato */
    font-size: 1.05rem; /* 18px */
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-black);
}

.landing-domains__arrow {
    flex-shrink: 0;
    color: var(--color-red);
    font-size: 0.85rem;
    line-height: 1;
    transition: transform 0.1s ease;
}

.landing-domains__card:hover .landing-domains__arrow {
    transform: translateX(3px);
}

/*
 * Landing « À votre écoute » — 2 premiers enfants mis en avant
 * (2 col. : image gauche + contenu droite), puis grille classique
 */
.landing-domains__featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.landing-domains__card--featured {
    flex-direction: column;
}

.landing-domains__card--featured .landing-domains__media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.landing-domains__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    padding: 34px 34px 34px 41px; /* base 24/26 + 10/15 ; liseret collé image */
    background: var(--color-white);
}

.landing-domains__aside::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--color-gold);
    pointer-events: none;
}

.landing-domains__excerpt {
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
}

.landing-domains__excerpt > *:first-child {
    margin-top: 0;
}

.landing-domains__excerpt > *:last-child {
    margin-bottom: 0;
}

.landing-domains__excerpt p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.landing-domains__more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9375rem;
}

.landing-domains__card--featured:hover .landing-domains__more {
    color: var(--color-red-hover);
}

.landing-domains__card--featured:hover .landing-domains__more i {
    transform: translateX(3px);
}

.landing-domains__card--featured .landing-domains__card-title {
    font-size: 1.2rem;
    line-height: 1.4rem;
}

.landing-domains__card--featured:hover .landing-domains__card-title {
    color: var(--color-red);
}

@media screen and (min-width: 768px) {
    .landing-domains__featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
        margin-bottom: 1.35rem;
    }

    .landing-domains__card--featured {
        flex-direction: row;
        align-items: stretch;
        min-height: 240px;
    }

    .landing-domains__card--featured .landing-domains__media {
        flex: 0 0 48%;
        width: 48%;
        aspect-ratio: auto;
        min-height: 100%;
        align-self: stretch;
    }

    .landing-domains__aside {
        justify-content: center;
        padding: 38px 38px 38px 45px; /* base 28/30 + 10/15 */
    }
}

@media screen and (min-width: 1200px) {
    .landing-domains__card--featured {
        min-height: 280px;
    }

    .landing-domains__card--featured .landing-domains__media {
        flex-basis: 52%;
        width: 52%;
    }

    .landing-domains__featured {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Grille domaines : 1 (< MD) → 2 (MD–LG) → 3 (LG–XL) → 4 (≥ XL) */
@media screen and (min-width: 768px) {
    .landing-domains__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.35rem;
    }
}

@media screen and (min-width: 992px) {
    .landing-domains__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (min-width: 1200px) {
    .landing-domains__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .landing-top {
        --landing-container: 720px; /* Bootstrap md — surchargé ci-dessous */
        --landing-pad-x: calc(
            (100vw - min(100vw, var(--landing-container))) / 2
            + (var(--landing-gutter) * 0.5)
        );
    }

    .landing-top__layout {
        padding: 0;
    }

    .landing-intro {
        min-height: 380px;
    }

    /* Contenu calé grid ; fond rouge (.landing-intro) pleine largeur */
    .landing-intro__content {
        padding: 3rem var(--landing-pad-x) calc(1.75rem + 10px);
    }

    .landing-intro__rule {
        margin: 1.35rem 0;
    }

    .landing-news__inner {
        width: min(100%, var(--landing-container));
        max-width: var(--landing-container);
        margin-inline: auto;
        padding: 1.75rem calc(var(--landing-gutter) * 0.5) 2rem;
        box-sizing: border-box;
    }

    /* Pas de flush-left accueil : cartes calées sur la grid */
    .landing-news__slider .slick-slide:first-child .home-news__card.landing-news__card {
        padding-left: 0;
    }

    .landing-news__card {
        padding: 0;
    }

    .landing-news__slider {
        --landing-news-media-h: 250px;
    }

    .landing-news .home-news__card-media-clip {
        height: 250px;
    }

    .landing-news .home-news__card-media {
        height: 250px;
    }

    .landing-news__arrow.slick-prev {
        left: 0;
        transform: translate(0, -50%);
    }

    .landing-news__arrow.slick-next {
        right: 0;
        transform: translate(0, -50%);
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    /*
     * 2 cartes : gouttière Slick classique (list −gutter / slides +gutter)
     * → bords calés container, espace 24px entre cartes.
     */
    .landing-news__slider .slick-list {
        margin-inline: calc(var(--landing-gutter) * -0.5);
        width: calc(100% + var(--landing-gutter));
    }

    .landing-news__slider .slick-slide {
        padding: 0 calc(var(--landing-gutter) * 0.5);
        box-sizing: border-box;
    }

    .landing-news__slider .slick-slide .landing-news__card {
        padding: 0;
    }

    .landing-news__arrow.slick-prev {
        left: calc(var(--landing-gutter) * 0.5);
        transform: translate(-50%, -50%);
    }

    .landing-news__arrow.slick-next {
        right: calc(var(--landing-gutter) * 0.5);
        transform: translate(50%, -50%);
    }
}

@media screen and (max-width: 767px) {
    .landing-top {
        --landing-container: 540px; /* Bootstrap sm */
    }

    .landing-news__arrow.slick-prev {
        left: 12px;
        transform: translate(0, -50%);
    }

    .landing-news__arrow.slick-next {
        right: 12px;
        transform: translate(0, -50%);
    }
}

@media screen and (max-width: 575px) {
    .landing-top {
        --landing-container: 100vw; /* fluid <576 */
    }

    .landing-intro {
        min-height: 0;
    }

    .landing-intro__content {
        padding-top: 2rem;
        padding-bottom: calc(1.25rem + 10px);
    }

    .landing-intro__icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2.5rem;
    }

    .landing-intro__rule {
        width: 2.5rem;
        margin: 1.15rem 0;
    }

    .landing-news__inner {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }

    .landing-news__arrow {
        top: calc(var(--landing-news-media-h) / 2); /* centre vertical image */
    }

    .landing-domains {
        padding: 3.5rem 0; /* un cran sous 80px en mobile */
    }
}

@media screen and (max-width: 767px) {
    .landing-domains__card-title {
        font-size: 1rem; /* 16px — un cran sous le 18px (≥ MD) */
    }
}

/*
 * Landing enfants (tpl-landing-enfants.php)
 * + Commissions (tpl-commissions.php) — mêmes listes / lede
 * Liste ACTIVE + variante boxes
 * -----------------------------
 */

.sublanding {
    min-width: 0;
}

/* Texte d’intro corps (avant la liste) — placeholder ACF */

.sublanding-lede {
    margin: 0 0 50px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-hero-text);
    text-align: justify;
    color: var(--text-dark);
}

.sublanding-lede > *:first-child {
    margin-top: 0;
}

.sublanding-lede > *:last-child {
    margin-bottom: 0;
}

.sublanding-lede p {
    margin: 0 0 1em;
}

.sublanding-lede p:last-child {
    margin-bottom: 0;
}

/* Groupes (tpl-commissions.php — permanentes / spéciales) */

.sublanding-group {
    margin: 0 0 48px;
    min-width: 0;
}

.sublanding-group:last-child {
    margin-bottom: 0;
}

.sublanding-group__header {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-gold);
}

.sublanding-group__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-red);
}

/* ----- Variante ACTIVE : liste élégante ----- */

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

.sublanding-list__item {
    margin: 0;
    border-bottom: 1px solid rgba(40, 40, 40, 0.1);
}

.sublanding-list__item:first-child {
    border-top: 1px solid rgba(40, 40, 40, 0.1);
}

.sublanding-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 8px 22px 18px;
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sublanding-list__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: var(--color-gold);
    transition: background-color 0.2s ease;
}

.sublanding-list__link:hover {
    color: var(--color-red);
    background: rgba(196, 58, 53, 0.04);
}

.sublanding-list__link:hover::before {
    background: var(--color-red);
}

.sublanding-list__title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.sublanding-list__arrow {
    flex-shrink: 0;
    color: var(--color-red);
    font-size: 0.875rem;
    line-height: 1;
    transition: transform 0.1s ease;
}

.sublanding-list__link:hover .sublanding-list__arrow {
    transform: translateX(3px);
}

/* ----- Variante : boxes / tuiles ----- */

.sublanding-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.sublanding-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 22px 28px;
    position: relative;
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sublanding-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--color-gold);
    transition: background-color 0.2s ease;
}

.sublanding-box:hover {
    color: var(--color-red);
    border-color: rgba(196, 58, 53, 0.28);
    background: rgba(196, 58, 53, 0.03);
}

.sublanding-box:hover::before {
    background: var(--color-red);
}

.sublanding-box__title {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.sublanding-box__arrow {
    flex-shrink: 0;
    color: var(--color-red);
    font-size: 0.875rem;
    line-height: 1;
    transition: transform 0.1s ease;
}

.sublanding-box:hover .sublanding-box__arrow {
    transform: translateX(3px);
}

@media screen and (min-width: 768px) {
    .sublanding-list__link {
        padding: 26px 12px 26px 22px;
    }

    .sublanding-list__title {
        font-size: 1.1rem;
    }

    .sublanding-boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .sublanding-box {
        min-height: 96px;
        padding: 24px 24px 24px 30px;
    }
}

@media screen and (max-width: 575px) {
    .sublanding-list__link {
        padding: 18px 4px 18px 16px;
    }

    .sublanding-list__title,
    .sublanding-box__title {
        font-size: 1rem;
    }
}


/*
 * Page standard (page.php)
 * Intro + corps 3/4 modules + 1/4 sidenav
 * -----------------------------
 */

.main-page {
    background: var(--color-white);
}

/* ----- Intro -----
 * Variante ACTIVE : bandeau rouge + textes blancs (zone texte / fil d’Ariane desktop).
 * Variante grise commentée en fin de bloc .page-intro__content.
 */

.page-intro {
    --page-intro-container: 960px;
    --page-intro-gutter: 24px;
    /* 48 % textes / 52 % image */
    --page-intro-img-w: 52%;
    background: var(--color-red);
}

.page-intro__layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    background: var(--color-red);
}

.page-intro__content {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 40px 24px 32px;
    background: var(--color-red);
    min-height: 0;
    min-width: 0; /* évite le débordement grid */
}

.page-intro__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-serif);
    font-size: 2rem; /* 32px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-white);
}

.page-intro__text {
    margin: 0 0 1.75rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-hero-text);
    text-align: justify;
    color: var(--color-white);
    overflow-wrap: break-word;
}

.page-intro__text > *:first-child {
    margin-top: 0;
}

.page-intro__text > *:last-child {
    margin-bottom: 0;
}

.page-intro__text p {
    margin: 0 0 1em;
    text-align: justify;
}

.page-intro #breadcrumbs,
.page-intro__breadcrumbs {
    margin: auto 0 0;
    padding-top: 24px;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
}

.page-intro #breadcrumbs a,
.page-intro__breadcrumbs a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-intro #breadcrumbs a:hover,
.page-intro__breadcrumbs a:hover {
    color: var(--color-white);
}

.page-intro #breadcrumbs .breadcrumb_last,
.page-intro__breadcrumbs .breadcrumb_last {
    color: var(--color-white);
    font-weight: 600;
}

.page-intro__media {
    position: relative;
    z-index: 1;
    min-height: 240px;
    overflow: hidden;
    background: var(--placeholder-bg);
}

.page-intro__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/*
 * Desktop : 2 colonnes (texte | image) — le texte ne peut pas chevaucher l’image.
 * Padding gauche calé sur le bord du contenu modules (container + col-lg-9 + col-xl-10).
 */
@media screen and (min-width: 992px) {
    .page-intro__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, var(--page-intro-img-w));
        min-height: 340px;
    }

    .page-intro__content {
        /* bord gauche ≈ .page-body modules (col-xl-10 centré dans col-lg-9) */
        --page-intro-pad-left: calc(
            (100vw - min(100vw, var(--page-intro-container))) / 2
            + (var(--page-intro-gutter) * 0.5)
            + ((min(100vw, var(--page-intro-container)) - var(--page-intro-gutter)) * 0.75 / 12)
        );
        /* padding droit : aération avant l’image */
        padding: 56px 64px 40px max(20px, var(--page-intro-pad-left));
        min-height: 340px;
        min-width: 0;
        box-shadow: 0 0 0 100vmax var(--color-red);
        clip-path: inset(0 0 0 -100vmax);
    }

    .page-intro__title {
        font-size: 2.5rem; /* 40px */
    }

    .page-intro__media {
        position: relative;
        min-height: 100%;
        height: auto;
        width: 100%;
    }

    .page-intro__img {
        position: absolute;
        inset: 0;
        min-height: 0;
        height: 100%;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .page-intro__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* 50 / 50 */
    }

    .page-intro__content {
        padding-right: 50px; /* vs 64px en desktop ≥1200 */
    }
}

/*
 * Tablette + mobile paysage (576–991) : image intro plafonnée (pas pleine hauteur naturelle).
 */
@media screen and (min-width: 576px) and (max-width: 991px) {
    .page-intro__media {
        min-height: 0;
    }

    .page-intro__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .page-intro__media {
        height: clamp(12rem, 32vw, 20rem); /* ~192–320px */
    }
}

@media screen and (min-width: 576px) and (max-width: 767px) {
    .page-intro__media {
        height: clamp(14rem, 38vw, 24rem); /* ~224–384px — un peu plus haute qu’en tablette */
    }
}

@media screen and (min-width: 1200px) {
    .page-intro {
        --page-intro-container: 1140px;
    }
}

@media screen and (min-width: 1400px) {
    .page-intro {
        --page-intro-container: 1680px;
    }

    .page-intro__layout {
        min-height: 400px;
    }

    .page-intro__content {
        min-height: 400px;
        padding-top: 64px;
        padding-bottom: 48px;
        padding-right: 100px;
    }
}

/*
 * ≤1399 (≥992) : intro + contenu en pleine largeur utile (col-12),
 * sans retrait col-xl-10 / marge gauche calée sur le 9/12.
 */
@media screen and (min-width: 992px) and (max-width: 1399px) {
    .page-intro__content {
        --page-intro-pad-left: calc(
            (100vw - min(100vw, var(--page-intro-container))) / 2
            + (var(--page-intro-gutter) * 0.5)
        );
        padding-left: max(20px, var(--page-intro-pad-left));
    }
}

/*
 * ≤991 : textes + image intro calés sur la grille Bootstrap (.container page-body).
 */
@media screen and (max-width: 991px) {
    .page-intro {
        --page-intro-container: 720px; /* Bootstrap md (768–991) — surchargé ci-dessous */
        --page-intro-pad-x: calc(
            (100vw - min(100vw, var(--page-intro-container))) / 2
            + (var(--page-intro-gutter) * 0.5)
        );
    }

    .page-intro__content {
        display: contents;
    }

    .page-intro__title {
        order: 1;
        margin-bottom: 0;
        padding: 40px var(--page-intro-pad-x) 0;
        background: var(--color-red);
        color: var(--color-white);
        box-shadow: 0 0 0 100vmax var(--color-red);
        clip-path: inset(0 -100vmax);
    }

    .page-intro__text {
        order: 2;
        margin-bottom: 0;
        padding: 20px var(--page-intro-pad-x) 32px;
        background: var(--color-red);
        color: var(--color-white);
        box-shadow: 0 0 0 100vmax var(--color-red);
        clip-path: inset(0 -100vmax);
    }

    .page-intro__media {
        order: 3;
        box-sizing: border-box;
        width: calc(100% - (2 * var(--page-intro-pad-x)));
        margin-inline: var(--page-intro-pad-x);
        border-radius: var(--radius-md);
        background: transparent;
    }

    .page-intro #breadcrumbs,
    .page-intro__breadcrumbs {
        order: 4;
        margin: 0;
        padding: 24px var(--page-intro-pad-x) 0;
        color: rgba(255, 255, 255, 0.78);
    }

    .page-intro #breadcrumbs a,
    .page-intro__breadcrumbs a {
        color: rgba(255, 255, 255, 0.78);
    }

    .page-intro #breadcrumbs a:hover,
    .page-intro__breadcrumbs a:hover {
        color: var(--color-white);
    }

    .page-intro #breadcrumbs .breadcrumb_last,
    .page-intro__breadcrumbs .breadcrumb_last {
        color: var(--color-white);
    }

    .page-intro__layout {
        padding-bottom: 35px; /* aère le fil d’Ariane sur le fond rouge */
    }
}

/*
 * Variante : fond gris clair + textes sombres
 *
.page-intro,
.page-intro__layout {
    background: var(--bg-light);
}
.page-intro__content {
    background: var(--bg-light);
    box-shadow: none;
    clip-path: none;
}
.page-intro__title,
.page-intro__text {
    color: var(--text-dark);
}
.page-intro #breadcrumbs,
.page-intro__breadcrumbs {
    color: var(--text-muted);
}
.page-intro #breadcrumbs a,
.page-intro__breadcrumbs a {
    color: var(--text-muted);
}
.page-intro #breadcrumbs a:hover,
.page-intro__breadcrumbs a:hover {
    color: var(--color-red);
}
.page-intro #breadcrumbs .breadcrumb_last,
.page-intro__breadcrumbs .breadcrumb_last {
    color: var(--text-dark);
}
@media screen and (max-width: 991px) {
    .page-intro__title,
    .page-intro__text {
        background: var(--bg-light);
        box-shadow: none;
        clip-path: none;
    }
}
@media screen and (min-width: 992px) {
    .page-intro__content {
        box-shadow: none;
        clip-path: none;
    }
}
 */

@media screen and (max-width: 767px) {
    .page-intro {
        --page-intro-container: 540px; /* Bootstrap sm (576–767) */
    }
}

@media screen and (max-width: 575px) {
    .page-intro {
        --page-intro-container: 100vw; /* fluid <576 */
    }
}

@media screen and (max-width: 1399px) {
    .page-body__main .col-11.col-xl-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* ----- Corps ----- */

.page-body {
    --page-body-container: 960px;
    padding: 3.5rem 0 5rem;
    background: var(--color-white);
}

.page-body__row {
    align-items: stretch;
}

.page-body__main {
    min-width: 0;
}

/* Modules parent souvent en .container pleine largeur : on les restreint à la colonne */
.page-content .module > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.page-content__placeholder {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}

.page-content__placeholder:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.page-content__placeholder-label {
    margin: 0 0 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-red);
}

.page-content__placeholder p {
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-dark);
}

.page-content__placeholder p:last-child {
    margin-bottom: 0;
}

/* ----- Sidenav rubrique ----- */

.page-sidenav-bar {
    display: none;
}

.page-sidenav {
    position: sticky;
    top: calc(var(--header-height-sticky) + 1.5rem);
    padding: 0 0 2rem;
}

.page-sidenav__heading {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-dark);
}

.page-sidenav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Separateurs horizontaux uniquement sur le niveau 1 */
.page-sidenav__list > .page-sidenav__item {
    margin: 0;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
    /* un seul liseret (parent + sous-enfants) ; gris discret au repos, rouge 2px à l’actif */
    border-left: 1px solid rgba(40, 40, 40, 0.08);
    transition: border-color 0.2s ease, border-width 0.15s ease;
}

.page-sidenav__list > .page-sidenav__item > a {
    display: block;
    padding: 0.85rem 0.75rem 0.85rem calc(0.85rem + 5px);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.page-sidenav__list > .page-sidenav__item > a:hover {
    color: var(--color-red);
}

.page-sidenav__list > .page-sidenav__item.is-active {
    border-left-width: 2px;
    border-left-color: var(--color-red);
}

.page-sidenav__list > .page-sidenav__item.is-active > a {
    color: var(--color-red);
    background: rgba(196, 58, 53, 0.06);
    font-weight: 700;
}

/* Parent d’une page enfant active : même liseret rouge descendu sur les sous-items */
.page-sidenav__list > .page-sidenav__item.is-ancestor {
    border-left-width: 2px;
    border-left-color: var(--color-red);
}

.page-sidenav__list > .page-sidenav__item.is-ancestor > a {
    color: var(--color-red);
}

/*
 * Niveau 2 : retrait + petite barre horizontale depuis le liseret parent (style arbre).
 */
.page-sidenav__sublist {
    --page-sidenav-child-indent: 0.85rem;
    list-style: none;
    margin: 0 0 0.65rem 0;
    padding: 0.15rem 0 0.45rem var(--page-sidenav-child-indent);
}

.page-sidenav__item--child {
    position: relative;
    margin: 0;
    border: 0;
}

/* Tick horizontal depuis le filet vertical parent → vers le libellé */
.page-sidenav__item--child::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--page-sidenav-child-indent));
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(40, 40, 40, 0.1);
    transform: translateY(-50%);
    pointer-events: none;
}

.page-sidenav__item--child a {
    display: block;
    padding: 0.4rem 0.5rem 0.4rem calc(0.15rem + 8px); /* +8px vs niveau 1 */
    font-family: var(--font-sans);
    font-size: 0.9125rem; /* ~14.6px */
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    text-decoration: none;
    border: 0;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.page-sidenav__item--child a:hover {
    color: var(--color-red);
}

.page-sidenav__item--child.is-active a {
    color: var(--color-red);
    font-weight: 700;
    background: rgba(196, 58, 53, 0.06);
}

@media screen and (min-width: 992px) {
    .page-body {
        --page-body-pad-y: 5rem;
        padding: var(--page-body-pad-y) 0; /* 80px */
    }

    /*
     * Fond gris 1/4 : hauteur pleine section (pad vertical inclus)
     * + débord jusqu’au bord droit du viewport (hors container).
     */
    .page-body__aside {
        position: relative;
        z-index: 0;
        margin-top: calc(-1 * var(--page-body-pad-y));
        margin-bottom: calc(-1 * var(--page-body-pad-y));
        padding-top: var(--page-body-pad-y);
        padding-bottom: var(--page-body-pad-y);
        padding-left: calc(1.5rem + 50px); /* aère la nav depuis le bord colonne content */
        background: var(--bg-light);
    }

    .page-body__aside::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        /* column + marge droite hors container */
        width: calc(
            100%
            + (100vw - min(100vw, var(--page-body-container))) / 2
        );
        background: var(--bg-light);
        z-index: -1;
        pointer-events: none;
    }
}

/*
 * 992–1399 (desktop intermédiaire) : contenu aéré à droite, sidenav inset 35px.
 * Placé après le bloc ≥992 pour que l’override prenne effet (cascade).
 */
@media screen and (max-width: 1399px) and (min-width: 992px) {
    .page-body__main .col-11.col-xl-10 {
        padding-right: calc(1.5rem + 35px); /* ~59px — séparation vs sidenav */
    }

    .page-body__aside {
        padding-left: 35px;
        padding-right: 5px;
    }
}

@media screen and (min-width: 1200px) {
    .page-body {
        --page-body-container: 1140px;
    }
}

@media screen and (min-width: 1400px) {
    .page-body {
        --page-body-container: 1680px; /* override projet */
    }
}

/*
 * 1400–1750 : sidenav aérée (~50px) des bords colonne + viewport droit.
 * Au-delà de 1750, la marge viewport suffit ; ≤1399 → règle intermédiaire dédiée.
 */
@media screen and (min-width: 1400px) and (max-width: 1750px) {
    .page-body__aside {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media screen and (max-width: 991px) {
    .page-sidenav-bar {
        display: block;
        margin-top: -15px;
        margin-bottom: calc(1.75rem + 15px);
    }

    .page-body__aside--desktop {
        display: none !important;
    }

    .page-body__aside--mobile {
        margin: 0;
        padding: 0 1rem;
        /* bg-light intro (#F8F7F6) éclairci vers le blanc */
        background: color-mix(in srgb, var(--color-white) 62%, var(--bg-light));
        border: 1px solid rgba(196, 58, 53, 0.16);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .page-body__aside--mobile::before {
        content: none;
        display: none;
    }

    .page-sidenav-bar .page-sidenav {
        position: static;
        top: auto;
        padding-bottom: 0;
    }

    .page-sidenav--collapsible.is-expanded .page-sidenav {
        padding-bottom: 0.35rem;
    }

    .page-sidenav--collapsible .page-sidenav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        margin: 0;
        padding: 1rem 0.15rem;
        border: 0;
        border-bottom: 2px solid var(--color-gold);
        background: transparent;
        font-family: var(--font-sans);
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.3;
        text-transform: uppercase;
        text-align: left;
        color: var(--text-dark);
        cursor: pointer;
    }

    .page-sidenav--collapsible:not(.is-expanded) .page-sidenav__toggle {
        border-bottom: 0;
    }

    .page-sidenav--collapsible .page-sidenav__toggle-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-sidenav--collapsible .page-sidenav__toggle-icon {
        flex-shrink: 0;
        font-size: 0.85rem;
        color: var(--color-red);
        transition: transform 0.2s ease;
    }

    .page-sidenav--collapsible.is-expanded .page-sidenav__toggle-icon {
        transform: rotate(180deg);
    }

    .page-sidenav--collapsible .page-sidenav__panel {
        padding-top: 0.25rem;
    }

    .page-sidenav--collapsible .page-sidenav__panel[hidden] {
        display: none;
    }
}

@media screen and (min-width: 992px) {
    .page-sidenav-bar {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .page-intro__title {
        font-size: 1.75rem; /* 28px */
        padding-top: 32px;
    }

    .page-body {
        padding: 2.5rem 0 3.5rem;
    }
}

/*
 * Équipe permanente — pôles + fiches personnes
 * Langage : Lato, liseret or, filets discrets, grille 2 col (pas de cards)
 * -----------------------------
 */

.team {
    min-width: 0;
}

/* ----- Recherche instantanée ----- */

.team-search {
    margin: 0 0 1.65rem;
}

.team-search__field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 3.25rem; /* 52px — même esprit que hero search */
    padding: 0 1rem 0 1.15rem;
    background: var(--bg-light);
    border: 1px solid rgba(40, 40, 40, 0.1);
    border-radius: var(--radius-pill); /* coins comme barre d’accueil */
    transition: border-color 0.2s ease;
}

.team-search__field:focus-within {
    border-color: var(--color-gold);
}

.team-search__icon {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1;
}

.team-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    color: var(--text-dark);
}

.team-search__input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.team-search__clear {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.team-search__clear:hover {
    color: var(--color-red);
    background: rgba(196, 58, 53, 0.06);
}

.team-search__clear[hidden] {
    display: none !important;
}

.team-search__status {
    margin: 0.65rem 0 0;
    min-height: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

.team-search__status.is-empty {
    color: var(--color-red);
}

/* Surlignage léger des occurrences */
.team-mark {
    background: rgba(217, 183, 120, 0.38); /* or discret */
    color: inherit;
    padding: 0 0.12em;
    border-radius: 1px;
}

.team-person.is-hidden,
.team-pole.is-hidden,
.team-pole__group.is-hidden,
.team-list.is-hidden {
    display: none !important;
}

.team-pole {
    margin: 0 0 3.5rem;
    padding: 0;
}

.team-pole:last-child {
    margin-bottom: 0;
}

.team-pole__header {
    margin: 0 0 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--color-gold);
}

.team-pole__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-dark);
}

.team-pole__email {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-pole__email:hover {
    color: var(--color-red-hover);
}

/* Sous-groupes au sein d’un pôle */
.team-pole__group {
    margin: 2rem 0 1rem;
    padding: 0.15rem 0 0.15rem 0.85rem;
    border-left: 2px solid var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
}

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.team-person {
    margin: 0;
    padding: 1.1rem 0 1.15rem;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}

.team-person:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.team-list > .team-person:first-child {
    padding-top: 0.15rem;
}

.team-person__name {
    margin: 0 0 0.25rem;
    font-family: var(--font-sans);
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

.team-person__firstname {
    font-weight: 400;
}

.team-person__lastname {
    font-weight: 700;
    text-transform: uppercase;
}

.team-person__role {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

.team-person__note {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-muted);
}

.team-person__email {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-person__email:hover {
    color: var(--color-red-hover);
}

@media screen and (min-width: 768px) {
    .team-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2.5rem;
        row-gap: 0;
    }

    /* Filet vertical entre les 2 colonnes + bordures en damier lisible */
    .team-person {
        padding: 1.15rem 0;
        border-bottom: 1px solid rgba(40, 40, 40, 0.08);
    }

    .team-list > .team-person:nth-last-child(-n+2) {
        border-bottom: 0;
        padding-bottom: 0.15rem;
    }

    .team-list > .team-person:nth-child(odd) {
        padding-right: 0.75rem;
    }

    .team-list > .team-person:nth-child(even) {
        padding-left: 0.75rem;
    }
}

@media screen and (min-width: 992px) {
    .team-pole {
        margin-bottom: 4rem;
    }

    .team-pole__title {
        font-size: 1rem; /* 16px */
    }
}

@media screen and (max-width: 575px) {
    .team-pole {
        margin-bottom: 2.75rem;
    }

    .team-person__name {
        font-size: 0.9375rem;
    }
}

/*
 * Anciens présidents — frise chronologique zigzag (portrait 3/4 + mandats)
 * -----------------------------
 */

.presidents {
    min-width: 0;
}

/* ----- Timeline — mobile : filet à gauche ----- */

.presidents-timeline {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0 1.85rem;
    position: relative;
}

.presidents-timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 2px;
    background: var(--color-gold);
}

.president-timeline__item {
    position: relative;
    margin: 0;
    padding: 0 0 1.5rem;
}

.president-timeline__item:last-child {
    padding-bottom: 0;
}

.president-timeline__marker {
    position: absolute;
    left: -1.85rem;
    top: 1.35rem;
    width: 0.9375rem;
    height: 0.9375rem;
    z-index: 1;
}

.president-timeline__dot {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-red);
    border: 2px solid var(--color-red);
    box-shadow: 0 0 0 2px var(--color-white);
}

.president-timeline__card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.15rem;
    min-width: 0;
}

.president-card__media {
    position: relative;
    flex-shrink: 0;
    width: 10.44rem; /* 8.7rem × 1,2 */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--placeholder-bg);
    border-radius: var(--radius-md);
}

.president-card__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 4px;
    background: var(--color-gold);
}

.president-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.president-card__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.15rem 0 0;
}

.president-card__name {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

.president-card__firstname {
    font-weight: 400;
}

.president-card__lastname {
    font-weight: 700;
    text-transform: uppercase;
}

.president-card__dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-red);
}

.president-card__dates i {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.president-card__note {
    margin: 0.45rem 0 0;
    padding-left: 0.85rem;
    border-left: 2px solid var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-muted);
}

/* ----- Timeline zigzag — desktop : axe central, cartes alternées ----- */

@media screen and (min-width: 992px) {
    .presidents-timeline {
        padding: 0.5rem 0 2rem;
    }

    .presidents-timeline::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: 0;
    }

    .president-timeline__item {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: calc(1.25rem + 20px);
        align-items: start;
        padding-bottom: 0;
    }

    /* Chevauchement léger gauche / droite */
    .president-timeline__item + .president-timeline__item {
        margin-top: -2.5rem;
    }

    .president-timeline__marker {
        position: relative;
        left: auto;
        top: auto;
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin-top: 0.65rem;
        width: 1.0625rem;
        height: 1.0625rem;
    }

    /* Petit tiret or dot → carte */
    .president-timeline__marker::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 1.35rem;
        height: 1px;
        background: var(--color-gold);
        transform: translateY(-50%);
    }

    .president-timeline__item:nth-child(odd) .president-timeline__marker::after {
        right: 100%;
        margin-right: 0.35rem;
    }

    .president-timeline__item:nth-child(even) .president-timeline__marker::after {
        left: 100%;
        margin-left: 0.35rem;
    }

    .president-timeline__card {
        position: relative;
        grid-row: 1;
        width: 100%;
        max-width: none;
        padding: 0;
        background: transparent;
        box-sizing: border-box;
    }

    /* Impair : carte pleine largeur colonne gauche, portrait côté axe */
    .president-timeline__item:nth-child(odd) .president-timeline__card {
        grid-column: 1;
        justify-self: stretch;
        flex-direction: row-reverse;
    }

    .president-timeline__item:nth-child(odd) .president-card__body {
        text-align: right;
    }

    .president-timeline__item:nth-child(odd) .president-card__dates {
        justify-content: flex-end;
    }

    .president-timeline__item:nth-child(odd) .president-card__note {
        padding-left: 0;
        padding-right: 0.85rem;
        border-left: 0;
        border-right: 2px solid var(--color-gold);
    }

    /* Pair : carte pleine largeur colonne droite */
    .president-timeline__item:nth-child(even) .president-timeline__card {
        grid-column: 3;
        justify-self: stretch;
    }

    .president-card__media {
        width: 13.5rem; /* 11.25rem × 1,2 */
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .presidents-timeline {
        padding-left: 2.35rem;
    }

    .president-timeline__marker {
        left: -2.35rem;
        top: 1.5rem;
        width: 1.0625rem;
        height: 1.0625rem;
    }

    .presidents-timeline::before {
        left: 0.5rem;
    }

    .president-timeline__card {
        gap: 1.5rem;
    }

    .president-card__media {
        width: 13.5rem; /* 11.25rem × 1,2 */
    }
}

@media screen and (max-width: 575px) {
    .presidents-timeline {
        padding-left: 1.65rem;
    }

    .president-timeline__marker {
        left: -1.65rem;
        top: 1.15rem;
    }

    .president-timeline__card {
        gap: 0.95rem;
    }

    .president-card__media {
        width: 9.375rem; /* 7.8125rem × 1,2 */
    }

    .president-card__name {
        font-size: 0.9375rem;
    }
}

/*
 * Élus de la législature — liste portrait + fonction + groupe
 */

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

.legislature-member {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}

.legislature-member:first-child {
    padding-top: 2px;
}

.legislature-member:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legislature-member__card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.legislature-member__media {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.legislature-member__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-md);
}

.legislature-member__divider {
    flex-shrink: 0;
    align-self: stretch;
    width: 1px;
    min-height: 4.75rem;
    margin: 0.1rem 0;
    background: rgba(40, 40, 40, 0.14);
}

.legislature-member__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.05rem;
    text-align: left;
}

.legislature-member__name {
    margin: 0 0 0.45rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-dark);
}

.legislature-member__firstname {
    font-weight: 400;
}

.legislature-member__lastname {
    font-weight: 700;
    text-transform: uppercase;
}

.legislature-member__role {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
}

.legislature-member__group {
    margin: 0.15rem 0 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    color: var(--text-muted);
}

@media screen and (min-width: 768px) {
    .legislature-member {
        padding: 14px 0;
    }

    .legislature-member__name {
        font-size: 1.0625rem;
    }
}

@media screen and (min-width: 992px) {
    .legislature-member {
        padding: 16px 0;
    }

    .legislature-member__card {
        gap: 18px;
    }
}

@media screen and (max-width: 575px) {
    .legislature-member {
        padding: 10px 0;
    }

    .legislature-member__card {
        gap: 14px;
    }

    .legislature-member__media {
        width: 88px;
    }

    .legislature-member__name {
        font-size: 0.9375rem;
    }

    .legislature-member__role,
    .legislature-member__group {
        font-size: 0.875rem;
    }
}

/*
 * Vos élus — hémicycle (mock Image Map Pro) + listes par groupe
 * -----------------------------
 */

.elus {
    min-width: 0;
}

.elus-section__header {
    margin: 0 0 1.5rem;
}

.elus-section__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.75rem; /* 28px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.elus-hemicycle {
    margin: 0 0 56px;
}

.elus-hemicycle__map {
    position: relative;
    overflow: visible;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.elus-hemicycle__bg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
}

/* Hotspot mock — pin + tooltip au survol / focus */
.elus-hemicycle__hotspot {
    position: absolute;
    z-index: 2;
    width: 0;
    height: 0;
}

.elus-hemicycle__pin {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    padding: 0;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-red);
    box-shadow: 0 0 0 2px rgba(196, 58, 53, 0.35);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.elus-hemicycle__pin:hover,
.elus-hemicycle__pin:focus {
    background: var(--color-red-hover);
    transform: scale(1.12);
    outline: none;
}

.elus-hemicycle__tooltip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: max-content;
    max-width: min(280px, 70vw);
    padding: 12px;
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.elus-hemicycle__hotspot:hover .elus-hemicycle__tooltip,
.elus-hemicycle__hotspot:focus-within .elus-hemicycle__tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.elus-hemicycle__tooltip-media {
    flex-shrink: 0;
    width: 56px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.elus-hemicycle__tooltip-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.elus-hemicycle__tooltip-body {
    min-width: 0;
    padding-top: 2px;
}

.elus-hemicycle__tooltip-name {
    margin: 0 0 4px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

.elus-hemicycle__tooltip-firstname {
    font-weight: 400;
}

.elus-hemicycle__tooltip-lastname {
    font-weight: 700;
    text-transform: uppercase;
}

.elus-hemicycle__tooltip-role,
.elus-hemicycle__tooltip-group {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-muted);
}

.elus-hemicycle__tooltip-group {
    margin-top: 2px;
    font-style: italic;
}

/*
 * Fiche commission — texte d’intro corps (sous la bannière rouge)
 */

.commission-lede {
    margin: 0 0 40px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-hero-text);
    text-align: justify;
    color: var(--text-dark);
}

.commission-lede p {
    margin: 0 0 1em;
}

.commission-lede p:last-child {
    margin-bottom: 0;
}

/*
 * Listes d’élus accentuées — commun Vos élus + fiches commission
 * Markup carte : part/card-elu.php (.legislature-member__card)
 * Wrapper : .elu-members (ne pas appliquer au template législature)
 */

.elu-members {
    min-width: 0;
    margin: 0;
}

/* 2 colonnes — Vos élus + fiches commission (≥1200) ; ≤1199 = 1 colonne */
@media screen and (min-width: 1200px) {
    .elu-members .legislature-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }

    .elu-members .legislature-member:first-child,
    .elu-members .legislature-member:nth-child(2) {
        padding-top: 2px;
    }

    .elu-members .legislature-member:last-child,
    .elu-members .legislature-member:nth-last-child(2):nth-child(odd) {
        padding-bottom: 0;
        border-bottom: 0;
    }
}

.elus-group {
    margin: 0 0 48px;
}

.elus-group:last-child {
    margin-bottom: 0;
}

.elus-group__header {
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-gold);
}

.elus-group__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-red);
}

.elu-members .legislature-member__divider {
    background: rgba(196, 58, 53, 0.28);
}

.elu-members .legislature-member__media {
    background: rgba(196, 58, 53, 0.06);
}

.elu-members .legislature-member__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 3px;
    background: var(--color-red);
}

.elu-members .legislature-member__role {
    color: var(--text-dark);
}

.elu-members .legislature-member__body {
    padding-top: 15px;
}

/* Carte lien (fiches élus) — même look que <article> + flèche */
.elu-members a.legislature-member__card {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.elu-members .legislature-member__arrow {
    display: inline-block;
    margin-top: 18px;
    color: var(--color-red);
    font-size: 0.875rem;
    line-height: 1;
    transition: transform 0.1s ease;
}

.elu-members a.legislature-member__card:hover {
    color: var(--text-dark);
}

.elu-members a.legislature-member__card:hover .legislature-member__name {
    color: var(--color-red);
}

.elu-members a.legislature-member__card:hover .legislature-member__arrow {
    transform: translateX(3px);
}

@media screen and (min-width: 992px) {
    .elus-hemicycle {
        margin-bottom: 72px;
    }

    .elus-group {
        margin-bottom: 64px;
    }

    .elus-group__title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 575px) {
    .elus-section__title {
        font-size: 1.5rem;
    }

    .elus-hemicycle {
        margin-bottom: 40px;
    }

    .elus-hemicycle__tooltip {
        left: 50%;
        bottom: 22px;
        transform: translate(-50%, 4px);
    }

    .elus-hemicycle__hotspot:hover .elus-hemicycle__tooltip,
    .elus-hemicycle__hotspot:focus-within .elus-hemicycle__tooltip {
        transform: translate(-50%, 0);
    }
}

/*
 * Agenda — calendrier / liste
 */

.agenda-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.35rem;
    margin: 0 0 calc(1.35rem + 10px);
}

.agenda-view {
    display: inline-flex;
    padding: 0.25rem;
    background: var(--bg-light);
    border: 1px solid rgba(40, 40, 40, 0.1);
    border-radius: var(--radius-pill);
}

.agenda-view__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 2.35rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.agenda-view__btn i {
    font-size: 0.875rem;
    line-height: 1;
    color: var(--color-red);
}

.agenda-view__btn:hover {
    color: var(--text-dark);
}

.agenda-view__btn:hover i {
    color: var(--color-red-hover);
}

.agenda-view__btn.is-active {
    background: var(--color-white);
    color: var(--text-dark);
    box-shadow: 0 1px 4px rgba(40, 40, 40, 0.08);
}

.agenda-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.agenda-nav[hidden] {
    display: none !important;
}

.agenda-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(40, 40, 40, 0.12);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.agenda-nav__btn:hover {
    border-color: var(--color-gold);
    color: var(--color-red);
}

.agenda-nav__label {
    margin: 0;
    min-width: 9.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    color: var(--text-dark);
}

.agenda-nav__today {
    margin: 0 0 0 1.65rem;
    padding: 0.5rem 1.15rem;
    border: 1px solid rgba(40, 40, 40, 0.1);
    border-radius: var(--radius-pill);
    background: var(--bg-light);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.agenda-nav__today:hover {
    background: var(--color-white);
    border-color: rgba(217, 183, 120, 0.55);
    color: var(--color-red);
}

.agenda-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    list-style: none;
    margin: 0 0 1.65rem;
    padding: 0 0 1.15rem;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}

.agenda-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
}

.agenda-legend__item::before {
    content: "";
    flex-shrink: 0;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--agenda-cat-color, var(--color-gold));
}

.agenda-legend__item--seances-publiques,
.agenda-item--seances-publiques {
    --agenda-cat-color: var(--color-red);
}

.agenda-legend__item--commissions,
.agenda-item--commissions {
    --agenda-cat-color: var(--color-gold-hover);
}

.agenda-legend__item--evenements,
.agenda-item--evenements {
    --agenda-cat-color: var(--color-grey);
}

.agenda-legend__item--deplacements,
.agenda-item--deplacements {
    --agenda-cat-color: var(--color-cnj);
}

.agenda-panel[hidden] {
    display: none !important;
}

.agenda-panel.is-active {
    display: block;
}

.agenda-panel--list .agenda-month__title {
    display: none;
}

.agenda-list__empty {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(40, 40, 40, 0.08);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    color: var(--text-muted);
}

.agenda-list__empty[hidden] {
    display: none !important;
}

.agenda-month[hidden] {
    display: none !important;
}

/* ----- Calendrier ----- */

.agenda-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 0.35rem;
}

.agenda-calendar__weekdays span {
    padding: 0.35rem 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-muted);
}

.agenda-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(40, 40, 40, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.agenda-calendar__cell {
    min-height: 5.5rem;
    padding: 0.45rem 0.4rem 0.35rem;
    background: var(--color-white);
    text-align: left;
}

.agenda-calendar__cell.is-outside {
    background: var(--bg-light);
}

.agenda-calendar__cell.is-outside .agenda-calendar__daynum {
    color: rgba(102, 102, 102, 0.55);
}

.agenda-calendar__cell.is-today {
    box-shadow: inset 0 0 0 2px var(--color-gold);
}

.agenda-calendar__cell.is-selected {
    background: rgba(217, 183, 120, 0.1);
}

.agenda-calendar__daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
    margin: 0 0 0.35rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.agenda-calendar__daynum:hover {
    background: rgba(217, 183, 120, 0.18);
}

.agenda-calendar__events {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.agenda-calendar__dot {
    display: block;
    width: 100%;
    padding: 0.12rem 0.25rem;
    border: 0;
    border-left: 3px solid var(--agenda-cat-color, var(--color-gold));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(40, 40, 40, 0.04);
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease;
}

.agenda-calendar__dot:hover {
    background: rgba(217, 183, 120, 0.16);
}

.agenda-calendar__more {
    display: block;
    width: 100%;
    margin: 0.1rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
}

.agenda-calendar__more:hover {
    color: var(--color-red);
}

.agenda-popover {
    margin: 1.35rem 0 0;
}

.agenda-popover[hidden] {
    display: none !important;
}

@keyframes agenda-popover-in {
    from {
        opacity: 0;
        transform: scale(0.985) translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.agenda-popover.is-open .agenda-popover__inner {
    animation: agenda-popover-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .agenda-popover.is-open .agenda-popover__inner {
        animation: none;
    }
}

.agenda-popover__inner {
    padding: 1.75rem 1.75rem 1.85rem;
    border: 1px solid rgba(40, 40, 40, 0.12);
    border-top: 3px solid var(--color-gold);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transform-origin: top center;
}

.agenda-popover__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.agenda-popover__heading {
    margin: 0;
}

/* Meta partagée — popover + liste */
.agenda-event__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-dark);
}

.agenda-popover__header .agenda-event__date {
    margin: 0;
}

.agenda-item .agenda-event__date {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.agenda-item__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.agenda-item .agenda-event__meta {
    width: 100%;
    margin-bottom: 0.65rem;
}

.agenda-event__date i {
    font-size: 0.85em;
    color: var(--color-gold);
}

.agenda-event__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 0.45rem;
}

.agenda-event__time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
}

.agenda-event__time i {
    font-size: 0.78em;
    color: var(--color-gold);
}

.agenda-event__cat {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-md);
    background: rgba(40, 40, 40, 0.05);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--agenda-cat-color, var(--text-dark));
}

.agenda-popover__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.15rem -0.15rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.agenda-popover__close:hover {
    background: rgba(40, 40, 40, 0.06);
    color: var(--text-dark);
}

.agenda-popover__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.agenda-popover__item {
    position: relative;
    padding: 0 0 1.25rem 0.85rem;
    border-left: none;
}

.agenda-popover__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 1.25rem;
    width: 3px;
    background: var(--agenda-cat-color, var(--color-gold));
}

.agenda-popover__item:not(:last-child) {
    margin-bottom: 1.25rem;
}

.agenda-popover__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(40, 40, 40, 0.07);
}

.agenda-popover__item:last-child {
    padding-bottom: 0;
}

.agenda-popover__item:last-child::before {
    bottom: 0;
}

.agenda-popover__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color 0.15s ease;
}

.agenda-popover__link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.agenda-popover__link:hover,
.agenda-popover__link:focus-visible {
    color: inherit;
}

.agenda-popover__link:hover .agenda-popover__title,
.agenda-popover__link:focus-visible .agenda-popover__title {
    color: var(--color-red);
}

.agenda-popover__link:hover .agenda-popover__cta i,
.agenda-popover__link:focus-visible .agenda-popover__cta i {
    transform: translateX(3px);
}

.agenda-popover__cta {
    display: inline-flex;
    margin-top: 0.65rem;
}

.agenda-popover__text {
    margin: 0.5rem 0 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ----- Liste ----- */

.agenda-month {
    margin: 0 0 2.5rem;
}

.agenda-month:last-child {
    margin-bottom: 0;
}

.agenda-month__title {
    margin: 0 0 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--color-gold);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.agenda-month__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agenda-item {
    display: block;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}

.agenda-item:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
}

.agenda-item__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color 0.15s ease;
}

.agenda-item__text {
    margin: 0 0 0.55rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
}

.agenda-item__link-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.agenda-item__link-block:hover,
.agenda-item__link-block:focus-visible {
    color: inherit;
}

.agenda-item__link-block:hover .agenda-item__title,
.agenda-item__link-block:focus-visible .agenda-item__title {
    color: var(--color-red);
}

.agenda-item__link-block:hover .agenda-item__cta i,
.agenda-item__link-block:focus-visible .agenda-item__cta i {
    transform: translateX(3px);
}

.agenda-item__cta {
    margin-top: 0.15rem;
}

@media screen and (min-width: 768px) {
    .agenda-calendar__cell {
        min-height: 6.25rem;
        padding: 0.55rem 0.45rem 0.4rem;
    }

    .agenda-calendar__dot {
        font-size: 0.6875rem;
    }

    .agenda-item {
        padding: 1.4rem 0;
    }

    .agenda-item__title {
        font-size: 1.0625rem;
    }

    .agenda-popover__title {
        font-size: 1.0625rem;
    }
}

@media screen and (min-width: 768px) {
    .agenda-nav__label {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 992px) {
    .agenda-nav__label {
        min-width: 10.5rem;
    }

    .agenda-calendar__cell {
        min-height: 6.75rem;
    }
}

@media screen and (max-width: 1399px) {
    .agenda-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .agenda-nav {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 767px) {
    .agenda-view {
        display: none;
    }

    .agenda-calendar__cell {
        min-height: 4.5rem;
        padding: 0.35rem 0.25rem;
    }

    .agenda-calendar__events {
        display: none;
    }

    .agenda-calendar__cell.has-events .agenda-calendar__daynum::after {
        content: "";
        display: block;
        width: 0.35rem;
        height: 0.35rem;
        margin: 0.15rem auto 0;
        border-radius: 50%;
        background: var(--color-red);
    }
}

/*
 * Fiche élu (single-elu.php) — intro portrait + nav onglets + panels
 * Tokens partagés intro + corps sur .main-elu (hérités par les deux sections).
 * -----------------------------
 */

.main-elu {
    --elu-intro-portrait-h: 483px; /* +5 % — ratio 3/4 */
    --elu-intro-portrait-w: 362px;
    --elu-intro-gap: 40px;
    --elu-navside-under-photo: calc(var(--elu-intro-portrait-h) * 0.5); /* fond gris sous ~50 % portrait */
}

.elu-intro {
    --elu-intro-top-gap: 50px;
    --elu-intro-panel-min-h: 315px;
    --elu-intro-panel-pad-top: 85px;
    background: var(--color-white);
    overflow-x: clip;
}

.elu-intro__layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    min-width: 0;
    padding-top: var(--elu-intro-top-gap);
}

.elu-intro__media {
    position: relative;
    justify-self: center;
    width: var(--elu-intro-portrait-w);
    max-width: 100%;
    height: var(--elu-intro-portrait-h);
    overflow: hidden;
    background: var(--placeholder-bg);
    border-radius: var(--radius-md);
    z-index: 2;
}

.elu-intro__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 4px;
    background: var(--color-gold);
    pointer-events: none;
}

.elu-intro__portrait {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.elu-intro__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

/*
 * Bandeau pleine largeur viewport — box-shadow + clip-path (pas de pseudo-élément).
 * Variante ACTIVE : rouge institutionnel + textes blancs.
 */
.elu-intro__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    min-height: var(--elu-intro-panel-min-h);
    padding: 32px 24px;
    background: var(--color-red);
    box-shadow: 0 0 0 100vmax var(--color-red);
    clip-path: inset(0 -100vmax);
}

.elu-intro__title {
    margin: 0 0 3px;
    font-family: var(--font-serif);
    font-size: 2.1875rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-white);
}

.elu-intro__firstname {
    font-weight: 400;
}

.elu-intro__lastname {
    font-weight: 400;
}

.elu-intro__role {
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-white);
}

.elu-intro__group {
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    color: var(--color-white);
}

.elu-intro__facts {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-white);
}

.elu-intro__facts p {
    margin: 0 0 6px;
}

.elu-intro__facts p:last-child {
    margin-bottom: 0;
}

.elu-intro__honors {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.elu-intro__honors-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--color-gold);
}

.elu-intro__honors-list {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 14px;
    list-style: none;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-white);
}

.elu-intro__honors-list li {
    margin: 0 0 3px;
}

.elu-intro__honors-list li:last-child {
    margin-bottom: 0;
}

.elu-intro__hemicycle {
    margin: 16px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.elu-intro__hemicycle-link {
    text-transform: none;
}

.elu-intro__hemicycle-link.link-cn--red,
.elu-intro__hemicycle-link.link-cn--red:hover {
    color: var(--color-white);
}

/*
 * Variante : bandeau gris clair + textes sombres
 *
.elu-intro__panel {
    background: var(--bg-light);
    box-shadow: 0 0 0 100vmax var(--bg-light);
}
.elu-intro__title { color: var(--text-dark); }
.elu-intro__role { color: var(--color-red); }
.elu-intro__group { color: var(--text-muted); }
.elu-intro__facts,
.elu-intro__facts p,
.elu-intro__honors-list,
.elu-intro__honors-list li { color: var(--text-dark); }
.elu-intro__honors { border-top-color: rgba(40, 40, 40, 0.08); }
.elu-intro__honors-list { border-left-color: rgba(40, 40, 40, 0.14); }
.elu-intro__hemicycle { border-top-color: rgba(40, 40, 40, 0.08); }
.elu-intro__hemicycle-link.link-cn--red { color: var(--color-red); }
.elu-intro__hemicycle-link.link-cn--red:hover { color: var(--color-red-hover); }
 */

.elu-intro__breadcrumbs-wrap {
    min-width: 0;
    padding-top: 25px;
}

.elu-intro #breadcrumbs,
.elu-intro__breadcrumbs {
    margin: 0;
    padding-top: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

.elu-intro #breadcrumbs a,
.elu-intro__breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.elu-intro #breadcrumbs a:hover,
.elu-intro__breadcrumbs a:hover {
    color: var(--color-red);
}

.elu-intro #breadcrumbs .breadcrumb_last,
.elu-intro__breadcrumbs .breadcrumb_last {
    color: var(--text-dark);
    font-weight: 600;
}

/* ----- Corps ----- */

.elu-body {
    --elu-body-pad-y: 80px;
    padding: var(--elu-body-pad-y) 0 var(--elu-body-pad-y);
    background: var(--color-white);
    overflow-x: clip;
}

.elu-body__layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 28px;
    min-width: 0;
}

.elu-body__main {
    min-width: 0;
}

.elu-nav-bar {
    display: none;
}

.elu-nav {
    position: sticky;
    top: calc(var(--header-height-sticky) + 1.5rem);
    padding: 0 0 2rem;
}

.elu-nav__heading {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-dark);
}

.elu-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elu-nav__list > .elu-nav__item {
    margin: 0;
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
    border-left: 1px solid rgba(40, 40, 40, 0.08);
    transition: border-color 0.2s ease, border-width 0.15s ease;
}

.elu-nav__list > .elu-nav__item > a {
    display: block;
    padding: 0.85rem 0.75rem 0.85rem calc(0.85rem + 5px);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.elu-nav__list > .elu-nav__item > a:hover {
    color: var(--color-red);
}

.elu-nav__list > .elu-nav__item.is-active {
    border-left-width: 2px;
    border-left-color: var(--color-red);
}

.elu-nav__list > .elu-nav__item.is-active > a {
    color: var(--color-red);
    background: rgba(196, 58, 53, 0.06);
    font-weight: 700;
}

.elu-nav__list > .elu-nav__item.is-active > a:hover {
    color: var(--color-red);
}

.elu-nav--collapsible .elu-nav__toggle {
    display: none;
}

.elu-nav--collapsible .elu-nav__panel[hidden] {
    display: none;
}

/* ----- Panels contenu ----- */

.elu-content {
    min-width: 0;
}

.elu-panel[hidden] {
    display: none !important;
}

.elu-panel__title {
    margin: 0 0 calc(1.25rem + 10px);
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.elu-panel__subtitle {
    margin: 2rem 0 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-dark);
}

.elu-panel__subtitle:first-child {
    margin-top: 0;
}

.elu-panel__body {
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-hero-text);
    text-align: justify;
    color: var(--text-dark);
}

.elu-panel__body p,
.elu-panel__body span,
.elu-panel__body li,
.elu-panel__body a {
    font-family: inherit;
}

.elu-panel__body p {
    margin: 0 0 1em;
}

.elu-panel__body p:last-child {
    margin-bottom: 0;
}

.elu-panel__list {
    margin: 0;
    padding: 0 0 0 1.15rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-hero-text);
    color: var(--text-dark);
}

.elu-panel__list li {
    margin: 0 0 0.65rem;
}

.elu-panel__list li:last-child {
    margin-bottom: 0;
}

/* Travail législatif fiche élu — réutilise .home-laws__* (sans bloc recherche) */

.elu-laws .home-laws__list {
    padding-bottom: 0;
    border-bottom: 0;
}

.elu-laws .home-laws__list::before {
    bottom: 0.5rem;
}

/* Module loi — chaque entrée repeater = box séparée ; item = .home-laws__* */
.module-loi__boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-loi__box {
    background: var(--bg-light); /* #F8F7F6 */
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
}

.module-loi__box .home-laws__item {
    padding: 1.25rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Annule .contenu-custom a / a:hover (gras + soulignement de tout le bloc) */
.module-loi.contenu-custom a.home-laws__item,
.module-loi.contenu-custom a.home-laws__item:hover {
    font-weight: inherit !important;
    text-decoration: none;
    color: inherit;
}

/* Module documents — téléchargements (repeater, grille 2 col.) */

.module-docs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.module-docs__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
    min-height: 100%;
    padding: 20px 20px 20px 24px;
    background: var(--bg-light); /* #F8F7F6 */
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.module-docs__card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--color-gold);
    pointer-events: none;
}

.module-docs__card:hover {
    border-color: var(--color-gold-light, #D4AF37);
    color: var(--text-dark);
    text-decoration: none;
}

.module-docs__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    color: var(--color-red);
    font-size: 1.25rem; /* 20px */
    line-height: 1;
}

.module-docs__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.module-docs__cat {
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-muted);
    text-transform: uppercase;
}

.module-docs__title {
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
}

.module-docs__card:hover .module-docs__title {
    color: var(--color-red);
}

.module-docs__desc {
    margin-top: 2px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Annule .contenu-custom a sur les cards documents */
.module-docs.contenu-custom a.module-docs__card,
.module-docs.contenu-custom a.module-docs__card:hover {
    font-weight: inherit !important;
    text-decoration: none;
    color: inherit;
}

@media screen and (min-width: 768px) {
    .module-docs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/*
 * Liste des actualités (tpl-actualites.php)
 * Grille de cartes .home-news__card (même langage que accueil / landing)
 * -----------------------------
 */

.actualites__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 24px;
}

.actualites__card {
    padding: 0;
}

.actualites__card.is-hidden {
    display: none !important;
}

.actualites__pagination {
    margin-top: 40px;
}

.actualites__pagination[hidden] {
    display: none !important;
}

.actualites-search {
    margin-bottom: 1.25rem;
}

.actualites-types {
    margin: 0 0 0.5rem;
}

.actualites-search__status {
    margin: 0.85rem 0 1.5rem;
}

@media screen and (min-width: 768px) {
    .actualites__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Actualités liées / séances publiques fiche élu — réutilise .home-news__* (sans slider) */

.elu-news .home-news__header {
    margin-bottom: 1.75rem;
}

.elu-news__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.elu-news .home-news__card {
    padding: 0;
}

/* Séances publiques fiche élu — pas de tag : corps remonté sous la vignette */
.elu-sessions .home-news__card-body {
    padding-top: 1.15rem;
}

/* Pastille play sur les vignettes séances — zoom icône seul, pas l’image */
.elu-sessions__media:hover .home-news__card-media {
    transform: translate3d(0, 0, 0) scale(1);
}

.elu-sessions__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-red);
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.elu-sessions__media:hover .elu-sessions__play {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--color-white);
}

@media screen and (max-width: 767px) {
    .elu-news__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

.elu-contact .elu-panel__body a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.elu-contact .elu-panel__body a:hover {
    color: var(--color-red-hover);
}

/* Mandat — hémicycle + métadonnées */

.elu-mandat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}

.elu-mandat__hemicycle img {
    display: block;
    width: 100%;
    max-width: 28rem;
    height: auto;
    border-radius: var(--radius-md);
    background: var(--placeholder-bg);
}

.elu-mandat__hemicycle-caption {
    margin: 0.65rem 0 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--text-muted);
}

.elu-mandat__meta {
    margin: 0;
}

.elu-mandat__meta-row {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    gap: 0.75rem 1rem;
    margin: 0 0 0.85rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    line-height: 1.45;
    color: var(--text-dark);
}

.elu-mandat__meta-row:last-child {
    margin-bottom: 0;
}

.elu-mandat__meta-row dt {
    margin: 0;
    font-weight: 700;
}

.elu-mandat__meta-row dd {
    margin: 0;
}

@media screen and (min-width: 768px) {
    .elu-mandat {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 2rem;
    }
}

@media screen and (min-width: 992px) {
    .main-elu .elu-intro {
        position: relative;
        z-index: 1;
        background: transparent;
    }

    .main-elu .elu-intro__breadcrumbs-wrap {
        background: var(--color-white);
    }

    .main-elu .elu-body {
        position: relative;
        z-index: 0;
    }

    .elu-intro__layout {
        grid-template-columns: var(--elu-intro-portrait-w) minmax(0, 1fr);
        column-gap: var(--elu-intro-gap);
        row-gap: 0;
        padding-top: 0;
    }

    .elu-intro__media {
        justify-self: start;
        margin-top: calc(var(--elu-intro-top-gap) + 10px);
    }

    .elu-intro__panel {
        min-height: max(
            var(--elu-intro-panel-min-h),
            calc(var(--elu-intro-portrait-h) * 0.7)
        );
        padding-top: var(--elu-intro-panel-pad-top);
        padding-right: 40px;
        padding-bottom: 32px;
        padding-left: 32px;
    }

    .elu-intro__breadcrumbs-wrap {
        padding-left: 32px;
        padding-right: 40px;
    }

    /* Grille alignée intro : colonne nav = largeur portrait, gap 50px avant contenu */
    .elu-body__layout {
        grid-template-columns: var(--elu-intro-portrait-w) minmax(0, 1fr);
        column-gap: 50px;
        row-gap: 0;
    }

    /*
     * background-navside-ok — fond gris sidenav desktop fiche élu
     * full-bleed gauche, bord droit = portrait, padding-right 50px, gap 50px,
     * remonte sous le portrait (--elu-navside-under-photo), intro transparente à gauche
     */
    .elu-body__aside--desktop {
        position: relative;
        z-index: 0;
        width: 100%;
        min-width: 0;
        margin-top: calc(-1 * var(--elu-body-pad-y) - var(--elu-navside-under-photo));
        margin-bottom: calc(-1 * var(--elu-body-pad-y));
        padding-top: calc(var(--elu-body-pad-y) + var(--elu-navside-under-photo));
        padding-bottom: var(--elu-body-pad-y);
        padding-right: 50px;
        background: var(--bg-light);
        box-shadow: 0 0 0 100vmax var(--bg-light);
        clip-path: inset(0 0 0 -100vmax);
        box-sizing: border-box;
    }

    .elu-body__main {
        position: relative;
        z-index: 1;
        padding-left: 32px;
        padding-right: 40px;
    }
}

@media screen and (max-width: 991px) {
    .main-elu {
        --elu-intro-portrait-h: 424px;
        --elu-intro-portrait-w: 319px;
    }

    .elu-intro {
        --elu-intro-top-gap: 32px;
    }

    .main-elu .elu-intro__layout {
        gap: 0;
        padding-top: 0;
    }

    .main-elu .elu-intro__media {
        z-index: 1;
        justify-self: stretch;
        width: 100%;
        max-width: none;
        height: auto;
        padding: var(--elu-intro-top-gap) 24px 28px;
        background: var(--color-red);
        box-shadow: 0 0 0 100vmax var(--color-red);
        clip-path: inset(0 -100vmax);
        border-radius: 0;
    }

    .main-elu .elu-intro__portrait {
        width: var(--elu-intro-portrait-w);
        max-width: 100%;
        height: var(--elu-intro-portrait-h);
        margin: 0 auto;
        border-radius: var(--radius-md);
    }

    .elu-nav-bar {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-top: -15px;
        margin-bottom: calc(1.75rem + 15px);
    }

    .elu-body__aside--desktop {
        display: none !important;
    }

    .elu-body__aside--mobile {
        margin: 0;
        padding: 0 1rem;
        background: color-mix(in srgb, var(--color-white) 62%, var(--bg-light));
        border: 1px solid rgba(196, 58, 53, 0.16);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .elu-nav-bar .elu-nav {
        position: static;
        top: auto;
        padding-bottom: 0;
    }

    .elu-nav--collapsible.is-expanded .elu-nav {
        padding-bottom: 0.35rem;
    }

    .elu-nav--collapsible .elu-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        margin: 0;
        padding: 1rem 0.15rem;
        border: 0;
        border-bottom: 2px solid var(--color-gold);
        background: transparent;
        font-family: var(--font-sans);
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.3;
        text-transform: uppercase;
        text-align: left;
        color: var(--text-dark);
        cursor: pointer;
    }

    .elu-nav--collapsible:not(.is-expanded) .elu-nav__toggle {
        border-bottom: 0;
    }

    .elu-nav--collapsible .elu-nav__toggle-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .elu-nav--collapsible .elu-nav__toggle-icon {
        flex-shrink: 0;
        font-size: 0.85rem;
        color: var(--color-red);
        transition: transform 0.2s ease;
    }

    .elu-nav--collapsible.is-expanded .elu-nav__toggle-icon {
        transform: rotate(180deg);
    }

    .elu-nav--collapsible .elu-nav__panel {
        padding-top: 0.25rem;
    }

    .elu-nav--collapsible .elu-nav__panel[hidden] {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .main-elu {
        --elu-intro-portrait-h: 386px;
        --elu-intro-portrait-w: 290px;
    }

    .elu-intro {
        --elu-intro-top-gap: 24px;
    }

    .main-elu .elu-intro__media {
        padding-left: 20px;
        padding-right: 20px;
    }

    .elu-intro__title {
        font-size: 1.75rem;
    }

    .elu-intro__panel {
        padding: 28px 20px;
    }

    .elu-body {
        padding: 40px 0 56px;
    }

    .elu-panel__title {
        font-size: 1.5rem;
    }
}

/*
 * Page 404 (404.php — hiérarchie WP)
 * -----------------------------
 */

.main-404 > .page-body {
    padding-top: 72px;
    padding-bottom: 72px;
}

.error-404 {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 992px) {
    .main-404 > .page-body {
        padding-top: 150px;
        padding-bottom: 220px;
    }
}

.error-404__code {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: 4.25rem; /* 68px */
    font-weight: 400;
    line-height: 1;
    color: var(--color-gold);
}

.error-404__heading {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: 2rem; /* 32px */
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.error-404__text {
    margin: 0 0 28px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-hero-text);
    color: var(--text-dark);
}

.error-404__actions {
    margin: 0;
}

@media screen and (max-width: 575px) {
    .error-404__code {
        font-size: 3.25rem; /* 52px */
    }
}

/* Inputs ≤991 : 16px minimum — évite le zoom iOS Safari au focus */
@media screen and (max-width: 991px) {
    .home-hero__search-input,
    .team-search__input,
    .home-laws__field input,
    .archives-seances__field-keyword input {
        font-size: 1rem;
    }
}

/*
 * Archives séances publiques (tpl-archives-seances-publiques.php)
 * -----------------------------
 */

.archives-seances {
    padding-bottom: 2rem;
}

.archives-seances__year {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.75rem;
}

.archives-seances__year-label {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
}

.archives-seances__year-field {
    width: 100%;
    max-width: 220px;
}

.archives-seances__search {
    margin: 0 0 2.25rem;
    padding: 1.75rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
}

.archives-seances__search-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
}

.archives-seances__search-text {
    margin: 0 0 1.35rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.archives-seances__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: stretch;
}

.archives-seances__field-keyword input {
    background: var(--color-white);
}

.archives-seances__submit {
    height: 48px;
    padding-inline: 1.35rem;
    white-space: nowrap;
}

.archives-seances__empty {
    margin: 0 0 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    color: var(--text-muted);
}

/* Grille uniforme — annule le flush-left accueil (.home-news__card:first-child) */
.archives-seances__grid .home-news__card,
.archives-seances__grid .home-news__card:first-child {
    padding: 0;
}

.archives-seances__grid .home-news__card[hidden] {
    display: none;
}

.archives-seances__sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.archives-seances__sentinel[hidden] {
    display: none;
}

@media screen and (max-width: 575px) {
    .archives-seances__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .archives-seances__submit {
        width: 100%;
    }

    .archives-seances__year-field {
        max-width: none;
    }
}

/*
 * Single événement (single-evenements.php) — états upcoming / past
 * Pas de bandeau : titre / date / média directement dans le corps
 * -----------------------------
 */

.main-event > .page-body {
    padding-top: 48px;
}

.event-header {
    margin: 0 0 1.75rem;
}

.event-header__breadcrumbs {
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.event-header__breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-header__breadcrumbs a:hover {
    color: var(--color-red);
}

.event-header__title {
    margin: 0 0 0.85rem;
    font-family: var(--font-serif);
    font-size: 2rem; /* 32px */
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.event-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.event-header__datetime {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin: 0;
    min-width: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

.event-header__date,
.event-header__time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.event-header__datetime i {
    color: var(--color-gold);
    font-size: 0.95em;
}

.event-header__sep {
    color: var(--text-muted);
}

.event-header__hint {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.event-media {
    margin: 0 0 2.25rem;
}

.event-media__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
}

.event-media__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-black);
}

.event-media__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Titre module lois : h2 sémantique, rendu h4 + 10px de marge basse */
.main-event .module-loi .titre-module > * {
    font-size: 1.6rem;
    line-height: 1.8rem;
    font-weight: 500;
    margin-bottom: 28px; /* h4 = 18px + 10px */
}

.event-actions__calendar {
    flex-shrink: 0;
    gap: 0.55rem;
}

@media screen and (max-width: 767px) {
    .main-event > .page-body {
        padding-top: 32px;
    }

    .event-header__title {
        font-size: 1.75rem;
    }

    .event-header__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.event-details {
    margin: 0 0 1rem;
}

.event-details__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.event-details__block {
    min-width: 0;
    padding: 1.35rem 1.35rem 1.25rem;
    background: var(--bg-light);
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
}

.event-details__title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-red);
}

.event-details__list {
    margin: 0;
}

.event-details__row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.75rem;
}

.event-details__row:last-child {
    margin-bottom: 0;
}

.event-details__row dt {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
}

.event-details__row dd {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-dark);
}

.event-details__row dd a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-details__row dd a:hover {
    color: var(--color-red-hover);
}

.event-details__note {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
}

@media screen and (max-width: 1399px) {
    .event-details__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media screen and (max-width: 575px) {
    .event-details__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }
}

/*
 * Travail législatif (tpl-legislatif.php)
 * Recherche + liste de textes — wireframe
 * Pas de sidenav : retraits gauche/droite égaux pour centrer le contenu.
 * Bord gauche = grille modules (col-xl-10 dans col-lg-9) ≥1400px.
 * -----------------------------
 */

/* ≥1400 : même retrait des deux côtés (centré ; gauche inchangée)
 * Liste (tpl-legislatif) + détail (single-legislatif) */
@media screen and (min-width: 1400px) {
    .main-legislatif .legislatif .page-body__main,
    .main-loi .page-body__main {
        padding-left: calc(
            (var(--bs-gutter-x, 1.5rem) * 0.5)
            + (100% * 9 / 12 * 1 / 12)
        ); /* gutter + inset col-xl-10 (6.25%) */
        padding-right: calc(
            (var(--bs-gutter-x, 1.5rem) * 0.5)
            + (100% * 9 / 12 * 1 / 12)
        );
    }
}

.legislatif {
    padding-top: 80px;
    padding-bottom: 64px;
}

.legislatif-search {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 45px;
    background: var(--color-white);
    border: 1px solid #E8E7E6;
    border-top: 2px solid var(--color-gold);
    border-radius: var(--radius-md);
}

.legislatif-search__title {
    margin: 0 0 1.5rem;
    padding: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
}

/* Court liseret or sous le titre */
.legislatif-search__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 0.85rem;
    background: var(--color-gold);
}

.legislatif-search__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.legislatif-search__fields .home-laws__field input,
.legislatif-search__fields .home-laws__field select {
    background: var(--bg-light);
}

.legislatif-search__types {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.legislatif-search__types-label {
    margin: 4px 0 10px;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-muted);
}

.legislatif-search__types-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.legislatif-search__types-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.legislatif-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-dark);
    user-select: none;
    background: var(--bg-light);
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.legislatif-check:hover {
    border-color: var(--color-gold-light);
}

.legislatif-check:has(input:checked) {
    border-color: var(--color-red);
    background: rgba(196, 58, 53, 0.06);
}

.legislatif-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legislatif-check__box {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #C8C7C6;
    border-radius: 2px;
    background: var(--color-white);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.legislatif-check__box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.15s ease;
}

.legislatif-check input:checked + .legislatif-check__box {
    border-color: var(--color-red);
    background: var(--color-red);
}

.legislatif-check input:checked + .legislatif-check__box::after {
    opacity: 1;
}

.legislatif-check input:focus-visible + .legislatif-check__box {
    outline: 1px solid var(--color-gold);
    outline-offset: 2px;
}

.legislatif-search__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem 1.75rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.legislatif-search__reset {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}

.legislatif-search__submit {
    min-width: 140px;
    height: 48px;
    padding-inline: 1.5rem;
}

/* Listing législatif + module loi — pas de pastilles or */
.main-legislatif .legislatif-results .home-laws__rail,
.module-loi .home-laws__rail {
    display: none;
}

.main-legislatif .legislatif-results .home-laws__item,
.module-loi .home-laws__item {
    grid-template-columns: 4.25rem minmax(0, 1fr) 1.5rem;
}

.legislatif-results__count {
    margin: 0 0 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
}

.legislatif-results__list {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    border-top: 1px solid rgba(40, 40, 40, 0.1);
}

.legislatif-results__item {
    margin: 0;
    border-bottom: 1px solid rgba(40, 40, 40, 0.1);
}

.legislatif-results__item.is-alt {
    background: var(--bg-light);
}

.legislatif-result {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr) 1.5rem;
    column-gap: 1.5rem;
    align-items: center;
    padding: 1.35rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.legislatif-result:hover {
    background: rgba(196, 58, 53, 0.04);
    color: var(--text-dark);
}

.legislatif-result__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.legislatif-result__meta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-muted);
}

.legislatif-result__meta-line i {
    width: 0.9rem;
    color: var(--color-gold);
    font-size: 0.8rem;
    text-align: center;
}

.legislatif-result__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.legislatif-result__num {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
}

.legislatif-result__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color 0.15s ease;
}

.legislatif-result:hover .legislatif-result__title {
    color: var(--color-red);
}

.legislatif-result__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    font-size: 0.9rem;
    transition: transform 0.1s ease;
}

.legislatif-result:hover .legislatif-result__arrow {
    transform: translateX(3px);
}

.legislatif-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.legislatif-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legislatif-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.legislatif-pagination__link:hover {
    color: var(--color-red);
}

.legislatif-pagination__link.is-current {
    color: var(--color-white);
    background: var(--color-red);
}

.legislatif-pagination__ellipsis {
    padding: 0 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

@media screen and (max-width: 991px) {
    .legislatif-search__fields {
        grid-template-columns: 1fr;
    }

    .legislatif-result {
        grid-template-columns: minmax(0, 1fr) 1.5rem;
        row-gap: 0.85rem;
    }

    .legislatif-result__meta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1.15rem;
    }

    .legislatif-result__body {
        grid-column: 1;
    }

    .legislatif-result__arrow {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }
}

@media screen and (max-width: 575px) {
    .legislatif {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .legislatif-search {
        padding: 32px 24px;
    }

    .legislatif-search__types-row {
        flex-direction: column;
        align-items: stretch;
    }

    .legislatif-search__actions {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        width: 100%;
    }

    .legislatif-search__submit {
        width: 100%;
    }

    .legislatif-result {
        padding: 1.15rem 0.85rem;
    }

    .legislatif-result__num {
        font-size: 1.35rem;
    }
}

/* Inputs ≤991 : 16px minimum — évite le zoom iOS Safari au focus */
@media screen and (max-width: 991px) {
    .legislatif-search__fields .home-laws__field input {
        font-size: 1rem;
    }
}

/*
 * Single texte de loi (single-legislatif.php)
 * Intro page-intro (bandeau rouge + image) + timeline + aside recherche
 * + méta / documents + prev/next
 * -----------------------------
 */

.loi-section-title {
    margin: 0 0 28px;
    font-family: var(--font-serif);
    font-size: 1.75rem; /* 28px */
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

/* ----- Intro : page-intro + lien retour ----- */

.loi-intro__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    flex-shrink: 0;
}

.loi-intro__back:hover i {
    transform: translateX(-3px);
}

/* ≤991 : page-intro__content = display:contents → le lien est un item grille */
@media screen and (max-width: 991px) {
    .loi-intro__back {
        order: 0;
        box-sizing: border-box;
        width: calc(100% - (2 * var(--page-intro-pad-x)));
        margin: 35px var(--page-intro-pad-x);
    }

    .loi-intro .page-intro__title {
        padding-top: 0; /* aération = margin-bottom du lien (35px) */
    }
}

/* ----- Corps : timeline + aside ----- */

.main-loi > .loi-body {
    padding-top: 56px;
    padding-bottom: 56px;
    background: var(--bg-light);
}

.loi-body__row {
    align-items: flex-start;
}

.loi-body__main {
    min-width: 0;
}

.loi-body__aside {
    min-width: 0;
}

/* Timeline — même langage que home-laws (rail + pastille or) */

.loi-timeline__list {
    /* centre de la pastille = date + gap + moitié de la col rail */
    --loi-rail-col: 12px;
    --loi-rail-gap: 16px;
    --loi-date-col: 4.25rem; /* même col que home-laws */
    --loi-rail-x: calc(var(--loi-date-col) + var(--loi-rail-gap) + (var(--loi-rail-col) / 2));
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loi-timeline__list::before {
    content: '';
    position: absolute;
    top: 0.55rem;
    bottom: 0.55rem;
    left: var(--loi-rail-x);
    width: 2px;
    background: var(--color-gold);
    transform: translateX(-50%);
    pointer-events: none;
}

.loi-timeline__item {
    display: grid;
    grid-template-columns: var(--loi-date-col) var(--loi-rail-col) minmax(0, 1fr);
    column-gap: var(--loi-rail-gap);
    align-items: start;
    margin: 0 0 32px;
}

.loi-timeline__item:last-child {
    margin-bottom: 0;
}

.loi-timeline__date {
    /* hérite de .home-laws__date (jj.mm + année) */
    width: 100%;
}

.loi-timeline__rail {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 4px;
}

.loi-timeline__dot {
    display: block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 0 3px var(--bg-light);
}

.loi-timeline__heading {
    margin: 0 0 8px;
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
}

.loi-timeline__content p,
.loi-timeline__content ul {
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-dark);
}

.loi-timeline__content ul {
    padding-left: 1.15em;
}

.loi-timeline__content li {
    margin: 0 0 4px;
}

/* Restaure link-cn (écrasé par .contenu-custom a du parent) */
.loi-timeline__content.contenu-custom a.link-cn,
.loi-timeline__content.contenu-custom a.link-cn:hover {
    font-weight: 900 !important;
    text-decoration: none;
    color: var(--color-red);
}

.loi-timeline__content.contenu-custom a.link-cn--red:hover {
    color: var(--color-red-hover);
}

/* Médias timeline : pleine largeur, ratio 16/9 */
.loi-timeline__media {
    position: relative;
    width: 100%;
    margin: 16px 0 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.loi-timeline__media--video {
    background: var(--color-black);
}

.loi-timeline__media iframe,
.loi-timeline__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.loi-timeline__media img {
    object-fit: cover;
    pointer-events: none;
}

/* Aside recherche */

.loi-search {
    padding: 28px 24px;
    background: var(--color-white);
    border: 1px solid #E8E7E6;
    border-top: 2px solid var(--color-gold);
    border-radius: var(--radius-md);
}

.loi-search__title {
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
}

.loi-search__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loi-search__form .home-laws__field input,
.loi-search__form .home-laws__field select {
    background: var(--bg-light);
}

.loi-search__types {
    margin: 8px 0 4px;
    padding: 0;
    border: 0;
}

.loi-search__types-label {
    margin: 0 0 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-muted);
}

.loi-search__types-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.loi-search__submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
}

/* ----- Méta + documents (compact : infos 2 col + docs) ----- */

.loi-meta {
    padding: 40px 0;
    background: var(--color-white);
}

.loi-meta__inner {
    align-items: flex-start;
    row-gap: 28px;
}

@media screen and (min-width: 992px) {
    .loi-meta__about {
        padding-right: 40px;
        border-right: 1px solid #E8E7E6;
    }

    .loi-meta__docs {
        padding-left: 40px;
    }
}

.loi-meta__about,
.loi-meta__docs {
    min-width: 0;
}

.loi-meta .loi-section-title {
    margin: 0 0 18px;
    font-size: 1.5rem;
}

.loi-meta__docs .loi-section-title {
    margin-bottom: 33px; /* +15px vs titre À propos */
}

.loi-meta__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 0;
    margin: 0;
    padding: 0;
}

.loi-meta__row-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #E8E7E6;
}

.loi-meta__row-item dt {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-muted);
}

.loi-meta__row-item dd {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
}

.loi-meta__row-item dd .link-cn {
    font-size: inherit;
}

.loi-docs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.loi-docs > li {
    margin: 0;
    border-bottom: 1px solid #E8E7E6;
}

.loi-docs > li:first-child {
    border-top: 1px solid #E8E7E6;
}

.loi-docs__item {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) 1rem;
    column-gap: 10px;
    align-items: center;
    padding: 12px 2px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.loi-docs__item:hover {
    color: var(--color-red);
}

.loi-docs__item:hover .loi-docs__arrow {
    transform: translateX(3px);
}

.loi-docs__icon {
    color: var(--color-red);
    font-size: 1rem;
    line-height: 1;
}

.loi-docs__label {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.loi-docs__arrow {
    justify-self: end;
    color: var(--color-red);
    font-size: 0.875rem;
    transition: transform 0.1s ease;
}

@media screen and (max-width: 991px) {
    .loi-meta__list {
        grid-template-columns: 1fr;
    }
}

/* ----- Prev / next ----- */

.loi-siblings {
    padding: 48px 0;
    background: var(--color-white);
}

.loi-siblings__row {
    align-items: stretch;
}

.loi-siblings__prev,
.loi-siblings__next {
    min-width: 0;
}

.loi-siblings__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.loi-siblings__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-red);
}

.loi-siblings__label i {
    font-size: 0.85em;
    transition: transform 0.1s ease;
}

.loi-siblings__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.loi-siblings__card:hover .loi-siblings__title {
    color: var(--color-red);
}

.loi-siblings__prev .loi-siblings__card:hover .loi-siblings__label i {
    transform: translateX(-3px);
}

.loi-siblings__next .loi-siblings__card:hover .loi-siblings__label i {
    transform: translateX(3px);
}

@media screen and (min-width: 768px) {
    .loi-siblings__prev {
        padding-right: 32px;
        border-right: 1px solid #E8E7E6;
    }

    .loi-siblings__next {
        padding-left: 32px;
        text-align: right;
    }

    .loi-siblings__next .loi-siblings__card {
        align-items: flex-end;
    }

    .loi-siblings__next .loi-siblings__label {
        flex-direction: row;
    }
}

@media screen and (max-width: 767px) {
    .loi-siblings__next {
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid #E8E7E6;
    }
}

/* ----- Responsive ----- */

@media screen and (max-width: 991px) {
    .loi-body__aside {
        margin-top: 40px;
    }

    .loi-meta__docs {
        margin-top: 8px;
    }

    .loi-search__form .home-laws__field input,
    .loi-search__form .home-laws__field select {
        font-size: 1rem; /* évite zoom iOS */
    }
}

@media screen and (max-width: 767px) {
    .loi-timeline__list {
        --loi-date-col: 3.5rem;
        --loi-rail-col: 10px;
        --loi-rail-gap: 12px;
    }

    .loi-timeline__item {
        margin-bottom: 24px;
    }

    .loi-timeline__dot {
        width: 10px;
        height: 10px;
    }

    .loi-meta {
        padding: 40px 0;
    }
}

@media screen and (max-width: 575px) {
    .loi-search {
        padding: 24px 20px;
    }

    /*
     * Vrai mobile : dates loi plus compactes
     * (timeline, listing législatif, module loi, fiche élu)
     */
    .module-loi__box .home-laws__item,
    .elu-laws .home-laws__item,
    #travail-legislatif .home-laws__item {
        grid-template-columns: 2.75rem 0.875rem minmax(0, 1fr) 1.125rem;
        column-gap: 0.5rem;
    }

    .main-legislatif .legislatif-results .home-laws__item,
    .module-loi .home-laws__item {
        grid-template-columns: 2.75rem minmax(0, 1fr) 1.125rem;
    }

    .module-loi__box .home-laws__item {
        padding: 1rem;
    }

    .elu-laws .home-laws__list,
    #travail-legislatif .home-laws__list {
        --laws-rail-x: calc(2.75rem + 0.5rem + 0.4375rem);
    }

    .module-loi__box .home-laws__date,
    .elu-laws .home-laws__date,
    #travail-legislatif .home-laws__date,
    .loi-timeline__date.home-laws__date {
        gap: 0.05rem;
        padding-top: 0.05rem;
    }

    .module-loi__box .home-laws__date-dm,
    .elu-laws .home-laws__date-dm,
    #travail-legislatif .home-laws__date-dm,
    .loi-timeline .home-laws__date-dm {
        font-size: 0.875rem; /* 14px */
    }

    .module-loi__box .home-laws__date-y,
    .elu-laws .home-laws__date-y,
    #travail-legislatif .home-laws__date-y,
    .loi-timeline .home-laws__date-y {
        font-size: 0.75rem; /* 12px */
    }

    .loi-timeline__list {
        --loi-date-col: 2.75rem;
        --loi-rail-col: 8px;
        --loi-rail-gap: 10px;
    }

    .loi-timeline__dot {
        width: 8px;
        height: 8px;
    }
}


/*
 * FAQ interactive (tpl-faq.php)
 * Search hero + chips + accordéons filtrés
 * Espacements = px ; typos = rem (css-conventions)
 * -----------------------------
 */

.faq-search {
    margin: 0 0 24px;
    padding: 32px 28px 28px;
    background: var(--bg-light);
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
}

.faq-search__title {
    margin: 0 0 9px;
    font-family: var(--font-serif);
    font-size: 2rem; /* 32px — page clé */
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.faq-search__lead {
    margin: 0 0 24px;
    max-width: 36em;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.faq-search__field {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 18px 0 20px;
    background: var(--color-white);
    border: 1px solid rgba(40, 40, 40, 0.12);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search__field:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(217, 183, 120, 0.28);
}

.faq-search__icon {
    flex-shrink: 0;
    color: var(--color-gold);
    font-size: 1.125rem;
    line-height: 1;
}

.faq-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    font-weight: 400;
    color: var(--text-dark);
}

.faq-search__input::placeholder {
    color: var(--text-muted);
    opacity: 0.9;
}

.faq-search__clear {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-search__clear:hover {
    color: var(--color-red);
    background: rgba(196, 58, 53, 0.06);
}

.faq-search__clear[hidden] {
    display: none !important;
}

.faq-search__suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 18px;
}

.faq-search__suggestions-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    color: var(--text-muted);
}

.faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 18px;
}

.faq-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid rgba(40, 40, 40, 0.14);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.faq-chip:hover {
    border-color: var(--color-gold);
    color: var(--color-black);
}

.faq-chip--suggestion {
    font-weight: 600;
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
}

.faq-chip--suggestion:hover {
    color: var(--color-red);
    border-color: var(--color-red);
    background: rgba(196, 58, 53, 0.04);
}

.faq-chip--cat[aria-pressed="true"] {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

.faq-chip--cat[aria-pressed="true"]:hover {
    background: var(--color-red-hover);
    border-color: var(--color-red-hover);
    color: var(--color-white);
}

.faq-status {
    margin: 0 0 20px;
    min-height: 20px;
    font-family: var(--font-sans);
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

.faq-status.is-empty {
    color: var(--color-red);
}

.faq-empty {
    margin: 0 0 32px;
    padding: 24px 22px;
    background: var(--bg-light);
    border: 1px solid #E8E7E6;
    border-radius: var(--radius-md);
}

.faq-empty[hidden] {
    display: none !important;
}

.faq-empty__text {
    margin: 0 0 7px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-empty__hint {
    margin: 0 0 16px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-list[hidden] {
    display: none !important;
}

.faq-results__group {
    margin: 0 0 28px;
}

.faq-results__group[hidden] {
    display: none !important;
}

.faq-results__group:last-child {
    margin-bottom: 0;
}

.faq-results__heading {
    margin: 0 0 12px;
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-muted);
}

.faq-item {
    border-bottom: 1px solid #E8E7E6;
}

.faq-item:first-child {
    border-top: 1px solid #E8E7E6;
}

.faq-item.is-hidden {
    display: none !important;
}

.faq-item__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq-item__trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "meta chevron"
        "question chevron";
    column-gap: 16px;
    row-gap: 2px;
    width: 100%;
    margin: 0;
    padding: 14px 4px 20px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-item__trigger:hover .faq-item__question {
    color: var(--color-red);
}

.faq-item__meta {
    grid-area: meta;
}

.faq-item__cat {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-gold-hover);
}

.faq-item__question {
    grid-area: question;
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.faq-item__chevron {
    grid-area: chevron;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-red);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__panel {
    padding: 0 40px 22px 0;
}

.faq-item__panel[hidden] {
    display: none !important;
}

.faq-item__answer {
    position: relative;
    padding: 0 0 0 18px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
}

.faq-item__answer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--color-gold);
}

.faq-item__answer p,
.faq-item__answer ul,
.faq-item__answer ol {
    margin: 0 0 10px;
}

.faq-item__answer ul,
.faq-item__answer ol {
    padding-left: 20px;
}

.faq-item__answer p:last-child,
.faq-item__answer ul:last-child,
.faq-item__answer ol:last-child {
    margin-bottom: 0;
}

.faq-item__answer a:not(.link-cn) {
    color: var(--color-red);
}

.faq-item__answer .link-cn {
    display: inline-flex;
    text-decoration: none;
    vertical-align: baseline;
}

.faq-item__answer .link-cn--red {
    color: var(--color-red);
}

.faq-item__answer .link-cn--red:hover {
    color: var(--color-red-hover);
}

.faq-mark {
    padding: 0 2px;
    background: rgba(217, 183, 120, 0.45);
    color: inherit;
}

@media screen and (max-width: 767px) {
    .faq-search {
        padding: 24px 18px 22px;
    }

    .faq-search__title {
        font-size: 1.625rem; /* 26px */
    }

    .faq-search__field {
        height: 52px;
    }

    .faq-search__input {
        font-size: 1rem;
    }

    .faq-item__trigger {
        padding: 12px 0 18px;
    }

    .faq-item__question {
        font-size: 1rem;
    }

    .faq-item__panel {
        padding-right: 0;
    }
}


/*
 * Résultats de recherche (search.php)
 * Réutilise .faq-search / chips / groupes ; cartes typées
 * Espacements = px ; typos = rem
 * -----------------------------
 */

.main-search .page-body {
    padding-top: 48px;
}

.site-search__types {
    margin-bottom: 18px;
}

.site-search__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-search__list[hidden] {
    display: none !important;
}

.site-search-item {
    border-bottom: 1px solid #E8E7E6;
}

.site-search-item:first-child {
    border-top: 1px solid #E8E7E6;
}

.site-search-item.is-hidden {
    display: none !important;
}

.site-search-item__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px 4px 18px 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.site-search-item__type {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-gold-hover);
}

.site-search-item__title {
    font-family: var(--font-sans);
    font-size: 1.0625rem; /* 17px */
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.site-search-item__link:hover .site-search-item__title {
    color: var(--color-red);
}

.site-search-item__meta {
    font-family: var(--font-sans);
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-muted);
}

.site-search-item__excerpt {
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.site-search-item__more {
    margin-top: 4px;
    align-self: flex-start;
    pointer-events: none; /* toute la carte est le lien */
}

.site-search-item__link:hover .site-search-item__more {
    color: var(--color-red-hover);
}

.site-search-item__link:hover .site-search-item__more i {
    transform: translateX(3px);
}

.site-search-mark {
    padding: 0 2px;
    background: rgba(217, 183, 120, 0.45);
    color: inherit;
}

@media screen and (max-width: 767px) {
    .site-search-item__link {
        padding: 16px 0;
    }

    .site-search-item__title {
        font-size: 1rem;
    }
}


