/*
╔══════════════════════════════════════════════════════╗
║  VARINI WP — STYLE CSS GLOBAL                        ║
║  Table des matières                                  ║
║  ─────────────────────────────────────────────────── ║
║   1. FONTS (@font-face)                              ║
║   2. TYPOGRAPHIE GLOBALE                             ║
║   3. BASE & LAYOUT                                   ║
║   4. HEADER                                          ║
║   5. MENU DESKTOP                                    ║
║   6. BURGER BUTTON                                   ║
║   7. PAGE ŒUVRE (+ responsive)                       ║
║   8. INDEX ŒUVRES (+ responsive)                     ║
║   9. HOME — SLIDESHOW PLEIN ÉCRAN                    ║
║  10. PANNEAU LATÉRAL (+ responsive)                  ║
║  11. RÉACTUALISATIONS                                ║
║  12. FOOTER                                          ║
║  13. PAGE VIDÉOS & LIGHTBOXES                        ║
║  14. RGPD & BACK-TO-TOP                              ║
║  15. ÉDITIONS & PUBLICATIONS (+ responsive)          ║
║  16. ACTUALITÉ (+ responsive)                        ║
║  17. CRÉDITS                                         ║
║  18. DÉMARCHE                                        ║
║  19. BIOGRAPHIE (+ responsive)                       ║
║  20. TEXTES (+ responsive)                           ║
║  21. MOBILE GLOBAL (640px, 480px)                    ║
╚══════════════════════════════════════════════════════╝
*/

/* ── DIN Pro ── */
@font-face {
    font-family: 'DIN Pro';
    src: url('fonts/dinpro.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro';
    src: url('fonts/dinpro_italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro';
    src: url('fonts/dinpro_medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro Condensed';
    src: url('fonts/dinpro_condensedregular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Pro Condensed';
    src: url('fonts/dinpro_condensedmedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Éléments exclus de DIN Pro → Arial */
.logo-varini-text,
.logo-varini-text a,
h1, h2, h3, h4,
.oeuvre-annee-horizontal,
.index-annee-titre,
.oeuvre-credit,
.varini-lightbox-credit,
.rollover-annee,
.rollover-titre,
.rea-annee,
.popin-titre {
    font-family: Arial, Helvetica, sans-serif;
}

/* Titres en DIN Pro Medium */
.oeuvre-titre,
.popin-titre,
.texte-card-titre,
.edition-card-titre,
.actu-card-titre,
.rea-groupe-titre {
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif !important;
    font-weight: 500;
}

/* ===============================
   BASE
================================ */

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

body {
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif;
    color: #000000;
    /* Occupe toute la hauteur de la fenêtre, footer poussé en bas */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Le contenu principal entre header et footer grandit pour remplir l'espace */
body > .layout-container,
body > article,
body > .hero-fullscreen {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.layout-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================
   HEADER — NON STICKY
================================ */

.site-header {
    width: 100%;
    padding: 20px 0;
    background: #ffffff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo-zone {
    display: flex;
    align-items: center;
    justify-content: space-between; /* burger à gauche, logo à droite */
}

.logo-varini-text,
.logo-varini-text a {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ff0000;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.filet-varini-html {
    height: 2px;
    background: #ff0000;
    margin: 2px 0 15px;
}

/* ===============================
   MENU DESKTOP + SOUS-MENUS
================================ */

.menu-hz {
    display: block;
}

.menu-hz-ul {
    list-style: none;
    display: flex;
    gap: 22px;
    padding: 0;
    margin: 0;
}

.menu-hz-ul > li {
    position: relative;
}

.menu-hz-ul > li > a {
    font-size: 13px;
    font-weight: 400;
    color: #555555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-hz-ul > li > a:hover,
.menu-hz-ul > li.current-menu-item > a,
.menu-hz-ul > li.current-page-ancestor > a,
.menu-hz-ul > li.current-post-type-ancestor > a,
.menu-hz-ul > li.current-post-ancestor > a {
    color: #999999;
}

.menu-hz-ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: transparent;
    border: none;
    min-width: 180px;
    list-style: none;
    padding: 10px 0 4px;
    margin-top: -10px;
    z-index: 999;
}

.menu-hz-ul li ul.sub-menu a {
    font-size: 15px;
    font-weight: 600;
    color: #555555;
    text-decoration: none;
    display: block;
    padding: 3px 0;
}

.menu-hz-ul li ul.sub-menu a:hover {
    color: #999999;
}

.menu-hz-ul li:hover > ul.sub-menu {
    display: block;
}

/* ===============================
   BURGER BUTTON
================================ */

.burger-btn {
    display: flex; /* visible partout */
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ff0000;
}

/* ===============================
   MOBILE MENU (supprimé — remplacé par panneau latéral)
================================ */

/* ===============================
   PAGE ŒUVRE — LAYOUT
================================ */

body.single-oeuvre > .layout-container {
    padding-top: 0;
    padding-bottom: 0;
}

.oeuvre-page {
    padding: 10px 0 16px;
}

.oeuvre-layout,
.oeuvre-contenu {
    display: block;
}

/* Masquer l'ancienne balise .oeuvre-annee dans le contenu importé */
.oeuvre-contenu .oeuvre-annee { display: none; }

/* Rangée : année à gauche + colonne droite */
.oeuvre-slider-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

/* Colonne gauche : année sticky */
.oeuvre-annee-horizontal {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ff0000;
    letter-spacing: 2px;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 0;
    transform: translateY(-8px);
    position: sticky;
    top: calc(var(--header-height, 80px) + 2px);
    align-self: flex-start;
}

/* Colonne droite : slider + titre + légende + nav */
.oeuvre-col-droite {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Slider : hauteur fixe — aucun saut portrait/paysage ── */
.varini-slider--oeuvre {
    width: 100%;
    max-width: 900px;
    /* Hauteur fixe : même valeur quelle que soit l'image */
    height: calc(100vh - var(--header-height, 80px) - 200px);
    overflow: hidden;
    clip-path: inset(0);
    box-shadow: inset -2px 0 0 0 #fff;
}

.varini-slider--oeuvre .swiper-wrapper {
    height: 100%;
}

.varini-slider--oeuvre .swiper-slide {
    height: 100%;
    background: #fff;
}

/* object-fit: contain = image entière, proportions respectées, jamais coupée */
.varini-slider--oeuvre img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
}

/* Zoom container Swiper — hérite la taille du slide */
.varini-slider--oeuvre .swiper-zoom-container {
    width: 100%;
    height: 100%;
}
/* Sur mobile : curseur discret indiquant le zoom possible */
@media (max-width: 900px) {
    .varini-slider--oeuvre .swiper-zoom-container {
        cursor: zoom-in;
    }
    .varini-slider--oeuvre .swiper-slide-zoomed .swiper-zoom-container {
        cursor: grab;
    }
}

.varini-slider--oeuvre .swiper-button-prev,
.varini-slider--oeuvre .swiper-button-next {
    color: #999999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

@media (hover: hover) {
    .varini-slider--oeuvre:hover .swiper-button-prev,
    .varini-slider--oeuvre:hover .swiper-button-next {
        opacity: 1;
    }
}

.varini-slider--oeuvre .swiper-button-prev:hover,
.varini-slider--oeuvre .swiper-button-next:hover {
    color: #555555;
}

/* Compteur mobile : jamais visible sur desktop */
.mobile-slide-counter {
    display: none;
}

.varini-oeuvre-pagination,
.varini-oeuvre-pagination.swiper-pagination-fraction {
    position: absolute !important;
    bottom: 10px !important;
    right: 12px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    font-size: 11px;
    color: rgba(255,255,255,0.90) !important;
    background: rgba(0,0,0,0.38);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.04em;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

@media (hover: hover) {
    .varini-slider--oeuvre:hover .varini-oeuvre-pagination {
        opacity: 1;
    }
}

/* ── Texte sous le slider ── */
.oeuvre-titre {
    font-size: 1.5em;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    margin: 6px 0 2px;
}

.oeuvre-titre p { margin: 0; display: inline; }

.oeuvre-legende {
    font-size: 19px;
    max-width: 640px;
    line-height: 1.3;
    margin: 0;
}

.oeuvre-legende p { margin: 0; }

.oeuvre-credit {
    font-size: 11px;
    color: #999999;
    margin: 4px 0 0;
    font-style: italic;
    letter-spacing: 0.04em;
    display: none; /* masqué par défaut, affiché par JS si crédit présent */
}

@media (max-width: 900px) {
    .oeuvre-credit { display: none !important; } /* géré dans la popin + */
}

/* ── Navigation ── */
.oeuvre-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.nav-prev, .nav-index, .nav-next { display: flex; }
.nav-next  { justify-content: flex-end; }
.nav-index { justify-content: center; }

.nav-prev a, .nav-next a, .nav-index a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    font-size: 11px;
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    text-decoration: none;
    border: 1px solid #d0d0d0;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.nav-prev a:hover, .nav-next a:hover, .nav-index a:hover {
    background: rgba(255,0,0,0.85);
    color: #fff;
    border-color: transparent;
}


/* ===============================
   PAGE ŒUVRE — RESPONSIVE MOBILE
================================ */

@media (max-width: 900px) {

    /* Logo : réduire de ~40% sur tablette et mobile */
    .logo-varini-text,
    .logo-varini-text a {
        font-size: 26px;
        letter-spacing: 2px;
    }

    /* ── Layout plein-écran fixe (portrait) ── */
    body.single-oeuvre {
        overflow: clip;       /* clip ne crée pas de containing block pour position:fixed */
        height: var(--real-vh, 100dvh); /* JS corrige sur Chrome iOS (barre nav permanente) */
        min-height: 0;        /* annule le min-height: 100vh global */
    }

    body.single-oeuvre,
    body.single-oeuvre > .layout-container,
    .oeuvre-page,
    .oeuvre-layout,
    .oeuvre-contenu,
    .oeuvre-slider-row,
    .oeuvre-col-droite {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ── Footer caché (inutile en vue plein-écran) ── */
    body.single-oeuvre .footer-varini {
        display: none;
    }

    body.single-oeuvre > .layout-container {
        padding: 0 12px 60px; /* top géré par JS, bottom = hauteur nav fixe */
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: clip;
    }

    /* ── Propagation de hauteur dans la chaîne flex ── */
    body.single-oeuvre .oeuvre-layout,
    body.single-oeuvre .oeuvre-contenu {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .oeuvre-page {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0;
    }

    /* Layout en colonne */
    .oeuvre-slider-row {
        flex: 1;
        flex-direction: column;
        gap: 0;
        min-height: 0;
    }

    .oeuvre-col-droite {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* Année : statique en haut du contenu (plus sticky) */
    .oeuvre-annee-horizontal {
        position: static;
        transform: none;
        font-size: 1.4rem;
        align-self: auto;
        background: #fff;
        padding: 6px 0 2px;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    /* Flèches : masquées par défaut, gérées en opacité via JS au toucher */
    .varini-slider--oeuvre .swiper-button-prev,
    .varini-slider--oeuvre .swiper-button-next {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Slider : prend tout l'espace disponible */
    .varini-slider--oeuvre {
        flex: 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        margin-bottom: 0;
    }

    .varini-slider--oeuvre .swiper-wrapper,
    .varini-slider--oeuvre .swiper-slide {
        height: 100%;
    }

    .varini-slider--oeuvre img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        object-position: top left;
    }

    /* Titre et légende : compacts sous le slider */
    .oeuvre-titre {
        font-size: 1.45em !important;
        line-height: 1.1;
        margin: 4px 0 1px;
        flex-shrink: 0;
    }

    .oeuvre-legende {
        font-size: 18.5px;
        max-width: 100%;
        margin: 0 0 4px;
        flex-shrink: 0;
    }

    /* Navigation : fixée en bas de l'écran */
    .oeuvre-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        padding: 8px 12px;
        margin: 0;
        z-index: 60;
        gap: 4px;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }

    /* Cacher la pagination Swiper sur mobile — remplacée par .mobile-slide-counter */
    .varini-oeuvre-pagination {
        display: none !important;
    }

    /* Compteur mobile dans la nav bar */
    .mobile-slide-counter {
        display: inline-block;
        font-size: 11px;
        color: #666;
        letter-spacing: 0.04em;
        white-space: nowrap;
        flex-shrink: 0;
        background: rgba(0,0,0,0.10);
        padding: 2px 8px;
        border-radius: 10px;
    }

    .nav-prev, .nav-index, .nav-next {
        flex: 1;
        min-width: 0;
    }

    .nav-index { justify-content: center; }
    .nav-next  { justify-content: flex-end; }

    .nav-prev a, .nav-next a, .nav-index a {
        height: 40px;
        padding: 0 6px;
        font-size: 9px;
        width: 100%;
        justify-content: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Bouton + info ── */
    .oeuvre-info-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 22px;
        font-weight: 300;
        line-height: 1;
        color: #888;
        background: none;
        border: 1px solid #d0d0d0;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .oeuvre-info-btn.active {
        background: rgba(255,0,0,0.85);
        color: #fff;
        border-color: transparent;
    }

    /* ── Bottom sheet titre + légende ── */
    .oeuvre-info-popin {
        position: fixed;
        bottom: 56px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        padding: 14px 16px 16px;
        border-top: none;
        z-index: 59;
        transform: translateY(100%);
        transition: transform 0.25s ease;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    }
    .oeuvre-info-popin.open {
        transform: translateY(0);
    }
    .popin-titre {
        font-size: 1.45em;
        font-weight: 500;
        font-style: normal;
        text-transform: uppercase;
        line-height: 1.1;
        margin: 0 0 6px;
    }
    .popin-titre p { margin: 0; display: inline; }
    .popin-legende {
        font-size: 17px;
        font-weight: 400;
        line-height: 1.4;
        color: #000;
    }
    .popin-legende p { margin: 0; }
    .popin-credit {
        font-size: 12px;
        line-height: 1.4;
        color: #999;
        font-style: italic;
        margin-top: 2px;
        display: none;
    }
}

/* ── Page œuvre : mode paysage → layout scrollable ── */
@media (max-width: 900px) and (orientation: landscape) {

    body.single-oeuvre {
        overflow: auto;
        height: auto;
        min-height: 0;
    }

    body.single-oeuvre > .layout-container {
        flex: none;
        height: auto;
        padding: 0 12px 64px; /* place pour la nav sticky */
    }

    .oeuvre-page,
    .oeuvre-slider-row,
    .oeuvre-col-droite {
        flex: none;
        min-height: 0;
    }

    /* Slider : hauteur fixe en paysage */
    .varini-slider--oeuvre {
        flex: none;
        height: 70dvh;
    }

    .varini-slider--oeuvre .swiper-wrapper,
    .varini-slider--oeuvre .swiper-slide {
        height: 100%;
    }

    .varini-slider--oeuvre img {
        height: 100%;
        max-height: none;
        object-fit: contain;
        object-position: left top;
    }

    .oeuvre-annee-horizontal {
        font-size: 1rem;
        padding: 2px 0 1px;
        margin-bottom: 2px;
    }

    .oeuvre-info-popin {
        padding: 10px 16px 12px;
    }
}


/* ===============================
   PAGE ŒUVRE — LAYOUT VIEWPORT FIT (desktop)
   Slider s'étire, tout tient sans scroll
================================ */
@media (min-width: 901px) {
    .layout-test {
        height: calc(100vh - var(--header-height, 90px));
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 0;
    }
    .layout-test article.oeuvre-page,
    .layout-test .oeuvre-layout,
    .layout-test .oeuvre-contenu {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .layout-test .oeuvre-slider-row {
        flex: 1;
        min-height: 0;
        align-items: stretch;
    }
    .layout-test .oeuvre-annee-horizontal {
        position: static;
        transform: none;
        align-self: flex-start;
        padding-top: 0;
        margin-top: -5px;
    }
    .layout-test .oeuvre-col-droite {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .layout-test .varini-slider--oeuvre {
        flex: 1 1 0;
        min-height: 0;
        height: auto !important;
        max-height: none;
    }
    .layout-test .oeuvre-titre,
    .layout-test .oeuvre-legende,
    .layout-test .oeuvre-credit,
    .layout-test .oeuvre-navigation {
        flex-shrink: 0;
    }
}

/* ===============================
   INDEX ŒUVRES
================================ */

.index-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
}

.index-header h1 {
    margin: 0;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Boutons de tri — alignés sur la ligne du titre ── */
.index-tri {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.index-tri a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 10px;
    font-family: 'DIN Pro Condensed', Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    text-decoration: none;
    border: 1px solid #ddd;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.index-tri a:hover {
    background: rgba(255,0,0,0.85);
    color: #fff;
    border-color: transparent;
}

.index-tri a.tri-actif {
    background: rgba(255,0,0,0.85);
    color: #fff;
    border-color: transparent;
}

/* Boutons de tri en sticky sur la ligne du titre d'année */
.index-tri.tri-sticky {
    position: fixed;
    z-index: 11;
    background: transparent;
}

/* Desktop : symétrie filet rouge — réduire l'espace sous le filet (toutes pages sauf home) */
@media (min-width: 901px) {
    body:not(.home) .site-header {
        padding-bottom: 4px;
    }
    body:not(.home) .filet-varini-html {
        margin-bottom: 4px;
    }
}

/* ── Titres de pages en sticky (toutes pages sauf index-des-oeuvres) ── */

/* Pages avec .index-header : actualisations, actualité, éditions, publications, vidéos */
body:not(.page-template-page-index-oeuvres-php) .index-header {
    position: sticky;
    top: calc(var(--header-height, 90px) - 1px);
    background: #ffffff;
    z-index: 10;
    box-shadow: 0 -6px 0 6px #ffffff;
}

/* Page textes : wrapper .texte-header */
.texte-header {
    position: sticky;
    top: var(--header-height, 90px);
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

/* Page biographie : h1 sticky au-dessus des .bio-tabs déjà sticky */
.page-template-page-biographie-php .layout-container h1 {
    position: sticky;
    top: var(--header-height, 90px);
    background: #fff;
    z-index: 51;
    padding: 0;
    margin: 0;
}
/* Descendre .bio-tabs sous le h1 sticky (~40px de hauteur h1) */
.page-template-page-biographie-php .bio-tabs {
    top: calc(var(--header-height, 90px) + 40px);
}

/* Page démarche : h1 sticky */
.page-template-page-demarche-php .layout-container h1 {
    position: sticky;
    top: var(--header-height, 90px);
    background: #fff;
    z-index: 10;
    padding: 10px 0;
    margin: 0;
}

/* Mobile : masquer le texte, garder uniquement la flèche */
@media (max-width: 480px) {
    .index-header {
        align-items: center;
    }
    .tri-texte {
        display: none;
    }
    .index-tri a {
        padding: 0 8px;
        font-size: 13px;
    }
    .rollover-annee { font-size: 16.5px; }
    .rollover-titre { font-size: 22px; line-height: 1.1; }
    .rollover-legende { font-size: 13.2px; }
    /* Pas de curseur pointer sur les images du slider (lightbox désactivée) */
    .varini-slider--oeuvre .swiper-slide img {
        cursor: default;
    }
}

.index-annee {
    scroll-margin-top: var(--header-height, 80px);
}

.index-annee-titre {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ff0000;
    letter-spacing: 2px;
    margin: 2.5rem 0 0.6rem;
    position: sticky;
    top: var(--header-height, 90px);
    background: #ffffff;
    z-index: 10;
    padding: 8px 0 6px;
    /* Couvrir le filet résiduel au-dessus lors du scroll */
    box-shadow: 0 -4px 0 4px #ffffff;
}

.index-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 1rem;
}

.index-item {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: #000000;
}

.index-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.index-placeholder {
    width: 100%;
    height: 200px;
    background: #eeeeee;
}

.index-rollover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 0, 0, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    padding: 6px 8px;
    line-height: 1.35;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.index-item:hover .index-rollover,
.index-item.touched .index-rollover {
    opacity: 1;
}

@media (max-width: 480px) {
    .index-rollover { font-size: 18px; line-height: 1.1; }
}

/* ── Vidéos : format 16/9 ── */
.index-item--video {
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.index-item--video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Masquer le play btn au survol pour laisser place au rollover */
.index-item--video:hover .video-play-btn {
    opacity: 0;
}

/* ── Rollover enrichi : projets non réalisés ── */
.index-rollover--rich {
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.rollover-top {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rollover-annee {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
}

.rollover-titre {
    font-size: 20px;
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.3;
    color: #ffffff;
}

.rollover-legende {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.35;
    margin-top: 4px;
}

/* ===============================
   HOME — SLIDESHOW PLEIN ÉCRAN
================================ */

.hero-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* Slides superposées, crossfade */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header au-dessus de l'image — caché par défaut, tiroir au survol */
.home .site-header {
    position: fixed;
    z-index: 200;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(4px);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.home.ui-visible .site-header {
    transform: translateY(0);
}


/* Légende bas-gauche — cachée par défaut */
.hero-caption {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 200;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.home.ui-visible .hero-caption {
    opacity: 1;
    transform: translateY(0);
}

.hero-annee {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ff6666;
    letter-spacing: 1px;
}

.hero-titre {
    display: block;
    font-size: 16.5px;
    font-style: normal;
}

/* Lien bas-droite — caché par défaut */
.hero-voir {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    color: #ffffff;
    text-decoration: none;
    font-size: 14.3px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}

.home.ui-visible .hero-voir {
    opacity: 1;
    transform: translateY(0);
}

.hero-voir:hover {
    border-color: #ffffff;
}

/* ===============================
   PANNEAU LATÉRAL
================================ */

.side-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 280px;
    box-sizing: border-box;
    height: 100vh;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 80px 32px 40px;
    transition: left 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
    overflow-y: auto;
}

.side-panel.open {
    left: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
}

.side-panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999999;
    padding: 0;
}

.side-panel-close:hover {
    color: #000000;
}

.side-panel-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-panel-menu > li {
    border-bottom: 1px solid #e0e0e0;
}

.side-panel-menu > li > a {
    display: block;
    padding: 0.55rem 0;
    font-size: 13px;
    font-weight: 400;
    color: #555555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s, padding-left 0.2s;
}

.side-panel-menu > li > a:hover {
    color: #000000;
    padding-left: 6px;
}

/* Item actif — niveau 1 */
.side-panel-menu > li.current-menu-item > a,
.side-panel-menu > li.current-menu-ancestor > a,
.side-panel-menu > li.current-page-ancestor > a,
.side-panel-menu > li.current-post-type-ancestor > a,
.side-panel-menu > li.current-post-ancestor > a {
    color: #ff0000;
}

/* Item actif — section Oeuvres (item custom, body class + href) — niv 1 uniquement */
body.single-oeuvre .side-panel-menu > li > a[href*="index-des-oeuvres"],
body.post-type-archive-oeuvre .side-panel-menu > li > a[href*="index-des-oeuvres"],
body.page-template-page-index-oeuvres-php .side-panel-menu > li > a[href*="index-des-oeuvres"],
body.page-template-page-reactualisations-php .side-panel-menu > li > a[href*="index-des-oeuvres"] {
    color: #ff0000;
}

/* Si un current-menu-item direct (top-level) existe, les ancêtres de type ne sont pas colorés */
.side-panel-menu:has(> li.current-menu-item) > li.current-post-type-ancestor:not(.current-menu-item) > a,
.side-panel-menu:has(> li.current-menu-item) > li.current-page-ancestor:not(.current-menu-item) > a,
.side-panel-menu:has(> li.current-menu-item) > li.current-post-ancestor:not(.current-menu-item) > a {
    color: #555555;
}

/* Si l'item actif est dans un SOUS-MENU, le parent est aussi rouge */
.side-panel-menu > li:has(.sub-menu .current-menu-item) > a {
    color: #ff0000;
}

/* Item actif — niveau 2 (sous-menu) */
.side-panel-menu li ul li.current-menu-item > a,
.side-panel-menu li ul li.current-page-ancestor > a,
.side-panel-menu li ul li.current-post-type-ancestor > a,
.side-panel-menu li ul li.current-post-ancestor > a {
    color: #ff0000;
}

/* ── Accordéon sous-menus ── */
.side-panel-menu > li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.side-panel-menu > li.menu-item-has-children > a {
    flex: 1;
}

.side-panel-menu > li.menu-item-has-children > ul {
    flex-basis: 100%;
}

.side-panel-menu .sub-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #aaa;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.25s, color 0.2s;
    flex-shrink: 0;
}

.side-panel-menu > li.open > .sub-menu-toggle {
    transform: rotate(180deg);
    color: #555;
}

.side-panel-menu li ul {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.side-panel-menu > li.open > ul {
    max-height: 600px;
    padding: 4px 0 6px 12px;
}

.side-panel-menu li ul li {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.side-panel-menu li ul a {
    display: block;
    padding: 0.4rem 0;
    font-size: 13px;
    color: #888888;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s, padding-left 0.2s;
}

.side-panel-menu li ul a:hover {
    color: #333;
    padding-left: 4px;
}

/* Overlay sombre derrière le panneau */
.side-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.side-overlay.open {
    display: block;
}

/* ── Desktop : dropdown aligné sur le burger ── */
@media (min-width: 641px) {

    /* Repositionner le panneau comme un dropdown */
    .side-panel {
        position: fixed;
        top: var(--filet-top, var(--header-height, 80px));
        left: calc((100vw - min(1100px, 100vw)) / 2);
        width: auto;
        min-width: 210px;
        height: auto;
        max-height: calc(100vh - var(--filet-top, var(--header-height, 80px)) - 24px);
        padding: 16px 28px 20px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        box-shadow: 0 6px 24px rgba(0,0,0,0.13);
        border-top: 2px solid #ff0000;
    }

    .side-panel.open {
        left: calc((100vw - min(1100px, 100vw)) / 2);
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    }

    /* Masquer le bouton × inutile sur desktop */
    .side-panel-close {
        display: none;
    }

    /* Overlay transparent sur desktop — juste pour capter le clic extérieur */
    .side-overlay.open {
        background: transparent;
        pointer-events: none; /* ne bloque pas les événements souris (burger, liens…) */
    }

    /* Homepage desktop : tiroir latéral déclenché au clic sur le burger */
    .home .side-panel {
        top: 0;
        left: -400px;
        width: 280px;
        height: 100vh;
        padding: 80px 32px 40px;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        transition: left 0.35s ease, box-shadow 0.35s ease;
        border-top: none;
        box-shadow: none;
    }

    .home .side-panel.open {
        left: 0;
        transform: none;
        opacity: 1;
        box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    }

    .home .side-panel-close {
        display: block;
    }

    .home .side-overlay.open {
        background: rgba(0,0,0,0.3);
        pointer-events: auto;
    }

    /* ── Cascade sous-menus ── */

    /* Largeur fixe du panneau principal pour positionner le panneau cascade */
    .side-panel { width: 210px; }

    /* Flèche › indiquant un sous-menu */
    .side-panel-menu > li.menu-item-has-children > a::after {
        content: '›';
        color: #ff0000;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0;
        margin-left: 10px;
    }

    /* Masquer le bouton toggle et les sous-menus dans le panneau principal */
    .side-panel-menu .sub-menu-toggle { display: none; }
    .side-panel-menu li ul { display: none !important; }

    /* Panneau cascade secondaire */
    .side-panel-sub {
        position: fixed;
        top: var(--filet-top, var(--header-height, 80px));
        left: calc((100vw - min(1100px, 100vw)) / 2 + 211px);
        min-width: 160px;
        max-height: calc(100vh - var(--filet-top, var(--header-height, 80px)) - 16px);
        padding: 4px 28px 20px;
        background: rgba(255,255,255,0.80);
        backdrop-filter: blur(8px);
        box-shadow: 0 6px 24px rgba(0,0,0,0.13);
        z-index: 1001;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease;
        box-sizing: border-box;
    }
    .side-panel-sub.open {
        opacity: 1;
        pointer-events: auto;
    }
    .side-panel-sub ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .side-panel-sub li {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .side-panel-sub li a {
        display: block;
        padding: 0.4rem 0;
        font-size: 16px;
        color: #888;
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: color 0.2s, padding-left 0.2s;
    }
    .side-panel-sub li a:hover { color: #333; padding-left: 4px; }
    .side-panel-sub li.current-menu-item > a,
    .side-panel-sub li.current-page-ancestor > a,
    .side-panel-sub li.current-post-type-ancestor > a,
    .side-panel-sub li.current-post-ancestor > a { color: #ff0000; }

    /* Home desktop : sub panel à droite du tiroir, même comportement que les autres pages */
    .home .side-panel-sub {
        left: 280px;
        border-top: none;
    }
}

/* ===============================
   RÉACTUALISATIONS
================================ */

/* Grille 2 colonnes des groupes */
.rea-groupes-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    margin-top: 1.5rem;
}

.rea-groupe {
    display: flex;
    flex-direction: column;
}

.rea-groupe-titre {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 0.6rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #dddddd;
    line-height: 1.3;
}

/* Image + liste côte à côte */
.rea-groupe-body {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.rea-groupe-image {
    flex-shrink: 0;
    width: 200px;
}

.rea-groupe-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Liste des lieux */
.rea-groupe-lieux {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.rea-groupe-lieux li {
    margin-bottom: 0.4rem;
}

.rea-groupe-lieux a {
    text-decoration: none;
    color: #000000;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.rea-groupe-lieux a:hover .rea-annee {
    color: #cc0000;
}

.rea-annee {
    font-weight: 700;
    color: #ff0000;
    font-size: 20px;
}

.rea-lieu {
    color: #555555;
    font-size: 15px;
}

.rea-legende {
    font-family: 'DIN Pro Condensed', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: #555555;
    font-size: 16.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rea-voir-plus {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.4rem;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.rea-voir-plus:hover {
    color: #ff0000;
}


/* ===============================
   FOOTER
================================ */

.footer-varini {
    padding: 20px 0;
}

/* ===============================
   PAGE VIDÉOS
================================ */

.videos-grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    padding: 0 0 3rem;
}

.video-card {
    cursor: pointer;
}

.video-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-thumb-wrap img {
    opacity: 0.7;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(100, 100, 100, 0.50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Flèche blanche en SVG — centrée légèrement à droite */
.video-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent rgba(255,255,255,0.95);
    margin-left: 4px;
}

.video-card:hover .video-play-btn,
.oeuvre-video-slide:hover .video-play-btn {
    background: rgba(80, 80, 80, 0.70);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-title {
    font-size: 20px;
    font-weight: normal;
    color: #333;
    font-style: normal;
    line-height: 1.3;
}

/* Slide vidéo dans le slider d'une œuvre */
.oeuvre-video-slide {
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oeuvre-video-slide .video-thumb-wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
}

.oeuvre-video-slide .video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── LIGHTBOX VIDÉO ── */

.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-lightbox.open {
    display: flex;
}

.video-lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(90vw, calc(82vh * 16 / 9));
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    height: auto;
}

.video-lightbox-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-lightbox-frame {
    width: 100%;
    height: 100%;
}

.video-lightbox-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Image lightbox fullscreen ── */
.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    z-index: 10001;
    transition: opacity 0.2s;
}

.image-lightbox-close:hover {
    color: #333;
    opacity: 1;
}

.varini-slider--lightbox {
    width: 100vw;
    height: 100vh;
}

.varini-slider--lightbox .swiper-wrapper,
.varini-slider--lightbox .swiper-slide {
    height: 100%;
}

.varini-slider--lightbox .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 60px;
    box-sizing: border-box;
}

/* Figure = conteneur qui épouse la largeur de l'image */
.lightbox-figure {
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    max-height: calc(100vh - 104px);
}

.varini-slider--lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 145px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 1;
    min-height: 0;
}

/* ── Zoom dans la lightbox ── */
#imageLightboxSwiper .swiper-slide img {
    cursor: default; /* le JS surcharge en zoom-in si l'image est assez grande */
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

#imageLightboxSwiper .swiper-slide {
    overflow: hidden; /* masquer l'image quand elle dépasse pendant le zoom */
}

.varini-lightbox-credit {
    color: rgba(0,0,0,0.55);
    font-size: 11px;
    font-style: italic;
    margin-top: 8px;
    letter-spacing: 0.04em;
    text-align: left;
    flex-shrink: 0;
}

.varini-slider--lightbox .swiper-button-prev,
.varini-slider--lightbox .swiper-button-next {
    color: #aaa;
    opacity: 0;
    transition: opacity 0.25s ease;
}

@media (hover: hover) {
    .varini-slider--lightbox .swiper-button-prev:hover,
    .varini-slider--lightbox .swiper-button-next:hover {
        color: #333;
    }
}

/* Slide vidéo dans la lightbox */
.lightbox-video-wrap {
    width: min(90vw, 1100px);
    aspect-ratio: 16 / 9;
}

.lightbox-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.varini-lightbox-pagination.swiper-pagination-fraction {
    position: fixed !important;
    bottom: 18px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    letter-spacing: 0.06em;
    opacity: 0;
    transition: opacity 0.25s ease;
}


/* Curseur pointer sur les images du slider principal */
.varini-slider--oeuvre .swiper-slide img {
    cursor: zoom-in;
}

/* ── Bandeau RGPD ── */
.rgpd-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-size: 13px;
    line-height: 1.5;
}
.rgpd-texte {
    flex: 1;
    margin: 0;
    color: #444;
}
.rgpd-texte a {
    color: #ff0000;
    text-decoration: underline;
}
.rgpd-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.rgpd-btn {
    height: 32px;
    padding: 0 16px;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: inherit;
    border: 1px solid #222;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.rgpd-btn--accept {
    background: #ff0000;
    color: #fff;
}
.rgpd-btn--accept:hover {
    background: #ff0000;
    border-color: #ff0000;
}
.rgpd-btn--refuse {
    background: transparent;
    color: #222;
}
.rgpd-btn--refuse:hover {
    background: #f5f5f5;
}
@media (max-width: 640px) {
    .rgpd-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }
}

/* ── Bouton retour en haut ── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: rgba(120, 120, 120, 0.5);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 44px;
    text-align: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.2s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(80, 80, 80, 0.7);
}

.footer-filet-varini {
    height: 2px;
    background: #ff0000;
    margin-bottom: 20px;
}

.footer-cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.footer-col-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
}

.footer-email {
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

.footer-email:hover {
    color: #ff0000;
}

.footer-right {
    font-size: 12px;
    text-align: right;
    color: #555;
}

.footer-right a {
    color: #555;
    text-decoration: none;
}

.footer-right a:hover {
    color: #ff0000;
}

/* ===============================
   MOBILE — iPhone SE et petits écrans (≤ 480px)
================================ */

@media (max-width: 480px) {

    /* Header : réduire padding latéral */
    .layout-container {
        padding: 0 12px;
    }

    /* Logo : déjà réduit via le breakpoint 900px */

    /* Header : espace interne sur mobile */
    .site-header {
        padding: 16px 0 4px;
        top: 0;
    }

    /* Filet rouge : espace identique au-dessus et en-dessous */
    .filet-varini-html {
        margin: 2px 0 2px;
    }

    /* Homepage : 2px supplémentaires sous le filet */
    .home .filet-varini-html {
        margin-bottom: 4px;
    }
}


/* ===============================
   ÉDITIONS (page-editions.php)
================================ */

/* Titre de section (Éditions / Publications) */
.editions-section {
    margin-bottom: 4rem;
}

.editions-section-titre {
    font-size: 2em;
    font-weight: bold;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin: 0 0 2rem 0;
    display: block;
    width: 100%;
}

/* ===============================
   ACTUALITÉ — INVITATIONS
================================ */

.actu-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
    margin-top: 2rem;
}

.actu-card {
    display: flex;
    flex-direction: column;
}

.actu-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 1rem;
}

.actu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.actu-card-image a:hover img {
    opacity: 0.88;
}

.actu-card-body {
    flex: 1;
}

.actu-card-titre {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.actu-card-legende {
    font-size: 15.5px;
    color: #333;
    margin: 0 0 0.3rem;
    line-height: 1.5;
}
.actu-card-legende p {
    margin: 0 0 0.3rem;
}

.actu-card-dates {
    font-size: 18px;
    color: #aaa;
    font-style: normal;
    margin: 0 0 0.6rem;
}

.actu-card-lien {
    font-size: 13px;
    color: #ff0000;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,0,0,0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.actu-card-lien:hover {
    border-color: #ff0000;
}

/* ── Vignette Instagram ── */

.instagram-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #c13584;
    text-decoration: none;
    transition: color 0.2s;
}

.instagram-badge:hover {
    color: #833ab4;
}

.instagram-badge svg {
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .actu-grille {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .actu-grille {
        grid-template-columns: 1fr;
    }
}

/* ── Grille Éditions (2 colonnes) ── */
.editions-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
}

/* ── Image 4/3 commune aux deux types ── */
.edition-card-image,
.edition-pub-image {
    margin-bottom: 0.8em;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.edition-card-image img,
.edition-pub-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.edition-card-image a,
.edition-pub-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Textes — éditions ── */
.edition-card-titre {
    display: block;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.15s;
}
.edition-card-titre em {
    font-style: normal;
}

.edition-card-lieu {
    font-size: 15.5px;
    color: #000;
    line-height: 1.4;
    margin: 0 0 0.3em 0;
}

.edition-card-info {
    font-size: 15.5px;
    color: #000;
    line-height: 1.6;
    margin: 0 0 0.7em 0;
}

/* ── Grille Publications (3 colonnes) ── */
.publications-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
}

/* ── Textes — publications ── */
.edition-pub-titre-lien {
    text-decoration: none;
    color: inherit;
}

.edition-pub-titre-lien:hover .edition-pub-titre {
    color: #ff0000;
}

.edition-pub-titre {
    display: block;
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif !important;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    margin: 0 0 0.3em 0;
    transition: color 0.15s;
    line-height: 1.3;
}
.edition-pub-titre em {
    font-style: normal;
}

.edition-pub-lieu {
    font-size: 15.5px;
    color: #000;
    line-height: 1.4;
    margin: 0 0 0.3em 0;
}

.edition-pub-info {
    font-size: 15.5px;
    color: #000;
    line-height: 1.5;
    margin: 0 0 0.6em 0;
}

/* ── Bouton Commander ── */
.edition-commander-btn {
    display: inline-block;
    margin-top: 0.5em;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
    border: 1px solid #999;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.edition-commander-btn:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

/* ── Responsive ── */
@media (max-width: 760px) {
    .editions-grille {
        grid-template-columns: 1fr;
    }
    .publications-grille {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .publications-grille {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   CRÉDITS (page-credits.php)
================================ */

.credits-content {
    max-width: 620px;
    padding-top: 0.5rem;
}

.credits-block {
    margin-bottom: 2.5rem;
}

.credits-label {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff0000;
    margin: 2rem 0 0.2rem;
}

.credits-label:first-child {
    margin-top: 0;
}

.credits-label + p {
    margin-top: 0;
}

.credits-block p {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    margin: 0 0 0.5rem;
}

.credits-block a {
    color: #555;
    text-decoration: none;
}

.credits-block a:hover {
    color: #ff0000;
}

/* ===============================
   POPIN RGPD (toutes les pages)
================================ */
#varini-rgpd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rgpd-modal-box {
    background: #fff;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 32px 32px;
    position: relative;
}

.rgpd-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rgpd-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.rgpd-modal-box .credits-label {
    margin-top: 0;
    font-size: 18px;
}

.rgpd-modal-box p {
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    margin: 0 0 0.8rem;
}

.rgpd-modal-box a {
    color: #555;
    text-decoration: none;
}

.rgpd-modal-box a:hover {
    color: #ff0000;
}

.rgpd-refuse-btn {
    background: none;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

/* ===============================
   DÉMARCHE (page-demarche.php)
================================ */

.dem-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dem-lang-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'DIN Pro Condensed', Arial, Helvetica, sans-serif;
    font-weight: 500;
    border: 1px solid #ddd;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dem-lang-btn.active,
.dem-lang-btn:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

.dem-content {
    max-width: 680px;
    margin-top: 2rem;
}

.dem-lang p {
    font-size: 17.5px;
    line-height: 1.75;
    margin-bottom: 1.2em;
    color: #222;
}

.dem-signature {
    margin-top: 2rem;
    font-size: 15px;
    font-style: italic;
    color: #555;
}

/* ===============================
   BIOGRAPHIE (page-biographie.php)
================================ */

.bio-intro {
    margin: 1.5rem 0 2rem;
}

.bio-intro p {
    font-size: 19.25px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.bio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: var(--header-height, 90px);
    background: #fff;
    z-index: 50;
    margin-bottom: 2rem;
}

.bio-tab {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: 'DIN Pro', Arial, Helvetica, sans-serif;
    font-weight: 500;
    border: 1px solid #ddd;
    background: transparent;
    color: #999;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bio-tab.active,
.bio-tab:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

.bio-sections {
    max-width: 780px;
}

.bio-section {
    display: none;
}

.bio-section.active {
    display: block;
}

.bio-year {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff0000;
    margin: 2rem 0 0.5rem;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f0f0;
}

.bio-section > p {
    font-size: 19.25px;
    line-height: 1.65;
    color: #333;
    margin: 0 0 0.45em;
    padding-left: 0;
}

.bio-section > p em {
    font-style: italic;
}

.bio-section a {
    color: inherit;
    text-decoration: none;
}

.bio-section a:hover {
    color: #ff0000;
}

/* Titre sticky mobile — rubrique active biographie */
.bio-sticky-title {
    display: none;
}

#monographies > p {
    margin-bottom: 0.8em;
}

@media (max-width: 640px) {
    .bio-tabs {
        gap: 4px;
        position: static; /* scroll away sur mobile, remplacé par .bio-sticky-title */
    }
    .bio-tab {
        font-size: 10px;
        padding: 0 8px;
        height: 26px;
    }
    .bio-tab.active {
        background: transparent;
        color: #ff0000;
        border-color: #ff0000;
    }

    .bio-sticky-title {
        display: block;
        position: sticky;
        top: var(--header-height, 60px);
        z-index: 100;
        background: #fff;
        padding: 6px 0;
        font-size: 20px;
        font-weight: 700;
        font-family: inherit;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #ff0000;
        border-bottom: 1px solid #e8e8e8;
        margin-bottom: 1.2rem;
    }
    .dem-content {
        max-width: 100%;
    }

    /* Harmonisation taille années mobile */
    .index-annee-titre {
        font-size: 2.1rem;
        padding: 2px 0 2px;
    }

    .oeuvre-annee-horizontal {
        font-size: 2.1rem !important;
    }
}

/* ===============================
   TEXTES — Index (page-textes.php)
================================ */

/* Grille 2 colonnes */
.textes-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    padding-bottom: 60px;
}

/* Chaque entrée = un groupe */
.texte-card {
    border-top: 1px solid #e0e0e0;
    padding-top: 0.9em;
}

/* Ligne 1 : titre */
.texte-card-lien {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.2em;
}

.texte-card-lien:hover .texte-card-titre {
    color: #ff0000;
}

.texte-card-titre {
    display: block;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.15s;
}

/* Ligne 2 : année */
.texte-card-annee {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 0.15em;
}

/* Ligne 3 : auteur */
.texte-card-auteur {
    display: block;
    font-size: 14px;
    color: #888;
    letter-spacing: 0.06em;
    margin-bottom: 0.4em;
}

.texte-annee {
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
}

.texte-langues {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ── Badges de langue ── */

.lang-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0.06em;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    line-height: 1.6;
    transition: background 0.15s, color 0.15s;
}

.lang-badge:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

.lang-badge--active {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    cursor: default;
}


/* ===============================
   TEXTES — Single (single-texte.php)
================================ */

.texte-page {
    padding-bottom: 80px;
}

.texte-layout {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
}

.texte-contenu {
    width: 90% !important;
    max-width: none !important;
    padding-right: 0;
}

.texte-body,
.texte-body > * {
    max-width: none !important;
}

.texte-header {
    margin-bottom: 1.8em;
}

.texte-auteur-name {
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.3em 0;
}

.texte-titre-display {
    font-size: 26px;
    font-weight: normal;
    margin: 0 0 0.2em 0;
    line-height: 1.25;
}

/* Sélecteur de langue */
.texte-lang-switcher {
    display: flex;
    gap: 6px;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

/* Corps du texte */
.texte-body {
    font-size: 17.5px;
    line-height: 1.75;
    color: #222;
}

.texte-body p {
    margin-bottom: 1.2em;
}

/* Titres de section */
.texte-body h1 {
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 0.02em;
    margin: 2em 0 0.6em;
    line-height: 1.25;
}

.texte-body h2 {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 0.02em;
    margin: 1.8em 0 0.5em;
    line-height: 1.3;
}

.texte-body h3 {
    font-size: 1.05em;
    font-weight: bold;
    margin: 1.5em 0 0.4em;
    line-height: 1.3;
}

.texte-body strong {
    font-weight: bold;
}

/* Exposants génériques (ex. 1er, m², etc.) */
.texte-body sup {
    font-size: 0.72em;
    font-style: normal;
    vertical-align: super;
    line-height: 0;
}

/* Notes et bibliographies en fin de texte */
.texte-body .note,
.texte-body p.note,
.texte-body .footnotes p,
.texte-body small {
    font-size: 0.82em;       /* -18 % */
    color: rgba(0,0,0,0.45);
    line-height: 1.5;
}

/* Renvois de note de bas de page : italique + couleur discrète */
.texte-body sup.renvoi {
    font-style: italic;
    color: rgba(0, 0, 0, 0.45);
    cursor: default;
}

/* Navigation retour */
.texte-navigation {
    margin-top: 2.5em;
    padding-top: 1.2em;
    border-top: 1px solid #e0e0e0;
}

.texte-retour {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    text-decoration: none;
    border: 1px solid #d0d0d0;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.texte-retour:hover {
    background: rgba(255,0,0,0.85);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 640px) {
    .textes-grille,
    .rea-groupes-grille,
    .videos-grille {
        grid-template-columns: 1fr;
    }
}

/* Paysage mobile : réactualisations — images adaptatives, pas de débordement */
@media (max-width: 900px) and (orientation: landscape) {
    .rea-groupes-grille {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
    .rea-groupe-image,
    .rea-groupe-image img {
        width: 120px;
        height: 120px;
    }
    .layout-container {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .texte-body {
        font-size: 15px;
    }
}

/* ═══════════════════════════════════════════════════════
   MOBILE — Fix header sticky iOS/WebKit (≤ 640px)
   NOTE : à tester sur URL locale (pas live link LocalWP)
   Le live link injecte un wrapper avec transform qui casse
   position:fixed et position:sticky.
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    body:not(.home):not(.single-oeuvre) .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 200 !important;
    }
    body:not(.home):not(.single-oeuvre) {
        padding-top: var(--header-height, 60px);
    }
}

/* ═══════════════════════════════════════════════════════
   MOBILE — Fullscreen overlay menu (≤ 640px)
   Desktop (> 640px) : drawer existant inchangé
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* Panneau = overlay plein écran avec fondu */
    .side-panel {
        left: 0 !important;
        top: 0;
        width: 100vw;
        height: 100vh;
        padding: 70px 40px 40px;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(12px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .side-panel.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        box-shadow: none !important;
    }

    /* Overlay sombre inutile — le panneau couvre tout */
    .side-overlay,
    .side-overlay.open {
        display: none !important;
    }

    /* Bouton fermer */
    .side-panel-close {
        display: block;
        font-size: 32px;
        top: 20px;
        right: 20px;
        color: #999;
    }

    /* Items niveau 1 */
    .side-panel-menu > li > a {
        font-size: 17px;
        padding: 0.85rem 0;
        letter-spacing: 0.06em;
    }

    /* Items niveau 1 avec sous-menu : réduire le padding bas */
    .side-panel-menu > li.menu-item-has-children > a {
        padding-bottom: 0;
    }

    /* Items niveau 2 — toujours visibles, plats, sans accordéon */
    .side-panel-menu li ul a {
        font-size: 19px;
        padding: 0;
        line-height: 1.4;
    }

    .side-panel-menu li ul li {
        border-bottom: none;
    }

    /* Bouton ▼ masqué — inutile en fullscreen */
    .side-panel-menu .sub-menu-toggle {
        display: none;
    }

    /* Sous-menus toujours ouverts, sans animation */
    .side-panel-menu li ul {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        padding: 0 0 2px 12px;
        transition: none;
    }

    /* Burger → animation × à l'ouverture */
    .burger-btn span {
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .burger-btn.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .burger-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-6px);
    }

    .burger-btn.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Menu mobile — mode paysage touch (jusqu'à 900px) : forcer le comportement mobile */
@media (max-width: 900px) and (orientation: landscape) and (hover: none) {

    /* Panneau plein écran comme en portrait mobile — fermé par défaut */
    .side-panel {
        position: fixed !important;
        left: -100vw !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        padding: 44px 40px 16px !important;
        background: rgba(255,255,255,0.97) !important;
        backdrop-filter: blur(12px) !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        transition: left 0.35s ease !important;
    }

    .side-panel.open {
        left: 0 !important;
    }

    /* Bouton fermer visible */
    .side-panel-close {
        display: block !important;
        top: 10px !important;
    }

    /* Sous-menus toujours ouverts */
    .side-panel-menu li ul {
        display: block !important;
        max-height: none !important;
        padding: 0 0 2px 12px !important;
    }

    /* Toggle masqué */
    .side-panel-menu .sub-menu-toggle {
        display: none !important;
    }

    /* Items niveau 1 : espacement réduit */
    .side-panel-menu > li > a {
        font-size: 17px !important;
        padding: 0.45rem 0 !important;
        letter-spacing: 0.06em !important;
    }

    .side-panel-menu > li.menu-item-has-children > a {
        padding-bottom: 0 !important;
    }

    /* Items niveau 2 */
    .side-panel-menu li ul a {
        font-size: 19px !important;
        padding: 0 !important;
        line-height: 1.4 !important;
    }

    /* Panneau cascade désactivé */
    .side-panel-sub {
        display: none !important;
    }

    /* Overlay inutile */
    .side-overlay,
    .side-overlay.open {
        display: none !important;
    }
}