/* =========================================================
 * Styles scopés à la page test-rg uniquement (#test-rg-page)
 * Refonte graphique 2026-05-01 — Phases 1, 2, 3
 * ========================================================= */
/* Overlay de chargement : visible immédiatement, masque la page jusqu'à fin de chargement */
.test-rg-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.test-rg-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.test-rg-loader__logo {
    width: 70px;
    height: 70px;
    animation: rgLoaderPulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 4px 16px rgba(22, 95, 112, 0.18));
}
@keyframes rgLoaderPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.7; }
    50%      { transform: scale(1.05); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .test-rg-loader__logo { animation: none; }
}
/* Fade-in échelonné des 3 colonnes À la une / Agenda / Cordoue à l'apparition de la page */
#test-rg-page .test-rg-aLaUne__main,
#test-rg-page .test-rg-aLaUne__agenda,
#test-rg-page .test-rg-aLaUne__cordoue {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#test-rg-page.is-revealed .test-rg-aLaUne__main {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}
#test-rg-page.is-revealed .test-rg-aLaUne__agenda {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
}
#test-rg-page.is-revealed .test-rg-aLaUne__cordoue {
    opacity: 1;
    transform: none;
    transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
    #test-rg-page .test-rg-aLaUne__main,
    #test-rg-page .test-rg-aLaUne__agenda,
    #test-rg-page .test-rg-aLaUne__cordoue {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
#test-rg-page {
    font-family: 'Raleway', sans-serif;
    color: #555;
    background: #fff;
}
#test-rg-page * { box-sizing: border-box; }
#test-rg-page a { color: inherit; text-decoration: none; }

/* Header (Phase 1) */
#test-rg-page .test-rg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    background: #fff;
    border-bottom: 1px solid #E5E5E5;
    max-width: 1440px;
    margin: 0 auto;
}
#test-rg-page .test-rg-header__logo img {
    height: 70px;
    display: block;
}
#test-rg-page .test-rg-header__menu ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
#test-rg-page .test-rg-header__menu a {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
#test-rg-page .test-rg-header__menu a:hover { color: #165F70; }
#test-rg-page .test-rg-header__menu li.current-menu-item a { color: #165F70; font-weight: 600; }

/* Sélecteur de langue WPML */
#test-rg-page .test-rg-header__lang { margin-left: 24px; }
#test-rg-page .test-rg-header__lang ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}
#test-rg-page .test-rg-header__lang li { padding: 0; }
#test-rg-page .test-rg-header__lang li + li::before {
    content: '·';
    color: #ccc;
    margin-right: 4px;
}
#test-rg-page .test-rg-header__lang a {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 6px;
    transition: color 0.2s;
}
#test-rg-page .test-rg-header__lang a:hover { color: #165F70; }
#test-rg-page .test-rg-header__lang li.is-active a { color: #165F70; }

/* Bouton hamburger : caché sur desktop, visible et fonctionnel sur mobile */
#test-rg-page .test-rg-header__burger {
    display: none;
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    z-index: 30;
}
#test-rg-page .test-rg-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #222;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Animation hamburger -> croix quand ouvert */
#test-rg-page .test-rg-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
#test-rg-page .test-rg-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#test-rg-page .test-rg-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

#test-rg-page .test-rg-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    /* Drawer mobile fixé hors écran (transform translateX(100%)) → on coupe le débordement horizontal */
    html, body.test-rg-page-body { overflow-x: hidden; }
    #test-rg-page .test-rg-header {
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 16px;
    }
    #test-rg-page .test-rg-header__burger { display: flex; }
    /* Drawer plein écran qui slide depuis la droite */
    #test-rg-page .test-rg-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(85vw, 360px);
        /* Panel blanc 80 % + flou pour rester lisible et apparaître blanc (pas grisé par le backdrop) */
        background: rgba(255, 255, 255, 0.80);
        -webkit-backdrop-filter: saturate(140%) blur(14px);
                backdrop-filter: saturate(140%) blur(14px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 80px 28px 32px 28px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9000;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
    }
    /* Burger au-dessus du drawer pour rester cliquable (X de fermeture visible) */
    #test-rg-page .test-rg-header__burger {
        position: relative;
        z-index: 9999;
    }
    /* Le header doit dominer le hero-edito en z-index pour que son drawer fixe (descendant) passe au-dessus
       du contexte de stack du hero. Sans cela, isolation: isolate sur .test-rg-toplane piège le drawer. */
    #test-rg-page .test-rg-toplane .test-rg-header { z-index: 100; }
    #test-rg-page .test-rg-header__nav.is-open { transform: translateX(0); }
    /* Backdrop léger quand drawer ouvert : assez pour signaler "modal", trop discret pour griser le panel blanc */
    #test-rg-page .test-rg-header__nav.is-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.18);
        z-index: -1;
        animation: rgFadeIn 0.3s ease;
    }
    #test-rg-page .test-rg-header__menu ul {
        flex-direction: column;
        gap: 0;
    }
    #test-rg-page .test-rg-header__menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    #test-rg-page .test-rg-header__menu a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
    }
    #test-rg-page .test-rg-header__lang {
        margin: 24px 0 0 0;
        padding-top: 24px;
        border-top: 1px solid #e0e0e0;
    }
    #test-rg-page .test-rg-header__lang ul { justify-content: flex-start; gap: 16px; }
}

/* Titres de section avec mot souligné (Phase 3) */
#test-rg-page .test-rg-section-title {
    font-family: 'EB Garamond', serif;
    font-size: 40px;
    font-weight: 400;
    color: #222;
    margin: 0 0 48px 0;
    line-height: 1.2;
    text-align: left;
}
#test-rg-page .test-rg-section-title .test-rg-underline {
    color: #165F70;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
@media (max-width: 700px) {
    #test-rg-page .test-rg-section-title { font-size: 28px; margin-bottom: 32px; }
}

/* Section Institutions partenaires — marquee défilement continu (allégé) */
#test-rg-page .test-rg-partners {
    padding: 48px 0;
    background: #fff;
    border-top: 1px solid #f0eee8;
    border-bottom: 1px solid #f0eee8;
    overflow: hidden;
}
#test-rg-page .test-rg-partners__title {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    text-align: center;
    margin: 0 0 28px 0;
}
#test-rg-page .test-rg-partners__marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
#test-rg-page .test-rg-partners__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: rgPartnersScroll 60s linear infinite;
}
#test-rg-page .test-rg-partners__marquee:hover .test-rg-partners__track { animation-play-state: paused; }
#test-rg-page .test-rg-partners__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 36px;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}
#test-rg-page .test-rg-partners__item:hover { opacity: 1; }
#test-rg-page .test-rg-partners__item img {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}
@keyframes rgPartnersScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    #test-rg-page .test-rg-partners__track { animation: none; flex-wrap: wrap; justify-content: center; gap: 24px; }
}

/* Section "Le réseau Pluriel" — histoire + 3 institutions FUCE/FIUC/UCLy */
#test-rg-page .test-rg-reseau {
    padding: 80px 40px;
    background: #f8f6f0;
    color: #222;
}
#test-rg-page .test-rg-reseau__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
#test-rg-page .test-rg-reseau .test-rg-section-title { text-align: center; margin-bottom: 28px; }
#test-rg-page .test-rg-reseau__lead {
    font-family: 'EB Garamond', serif;
    font-size: 19px;
    line-height: 1.65;
    color: #333;
    max-width: 760px;
    margin: 0 auto 56px auto;
    text-align: center;
}
#test-rg-page .test-rg-reseau__lead strong { font-weight: 600; color: #165F70; }
#test-rg-page .test-rg-reseau__institutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}
#test-rg-page .test-rg-reseau__inst {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 28px 20px;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid transparent;
}
#test-rg-page .test-rg-reseau__inst:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(22, 95, 112, 0.12);
    border-color: #e3dfd2;
}
#test-rg-page .test-rg-reseau__inst-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 18px;
    /* Les logos initiaux étaient conçus pour fond foncé : on inverse pour fond clair */
    filter: invert(1) hue-rotate(180deg) brightness(0.7);
}
#test-rg-page .test-rg-reseau__inst-logo img {
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
}
#test-rg-page .test-rg-reseau__inst-role {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #165F70;
    margin-bottom: 8px;
}
#test-rg-page .test-rg-reseau__inst-name {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 1.3;
    color: #222;
}
@media (max-width: 900px) {
    #test-rg-page .test-rg-reseau { padding: 48px 20px; }
    #test-rg-page .test-rg-reseau__institutions { grid-template-columns: 1fr; gap: 20px; }
    #test-rg-page .test-rg-reseau__lead { font-size: 17px; }
}

/* ============================================================
   Notre réseau — marquee de chercheurs (ordre aléatoire à chaque visite)
   ============================================================ */
#test-rg-page .test-rg-reseau-cher { padding: 72px 0 64px; background: #f7f4ec; overflow: hidden; }
#test-rg-page .test-rg-reseau-cher__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
#test-rg-page .test-rg-reseau-cher .test-rg-section-title { text-align: center; margin-bottom: 12px; }
#test-rg-page .test-rg-reseau-cher__lead {
    text-align: center;
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    margin: 0 0 40px 0;
    line-height: 1.5;
}
#test-rg-page .test-rg-reseau-cher__lead strong { color: #165F70; font-weight: 700; font-size: 17px; }
#test-rg-page .test-rg-reseau-cher__marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
#test-rg-page .test-rg-reseau-cher__track {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: max-content;
    animation: rgReseauCherScroll 960s linear infinite;
}
#test-rg-page .test-rg-reseau-cher__marquee:hover .test-rg-reseau-cher__track { animation-play-state: paused; }
#test-rg-page .test-rg-reseau-cher__item {
    flex-shrink: 0;
    width: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.2s ease;
    padding: 4px 0 8px;
}
#test-rg-page .test-rg-reseau-cher__item:hover { transform: translateY(-3px); }
#test-rg-page .test-rg-reseau-cher__photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #e5e8ea;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#test-rg-page .test-rg-reseau-cher__item:hover .test-rg-reseau-cher__photo {
    border-color: #c3dee4;
    box-shadow: 0 4px 14px rgba(22, 95, 112, 0.18);
}
#test-rg-page .test-rg-reseau-cher__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#test-rg-page .test-rg-reseau-cher__name {
    font-family: 'EB Garamond', serif;
    font-size: 14px;
    color: #222;
    line-height: 1.25;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#test-rg-page .test-rg-reseau-cher__univ {
    font-family: 'Raleway', sans-serif;
    font-size: 10.5px;
    color: #777;
    line-height: 1.3;
    letter-spacing: 0.2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#test-rg-page .test-rg-reseau-cher__cta { text-align: center; margin-top: 36px; }
@keyframes rgReseauCherScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    #test-rg-page .test-rg-reseau-cher__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        width: 100%;
    }
}
@media (max-width: 700px) {
    #test-rg-page .test-rg-reseau-cher { padding: 48px 0; }
    #test-rg-page .test-rg-reseau-cher__item { width: 100px; }
    #test-rg-page .test-rg-reseau-cher__photo { width: 64px; height: 64px; }
    #test-rg-page .test-rg-reseau-cher__name { font-size: 12.5px; }
    #test-rg-page .test-rg-reseau-cher__univ { font-size: 9.5px; }
}

/* ============================================================
   Nuage de thématiques — pills cliquables, taille proportionnelle au nombre de chercheurs
   ============================================================ */
#test-rg-page .test-rg-cloud { padding: 80px 24px 72px; background: #fff; }
#test-rg-page .test-rg-cloud__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
#test-rg-page .test-rg-cloud .test-rg-section-title { margin-bottom: 12px; }
#test-rg-page .test-rg-cloud__lead {
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    margin: 0 0 36px 0;
}
#test-rg-page .test-rg-cloud__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 10px 12px;
    line-height: 1;
}
#test-rg-page .test-rg-cloud__tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f3efe5;
    color: #2b2b2b;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    line-height: 1.1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid transparent;
}
#test-rg-page .test-rg-cloud__tag:hover {
    background: #165F70;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(22, 95, 112, 0.22);
}
#test-rg-page .test-rg-cloud__tag-count {
    margin-left: 7px;
    font-size: 0.78em;
    color: #888;
    font-weight: 600;
    transition: color 0.18s ease;
}
#test-rg-page .test-rg-cloud__tag:hover .test-rg-cloud__tag-count { color: rgba(255,255,255,0.78); }
/* 5 paliers de taille (du plus petit au plus volumineux) — la classe est appliquée côté PHP selon le quintile de count */
#test-rg-page .test-rg-cloud__tag--xs { font-size: 13px; padding: 7px 13px; }
#test-rg-page .test-rg-cloud__tag--s  { font-size: 14px; padding: 8px 14px; }
#test-rg-page .test-rg-cloud__tag--m  { font-size: 15.5px; padding: 9px 16px; }
#test-rg-page .test-rg-cloud__tag--l  { font-size: 17px; padding: 10px 18px; font-weight: 600; }
#test-rg-page .test-rg-cloud__tag--xl { font-size: 19px; padding: 11px 20px; font-weight: 600; background: #e8e1cf; }
#test-rg-page .test-rg-cloud__more { margin-top: 32px; }
@media (max-width: 700px) {
    #test-rg-page .test-rg-cloud { padding: 56px 16px 48px; }
    #test-rg-page .test-rg-cloud__tags { gap: 8px; }
    #test-rg-page .test-rg-cloud__tag--xs { font-size: 12px; padding: 6px 10px; }
    #test-rg-page .test-rg-cloud__tag--s  { font-size: 12.5px; padding: 6px 11px; }
    #test-rg-page .test-rg-cloud__tag--m  { font-size: 13.5px; padding: 7px 12px; }
    #test-rg-page .test-rg-cloud__tag--l  { font-size: 14.5px; padding: 7px 13px; }
    #test-rg-page .test-rg-cloud__tag--xl { font-size: 16px; padding: 8px 15px; }
}

/* Phase 3 — Refonte typo titre "Institutions partenaires" (existant)
 * Specificity bumpée pour écraser les règles globales du thème */
#test-rg-page section.institutions-container {
    padding: 60px 40px !important;
    background: #fff !important;
    max-width: 1280px;
    margin: 0 auto !important;
}
#test-rg-page section.institutions-container h2.title-institution {
    font-family: 'EB Garamond', serif !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    color: #222 !important;
    margin: 0 0 48px 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
    background: none !important;
    word-spacing: normal !important;
    white-space: normal !important;
    display: block !important; /* override le display: flex global qui mange les espaces */
    justify-content: flex-start !important;
}
/* Underline span (signature mot souligné) appliqué partout dans la page test-rg */
#test-rg-page .test-rg-underline {
    color: #165F70 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 6px !important;
}
/* Masquer le pseudo-élément (le chevron/diamant décoratif si existant) */
#test-rg-page section.institutions-container h2.title-institution::before,
#test-rg-page section.institutions-container h2.title-institution::after {
    display: none !important;
}

/* Hotfix : masquer la carte Leaflet qui déborde (sera supprimée en Phase 5) */
#test-rg-page .maps-container { display: none !important; }


/* Phase 4 — Section À la une (flux multi-types + agenda) */
#test-rg-page .test-rg-aLaUne {
    padding: 60px 40px;
    background: #fff;
}
#test-rg-page .test-rg-aLaUne__layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}
#test-rg-page .test-rg-aLaUne__main { min-width: 0; }
/* 3e colonne Cordoue : visible dès 1024px (tablette + desktop) */
#test-rg-page .test-rg-aLaUne__cordoue { display: none; }
/* Entre 901px et 1023px : 2 colonnes (main + agenda) — Cordoue cachée mais on évite la 3e colonne fantôme */
@media (min-width: 901px) and (max-width: 1023px) {
    #test-rg-page .test-rg-aLaUne__layout {
        grid-template-columns: 1.6fr 1fr;
        gap: 32px;
    }
}
@media (min-width: 1024px) {
    #test-rg-page .test-rg-aLaUne__layout {
        max-width: 1600px;
        grid-template-columns: 1.6fr 1fr 0.85fr; /* Cordoue toujours plus étroite que Agenda (hiérarchie visuelle) */
        gap: 32px;
    }
    #test-rg-page .test-rg-aLaUne__cordoue {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 24px;
        background: transparent;
        color: #222;
        padding: 0;
    }
}
/* Écrans moyens-grands (1400-1699px) : on donne plus d'espace à la colonne main pour que les titres respirent,
   au détriment de la colonne Cordoue (-33 %) qui reste lisible avec un titre bref. Agenda légèrement réduit (-5 %). */
@media (min-width: 1400px) {
    #test-rg-page .test-rg-aLaUne__layout {
        grid-template-columns: 2.3fr 0.95fr 0.75fr;
        gap: 36px;
    }
}
/* Très grands écrans (≥1700px) : Agenda > Cordoue pour conserver la hiérarchie visuelle */
@media (min-width: 1700px) {
    #test-rg-page .test-rg-aLaUne__layout {
        grid-template-columns: 2fr 1.1fr 1fr;
        gap: 40px;
    }
}
#test-rg-page .test-rg-cordoue__title {
    font-size: 28px !important;
    margin: 0 0 20px 0 !important;
    color: #222;
}
/* Carte principale (hero) : discours d'ouverture Younès — fond grenat dédié */
#test-rg-page .test-rg-cordoue__hero {
    display: block;
    width: 100%;
    background: #64161B;
    border: 0;
    padding: 16px 16px 18px 16px;
    text-align: left;
    color: #fff;
    cursor: pointer;
    margin-bottom: 18px;
    border-radius: 6px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    /* Le theme global applique text-shadow blanc 80% sur tous les <button>,
       ce qui crée un halo blanc sur fond grenat. On le neutralise. */
    text-shadow: none !important;
}
#test-rg-page .test-rg-cordoue__hero *,
#test-rg-page .test-rg-cordoue__row,
#test-rg-page .test-rg-cordoue__row * { text-shadow: none !important; }
#test-rg-page .test-rg-cordoue__hero:hover {
    box-shadow: 0 8px 24px rgba(100, 22, 27, 0.35);
    transform: translateY(-2px);
}
#test-rg-page .test-rg-cordoue__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    margin-bottom: 12px;
}
#test-rg-page .test-rg-cordoue__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}
#test-rg-page .test-rg-cordoue__hero:hover .test-rg-cordoue__thumb img {
    transform: scale(1.06);
    filter: brightness(0.85);
}
/* Bouton play : SVG dans cercle blanc semi-transparent, positionné en haut-gauche pour ne pas masquer le visage du speaker */
#test-rg-page .test-rg-cordoue__play {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #64161B;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
#test-rg-page .test-rg-cordoue__play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    display: block;
}
#test-rg-page .test-rg-cordoue__hero:hover .test-rg-cordoue__play {
    background: #fff;
    transform: scale(1.1);
}
#test-rg-page .test-rg-cordoue__hero-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#test-rg-page .test-rg-cordoue__hero-speaker {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.75);
}
#test-rg-page .test-rg-cordoue__hero-title {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
}
/* Liste défilante : 5 vidéos visibles dans un viewport, défilement continu vertical */
#test-rg-page .test-rg-cordoue__list-viewport {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px 0;
    /* Hauteur = 5 items × 72px */
    height: calc(5 * 72px);
    /* Fade au top et au bottom pour un effet "ticker" élégant */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
#test-rg-page .test-rg-cordoue__list {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
#test-rg-page .test-rg-cordoue__item {
    height: 72px;
    display: flex;
    align-items: stretch;
}
#test-rg-page .test-rg-cordoue__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    margin: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
    border-bottom: 1px solid #EEE;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}
#test-rg-page .test-rg-cordoue__row:hover {
    background: #f7fafb;
    transform: translateX(2px);
}
#test-rg-page .test-rg-cordoue__row-thumb {
    position: relative;
    flex-shrink: 0;
    width: 92px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    background: #1c1c1c;
}
#test-rg-page .test-rg-cordoue__row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease, transform 0.4s ease;
}
/* Mini-bouton play : cercle blanc avec triangle SVG centré, animé au hover (un seul élément, pas de border-tricks) */
#test-rg-page .test-rg-cordoue__row-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
#test-rg-page .test-rg-cordoue__row-play svg {
    margin-left: 1px; /* compensation visuelle du triangle (centre optique légèrement à droite du centre géométrique) */
    display: block;
}
#test-rg-page .test-rg-cordoue__row:hover .test-rg-cordoue__row-thumb img {
    transform: scale(1.08);
    opacity: 0.92;
}
#test-rg-page .test-rg-cordoue__row:hover .test-rg-cordoue__row-play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.18);
}
#test-rg-page .test-rg-cordoue__row-caption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
#test-rg-page .test-rg-cordoue__row-speaker {
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64161B;
}
#test-rg-page .test-rg-cordoue__row-title {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#test-rg-page .test-rg-cordoue__cta {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64161B;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 22, 27, 0.4);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: border-color 0.2s ease, color 0.2s ease;
}
#test-rg-page .test-rg-cordoue__cta:hover { border-color: #64161B; color: #4a1014; }

/* Modale YouTube */
.test-rg-yt-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    /* Fond opaque appliqué directement sur la modale (le backdrop n'est qu'une zone cliquable au-dessus) */
    background: #0a0a0a;
}
.test-rg-yt-modal.is-open { display: flex; }
.test-rg-yt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: transparent !important; /* override le theme global qui applique #e6e6e6 sur tout button */
    border: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    appearance: none;
}
.test-rg-yt-modal__close {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.test-rg-yt-modal__inner {
    position: relative;
    width: min(90vw, 960px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.test-rg-yt-modal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.test-rg-yt-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.test-rg-yt-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.test-rg-yt-modal__close:hover { color: #d8f0f5; }
.test-rg-yt-modal__title {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    margin: 0;
    text-align: center;
    opacity: 0.85;
}

/* Liens "Voir tous les contenus" en bas de la section À la une : sobre, alignés, hover discret */
#test-rg-page .test-rg-aLaUne__more {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}
#test-rg-page .test-rg-aLaUne__more-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 12px;
}
#test-rg-page .test-rg-aLaUne__more ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 4px 16px;
}
#test-rg-page .test-rg-aLaUne__more li { margin: 0; }
#test-rg-page .test-rg-aLaUne__more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
#test-rg-page .test-rg-aLaUne__more-link:hover {
    color: #165F70;
    border-bottom-color: #165F70;
}
#test-rg-page .test-rg-aLaUne__more-arrow {
    color: #165F70;
    transition: transform 0.2s ease;
}
#test-rg-page .test-rg-aLaUne__more-link:hover .test-rg-aLaUne__more-arrow {
    transform: translateX(3px);
}

/* Layout grille "À la une" : grid 2 colonnes avec auto-flow dense
   (permet à la card combinée entretien+livre de s'étaler sur grid-column 1/-1). */
#test-rg-page .test-rg-aLaUne__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
    margin-top: 32px;
}
#test-rg-page .test-rg-aLaUne__grid > .test-rg-card {
    display: block;
    width: 100%;
    margin: 0;
}
/* Cards en mode "couverture de livre" : image portrait affichée sans crop (ratio naturel) */
#test-rg-page .test-rg-card--portrait .test-rg-card__image {
    aspect-ratio: auto;
    background: #f5f2eb;
    padding: 24px 28px 8px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#test-rg-page .test-rg-card--portrait .test-rg-card__image img {
    width: auto;
    max-width: 70%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
#test-rg-page .test-rg-card--portrait:hover .test-rg-card__image img {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#test-rg-page .test-rg-card {
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
#test-rg-page .test-rg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
#test-rg-page .test-rg-card a { display: block; text-decoration: none; color: inherit; }
#test-rg-page .test-rg-card__image { overflow: hidden; aspect-ratio: 16/9; background: #F5F2EB; }
/* Fond par défaut spécifique aux cartes Groupes de recherche : nuance pâle de #165F70 (couleur de référence) */
#test-rg-page .test-rg-card--groupe .test-rg-card__image { background: #D4E3E7; }
#test-rg-page .test-rg-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
#test-rg-page .test-rg-card:hover .test-rg-card__image img { transform: scale(1.04); }
#test-rg-page .test-rg-card__body { padding: 20px 24px; }
#test-rg-page .test-rg-card--hero .test-rg-card__body { padding: 32px 36px; }
/* Card hero : layout horizontal (texte gauche, image droite). Texte un peu plus large que l'image
   pour que le titre puisse respirer sur les écrans moyens. */
#test-rg-page .test-rg-card--hero a {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
    gap: 0;
}
#test-rg-page .test-rg-card--hero .test-rg-card__body {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#test-rg-page .test-rg-card--hero .test-rg-card__image {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
}
@media (max-width: 1399px) {
    #test-rg-page .test-rg-card--hero a {
        grid-template-columns: 1fr;
    }
    #test-rg-page .test-rg-card--hero .test-rg-card__image {
        grid-column: 1;
        grid-row: 1;  /* image au-dessus du texte sur les écrans serrés (sous 1400px le main n'est pas assez large pour respirer en 2 cols) */
        aspect-ratio: 16/9;
        min-height: 0;
    }
    #test-rg-page .test-rg-card--hero .test-rg-card__body {
        grid-column: 1;
        grid-row: 2;
    }
}
#test-rg-page .test-rg-card__badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    border-radius: 3px;
    margin-bottom: 12px;
}
#test-rg-page .test-rg-badge--actu { background: #165F70; }
#test-rg-page .test-rg-badge--publi { background: #165F70; }
#test-rg-page .test-rg-badge--article { background: #165F70; }
#test-rg-page .test-rg-badge--video { background: #165F70; }
#test-rg-page .test-rg-card__title {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
#test-rg-page .test-rg-card--hero .test-rg-card__title { font-size: 28px; line-height: 1.25; }
#test-rg-page .test-rg-card__excerpt {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px 0;
}
/* Extrait sur les cartes « Récents » secondaires (grille) : compact, 3 lignes max */
#test-rg-page .test-rg-card--small .test-rg-card__excerpt {
    font-size: 13px; line-height: 1.5; margin: 8px 0 0 0;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#test-rg-page .test-rg-card__meta {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Méta structurée : overline (badge + date) au-dessus du titre, footline (institution) au-dessous */
#test-rg-page .test-rg-card__overline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
/* Dans le contexte overline, le badge ne doit pas pousser la date vers le haut */
#test-rg-page .test-rg-card__overline .test-rg-card__badge {
    margin-bottom: 0;
    line-height: 1;
}
#test-rg-page .test-rg-card__date {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}
#test-rg-page .test-rg-card__footline {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
}

/* Encart « À cette occasion paraît » : couplage card actualité + livre lié (champ ACF rel_publication) */
#test-rg-page .test-rg-card__rel-pub {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #f5f2eb;
    border-top: 1px solid #e5e8ea;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    position: relative;
    flex-wrap: wrap;
}
#test-rg-page .test-rg-card__rel-pub:hover { background: #ece7da; }
#test-rg-page .test-rg-card__rel-pub-overline {
    flex-basis: 100%;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6a7378;
    margin: 0;
}
#test-rg-page .test-rg-card__rel-pub-cover {
    flex-shrink: 0;
    width: 90px;
    line-height: 0;
}
#test-rg-page .test-rg-card__rel-pub-cover img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}
#test-rg-page .test-rg-card__rel-pub-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#test-rg-page .test-rg-card__rel-pub-title {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.3;
    color: #1a1a1a;
}
#test-rg-page .test-rg-card__rel-pub-editeur {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #6a7378;
}

/* === Card combinée (entretien + livre lié) sur écrans larges (≥1100px) :
   - occupe toute la largeur de la grille (grid-column: 1 / -1)
   - layout interne 2 colonnes : entretien à gauche, livre à droite
   En-dessous de 1100px, la card retombe sur un layout vertical (image + titre + encart livre full-width). */
@media (min-width: 1100px) {
    #test-rg-page .test-rg-aLaUne__grid > .test-rg-card--small.test-rg-card--has-rel-pub {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.7fr 1fr;
        gap: 0;
        align-items: stretch;
    }
    /* Col gauche : entretien — layout vertical (image au-dessus, body en dessous) comme une card classique */
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub > a:first-child {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: 100%;
    }
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub > a:first-child .test-rg-card__image {
        flex: 0 0 auto;
        aspect-ratio: 3 / 2;
        width: 100%;
        overflow: hidden;
    }
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub > a:first-child .test-rg-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 15%;
    }
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub > a:first-child .test-rg-card__body {
        flex: 1;
        padding: 18px 22px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
    }
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub .test-rg-card__title {
        font-size: 18px;
        line-height: 1.3;
    }
    /* On masque l'extrait sur la card combinée (déjà serrée), on garde titre + overline + footline */
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub .test-rg-card__excerpt {
        display: none;
    }
    /* Col droite : encart livre — couverture seule (centrée), titre masqué (la couverture parle d'elle-même) */
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub .test-rg-card__rel-pub {
        border-top: none;
        border-left: 1px solid #e5e8ea;
        gap: 0;
        padding: 24px;
        align-items: center;
        align-content: center;
        justify-content: center;
        flex-wrap: nowrap;
    }
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub .test-rg-card__rel-pub-cover {
        width: 170px;
        align-self: center;
        flex-shrink: 0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub .test-rg-card__rel-pub:hover .test-rg-card__rel-pub-cover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }
    /* Sur grands écrans, la couverture suffit (le clic mène à la fiche du livre) — on masque le titre texte */
    #test-rg-page .test-rg-card--small.test-rg-card--has-rel-pub .test-rg-card__rel-pub-info {
        display: none;
    }
}

/* Sur la card hero, l'encart peut s'étirer plus largement */
#test-rg-page .test-rg-card--hero .test-rg-card__rel-pub-title { font-size: 20px; }
#test-rg-page .test-rg-card--hero .test-rg-card__rel-pub-cover { width: 100px; }
@media (max-width: 700px) {
    #test-rg-page .test-rg-card__rel-pub { padding: 14px 18px; gap: 14px; }
    #test-rg-page .test-rg-card__rel-pub-cover { width: 70px; }
    #test-rg-page .test-rg-card__rel-pub-title { font-size: 16px; }
}
#test-rg-page .test-rg-card__lieu {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #165F70;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#test-rg-page .test-rg-card__lieu .test-rg-icon-pin {
    flex-shrink: 0;
    margin-bottom: -1px;
}
#test-rg-page .test-rg-card__institution {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #555;
    font-style: italic;
}

/* Colonne agenda */
#test-rg-page .test-rg-aLaUne__agenda { min-width: 0; }
#test-rg-page .test-rg-aLaUne__agenda .test-rg-section-title { font-size: 32px; }
#test-rg-page .test-rg-card--event-hero {
    background: #f7fafb;
    padding: 32px 28px;
    border: none;
    margin-bottom: 24px;
}
#test-rg-page .test-rg-event__date { margin-bottom: 16px; }
#test-rg-page .test-rg-event__day {
    font-family: 'EB Garamond', serif;
    font-size: 64px;
    font-weight: 700;
    color: #165F70;
    line-height: 1;
    display: block;
}
#test-rg-page .test-rg-event__day sup,
#test-rg-page .test-rg-event__date-small sup {
    font-size: 0.45em;
    vertical-align: super;
    font-weight: 700;
}
#test-rg-page .test-rg-event__month {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    margin-top: 4px;
    display: block;
}
#test-rg-page .test-rg-event__title {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
#test-rg-page .test-rg-event__meta {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #555;
    margin: 0 0 16px 0;
}
#test-rg-page .test-rg-cta {
    display: inline-block;
    color: #165F70;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Bascule mobile/desktop pour le 1er événement Agenda :
   - desktop (≥701px) : carte hero (gros chiffre + titre EB Garamond) visible, version compacte du 1er masquée
   - mobile (<700px)  : hero masqué, tous les événements en version compacte (uniformité) */
@media (min-width: 701px) {
    #test-rg-page .test-rg-card--event-small-hide-desktop { display: none; }
}
@media (max-width: 700px) {
    #test-rg-page .test-rg-card--event-hero { display: none; }
}

#test-rg-page .test-rg-card--event-small {
    border: none;
    border-bottom: 1px solid #E5E5E5;
    border-radius: 0;
    margin: 0;
    background: transparent;
    transition: background 0.2s ease;
}
#test-rg-page .test-rg-card--event-small:hover { background: #f7fafb; transform: none; box-shadow: none; }
#test-rg-page .test-rg-card--event-small a {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 12px;
    text-decoration: none;
}
#test-rg-page .test-rg-event__date-small {
    flex-shrink: 0;
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 6px 4px 8px 4px;
    border-radius: 4px;
    background: #f7fafb;
    line-height: 1;
}
#test-rg-page .test-rg-event__day-num {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #165F70;
    line-height: 1;
}
#test-rg-page .test-rg-event__day-num sup {
    font-size: 0.45em;
    vertical-align: super;
    font-weight: 700;
}
#test-rg-page .test-rg-event__month-abbr {
    display: block;
    margin-top: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}
#test-rg-page .test-rg-event__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
#test-rg-page .test-rg-event__title-small {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #222;
    line-height: 1.4;
    font-weight: 500;
}
/* Cartouche nature d'événement (Conférence, Colloque, etc.) — style overline cohérent avec les badges À la une */
#test-rg-page .test-rg-badge--evt {
    display: inline-block;
    background: #165F70;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
    line-height: 1;
    align-self: flex-start;
}
#test-rg-page .test-rg-badge--evt-small {
    font-size: 9px;
    padding: 3px 8px;
    margin-bottom: 0;
}
/* Lieu avec icône pin pour les events agenda */
#test-rg-page .test-rg-event__lieu {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #165F70;
}
#test-rg-page .test-rg-event__lieu--small {
    font-size: 11px;
    color: #555;
    font-weight: 600;
}
#test-rg-page .test-rg-event__lieu svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Liste compacte « À lire aussi » sous l'agenda — items sans image (badge + titre + date) */
#test-rg-page .test-rg-aLaUne__more-title {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: #222;
    margin: 36px 0 8px 0;
    padding-top: 24px;
    border-top: 1px solid #d8d4cb;
}
#test-rg-page .test-rg-aLaUne__more-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
#test-rg-page .test-rg-aLaUne__more-item {
    border-bottom: 1px solid #E5E5E5;
}
#test-rg-page .test-rg-aLaUne__more-item:last-child { border-bottom: none; }
#test-rg-page .test-rg-aLaUne__more-item a {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge date"
        "title title";
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    padding: 14px 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
#test-rg-page .test-rg-aLaUne__more-item a:hover { background: #f7fafb; }
#test-rg-page .test-rg-aLaUne__more-item .test-rg-card__badge {
    grid-area: badge;
    justify-self: start;
}
#test-rg-page .test-rg-aLaUne__more-item-date {
    grid-area: date;
    justify-self: end;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a7378;
}
#test-rg-page .test-rg-aLaUne__more-item-title {
    grid-area: title;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 1.35;
    color: #222;
    transition: color 0.15s ease;
}
#test-rg-page .test-rg-aLaUne__more-item a:hover .test-rg-aLaUne__more-item-title { color: #165F70; }
@media (max-width: 700px) {
    #test-rg-page .test-rg-aLaUne__more-title { font-size: 20px; margin-top: 28px; }
    #test-rg-page .test-rg-aLaUne__more-item-title { font-size: 15px; }
}
/* Footline du hero event (lieu + institution sur une ligne) */
#test-rg-page .test-rg-event__footline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin: 12px 0;
    padding-top: 12px;
    border-top: 1px solid rgba(22, 95, 112, 0.15);
}

@media (max-width: 900px) {
    #test-rg-page .test-rg-aLaUne { padding: 40px 20px; }
    #test-rg-page .test-rg-aLaUne__layout { grid-template-columns: 1fr; gap: 40px; }
    #test-rg-page .test-rg-aLaUne__grid { grid-template-columns: 1fr; }
    #test-rg-page .test-rg-card--hero .test-rg-card__title { font-size: 22px; }
}

/* Phase 6 — Comité scientifique */
#test-rg-page .test-rg-comite { padding: 80px 40px; background: #c3dee4; }
#test-rg-page .test-rg-comite__inner { max-width: 1280px; margin: 0 auto; }
#test-rg-page .test-rg-comite .test-rg-section-title { text-align: center; }
#test-rg-page .test-rg-comite__focus {
    position: relative;
    min-height: 280px;
    margin-bottom: 40px;
}
#test-rg-page .test-rg-comite__member {
    display: none;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
}
#test-rg-page .test-rg-comite__member.is-active { display: grid; animation: rgFadeIn 0.4s ease; }
@keyframes rgFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#test-rg-page .test-rg-comite__photo { width: 220px; height: 220px; flex-shrink: 0; }
#test-rg-page .test-rg-comite__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
#test-rg-page .test-rg-comite__info h3 {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
#test-rg-page .test-rg-comite__role-pluriel {
    display: inline-block;
    background: #165F70;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    line-height: 1.2;
}
#test-rg-page .test-rg-comite__fonction {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #165F70;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}
#test-rg-page .test-rg-comite__lieu {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #165F70;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
#test-rg-page .test-rg-comite__lieu svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
#test-rg-page .test-rg-comite__bio {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px 0;
}
#test-rg-page .test-rg-comite__bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 32px;
}
#test-rg-page .test-rg-comite__thumb {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #fff;
    transition: border-color 0.2s, transform 0.2s;
}
#test-rg-page .test-rg-comite__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#test-rg-page .test-rg-comite__thumb.is-active { border-color: #165F70; transform: scale(1.1); }
#test-rg-page .test-rg-comite__thumb:hover:not(.is-active) { border-color: #7fc1d2; }
#test-rg-page .test-rg-comite__cta { text-align: center; }

@media (max-width: 700px) {
    #test-rg-page .test-rg-comite__member { grid-template-columns: 1fr; text-align: center; padding: 24px; }
    #test-rg-page .test-rg-comite__photo { margin: 0 auto; width: 160px; height: 160px; }
    /* Mobile : harmoniser le bloc info en centrant tous les éléments (lieu inclus) */
    #test-rg-page .test-rg-comite__lieu { justify-content: center; }
}

/* Phase 7 — Groupes de recherche */
#test-rg-page .test-rg-groupes { padding: 80px 40px; background: #fff; }
#test-rg-page .test-rg-groupes__inner { max-width: 1280px; margin: 0 auto; }
#test-rg-page .test-rg-groupes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}
/* Écran large : forcer exactement 4 colonnes (les 4 nouveaux groupes 2026 alignés sur une seule ligne) */
@media (min-width: 1100px) {
    #test-rg-page .test-rg-groupes__inner { max-width: 1400px; }
    #test-rg-page .test-rg-groupes__grid { grid-template-columns: repeat(4, 1fr); }
}
#test-rg-page .test-rg-card--groupe .test-rg-card__title { font-size: 22px; }
#test-rg-page .test-rg-groupes__cta { text-align: center; }
@media (max-width: 700px) {
    #test-rg-page .test-rg-groupes { padding: 48px 20px; }
    /* Mobile : on conserve uniquement le titre du groupe — image et extrait masqués pour gagner de la place
       (le titre porte déjà l'essentiel ; image et extrait disponibles sur la fiche détail) */
    #test-rg-page .test-rg-groupes__grid { gap: 0; grid-template-columns: 1fr; }
    #test-rg-page .test-rg-card--groupe { border: none; border-bottom: 1px solid #e5e8ea; border-radius: 0; background: transparent; transition: background 0.2s ease; }
    #test-rg-page .test-rg-card--groupe:hover { background: #f7fafb; transform: none; box-shadow: none; }
    #test-rg-page .test-rg-card--groupe a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px; }
    #test-rg-page .test-rg-card--groupe a::after { content: '→'; color: #165F70; font-size: 18px; flex-shrink: 0; }
    #test-rg-page .test-rg-card--groupe .test-rg-card__image,
    #test-rg-page .test-rg-card--groupe .test-rg-card__excerpt { display: none; }
    #test-rg-page .test-rg-card--groupe .test-rg-card__body { padding: 0; flex: 1; }
    #test-rg-page .test-rg-card--groupe .test-rg-card__title { font-size: 17px; line-height: 1.35; margin: 0; color: #222; font-weight: 500; }
}

/* Phase 8 — Congrès (galerie uniforme avec overlay sur image obscurcie) */
#test-rg-page .test-rg-congres { padding: 80px 40px; background: #0d4651; color: #fff; }
#test-rg-page .test-rg-congres__inner { max-width: 1280px; margin: 0 auto; }
#test-rg-page .test-rg-congres .test-rg-section-title { color: #fff; margin-bottom: 40px; }
#test-rg-page .test-rg-congres .test-rg-section-title .test-rg-underline { color: #fff !important; text-decoration-color: #165F70 !important; }
#test-rg-page .test-rg-congres__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
/* Écran large : forcer exactement 5 colonnes (les 5 derniers congrès alignés sur une seule ligne) */
@media (min-width: 1100px) {
    #test-rg-page .test-rg-congres__inner { max-width: 1400px; }
    #test-rg-page .test-rg-congres__gallery { grid-template-columns: repeat(5, 1fr); }
}
#test-rg-page .test-rg-congres__card {
    position: relative;
    display: block;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#test-rg-page .test-rg-congres__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
/* Lien principal de la card congrès (couvre toute la zone — image, overlay, titre) */
#test-rg-page .test-rg-congres__card-cover {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: #fff;
}
/* Pastille "Actes" cliquable en haut à droite de la card (lien indépendant vers la publication des actes) */
#test-rg-page .test-rg-congres__card-actes {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #0d4651;
    border-radius: 999px;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
#test-rg-page .test-rg-congres__card-actes:hover {
    background: #fff;
    color: #165F70;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}
#test-rg-page .test-rg-congres__card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
#test-rg-page .test-rg-congres__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
#test-rg-page .test-rg-congres__card:hover .test-rg-congres__card-image img { transform: scale(1.06); }
#test-rg-page .test-rg-congres__card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(13, 70, 81, 0.35) 0%, rgba(13, 70, 81, 0.55) 50%, rgba(13, 70, 81, 0.92) 100%);
    transition: background 0.3s ease;
}
#test-rg-page .test-rg-congres__card:hover .test-rg-congres__card-overlay {
    background: linear-gradient(to bottom, rgba(13, 70, 81, 0.45) 0%, rgba(13, 70, 81, 0.65) 50%, rgba(13, 70, 81, 0.95) 100%);
}
#test-rg-page .test-rg-congres__card-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 18px;
    color: #fff;
}
#test-rg-page .test-rg-congres__card-place {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}
#test-rg-page .test-rg-congres__card-title {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    line-height: 1.25;
    color: #fff;
    margin: 0;
    font-weight: 400;
}
@media (max-width: 700px) {
    #test-rg-page .test-rg-congres { padding: 48px 20px; }
    #test-rg-page .test-rg-congres__gallery { grid-template-columns: repeat(2, 1fr); }
}
/* Anciennes classes Phase 8 (carte hero unique) — gardées pour compat mais non utilisées */
#test-rg-page .test-rg-congres__hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
#test-rg-page .test-rg-congres__hero-img { border-radius: 8px; overflow: hidden; }
#test-rg-page .test-rg-congres__hero-img img { width: 100%; height: auto; display: block; }
#test-rg-page .test-rg-congres__hero-title {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin: 16px 0;
    line-height: 1.25;
}
#test-rg-page .test-rg-congres__hero-excerpt {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0 0 24px 0;
}
#test-rg-page .test-rg-congres__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
#test-rg-page .test-rg-congres__archive-title {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 24px 0;
    text-align: center;
}
#test-rg-page .test-rg-congres__archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
#test-rg-page .test-rg-card--congres-small {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
#test-rg-page .test-rg-card--congres-small .test-rg-card__title { color: #fff; font-size: 17px; }
#test-rg-page .test-rg-card--congres-small .test-rg-card__meta { color: rgba(255,255,255,0.7); }
#test-rg-page .test-rg-card--congres-small:hover { background: rgba(255,255,255,0.15); }
@media (max-width: 900px) {
    #test-rg-page .test-rg-congres__hero { grid-template-columns: 1fr; }
}

/* Phase 9 — Vidéos */
#test-rg-page .test-rg-videos { padding: 80px 40px; background: #fff; }
#test-rg-page .test-rg-videos__inner { max-width: 1280px; margin: 0 auto; }
#test-rg-page .test-rg-videos__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}
#test-rg-page .test-rg-card--video-hero { border-radius: 8px; overflow: hidden; }
#test-rg-page .test-rg-videos__cta { padding: 24px; }
#test-rg-page .test-rg-videos__promesse {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: #222;
    line-height: 1.4;
    margin: 0 0 24px 0;
    font-style: italic;
}
@media (max-width: 900px) {
    #test-rg-page .test-rg-videos__layout { grid-template-columns: 1fr; }
}

/* Phase 10 — Institutions densifiées (override slider Flickity) */
#test-rg-page section.institutions-container .university_institution {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 32px !important;
    transform: none !important;
    width: 100% !important;
}
#test-rg-page section.institutions-container .insti-link-image {
    width: auto !important;
    margin: 0 !important;
    text-align: center;
    transition: transform 0.2s;
}
#test-rg-page section.institutions-container .insti-link-image:hover { transform: translateY(-2px); }
#test-rg-page section.institutions-container .insti-image {
    max-height: 80px !important;
    width: auto !important;
    margin: 0 auto 12px !important;
    display: block !important;
    object-fit: contain !important;
}
#test-rg-page section.institutions-container .flickity-slider,
#test-rg-page section.institutions-container .flickity-viewport {
    position: static !important;
    height: auto !important;
    transform: none !important;
}
/* Masquer les flèches du slider */
#test-rg-page section.institutions-container .flickity-button { display: none !important; }

/* Boutons CTA réutilisables */
#test-rg-page .test-rg-btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid currentColor;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
#test-rg-page .test-rg-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
#test-rg-page .test-rg-btn--primary {
    background: #165F70;
    color: #fff;
    border-color: #165F70;
}
#test-rg-page .test-rg-btn--primary:hover { background: #0d4651; border-color: #0d4651; }

/* Phase 11 — Newsletter banner — refonte typographique soignée + hovers fluides */
#test-rg-page .test-rg-newsletter {
    scroll-margin-top: 24px;
    position: relative;
    padding: 88px 40px;
    background: linear-gradient(135deg, #165F70 0%, #0d4651 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
/* Motif décoratif subtil (cercles concentriques) */
#test-rg-page .test-rg-newsletter::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
#test-rg-page .test-rg-newsletter::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
#test-rg-page .test-rg-newsletter__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    z-index: 1;
}
#test-rg-page .test-rg-newsletter .test-rg-section-title {
    text-align: center;
    color: #fff !important;
    font-size: 36px !important;
    margin: 0 0 16px 0 !important;
}
#test-rg-page .test-rg-newsletter__promesse {
    font-family: 'EB Garamond', serif;
    font-size: 19px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 36px 0;
    line-height: 1.5;
}
#test-rg-page .test-rg-newsletter__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
#test-rg-page .test-rg-newsletter__form input[name=firstName],
#test-rg-page .test-rg-newsletter__form input[name=lastName] { flex: 1 1 calc(50% - 6px); min-width: 0; }
#test-rg-page .test-rg-newsletter__form input[name=email] { flex: 1 1 calc(70% - 6px); min-width: 0; }
#test-rg-page .test-rg-newsletter__form select { flex: 0 0 calc(30% - 6px); min-width: 120px; }
#test-rg-page .test-rg-newsletter__form input[type=text],
#test-rg-page .test-rg-newsletter__form input[type=email] {
    padding: 14px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
#test-rg-page .test-rg-newsletter__form input[type=text]::placeholder,
#test-rg-page .test-rg-newsletter__form input[type=email]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
#test-rg-page .test-rg-newsletter__form input[type=text]:hover,
#test-rg-page .test-rg-newsletter__form input[type=email]:hover { background: rgba(255, 255, 255, 0.12); }
#test-rg-page .test-rg-newsletter__form input[type=text]:focus,
#test-rg-page .test-rg-newsletter__form input[type=email]:focus,
#test-rg-page .test-rg-newsletter__form select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}
#test-rg-page .test-rg-newsletter__form select {
    padding: 14px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
#test-rg-page .test-rg-newsletter__form select option { color: #222; }
#test-rg-page .test-rg-newsletter__form select:hover { background: rgba(255, 255, 255, 0.12); }
#test-rg-page .test-rg-newsletter__form button {
    flex-basis: 100%;
    margin-top: 8px;
    padding: 16px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #165F70;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
#test-rg-page .test-rg-newsletter__form button:hover {
    background: #d8f0f5;
    color: #0d4651;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
#test-rg-page .test-rg-newsletter__form button:active { transform: translateY(0); }
@media (max-width: 700px) {
    #test-rg-page .test-rg-newsletter__form { grid-template-columns: 1fr; }
    #test-rg-page .test-rg-newsletter .test-rg-section-title { font-size: 28px !important; }
}

/* Phase 11 — Footer principal */
.test-rg-footer {
    background: #222;
    color: #ccc;
    padding: 64px 40px 0;
}
.test-rg-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}
.test-rg-footer__col h4 {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 16px 0;
    text-transform: none;
    letter-spacing: 0;
}
.test-rg-footer__col p {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #aaa;
    margin: 0 0 12px 0;
}
.test-rg-footer__col a {
    color: #fff;
    transition: color 0.2s;
    text-decoration: none;
}
.test-rg-footer__col a:hover { color: #7fc1d2; }
.test-rg-footer__col ul { list-style: none; padding: 0; margin: 0; }
.test-rg-footer__col li { padding: 4px 0; }
.test-rg-footer__col li a {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #ccc;
}
.test-rg-footer__sub {
    max-width: 1280px;
    margin: 48px auto 0;
    padding: 24px 0 32px;
    border-top: 1px solid #444;
    text-align: center;
}
.test-rg-footer__sub p {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #888;
    margin: 0;
}
@media (max-width: 900px) {
    .test-rg-footer__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 550px) {
    .test-rg-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .test-rg-footer { padding: 48px 20px 0; }
    #test-rg-page .test-rg-newsletter { padding: 48px 20px; }
}

/* ============================================================
   Toplane : wrapper header + hero éditorial avec filigrane photo
   Photo PXL_20260213_163033723 en arrière-plan très clair, opacité uniforme
   sur tout le bandeau (header + hero), aucun contour
   ============================================================ */
#test-rg-page .test-rg-toplane {
    position: relative;
    isolation: isolate;
    background: #ffffff;
}
#test-rg-page .test-rg-toplane::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2026/02/PXL_20260213_163033723-1-1536x1157.jpg');
    background-size: cover;
    /* Recadrage : centre de l'image (point focal) */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    /* Léger voile blanc-cassé pour adoucir les contrastes de la photo */
    filter: saturate(0.6) contrast(0.9);
    /* Fondu en bas pour rejoindre le blanc de la section À la une */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}
/* Voile blanc dégradé du bord supérieur vers le bas pour préserver la lisibilité du logo et du menu */
#test-rg-page .test-rg-toplane::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 220px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    z-index: 0;
    pointer-events: none;
}
/* Tous les enfants au-dessus du filigrane */
#test-rg-page .test-rg-toplane > * { position: relative; z-index: 1; }
/* Header transparent dans la toplane : pas de fond blanc qui masquerait la photo, pas de séparateur */
#test-rg-page .test-rg-toplane .test-rg-header {
    background: transparent;
    border-bottom: none;
}
@media (max-width: 600px) {
    /* Sur mobile : encore plus discret pour ne pas alourdir la lecture */
    #test-rg-page .test-rg-toplane::before { opacity: 0.09; }
}

/* ============================================================
   Phase 0 — Hero éditorial (H1 + tagline + CTA)
   Pose immédiatement le contexte sur fond sobre, accent #165F70
   ============================================================ */
#test-rg-page .test-rg-hero-edito {
    padding: 52px 0 44px;
    /* Fond transparent pour laisser apparaître le filigrane porté par .test-rg-toplane */
    background: transparent;
    border-bottom: none;
}
#test-rg-page .test-rg-hero-edito__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}
#test-rg-page .test-rg-hero-edito__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: #165F70;
    margin: 0 0 12px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}
#test-rg-page .test-rg-hero-edito__title {
    font-family: 'EB Garamond', serif;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
}
#test-rg-page .test-rg-hero-edito__lede {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
    color: #444;
    margin: 0;
    max-width: 720px;
    font-family: 'Raleway', sans-serif;
}
#test-rg-page .test-rg-hero-edito__links {
    font-size: clamp(13px, 1.2vw, 14px);
    color: #666;
    margin: 12px 0 0;
    font-family: 'Raleway', sans-serif;
}
#test-rg-page .test-rg-hero-edito__links a {
    color: #165F70;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 95, 112, 0.3);
    transition: border-color 0.2s ease;
}
#test-rg-page .test-rg-hero-edito__links a:hover {
    border-bottom-color: #165F70;
}
/* Smooth scroll pour les ancres internes de la page test-rg (#comite-scientifique, etc.) */
html:has(#test-rg-page) { scroll-behavior: smooth; }
@media (max-width: 600px) {
    #test-rg-page .test-rg-hero-edito { padding: 32px 0 28px; }
}

/* ============================================================
   Section Bridge "Voir tous les contenus par type"
   Déplacée d'À la une vers le milieu de la page (après À la une)
   ============================================================ */
#test-rg-page .test-rg-bridge {
    padding: 56px 24px;
    background: #f5f7f8;
    border-top: 1px solid #e5e8ea;
    border-bottom: 1px solid #e5e8ea;
}
#test-rg-page .test-rg-bridge__inner {
    max-width: 1200px;
    margin: 0 auto;
}
#test-rg-page .test-rg-bridge__label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: #6a7378;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}
#test-rg-page .test-rg-bridge__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
#test-rg-page .test-rg-bridge__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #e5e8ea;
    border-radius: 4px;
    color: #165F70 !important;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
#test-rg-page .test-rg-bridge__link:hover {
    background: #165F70;
    color: #fff !important;
    border-color: #165F70;
    transform: translateY(-2px);
}
#test-rg-page .test-rg-bridge__arrow {
    font-size: 18px;
    transition: transform 0.2s;
}
#test-rg-page .test-rg-bridge__link:hover .test-rg-bridge__arrow { transform: translateX(4px); }
@media (max-width: 900px) {
    #test-rg-page .test-rg-bridge__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    #test-rg-page .test-rg-bridge__list { grid-template-columns: 1fr; }
    #test-rg-page .test-rg-bridge { padding: 40px 20px; }
}

/* ============================================================
   Barre de progression de scroll (top fixe, fine, accent #165F70)
   ============================================================ */
#test-rg-page .test-rg-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #165F70;
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================================
   Bouton retour-en-haut (visible après 800px scroll)
   ============================================================ */
#test-rg-page .test-rg-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #165F70;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(22,95,112,0.25);
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, opacity 0.3s;
    text-shadow: none !important;
    opacity: 0;
}
#test-rg-page .test-rg-back-to-top.is-visible {
    display: flex;
    opacity: 1;
}
#test-rg-page .test-rg-back-to-top:hover { background: #0f4853; transform: translateY(-2px); }
@media (max-width: 600px) {
    #test-rg-page .test-rg-back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}

/* ============================================================
   Partners — grille de cartes (logo + nom + ville)
   ============================================================ */
#test-rg-page .test-rg-partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1100px) {
    #test-rg-page .test-rg-partners__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1500px) {
    #test-rg-page .test-rg-partners__grid { grid-template-columns: repeat(5, 1fr); }
}
#test-rg-page .test-rg-partners__grid .test-rg-partners__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 24px 18px 20px;
    background: #fff;
    border: 1px solid #ece9e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    height: 100%;
}
#test-rg-page .test-rg-partners__grid .test-rg-partners__item:hover {
    border-color: #c3dee4;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(22, 95, 112, 0.10);
}
#test-rg-page .test-rg-partners__logo-wrap {
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#test-rg-page .test-rg-partners__grid .test-rg-partners__item img {
    max-height: 64px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
#test-rg-page .test-rg-partners__name {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 1.3;
    color: #222;
    margin: 0;
    font-weight: 500;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#test-rg-page .test-rg-partners__city {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
}
#test-rg-page .test-rg-partners__city svg {
    flex-shrink: 0;
    color: #165F70;
}
@media (max-width: 700px) {
    #test-rg-page .test-rg-partners__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 16px;
    }
    #test-rg-page .test-rg-partners__grid .test-rg-partners__item {
        padding: 18px 12px 16px;
        gap: 10px;
    }
    #test-rg-page .test-rg-partners__logo-wrap { height: 50px; }
    #test-rg-page .test-rg-partners__grid .test-rg-partners__item img { max-height: 44px; }
    #test-rg-page .test-rg-partners__name { font-size: 14px; min-height: 34px; }
    #test-rg-page .test-rg-partners__city { font-size: 11px; }
}

/* ============================================================
   Sticky-header allégé au scroll (compact + fond translucide)
   ============================================================ */
#test-rg-page .test-rg-header {
    transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
#test-rg-page .test-rg-header.is-scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
            backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#test-rg-page .test-rg-header.is-scrolled .test-rg-header__logo img {
    max-height: 50px;
    transition: max-height 0.2s ease;
}

/* ============================================================
   Comité — swiper horizontal sur mobile (économise ~400px)
   ============================================================ */
@media (max-width: 700px) {
    #test-rg-page .test-rg-comite__bar {
        display: flex !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 10px;
        padding: 8px 4px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    #test-rg-page .test-rg-comite__thumb {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }
    #test-rg-page .test-rg-comite__bar::-webkit-scrollbar { height: 4px; }
    #test-rg-page .test-rg-comite__bar::-webkit-scrollbar-thumb { background: #165F70; border-radius: 2px; }
}

/* ============================================================
   Footer — padding-top fix (À propos coupé sur mobile)
   ============================================================ */
@media (max-width: 550px) {
    .test-rg-footer { padding: 56px 20px 0 !important; }
    .test-rg-footer__inner > * { margin-top: 0; }
}
