/* =====================================================
   Le Dijon Show – main.css
   Mobile-first | Variables CSS | Vanilla CSS
   ===================================================== */

/* =====================================================
   VARIABLES & RESET
   ===================================================== */
:root {
    --color-primary:   #CC0000;
    --color-primary-dark: #aa0000;
    --color-white:     #FFFFFF;
    --color-dark:      #111111;
    --color-nav-bg:    #1d1d1d;  /* nav, top-bar, footer — même teinte */
    --color-grey:      #444444;
    --color-grey-light:#f4f4f4;
    --color-grey-mid:  #dddddd;
    --color-twitch:    #9146ff;

    --font-main:       'Roboto', sans-serif;
    --font-ui:         'Roboto', sans-serif;

    --radius:          4px;
    --radius-lg:       8px;
    --shadow:          0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg:       0 6px 24px rgba(0,0,0,0.18);
    --transition:      0.2s ease;

    --header-height:   72px;
    --nav-height:      48px;
    --topbar-height:   36px;
    --page-top:        40px; /* padding-top harmonisé pour toutes les pages intérieures */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =====================================================
   UTILITAIRES
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); }
.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-white); }
.btn--full { width: 100%; justify-content: center; }
.btn--twitch { background: var(--color-twitch); border-color: var(--color-twitch); }
.btn--twitch:hover { background: #7c37e5; border-color: #7c37e5; color: var(--color-white); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert--success { background: #e6f4ea; color: #2d6a3f; border-left: 4px solid #34a853; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.4rem;
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
}
.section-title--red { border-bottom: 3px solid var(--color-primary); }
.section-title__more { font-size: 0.85rem; color: var(--color-primary); font-weight: 500; }

.no-content { color: var(--color-grey); font-style: italic; padding: 20px 0; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    background: var(--color-nav-bg);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}
.top-bar__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: flex-end;
}
.top-bar__socials {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-bar__socials a {
    color: #aaa;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.top-bar__socials a:hover { color: var(--color-white); }

/* =====================================================
   SITE HEADER
   ===================================================== */
:root {
    --header-height: 130px; /* bandeau rouge plus haut */
}

.site-header {
    background: var(--color-primary);
    position: relative; /* PAS sticky — disparaît au scroll */
    z-index: 100;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
/* Masqué au scroll via JS */
.site-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Barre compte/hamburger (haut du bandeau) */
.site-header__account-bar {
    width: 100%;
    padding: 6px 0 0;
    overflow: hidden; /* clip le slide-out mobile */
}
.site-header__account-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-height: 32px;
}
.site-header__account {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Sur mobile : glisse vers la droite quand le menu hamburger s'ouvre */
@media (max-width: 946px) {
    .site-header__account.menu-open {
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
    }
}
.account-link { display: flex; align-items: center; gap: 6px; color: var(--color-white); }
.account-link:hover { color: rgba(255,255,255,0.8); }
/* Pseudo tronqué sur mobile pour éviter le débordement */
.account-link span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.account-avatar--default {
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    flex-shrink: 0;
}
.account-logout, .account-login {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    transition: color var(--transition);
    white-space: nowrap;
}
.account-logout:hover, .account-login:hover { color: var(--color-white); }

/* Logo + tagline centrés */
.site-header__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 16px 20px;
    gap: 8px;
}
.site-header__logo-link { display: block; }
.site-header__logo-img {
    height: 52px;
    width: auto;
    display: block;
    max-width: 100%;
}
.site-header__tagline {
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.3px;
    text-align: center;
    margin: 0;
}

/* =====================================================
   HAMBURGER BUTTON
   ===================================================== */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    transition: background var(--transition);
}
.hamburger-btn:hover { background: rgba(255,255,255,0.2); }
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   NAVIGATION PRINCIPALE — position:fixed, TOUJOURS visible
   
   Règles claires :
   • .main-nav          → toujours display:flex (mobile ET desktop)
   • .main-nav__menu    → display:none sur mobile, display:flex sur desktop
   • .search-toggle     → display:none sur mobile, display:flex sur desktop
   • .hamburger-btn     → display:flex sur mobile, display:none sur desktop
   ===================================================== */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: var(--color-nav-bg);
    height: var(--nav-height);
    display: flex;             /* TOUJOURS flex — ne devient jamais none */
    flex-direction: column;
    box-shadow: 0 3px 14px rgba(0,0,0,0.5);
}

/* Pas de padding-top nécessaire : la nav est dans le flux normal */
#page-wrapper {
    padding-top: 0;
}

.main-nav__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ---- MENU LIENS (desktop uniquement) ---- */
.main-nav__menu {
    display: none;             /* caché sur mobile */
    align-items: center;
    height: 100%;
    gap: 0;
    flex: 1;
    justify-content: center;
}

/* ---- SEARCH TOGGLE (desktop uniquement) ---- */
.search-toggle {
    display: flex;             /* visible sur mobile ET desktop */
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    color: #aaa;
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.search-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Groupe search+loupe : toujours flex, aligné à droite */
.main-nav__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-shrink: 0;
}

/* ---- HAMBURGER (mobile uniquement) ---- */
.hamburger-btn {
    display: flex;             /* visible par défaut (mobile first) */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.2); }
.hamburger-btn span {
    display: block; width: 100%; height: 2px;
    background: var(--color-white); border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- LOGO DANS LA NAV (desktop) ---- */
.menu-item--logo {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 0;
}
.main-nav__logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}
.main-nav__logo-icon {
    height: 28px;
    width: auto;
    display: block;
}

/* ---- ITEMS ---- */
.main-nav__menu .menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
}
.main-nav__menu .menu-item > a,
.main-nav__menu .menu-item > .menu-item__trigger {
    display: flex; align-items: center; gap: 5px;
    padding: 0 15px; color: #fff; font-size: 13px; font-weight: 500;
    white-space: nowrap; background: none; border: none; cursor: pointer;
    height: 100%; transition: background .18s ease, color .18s ease;
    font-family: var(--font-ui); text-decoration: none;
}
.main-nav__menu .menu-item > a:hover,
.main-nav__menu .menu-item > .menu-item__trigger:hover,
.main-nav__menu .menu-item--dropdown:hover > a {
    background: rgba(255,255,255,0.09); color: #fff;
}

/* Flèche */
.dropdown-arrow { transition: transform .2s ease; flex-shrink: 0; pointer-events: none; }
.menu-item--dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Scores en direct */
.menu-item--accent > a { color: #ff6b6b !important; font-weight: 600; }
.menu-item--accent > a:hover { color: #fff !important; background: var(--color-primary) !important; }

/* Pastille live */
.live-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #ff4444; margin-right: 5px; flex-shrink: 0;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(.7); }
}

/* =====================================================
   DROPDOWN — sort de la nav, flotte sur la page
   Déclenché au :hover CSS — aucun JS
   ===================================================== */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #1a1a1a;
    border-top: 3px solid var(--color-primary);
    border-left: 1px solid #2a2a2a;
    border-right: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
    z-index: 9100;
    padding: 8px 0;
    list-style: none;
}
@keyframes fadeDropdown {
    from { opacity:0; transform:translateY(-6px); }
    to   { opacity:1; transform:translateY(0); }
}
.menu-item--dropdown:hover > .dropdown,
.menu-item--dropdown > .dropdown.js-open {
    display: block;
    animation: fadeDropdown .15s ease forwards;
}
/* Rotation de la flèche quand ouvert au clavier */
.menu-item--dropdown > .menu-item__trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown__item > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 20px; font-size: 13px; color: #c0c0c0; white-space: nowrap;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
    text-decoration: none; border-left: 3px solid transparent;
}
.dropdown__item > a:hover {
    background: rgba(204,0,0,0.13); color: #fff;
    padding-left: 26px; border-left-color: var(--color-primary);
}


.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    color: #aaa;
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

/* ---- RECHERCHE INLINE — s'étire vers la gauche depuis la loupe ---- */

/* Le wrapper s'insère dans le flux flex de main-nav__inner */
.search-bar {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    max-width: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.search-bar.is-open {
    width: min(140px, calc(100vw - 120px));
    max-width: min(140px, calc(100vw - 120px));
}
.search-bar__inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--color-nav-bg);
    border: 1px solid #444;
    border-radius: var(--radius);
    overflow: hidden;
    width: 140px;
    flex-shrink: 0;
}
.search-bar .search-form,
.search-bar form {
    display: flex;
    flex: 1;
}
.search-bar input[type="search"] {
    flex: 1;
    padding: 5px 8px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 12px;
    outline: none;
    font-family: var(--font-ui);
    white-space: nowrap;
    min-width: 0;
}
.search-bar input[type="search"]::placeholder { color: #666; }
.search-bar input[type="submit"] {
    padding: 5px 8px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.search-bar input[type="submit"]:hover { background: var(--color-primary-dark); }
/* Le bouton fermer n'est plus nécessaire — un second clic sur la loupe ferme */
.search-bar__close { display: none; }

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 149;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.mobile-overlay.is-visible { opacity: 1; pointer-events: all; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--color-white);
    z-index: 9600;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 20px;
    min-height: 56px;
    background: var(--color-nav-bg);
}
.mobile-menu__logo-link {
    display: flex;
    align-items: center;
}
.mobile-menu__logo-icon {
    height: 32px;
    width: auto;
    display: block;
}
.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.mobile-menu__account {
    padding: 16px;
    border-bottom: 1px solid var(--color-grey-mid);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu__account p { font-size: 14px; color: var(--color-grey); }
.mobile-menu__list { padding: 8px 0; }
.mobile-menu__list li a {
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-grey-light);
    transition: background var(--transition), color var(--transition);
}
.mobile-menu__list li a:hover {
    background: var(--color-grey-light);
    color: var(--color-primary);
}
.mobile-menu__cat-title {
    background: var(--color-grey-light);
}
/* =====================================================
   MENU MOBILE — ACCORDÉON ARTICLES
   ===================================================== */
.mobile-menu__item--accordion {
    background: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-grey-light);
}

/* Ligne principale : lien Articles + bouton flèche */
.mobile-menu__accordion-row {
    display: flex;
    align-items: stretch;
}

.mobile-menu__accordion-link {
    flex: 1;
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
    color: #ccc;
    text-decoration: none;
    border-bottom: none !important;
    transition: background var(--transition), color var(--transition);
}
.mobile-menu__accordion-link:hover {
    background: #2a2a2a;
    color: var(--color-white);
}

/* Bouton flèche */
.mobile-menu__accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-left: 1px solid #2a2a2a;
    cursor: pointer;
    color: #ccc;
    transition: background var(--transition);
    padding: 0;
}
.mobile-menu__accordion-toggle:hover {
    background: #2a2a2a;
}

/* Flèche SVG — rotation quand ouvert */
.mobile-menu__accordion-arrow {
    transition: transform .22s ease;
    display: block;
}
.mobile-menu__accordion-toggle[aria-expanded="true"] .mobile-menu__accordion-arrow {
    transform: rotate(180deg);
}

/* Sous-menu */
.mobile-menu__submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--color-grey-mid);
}
.mobile-menu__submenu[hidden] {
    display: none;
}
.mobile-menu__submenu-item a {
    display: block;
    padding: 12px 20px 12px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #1a1a1a);
    text-decoration: none;
    border-bottom: 1px solid var(--color-grey-light);
    transition: background var(--transition), color var(--transition);
}
.mobile-menu__submenu-item:last-child a {
    border-bottom: none;
}
.mobile-menu__submenu-item a:hover {
    background: var(--color-grey-light);
    color: var(--color-primary);
}
.mobile-menu__separator {
    height: 6px;
    background: var(--color-grey-light);
    border-top: 1px solid var(--color-grey-mid);
    border-bottom: 1px solid var(--color-grey-mid);
}

/* =====================================================
   HOMEPAGE – CARROUSEL + CONTENU (65% de la page)
   ===================================================== */
.home-content-wrap {
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}

/* =====================================================
   CAROUSEL
   ===================================================== */
.carousel-section { padding: 32px 0; background: var(--color-white); }
.carousel-section .home-content-wrap { } /* hérité */
.carousel {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.carousel__slide {
    display: none;
    position: relative;
}
.carousel__slide--active { display: block; }
.carousel__slide-link { display: block; position: relative; }
.carousel__img-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--color-dark);
}
.carousel__img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.carousel__slide:hover .carousel__img-wrap img { transform: scale(1.03); }
.carousel__img-placeholder { position: absolute; inset: 0; background: #333; }
.carousel__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--color-white);
}
.carousel__cat {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.carousel__title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-main);
    line-height: 1.3;
    color: var(--color-white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 10;
}
.carousel__btn:hover { background: var(--color-primary); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__dots {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.carousel__dot--active {
    background: var(--color-white);
    transform: scale(1.25);
}

/* =====================================================
   HOMEPAGE – DERNIERS CONTENUS
   ===================================================== */
.latest-section { padding: 40px 0; }
.latest-section__inner {
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.debriefs-grid { display: flex; flex-direction: column; gap: 16px; }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* CARD ARTICLE */
.card-article {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card-article:hover {
    box-shadow: var(--shadow-lg);
}
.card-article__thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: var(--color-grey-light); }
.card-article__thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.card-article:hover .card-article__thumb img { transform: none; }
.card-article__thumb--placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #eee, #ddd); }
.card-article__cat {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 1;
}
.card-article__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-article__title { font-size: 0.95rem; font-weight: 700; font-family: var(--font-main); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; min-height: calc(0.95rem * 1.35 * 2); max-height: calc(0.95rem * 1.35 * 2); }
.card-article__title a:hover { color: var(--color-primary); }
.card-article:hover .card-article__title a { color: var(--color-primary); }
.card-article__meta { display: flex; gap: 12px; flex-wrap: wrap; }
.card-article__stat {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--color-grey);
}

/* CARD DEBRIEF */
.card-debrief { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card-debrief:hover { transform: none; box-shadow: var(--shadow-lg); }
.card-debrief__link { display: flex; gap: 12px; padding: 12px; }
.card-debrief__thumb { position: relative; width: 100px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.card-debrief__thumb img { width: 100%; height: 70px; object-fit: cover; }
.card-debrief__thumb--placeholder { width: 100px; height: 70px; background: #eee; border-radius: var(--radius); }
.card-debrief__badge {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    text-align: center;
    flex-shrink: 0;
}
.card-debrief__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.card-debrief__title { font-size: 0.88rem; font-weight: 700; font-family: var(--font-main); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; min-height: calc(0.88rem * 1.35 * 2); max-height: calc(0.88rem * 1.35 * 2); }
.card-debrief__title:hover { color: var(--color-primary); }
.card-debrief:hover .card-debrief__title { color: var(--color-primary); }
.card-debrief__meta { display: flex; gap: 10px; font-size: 11px; color: var(--color-grey); flex-wrap: wrap; }

/* =====================================================
   CARD ARTICLE ROW — style "ligne" (même structure que card-debrief)
   Utilisé sur la homepage pour les articles.
   ===================================================== */
.card-article-row { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card-article-row:hover { box-shadow: var(--shadow-lg); }
.card-article-row__link { display: flex; gap: 12px; padding: 12px; text-decoration: none; color: inherit; }
.card-article-row__left { flex-shrink: 0; }
.card-article-row__thumb { position: relative; width: 100px; border-radius: var(--radius); overflow: hidden; }
.card-article-row__thumb img { width: 100%; height: 70px; object-fit: cover; display: block; }
.card-article-row__thumb--placeholder { width: 100px; height: 70px; background: #eee; border-radius: var(--radius); }
.card-article-row__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.card-article-row__title { font-size: 0.88rem; font-weight: 700; font-family: var(--font-main); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; min-height: calc(0.88rem * 1.35 * 2); max-height: calc(0.88rem * 1.35 * 2); }
.card-article-row:hover .card-article-row__title { color: var(--color-primary); }
.card-article-row__meta { display: flex; gap: 10px; font-size: 11px; color: var(--color-grey); flex-wrap: wrap; }
.card-article-row__stat { display: flex; align-items: center; gap: 4px; }
.card-article-row__badge { display: inline-block; background: var(--color-primary); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: var(--radius); letter-spacing: 0.5px; padding: 3px 8px; text-align: center; flex-shrink: 0; margin-left: auto; }

/* Sur desktop (≥ 768px) : la grille articles reprend son layout normal (2 colonnes)
   On réutilise le style card-article en surchargeant card-article-row */
@media (min-width: 768px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .card-article-row { border-radius: var(--radius-lg); }
    .card-article-row__link { flex-direction: column; gap: 0; padding: 0; }
    .card-article-row__left { width: 100%; }
    .card-article-row__thumb { width: 100%; border-radius: 0; position: relative; padding-top: 56.25%; height: 0; overflow: hidden; }
    .card-article-row__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .card-article-row__thumb--placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
    .card-article-row__body { padding: 14px; gap: 10px; justify-content: flex-start; }
    .card-article-row__title { font-size: 0.95rem; -webkit-line-clamp: 2; line-clamp: 2; min-height: calc(0.95rem * 1.35 * 2); max-height: calc(0.95rem * 1.35 * 2); }
    .card-article-row__badge { font-size: 10px; }
}

/* =====================================================
   PODCAST
   ===================================================== */
.podcast-section { background: var(--color-white); padding: 40px 0; }
.podcast-section__inner { max-width: 1080px; width: 90%; margin: 0 auto; text-align: center; }
.podcast-embed { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; }
.podcast-section__cta { margin-top: 16px; }

/* =====================================================
   ARCHIVE
   ===================================================== */
.archive-page { padding: var(--page-top) 16px; }
.archive-page__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.archive-header { margin-bottom: 24px; }
.archive-title { font-size: 1.8rem; font-family: var(--font-main); font-weight: 700; }
.archive-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--color-primary); margin-top: 8px; border-radius: 2px; }
.archive-description { color: var(--color-grey); margin-top: 8px; }

/* Sidebar */
.archive-sidebar { order: -1; }
.archive-sidebar__title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); }
.archive-sidebar__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.archive-sidebar__cats li a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--color-grey-light);
    transition: background var(--transition), color var(--transition);
}
.archive-sidebar__cats li.current a,
.archive-sidebar__cats li a:hover { background: var(--color-primary); color: var(--color-white); }
.cat-count { font-size: 11px; opacity: 0.7; }

.filter-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--color-grey-mid);
    background: var(--color-white);
    transition: all var(--transition);
    cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.archive-sidebar__seasons, .archive-sidebar__match-types { margin-top: 20px; }
.archive-sidebar__seasons h3, .archive-sidebar__match-types h3 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.season-filters, .type-filters { display: flex; flex-wrap: wrap; gap: 6px; }

/* Grid archive */
.archive-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.archive-loadmore { text-align: center; padding: 32px 0 16px; }
.load-more-spinner { display: inline-flex; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   SINGLE ARTICLE
   ===================================================== */
/* Barre de progression */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-primary);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

.single-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.single-article__header { padding: 32px 0 24px; border-bottom: 1px solid var(--color-grey-mid); margin-bottom: 24px; }
.single-article__header-inner { max-width: 800px; }
.single-article__cat {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 12px; border-radius: 2px;
    margin-bottom: 12px;
}
.single-article__title {
    font-size: 1.6rem;
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--color-dark);
}
.single-article__byline { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--color-grey); margin-bottom: 12px; }
.byline__author, .byline__date, .byline__reading-time { display: flex; align-items: center; gap: 5px; }
.single-article__stats { display: flex; gap: 16px; font-size: 13px; color: var(--color-grey); }
.stat { display: flex; align-items: center; gap: 5px; }

.single-article__featured-img { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.single-article__featured-img img { width: 100%; max-height: 500px; object-fit: cover; }

.single-article__content {
    max-width: 800px;
    font-size: 1rem;
    line-height: 1.75;
    color: #222;
}
.single-article__content p { margin-bottom: 1.25em; }
.single-article__content h2, .single-article__content h3 { font-family: var(--font-main); margin: 1.5em 0 0.5em; }
.single-article__content img { border-radius: var(--radius); margin: 1em 0; }
.single-article__content a { color: var(--color-primary); text-decoration: underline; }
.single-article__content blockquote {
    margin: 24px 0;
}
.single-article__content blockquote p {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #000;
    font-style: normal;
}
.single-article__content blockquote cite {
    display: inline-block;
    width: 70%;
    margin-top: 10px;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: var(--color-grey8, #7b7b7a);
    font-style: normal;
}

/* Partage */
.single-article__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 16px;
    padding: 20px;
    background: var(--color-grey-light);
    border-radius: var(--radius-lg);
}
.share-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: opacity var(--transition);
    color: var(--color-white);
    cursor: pointer;
    border: none;
}
.share-btn:hover { opacity: 0.85; color: var(--color-white); }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter  { background: #000; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--copy     { background: var(--color-grey); }

/* Notifications */
.single-article__notification { margin-bottom: 32px; }
.btn--notification { border: 2px solid; }
.btn--inactive { border-color: var(--color-grey-mid); color: var(--color-grey); background: var(--color-white); }
.btn--inactive:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--active { border-color: var(--color-primary); color: var(--color-white); background: var(--color-primary); }

/* Commentaires */

/* =====================================================
   PAGE TWITCH
   ===================================================== */
.twitch-page { padding: var(--page-top) 16px 40px; max-width: 1500px; margin: 0 auto; }
.twitch-layout { max-width: 828px; margin: 0 auto; }
.twitch-page__header { margin-bottom: 20px; max-width: 828px; margin-left: auto; margin-right: auto; }
.twitch-page__title { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-family: var(--font-main); font-weight: 900; color: var(--color-twitch); }
/* Layout : player + chat côte à côte */
.twitch-layout { display: flex; flex-direction: column; gap: 0; background: #0e0e10; border-radius: 8px; overflow: hidden; }
.twitch-player { flex: 1 1 auto; }
.twitch-player__ratio { position: relative; padding-top: 56.25%; background: #000; }
.twitch-player__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
/* Chat */
.twitch-chat { display: flex; flex-direction: column; background: #18181b; }
.twitch-chat__info { padding: 8px 14px; background: #0e0e10; font-size: 12px; color: #adadb8; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #2a2a2e; flex-shrink: 0; }
.twitch-chat__info a { color: var(--color-twitch); text-decoration: underline; }
.twitch-chat iframe { width: 100%; flex: 1; border: none; height: 210px; }

/* =====================================================
   PAGE CALENDRIER
   ===================================================== */
.calendrier-page { padding: var(--page-top) 16px 60px; max-width: 1280px; margin: 0 auto; }
.calendrier-page .actu-page__header { padding-top: 0; }
.calendrier-page__header { margin-bottom: 24px; }
.calendrier-page__title { font-size: 1.8rem; font-family: var(--font-main); font-weight: 700; }
.calendrier-page__subtitle { color: var(--color-grey); margin-top: 6px; }

.cal-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--color-grey-mid); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.cal-tabs::-webkit-scrollbar { display: none; }
.cal-tab {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex: 1;
    padding: 10px 20px;
    font-size: 14px; font-weight: 600;
    color: var(--color-grey);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    text-align: center;
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
}
.cal-tab:hover, .cal-tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.cal-section { margin-bottom: 48px; }
.cal-section__title { font-size: 1.4rem; font-family: var(--font-main); font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-grey-mid); }
.cal-embed-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-grey-mid); }
.cal-embed-fallback { padding: 12px 16px; background: var(--color-grey-light); text-align: center; font-size: 13px; border-top: 1px solid var(--color-grey-mid); }
.cal-embed-fallback a { color: var(--color-primary); text-decoration: underline; }

/* =====================================================
   PAGE MON COMPTE
   ===================================================== */
.compte-page { padding: var(--page-top) 16px; max-width: 1280px; margin: 0 auto; }

/* Déconnecté */
.compte-login { display: flex; justify-content: center; padding: 48px 0; }
.compte-login__box { background: var(--color-white); border: 1px solid var(--color-grey-mid); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.compte-login__title { font-size: 1.5rem; font-family: var(--font-main); font-weight: 700; margin-bottom: 8px; }
.compte-login__intro { color: var(--color-grey); margin-bottom: 24px; font-size: 14px; }
.compte-login__register { margin-top: 20px; text-align: center; font-size: 13px; color: var(--color-grey); }
.compte-login__register a { color: var(--color-primary); text-decoration: underline; }

/* Connecté */
.compte-page__inner { display: flex; flex-direction: column; gap: 32px; }
.compte-sidebar { text-align: center; background: var(--color-grey-light); border-radius: var(--radius-lg); padding: 28px 20px; }
.compte-avatar { margin: 0 auto 16px; width: 90px; height: 90px; }
.compte-avatar__img, .compte-avatar__default {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}
.compte-avatar__default {
    background: var(--color-primary);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 700;
}
.compte-sidebar__name { font-size: 1.2rem; font-weight: 700; font-family: var(--font-main); }
.compte-sidebar__email { color: var(--color-grey); font-size: 13px; margin: 4px 0 16px; }
.compte-sidebar__stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.compte-stat { display: flex; flex-direction: column; align-items: center; }
.compte-stat__value { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); }
.compte-stat__label { font-size: 11px; color: var(--color-grey); text-transform: uppercase; letter-spacing: 0.5px; }
.compte-sidebar__logout { margin-top: 8px; }

.compte-section { background: var(--color-white); border: 1px solid var(--color-grey-mid); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.compte-section__title { font-size: 1.2rem; font-family: var(--font-main); font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--color-primary); }

/* Formulaires */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--color-dark); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--color-grey-mid);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
    background: var(--color-white);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); }
.form-group input[type="file"] { padding: 8px; font-size: 13px; }
.form-hint { font-size: 12px; color: var(--color-grey); margin-top: 4px; }
.contact-form .form-group textarea { resize: vertical; min-height: 120px; }

/* Commentaires compte */
.compte-comments-list { display: flex; flex-direction: column; gap: 12px; }
.compte-comment-item {
    padding: 14px 16px;
    background: var(--color-grey-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-primary);
}
.compte-comment-item__text { font-size: 14px; color: var(--color-dark); margin-bottom: 6px; }
.compte-comment-item__meta { font-size: 12px; color: var(--color-grey); }
.compte-comment-item__meta a { color: var(--color-primary); text-decoration: underline; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--color-nav-bg); color: #ccc; padding: 48px 16px 0; }
.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 40px;
}
.footer-col {}
.footer-col--brand {}
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 50px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 1.5rem; font-weight: 900; color: var(--color-white); font-family: var(--font-main); text-transform: uppercase; }
.footer-tagline { font-size: 13px; color: #888; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a { color: #888; transition: color var(--transition); display: flex; align-items: center; }
.footer-socials a:hover { color: var(--color-primary); }

.footer-col__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-white); margin-bottom: 16px; }
.footer-col--links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col--links ul a { font-size: 14px; color: #888; transition: color var(--transition); }
.footer-col--links ul a:hover { color: var(--color-white); }
.footer-col--contact p { font-size: 14px; color: #888; margin-bottom: 16px; }

.site-footer__bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* =====================================================
   MODALE CONTACT
   ===================================================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9900; /* au-dessus de la navbar (9000) et du mobile-menu (9600) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__close {
    position: absolute; top: 16px; right: 16px;
    font-size: 18px; color: var(--color-grey);
    background: none; border: none; cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    padding: 4px;
}
.modal__close:hover { color: var(--color-primary); }
.modal__title { font-size: 1.4rem; font-family: var(--font-main); font-weight: 700; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--color-primary); }

/* =====================================================
   WP LOGIN FORM (dans page-compte.php)
   ===================================================== */
#loginform { display: flex; flex-direction: column; gap: 14px; }
#loginform .input { width: 100%; padding: 10px 14px; border: 2px solid var(--color-grey-mid); border-radius: var(--radius); font-size: 15px; font-family: inherit; }
#loginform .input:focus { border-color: var(--color-primary); outline: none; }
#loginform .button-primary {
    width: 100%; padding: 12px 20px;
    background: var(--color-primary); color: var(--color-white);
    border: none; border-radius: var(--radius);
    font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
}
#loginform .button-primary:hover { background: var(--color-primary-dark); }
#loginform p { display: flex; flex-direction: column; gap: 4px; }
#loginform label { font-size: 13px; font-weight: 600; }
#loginform .forgetmenot { flex-direction: row; align-items: center; gap: 8px; }

/* =====================================================
   BOUTON RETOUR EN HAUT
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(204, 0, 0, 0.75);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,0.28);
    z-index: 300;
    cursor: pointer;
    border: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    pointer-events: none;
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover { background: rgba(204, 0, 0, 1); }

/* =====================================================
   DESKTOP NAV (min-width: 947px)
   ===================================================== */
@media (min-width: 947px) {

    /* Header */
    .hamburger-btn { display: none; }
    .site-header__account { gap: 12px; font-size: 13px; }
    .site-header__logo-img { height: 64px; }
    .account-link { gap: 8px; }
    .account-link span { max-width: none; }
    .account-avatar { width: 28px; height: 28px; }
    .account-avatar--default { font-size: 13px; }
    .account-logout, .account-login { font-size: 12px; }

    /* Nav desktop : afficher menu, cacher hamburger */
    .main-nav__menu   { display: flex; }
    .hamburger-btn    { display: none; }

    /* Layout 3 colonnes : [vide] [menu centré] [search+loupe] */
    .main-nav__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    .main-nav__menu {
        grid-column: 2;
        flex: none;
    }
    /* Groupe search+loupe ancré à droite dans la 3e colonne */
    .main-nav__right {
        grid-column: 3;
    }
}

/* =====================================================
   DESKTOP STYLES (min-width: 768px)
   ===================================================== */
@media (min-width: 768px) {

    /* Carousel */
    .carousel__title { font-size: 1.8rem; }
    .carousel__overlay { padding: 80px 40px 32px; }
    .carousel__btn { width: 48px; height: 48px; }

    /* Latest section – 2 colonnes côte à côte */
    /* ── 768px–1149px : empilé, Actualités au-dessus, 2 cols articles ── */
    .latest-section__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }
    /* Ordre : actualités (1) au-dessus de débriefs (2) */
    .latest-order-1 { order: 1; }
    .latest-order-2 { order: 2; }

        /* Grille articles : 2 colonnes dès 768px */
    .latest-section__articles .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Débriefs : on laisse la colonne pleine largeur */
    .latest-section__debriefs { flex: none; }

    /* Archive */
    .archive-page__inner { flex-direction: row; align-items: flex-start; }
    .archive-sidebar { flex: 0 0 220px; position: sticky; top: calc(var(--nav-height) + 16px); }
    .archive-sidebar__cats { flex-direction: column; }
    .archive-main { flex: 1; }
    .archive-grid { grid-template-columns: repeat(3, 1fr); }

    /* Single */
    .single-article__title { font-size: 2.2rem; }
    .single-article__content { font-size: 1.05rem; }

    /* Twitch */
    .twitch-layout { flex-direction: row; align-items: stretch; }
    .twitch-player { flex: 1 1 auto; min-width: 0; }
    .twitch-chat { flex: 0 0 360px; display: flex; flex-direction: column; }
    .twitch-chat iframe { height: 100%; min-height: 250px; }

    /* Compte */
    .compte-page__inner { flex-direction: row; align-items: flex-start; }
    .compte-sidebar { flex: 0 0 260px; position: sticky; top: calc(var(--nav-height) + 16px); }
    .compte-main { flex: 1; }

    /* Footer */
    .site-footer__inner { flex-direction: row; justify-content: space-between; }
    .footer-col { flex: 1; }
    .footer-col--brand { flex: 1.5; }
}

@media (min-width: 1024px) {
    .carousel__title { font-size: 2.2rem; }
    /* articles-grid reste à 2 cols sur la homepage */
    .latest-section__debriefs { flex: 0 0 340px; }
}

/* =====================================================
   RGPD — BANDEAU COOKIES
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a1a1a;
    color: #ddd;
    z-index: 800;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    border-top: 3px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.5;
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.cookie-banner.is-hidden { transform: translateY(110%); }
.cookie-banner__text { flex: 1; min-width: 240px; }
.cookie-banner__text strong { color: #fff; }
.cookie-banner__text a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-ui);
    transition: all var(--transition);
    white-space: nowrap;
}
.cookie-btn--accept { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.cookie-btn--accept:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.cookie-btn--decline { background: transparent; color: #aaa; border-color: #444; }
.cookie-btn--decline:hover { color: #fff; border-color: #888; }
.cookie-btn--details { background: transparent; color: #aaa; border-color: #444; }
.cookie-btn--details:hover { color: #fff; border-color: #888; }

/* Modale RGPD détail */
.cookie-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9800;  /* au-dessus de tout : nav(9000), mobile-menu(9600) */
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.cookie-modal-overlay.is-open { opacity: 1; pointer-events: all; }
.cookie-modal {
    background: #1e1e1e;
    color: #ccc;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%; max-width: 560px;
    max-height: 85vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transform: translateY(16px);
    transition: transform 0.2s ease;
    border-top: 3px solid var(--color-primary);
}
.cookie-modal-overlay.is-open .cookie-modal { transform: translateY(0); }
.cookie-modal__close {
    position: absolute; top: 16px; right: 16px;
    color: #666; background: none; border: none; cursor: pointer;
    font-size: 20px; line-height: 1; padding: 4px;
    transition: color var(--transition);
}
.cookie-modal__close:hover { color: #fff; }
.cookie-modal h2 {
    font-size: 1.2rem; color: #fff; margin-bottom: 8px;
    padding-bottom: 12px; border-bottom: 1px solid #333;
}
.cookie-modal p { font-size: 13px; margin-bottom: 14px; line-height: 1.6; }
.cookie-modal h3 { font-size: 14px; color: #fff; margin: 20px 0 8px; }
.cookie-type {
    background: #252525;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.cookie-type__info { flex: 1; }
.cookie-type__name { font-weight: 700; color: #eee; font-size: 13px; margin-bottom: 4px; }
.cookie-type__desc { font-size: 12px; color: #888; line-height: 1.5; }
.cookie-toggle {
    position: relative; flex-shrink: 0; margin-top: 2px;
    width: 42px; height: 24px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle__slider {
    position: absolute; inset: 0;
    background: #444; border-radius: 24px; cursor: pointer;
    transition: background 0.2s ease;
}
.cookie-toggle__slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; left: 3px; top: 3px;
    transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--color-primary); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle__slider { background: var(--color-primary); opacity: 0.5; cursor: not-allowed; }
.cookie-modal__footer {
    display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px;
    padding-top: 16px; border-top: 1px solid #333; flex-wrap: wrap;
}

/* =====================================================
   PAGE STATIQUE (page.php)
   ===================================================== */
.static-page { padding: 40px 16px; }
.static-page__inner { max-width: 860px; margin: 0 auto; }
.static-page__title {
    font-size: 2rem;
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--color-primary);
}
.static-page__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #222;
}
.static-page__body p { margin-bottom: 1.25em; }
.static-page__body h2, .static-page__body h3 { font-family: var(--font-main); margin: 1.5em 0 0.5em; }
.static-page__body a { color: var(--color-primary); text-decoration: underline; }
.static-page__body img { border-radius: var(--radius); max-width: 100%; margin: 1em 0; }

/* =====================================================
   LINE-CLAMP — titres max 2 lignes sur mobile
   ===================================================== */

/* Tous les titres de cartes, carrousel, etc. */
.card-article__title a,
.card-article__title,
.card-debrief__title,
.carousel__title,
.archive-title-card {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Mobile : 2 lignes max */
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Sur desktop : 2 lignes max pour tous les titres de cards */
@media (min-width: 768px) {
    .card-article__title a,
    .card-article__title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    /* Débriefs : 2 lignes max partout, quelle que soit la taille d'écran */
    .card-debrief__title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    /* Carrousel : 2 lignes max */
    .carousel__title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* =====================================================
   ARCHIVE — grille catégorie (3 cols desktop)
   ===================================================== */
.archive-page { padding: 0 16px 48px; }
.archive-page__inner { max-width: 1280px; margin: 0 auto; }

/* Grille partagée archive + actualités : 1→2→3 cols */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 600px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@keyframes spin { to { transform: rotate(360deg); } }
.load-more-spinner { display: inline-flex; }
.load-more-spinner svg { animation: spin 1s linear infinite; }

.archive-empty { text-align: center; padding: 60px 0; color: var(--color-grey); }
.archive-empty p { margin-bottom: 20px; font-size: 1.1rem; }

/* =====================================================
   PAGE ACTUALITÉS
   ===================================================== */
.actu-page { padding: 0 16px 56px; }
.actu-page__inner {
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
}
.actu-page__header {
    padding: var(--page-top) 0 32px;
}
/* Réutilise .section-title--red de la homepage */

/* Bouton charger plus — centré, largeur auto, pas pleine largeur */
.actu-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0 8px;
}

/* =====================================================
   PAGINATION NUMÉROTÉE — page Actualités
   ===================================================== */
.actu-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 48px 0 16px;
}

/* Tous les liens et spans générés par paginate_links() */
.actu-pagination a,
.actu-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    border: 2px solid var(--color-grey-mid);
    color: var(--color-grey);
    background: var(--color-white);
    line-height: 1;
}

/* Page courante */
.actu-pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    cursor: default;
}

/* Liens survolés */
.actu-pagination a:hover {
    background: var(--color-grey-light);
    border-color: #bbb;
    color: var(--color-dark);
}

/* Points de suspension */
.actu-pagination .dots {
    border: none;
    background: none;
    color: #bbb;
    padding: 8px 4px;
    cursor: default;
}

/* Précédent / Suivant : légèrement différenciés */
.actu-pagination .prev,
.actu-pagination .next {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.actu-pagination .prev:hover,
.actu-pagination .next:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* =====================================================
   CARD-ARTICLE — date entre titre et stats
   ===================================================== */
.card-article__date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

/* =====================================================
   CARD-DEBRIEF — stats harmonisées avec card-article
   ===================================================== */
.card-debrief__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}
.card-debrief__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* =====================================================
   HOMEPAGE — ordre mobile : Actualités avant Débriefs
   ===================================================== */
.latest-section__inner {
    display: flex;
    flex-direction: column;
}
/* Mobile : actualités (order-1) avant débriefs (order-2) */
.latest-order-1 { order: 1; }
.latest-order-2 { order: 2; }

/* ordre desktop géré dans le bloc @media (min-width: 1150px) */

/* =====================================================
   HOMEPAGE — limiter à 4 articles sur mobile
   =====================================================
   On affiche 6 articles et 6 débriefs sur toutes les tailles d'écran.
   ===================================================== */

/* =====================================================
   HOMEPAGE — layout côte à côte (≥ 1150px uniquement)
   ===================================================== */
@media (min-width: 1150px) {
    .latest-section__inner {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
        max-width: 1080px;   /* fixe en px — insensible au zoom */
        width: 90%;          /* responsive sur les grands écrans, ne dépasse pas */
    }
    /* Articles à gauche, Débriefs à droite */
    .latest-order-1 { order: 1; }
    .latest-order-2 { order: 2; }

    /* Largeur strictement fixe en px — insensible au zoom */
    .latest-section__debriefs {
        width: 340px;        /* largeur fixe absolue */
        min-width: 340px;    /* ne rétrécit jamais */
        max-width: 340px;    /* ne grandit jamais */
        flex: none;          /* désactive complètement le flex-sizing */
        display: flex;
        flex-direction: column;
    }
    .latest-section__debriefs .debriefs-grid {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: space-between;
    }
    .latest-section__debriefs .card-debrief {
        flex: 1;
        max-height: none;
    }

    .latest-section__articles {
        flex: 1;
        min-width: 0;      /* empêche les débordements internes */
        display: flex;
        flex-direction: column;
        /* Padding pour que les ombres des cartes puissent se développer sur tous les bords */
        padding: 8px;
        margin: -8px;
    }
    .latest-section__articles .articles-grid {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
        align-content: space-between;
        align-items: stretch;
    }
    .latest-section__articles .card-article {
        height: 100%;
    }
}

/* =====================================================
   HOMEPAGE — hauteur égale des deux colonnes (desktop)
   La section-title reste à sa hauteur naturelle,
   seule la grille en dessous s'étire.
   ===================================================== */
@media (min-width: 1150px) {
    /* Le titre ne s'étire pas »
    .latest-section__debriefs .section-title,
    .latest-section__articles .section-title {
        flex-shrink: 0;
    }

    /* Thumb de la card-debrief : hauteur fixe pour garder une bonne proportion */
    .latest-section__debriefs .card-debrief__thumb img {
        height: 70px;
        width: 110px;
        object-fit: cover;
        flex-shrink: 0;
    }
    .latest-section__debriefs .card-debrief__thumb {
        width: 110px;
        flex-shrink: 0;
    }

    /* Card-article : image à ratio fixe, contenu qui remplit */
    .latest-section__articles .card-article {
        display: flex;
        flex-direction: column;
    }
    .latest-section__articles .card-article__body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* =====================================================
   PAGE ARTICLES — LAYOUT AVEC SIDEBAR FILTRES
   ===================================================== */
.actu-page--with-sidebar .actu-page__layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1080px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 0 56px;  /* espace au-dessus du contenu */
}

/* ---- SIDEBAR ---- */
.actu-sidebar {
    width: 100%;
}
.actu-sidebar__inner {
    background: var(--color-grey-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-top: 3px solid var(--color-primary);
}
.actu-sidebar__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-dark);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-grey-mid);
}

/* Bouton toggle collapse (mobile uniquement) */
.actu-sidebar__toggle {
    display: none; /* caché sur desktop */
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    color: var(--color-dark);
    line-height: 1;
    flex-shrink: 0;
}
.actu-sidebar__toggle svg {
    display: block;
    transition: transform 0.25s ease;
}

/* État replié : contenu masqué, titre sans bordure basse */
.actu-sidebar--collapsed .actu-sidebar__inner {
    padding-bottom: 16px;
}
.actu-sidebar--collapsed .actu-sidebar__title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.actu-sidebar--collapsed .actu-sidebar__toggle svg {
    transform: rotate(180deg);
}
.actu-sidebar--collapsed .actu-sidebar__body {
    display: none;
}

/* Wrapper du contenu collapsible */
.actu-sidebar__body {
    display: block;
}
.actu-sidebar__reset-wrap {
    margin-bottom: 14px;
}
.actu-sidebar__reset {
    font-size: 12px;
    color: var(--color-primary);
    background: none;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}
.actu-sidebar__reset:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Liste des catégories */
.actu-sidebar__cats {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.actu-sidebar__cat-item { }
.actu-sidebar__label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px 6px 8px;
    border-radius: var(--radius);
    background: var(--color-white);
    border: 1px solid var(--color-grey-mid);
    transition: border-color var(--transition), background var(--transition);
    user-select: none;
}
.actu-sidebar__label:hover {
    border-color: var(--color-primary);
    background: #fff5f5;
}

/* Cacher la checkbox native */
.actu-sidebar__checkbox {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

/* Checkbox custom */
.actu-sidebar__checkmark {
    width: 16px; height: 16px;
    border: 2px solid var(--color-grey-mid);
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    background: var(--color-white);
}
/* État coché */
.actu-sidebar__checkbox:checked + .actu-sidebar__checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.actu-sidebar__checkbox:checked + .actu-sidebar__checkmark::after {
    content: '';
    width: 9px; height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}
/* Label coché */
.actu-sidebar__checkbox:checked ~ .actu-sidebar__cat-name {
    color: var(--color-primary);
    font-weight: 600;
}
.actu-sidebar__label:has(.actu-sidebar__checkbox:checked) {
    border-color: var(--color-primary);
    background: #fff5f5;
}

.actu-sidebar__cat-name {
    font-size: 13px;
    color: var(--color-dark);
    transition: color var(--transition);
}
.actu-sidebar__count {
    font-size: 11px;
    color: #aaa;
    margin-left: 2px;
}

/* Focus clavier */
.actu-sidebar__checkbox:focus-visible + .actu-sidebar__checkmark {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---- CONTENU PRINCIPAL ---- */
.actu-main { flex: 1; min-width: 0; }
.actu-results-info {
    font-size: 13px;
    color: var(--color-grey);
    margin-top: 4px;
    min-height: 18px;
}

/* Spinner de chargement */
.actu-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 0;
    color: var(--color-grey);
    font-size: 14px;
}

/* ---- DESKTOP : sidebar à gauche ---- */
@media (min-width: 768px) {
    .actu-page--with-sidebar .actu-page__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
    .actu-sidebar {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--nav-height) + 16px);
    }
    /* Sur desktop : liste verticale */
    .actu-sidebar__cats {
        flex-direction: column;
        gap: 4px;
    }
    .actu-sidebar__label {
        border: none;
        background: none;
        border-radius: var(--radius);
        padding: 5px 8px;
    }
    .actu-sidebar__label:hover {
        background: var(--color-white);
        border: none;
    }
    .actu-page--with-sidebar .actu-page__header {
        padding: 0 0 28px;
    }
}

/* Désactiver le toggle uniquement sur grand desktop (≥ 947px) */
@media (min-width: 947px) {
    .actu-sidebar__toggle { display: none !important; }
    .actu-sidebar__body   { display: block !important; }
}

/* Toggle actif sur mobile ET sur 768–946px */
@media (max-width: 946px) {
    .actu-sidebar__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .actu-sidebar--collapsed .actu-sidebar__body {
        display: none !important;
    }
}

/* =====================================================
   SIDEBAR FILTRES — état coché via classe PHP
   ===================================================== */

/* Remplacer le système checkbox par des liens <a> avec classe */
.actu-sidebar__label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: var(--color-white);
    border: 1px solid var(--color-grey-mid);
    transition: border-color .15s ease, background .15s ease;
    text-decoration: none;
    color: var(--color-dark);
}
.actu-sidebar__label:hover {
    border-color: var(--color-primary);
    background: #fff5f5;
    color: var(--color-dark);
}
.actu-sidebar__label--checked {
    border-color: var(--color-primary) !important;
    background: #fff0f0 !important;
}
.actu-sidebar__label--checked .actu-sidebar__cat-name {
    color: var(--color-primary);
    font-weight: 700;
}
.actu-sidebar__label--checked .actu-sidebar__checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.actu-sidebar__label--checked .actu-sidebar__checkmark::after {
    content: '';
    width: 9px; height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

/* Lien reset devient un <a> */
.actu-sidebar__reset {
    display: inline-block;
    font-size: 12px;
    color: var(--color-primary);
    background: none;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.actu-sidebar__reset:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* =====================================================
   CARD-DEBRIEF — colonne gauche : photo + badge dessous
   ===================================================== */
.card-debrief__link {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}
.card-debrief__left {
    display: flex;
    flex-direction: column;   /* photo au-dessus, badge en-dessous */
    flex-shrink: 0;
    width: 110px;
}
.card-debrief__left .card-debrief__thumb {
    width: 110px;
}
.card-debrief__left .card-debrief__thumb img {
    width: 110px;
    height: 70px;
    object-fit: cover;
    display: block;
}
.card-debrief__left .card-debrief__thumb--placeholder {
    width: 110px;
    height: 70px;
    background: var(--color-grey-light);
}
/* Badge pleine largeur de la colonne gauche, juste sous la photo */
.card-debrief__left .card-debrief__badge {
    display: block;
    width: 110px;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 0;
    flex-shrink: 0;
}

/* =====================================================
   MENU MOBILE — liens nav sur fond gris (même teinte footer)
   ===================================================== */
.mobile-menu__item--nav > a {
    background: var(--color-nav-bg);
    color: #ccc;
}
.mobile-menu__item--nav > a:hover {
    background: #2a2a2a;
    color: var(--color-white);
}

/* =====================================================
   MOBILE MENU — Scores en direct avec pastille live
   ===================================================== */
.mobile-menu__item--live > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ff6b6b !important;
    font-weight: 600;
}
.live-dot--right {
    margin-right: 0;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Coins bas de la photo débrief droits pour coller avec le badge */
.card-debrief__left .card-debrief__thumb img {
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Coins bas droits sur le conteneur de la photo débrief (pas seulement l'image) */
.card-debrief__left .card-debrief__thumb {
    border-radius: var(--radius) var(--radius) 0 0 !important;
}
.card-debrief__left .card-debrief__thumb img {
    border-radius: 0 !important;
}

/* =====================================================
   CARD-ARTICLE — badge catégorie dans les métadonnées, aligné à droite
   ===================================================== */
.card-article__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* Badge poussé à droite via margin-left auto */
.card-article__cat {
    position: static;           /* plus en absolu sur la photo */
    margin-left: auto;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.card-article__cat:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* =====================================================
   CARD-DEBRIEF — badge dans les métadonnées, aligné à droite
   Photo avec arrondis complets restaurés
   ===================================================== */

/* Restaurer les arrondis complets de la photo débrief */
.card-debrief__left .card-debrief__thumb {
    border-radius: var(--radius) !important;
}
.card-debrief__left .card-debrief__thumb img {
    border-radius: var(--radius) !important;
}

/* Badge dans les métadonnées, poussé à droite */
.card-debrief__meta .card-debrief__badge {
    display: inline-block;
    width: auto;
    margin-left: auto;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
}

/* =====================================================
   CARD-ARTICLE — titre toujours sur 2 lignes min
   pour aligner les métadonnées entre toutes les vignettes
   ===================================================== */
.card-article__title {
    /* line-height × 2 lignes = hauteur minimale garantie */
    min-height: calc(1.35em * 2);
}

/* =====================================================
   HOMEPAGE MOBILE — bloc Articles même apparence que Débriefs
   (layout horizontal : photo à gauche, texte à droite)
   ===================================================== */
@media (max-width: 767px) {
    .latest-section__articles .card-article {
        flex-direction: row;
        align-items: stretch;
    }
    /* Conteneur de la vignette : largeur fixe, hauteur 100% de la card */
    .latest-section__articles .card-article__thumb-link {
        flex: 0 0 110px;
        display: block;
        position: relative;
    }
    /* Annuler le padding-top ratio et laisser la hauteur du parent dicter */
    .latest-section__articles .card-article .card-article__thumb {
        padding-top: 0;
        position: static;
        width: 110px;
        height: 100%;
        min-height: 80px;
    }
    /* Image en static, dimensions calées sur le parent */
    .latest-section__articles .card-article .card-article__thumb img {
        position: static;
        display: block;
        width: 110px;
        height: 100%;
        min-height: 80px;
        object-fit: cover;
    }
    .latest-section__articles .card-article .card-article__thumb--placeholder {
        position: static;
        width: 110px;
        height: 80px;
    }
    .latest-section__articles .card-article__body {
        flex: 1;
        padding: 10px 12px;
        min-width: 0;
        gap: 6px;
        justify-content: center;
    }
    .latest-section__articles .card-article__title {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .latest-section__articles .card-article__meta,
    .latest-section__articles .card-article__date {
        font-size: 11px;
    }
}

/* =====================================================
   PAGE ARTICLE INDIVIDUEL (single.php)
   ===================================================== */

/* Barre de progression */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

.single-page {
    padding: 0 16px 64px;
}
.single-page__inner {
    max-width: 828px;
    margin: 0 auto;
}

/* ---- EN-TÊTE ---- */
.single-header {
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--color-grey-mid);
    margin-bottom: 0;
}

/* Catégories */
.single-header__cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.single-header__cat {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: background var(--transition);
}
.single-header__cat:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* Titre */
.single-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-main);
    line-height: 1.25;
    color: var(--color-dark);
    margin-bottom: 24px;
}

/* Byline */
.single-header__byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.single-header__byline-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.single-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-grey-mid);
}
.single-header__byline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.single-header__author {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
}
.single-header__date {
    font-size: 12px;
    color: #888;
}
.single-header__byline-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.single-header__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
}

/* ---- IMAGE À LA UNE ---- */
.single-featured-img {
    margin: 28px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 480px;
}
.single-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- CONTENU ---- */
.single-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #222;
    padding: 8px 0 32px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.single-content p { margin-bottom: 1.4em; overflow-wrap: break-word; }
.single-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2em 0 0.6em;
}
.single-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
}
.single-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25em 0 0.4em;
    color: #444;
}
.flourish-embed img { display: none !important; }
.single-content img:not(.dshow-comment-form__avatar):not(.dshow-comment__avatar) {
    border-radius: var(--radius);
    max-width: 100%;
    margin: 1em 0;
}
.single-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.single-content a:hover { color: var(--color-primary-dark); }
.single-content blockquote {
    margin: 28px 0;
}
.single-content blockquote p {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #000;
    font-style: normal;
}
.single-content blockquote cite {
    display: inline-block;
    width: 70%;
    margin-top: 10px;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: var(--color-grey8, #7b7b7a);
    font-style: normal;
}
.single-content ul, .single-content ol {
    padding-left: 24px;
    margin-bottom: 1.4em;
}
.single-content ul li, .single-content ol li { margin-bottom: 0.4em; }

/* ---- PARTAGE ---- */
.single-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-nav-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}
.single-share__label {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
}
.single-share__btns {
    display: flex;
    align-items: center;
    gap: 18px;
}
/* Icônes seules — même style que la top-bar des réseaux sociaux */
.single-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition), transform var(--transition);
    text-decoration: none;
}
/* Logos réseaux sociaux (fill) → blanc fixe */
.single-share__btn[aria-label="Partager sur Facebook"],
.single-share__btn[aria-label="Partager sur X"],
.single-share__btn[aria-label="Partager sur WhatsApp"] {
    color: #fff;
}
.single-share__btn:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ---- BOUTON CLOCHE NOTIFICATIONS ---- */
.single-notif-btn {
    color: #aaa;
    transition: color var(--transition), transform var(--transition);
}
.single-notif-btn svg {
    transition: fill var(--transition), stroke var(--transition);
    fill: none;
    stroke: currentColor;
}
.single-notif-btn.btn--active {
    color: var(--color-primary);
}
.single-notif-btn.btn--active svg {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}
.single-notif-btn:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}
.single-notif-btn.btn--active:hover {
    color: var(--color-primary);
}

/* ---- ARTICLES SIMILAIRES ---- */
.single-related {
    margin-bottom: 48px;
}
.single-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 4px;
}

/* Mobile : grille ligne (card-article-row), desktop : grille verticale (card-article) */
.single-related__grid--mobile  { display: grid; }
.single-related__grid--desktop { display: none; }

@media (min-width: 768px) {
    .single-related__grid--mobile  { display: none; }
    .single-related__grid--desktop { display: grid; }
}

/* ---- COMMENTAIRES ---- */
.single-comments {
    padding-top: 32px;
    border-top: 2px solid var(--color-grey-mid);
}
.single-comments .comment-form input,
.single-comments .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--color-grey-mid);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.single-comments .comment-form input:focus,
.single-comments .comment-form textarea:focus {
    border-color: var(--color-primary);
}
.single-comments .submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: background var(--transition);
}
.single-comments .submit:hover { background: var(--color-primary-dark); }

/* ---- DESKTOP ---- */
@media (min-width: 768px) {
    .single-header__title { font-size: 2.2rem; }
    .single-content { font-size: 1.05rem; }
    .single-related__grid { grid-template-columns: repeat(3, 1fr); }
    .single-featured-img { max-height: 520px; }
}

/* =====================================================
   CONTENU ARTICLE — puces et listes visibles
   ===================================================== */
.single-content ul {
    list-style: disc;
    padding-left: 28px;
    margin-bottom: 1.4em;
}
.single-content ol {
    list-style: decimal;
    padding-left: 28px;
    margin-bottom: 1.4em;
}
.single-content ul li,
.single-content ol li {
    margin-bottom: 0.5em;
    padding-left: 4px;
}
.single-content ul ul { list-style: circle; margin-bottom: 0; }
.single-content ul ul ul { list-style: square; }

/* =====================================================
   SECTION COMMENTAIRES PERSONNALISÉE
   ===================================================== */
.dshow-comments {
    padding-top: 40px;
    margin-top: 8px;
}

/* Titre avec compteur */
.dshow-comments__title {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-main);
    color: var(--color-dark);
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.dshow-comments__none {
    color: #888;
    font-style: italic;
    margin-bottom: 36px;
}
.dshow-comments__closed {
    color: #888;
    font-style: italic;
    padding: 16px 0;
}

/* ---- LISTE ---- */
.dshow-comments__list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;          /* espace entre commentaires */
}

/* ---- COMMENTAIRE INDIVIDUEL ---- */
.dshow-comment { }
.dshow-comment__inner {
    background: var(--color-grey-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border-left: 3px solid var(--color-grey-mid);
}
/* Réponses imbriquées : légèrement indentées */
.children {
    list-style: none;
    padding-left: 24px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.children .dshow-comment__inner {
    border-left-color: var(--color-primary);
    background: #fff;
}

/* En-tête du commentaire */
.dshow-comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    cursor: default;
}
.dshow-comment__avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-self: flex-start;
}
.dshow-comment__avatar img,
.dshow-comment__avatar .avatar {
    display: block;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    overflow: hidden;
    object-fit: cover;
    border: none !important;
    flex-shrink: 0;
    margin: 0 !important;
}
.dshow-comment__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    pointer-events: none;
}
.dshow-comment__meta-inner {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}
.dshow-comment__author {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
}
.dshow-comment__date {
    font-size: 12px;
    color: #999;
}
.dshow-comment__reply a {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    padding: 3px 10px;
    border-radius: 20px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.dshow-comment__reply a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Corps du commentaire */
.dshow-comment__body {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}
.dshow-comment__body p { margin-bottom: 0.8em; }
.dshow-comment__body p:last-child { margin-bottom: 0; }

/* Modération */
.dshow-comment__moderation {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-bottom: 10px;
}

/* ---- FORMULAIRE ---- */
.comment-form { margin-top: 8px; }
.comment-form h3,
.comment-respond h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 24px;
}
.dshow-comment-form__row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dshow-comment-form__row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
}
.dshow-comment-form__row label span {
    color: var(--color-primary);
}
.dshow-comment-form__row input,
.dshow-comment-form__row textarea {
    padding: 10px 14px;
    border: 2px solid var(--color-grey-mid);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
    background: var(--color-white);
    color: var(--color-dark);
}
.dshow-comment-form__row input:focus,
.dshow-comment-form__row textarea:focus {
    border-color: var(--color-primary);
}
.dshow-comment-form__row textarea {
    resize: vertical;
    min-height: 120px;
}
.dshow-comment-form__note {
    font-size: 11px;
    color: #aaa;
    margin: 0;
}
.dshow-comments__submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 11px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: background var(--transition);
}
.dshow-comments__submit:hover { background: var(--color-primary-dark); }

/* Lien d'annulation de réponse */
#cancel-comment-reply-link {
    font-size: 13px;
    color: #888;
    margin-left: 12px;
    text-decoration: underline;
}

/* Mention "En réponse à" */
.dshow-comment__reply-to {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-grey-mid);
}
.dshow-comment__reply-to strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* =====================================================
   COMMENTAIRES — formulaire de réponse déplacé par WP JS
   ===================================================== */

/* Quand le formulaire est déplacé sous un commentaire,
   WP ajoute .hidden sur le #respond original en bas de page */
#respond.hidden { display: none; }

/* Style du titre "Répondre à X" avec lien d'annulation */
.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.comment-reply-title small {
    font-size: 12px;
    font-weight: 400;
}
.comment-reply-title small a {
    color: #999;
    text-decoration: underline;
    transition: color var(--transition);
}
.comment-reply-title small a:hover { color: var(--color-primary); }

/* Formulaire inséré dans la liste : petit cadre distinctif */
.dshow-comments__list #respond {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 12px;
}

/* =====================================================
   "À LIRE AUSSI" — titres 2 lignes max, hauteur fixe
   ===================================================== */
.single-related__grid .card-article__title,
.single-related__grid .card-article__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    /* Hauteur fixe = exactement 2 lignes (line-height 1.35) */
    min-height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);
}

/* =====================================================
   "À LIRE AUSSI" — titres 2 lignes max, hauteur fixe
   ===================================================== */
.single-related__grid .card-article__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    /* Hauteur fixe = exactement 2 lignes quelle que soit la longueur du titre */
    min-height: calc(1.35em * 2);
}

/* =====================================================
   FIX — badges catégorie dans "À lire aussi" (single)
   et bouton "Se connecter" dans la zone commentaires.
   Les liens héritent parfois de la couleur primaire (rouge)
   via des règles globales ; on force le blanc explicitement.
   ===================================================== */
.single-related__grid .card-article__cat {
    color: #fff !important;
}
.single-related__grid .card-article__cat:hover {
    color: #fff !important;
}
.dshow-comment-auth .btn--primary {
    color: #fff !important;
}
.dshow-comment-auth .btn--primary:hover {
    color: #fff !important;
}

/* =====================================================
   COMMENTAIRES — collapse style Reddit
   ===================================================== */
.dshow-comment__inner {
    cursor: pointer;
    transition: opacity var(--transition);
}
.dshow-comment.is-collapsed .dshow-comment__inner {
    opacity: 0.6;
}
/* Hint affiché quand replié */
.dshow-comment__collapse-hint {
    display: block;
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-top: 6px;
    pointer-events: none;
}
/* Ligne verticale rouge à gauche pour les threads repliés */
.dshow-comment.is-collapsed > .dshow-comment__inner {
    border-left-color: var(--color-primary);
}

/* =====================================================
   CONTENU ARTICLE — images responsive
   Toutes les images s'adaptent à la largeur du bloc texte :
   - jamais plus larges que le conteneur (pas de débordement)
   - étirées à 100% si elles sont censées prendre toute la largeur
   ===================================================== */
.single-content img:not(.dshow-comment-form__avatar):not(.dshow-comment__avatar) {
    width: 100%;          /* s'étire jusqu'à la largeur du bloc */
    max-width: 100%;      /* ne déborde jamais */
    height: auto;         /* ratio préservé */
    display: block;
    border-radius: var(--radius);
    margin: 1.2em 0;
}

/* Figures Gutenberg (bloc image avec légende) */
.single-content figure {
    margin: 1.5em 0;
    max-width: 100%;
}
.single-content figure img {
    margin: 0;
}
.single-content figcaption {
    font-size: 12px;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 6px;
}

/* Images alignées à gauche ou à droite via Gutenberg */
.single-content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
    max-width: 45%;
}
.single-content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
    max-width: 45%;
}
.single-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
/* Sur mobile : annuler le float, images pleine largeur */
@media (max-width: 600px) {
    .single-content .alignleft,
    .single-content .alignright {
        float: none;
        max-width: 100%;
        margin: 1em 0;
    }
}

/* =====================================================
   HOMEPAGE DESKTOP — vignettes Débriefs centrées en hauteur
   ===================================================== */
@media (min-width: 1150px) {
    .latest-section__debriefs .card-debrief__link {
        align-items: center;
    }
}

/* =====================================================
   HOMEPAGE DESKTOP — Débriefs : moins de padding, plus de gap
   La hauteur totale du bloc reste identique
   ===================================================== */
@media (min-width: 1150px) {
    .latest-section__debriefs .debriefs-grid {
        gap: 10px;   /* espace entre les vignettes augmenté */
    }
    .latest-section__debriefs .card-debrief__link {
        padding: 7px 10px;   /* padding interne réduit */
        gap: 10px;
    }
}

/* =====================================================
   HOMEPAGE DESKTOP — centrage vertical Débriefs (correctif)
   ===================================================== */
@media (min-width: 1150px) {
    /* La carte prend toute la hauteur disponible */
    .latest-section__debriefs .card-debrief {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    /* Le lien (flex row) est centré verticalement dans la carte */
    .latest-section__debriefs .card-debrief__link {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    /* Le corps texte se centre aussi verticalement */
    .latest-section__debriefs .card-debrief__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* =====================================================
   PAGE QUI SOMMES-NOUS
   ===================================================== */
.qsn-page {
    padding: 48px 16px 64px;
}
.qsn-inner {
    max-width: 860px;
    margin: 0 auto;
    padding-top: var(--page-top);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Hero */
.qsn-hero { text-align: center; }
.qsn-hero .section-title { justify-content: center; margin-bottom: 12px; }
.qsn-hero__subtitle {
    font-size: 1.05rem;
    color: var(--color-grey);
    font-style: italic;
    margin-top: 8px;
}

/* Sections */
.qsn-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.qsn-section__title {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.qsn-section__subtitle {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 24px 0 8px;
    padding-left: 10px;
    border-left: 3px solid var(--color-primary);
}
.qsn-text {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--color-grey);
}
.qsn-text strong { color: var(--color-dark); }

/* Bureau */
.qsn-bureau {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.qsn-bureau__item {
    background: var(--color-grey-light);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qsn-bureau__role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-primary);
}
.qsn-bureau__name {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--color-dark);
}

/* Stats */
.qsn-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--color-nav-bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
}
.qsn-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.qsn-stats__number {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
.qsn-stats__label {
    font-size: 0.78rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Liste */
.qsn-list {
    list-style: disc;
    padding-left: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qsn-list li {
    font-size: 0.97rem;
    color: var(--color-grey);
    line-height: 1.5;
}
.qsn-list li strong { color: var(--color-dark); }
.qsn-list li strong a,
.qsn-list li a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity var(--transition);
}
.qsn-list li strong a:hover,
.qsn-list li a:hover { opacity: 0.75; }

/* Barre réseaux sociaux inline */
.qsn-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.qsn-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-grey-light);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.qsn-socials a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.qsn-socials a svg { flex-shrink: 0; }

/* Carte mentions légales */
.ml-card {
    background: var(--color-grey-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    overflow: hidden;
    margin-top: 16px;
}
.ml-card__row {
    display: flex;
    gap: 12px;
    padding: 11px 20px;
    font-size: 0.93rem;
    border-bottom: 1px solid var(--color-grey-mid);
}
.ml-card__row:last-child { border-bottom: none; }
.ml-card__label {
    flex-shrink: 0;
    width: 160px;
    font-weight: 600;
    color: var(--color-grey);
}
.ml-card__value { color: var(--color-dark); }
.ml-card__value a { color: var(--color-primary); text-decoration: underline; }
.ml-card__value a:hover { opacity: 0.75; }
.ml-update { color: var(--color-grey); font-size: 0.9rem; }

@media (max-width: 480px) {
    .ml-card__row { flex-direction: column; gap: 2px; }
    .ml-card__label { width: auto; }
}

/* Section contact */
.qsn-section--contact {
    background: var(--color-grey-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* Formulaire inline */
.qsn-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
.qsn-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .qsn-bureau { grid-template-columns: repeat(4, 1fr); }
    .qsn-stats { grid-template-columns: repeat(4, 1fr); }
    .qsn-stats__number { font-size: 2.4rem; }
    .qsn-form__row { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   PAGE CALENDRIER — API-Football
   ===================================================== */

.calendrier-page {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--page-top) 1rem 4rem;
}

.calendrier-page__header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendrier-page__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--dshow-red, #c00);
    margin: 0 0 .4rem;
}

.calendrier-page__subtitle {
    color: #666;
    font-size: .95rem;
    margin: 0;
}

/* --- Onglets --- */
.cal-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0;
}

.cal-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex: 1;
    padding: .6rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-align: center;
    transition: color .2s, border-color .2s;
}

.cal-tab:hover { color: #c00; }

.cal-tab--active {
    color: #c00;
    border-bottom-color: #c00;
}

/* --- Sections --- */
.cal-section { display: none; }
.cal-section--active { display: block; }

.cal-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #eee;
}

.cal-empty {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

/* --- Groupe par mois --- */
.cal-month-group {
    margin-bottom: 2rem;
}
.cal-month-heading {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-red, #c8102e);
    margin: 0 0 .75rem 0;
    padding-bottom: .4rem;
    border-bottom: 3px solid var(--color-red, #c8102e);
}

/* --- Bloc jour de la semaine --- */
.cal-match__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    width: 54px;
    background: var(--color-red, #c8102e);
    color: #fff;
    border-radius: 7px 0 0 7px;
    padding: .5rem .2rem;
    flex-shrink: 0;
    align-self: stretch;
    gap: 2px;
}
.cal-match__day-name {
    font-family: var(--font-main);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
    line-height: 1;
}
.cal-match__day-num {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}
.cal-match__body {
    flex: 1;
    min-width: 0;
    padding: .9rem 1.1rem;
}

/* --- Liste de matchs --- */
.cal-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cal-match {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}

.cal-match:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

/* Couleur bordure gauche selon résultat (prochains matchs uniquement) */
.cal-match--win  { border-left-color: #22c55e; }
.cal-match--draw { border-left-color: #f59e0b; }
.cal-match--loss { border-left-color: #ef4444; }

/* Fond coloré pour les blocs résultats */
.cal-result.cal-match--win  { background: #f0fdf4; border-color: #86efac; border-left-color: #16a34a; }
.cal-result.cal-match--draw { background: #fffbeb; border-color: #fde68a; border-left-color: #d97706; }
.cal-result.cal-match--loss { background: #fff1f2; border-color: #fecdd3; border-left-color: #dc2626; }


/* Bloc résultat cliquable (lien débrief) */
/* Stretched link : le <a> est positionné en absolu et couvre tout l'article */
.cal-match--has-debrief { cursor: pointer; position: relative; }
.cal-match--has-debrief:hover { box-shadow: 0 4px 14px rgba(0,0,0,.13); transform: translateY(-1px); }
.cal-match--live-link   { cursor: pointer; position: relative; }
.cal-match--live-link:hover   { box-shadow: 0 4px 14px rgba(0,0,0,.13); transform: translateY(-1px); }
.cal-match { transition: box-shadow .2s, transform .2s; }

.cal-match__debrief-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Les boutons admin restent cliquables par-dessus le lien */
.cal-admin-actions { position: relative; z-index: 2; }

.cal-badge--debrief {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative;
    z-index: 2;
}
.cal-badge--debrief:hover { background: #dbeafe; color: #dc2626; border-color: #93c5fd; }

.cal-badge--resume {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #f0fdf4;
    color: #16a34a;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative;
    z-index: 2;
}
.cal-badge--resume:hover { background: #dcfce7; }

.cal-badge--confpresse {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #fdf4ff;
    color: #9333ea;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    border: 1px solid #e9d5ff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative;
    z-index: 2;
}
.cal-badge--confpresse:hover { background: #f3e8ff; }

/* --- Meta (journée + badge) --- */
.cal-match__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
}

.cal-match__round {
    font-size: .75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* --- Badges statut --- */
.cal-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cal-badge--live      { background: #fee2e2; color: #dc2626; animation: cal-pulse 1.5s infinite; }
.cal-badge--done      { background: #f3f4f6; color: #6b7280; }
.cal-badge--postponed { background: #fef9c3; color: #92400e; }

@keyframes cal-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .6; }
}

/* --- Date --- */
.cal-match__date {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .6rem;
}

.cal-match__date { font-size: .85rem; color: #444; font-weight: 500; }

/* --- Équipes --- */
.cal-match__teams {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cal-team {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    justify-content: flex-end;
}

.cal-team--away {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
}

.cal-team__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    overflow: hidden;
}

.cal-team__logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.cal-team__logo-wrap img.cal-team__logo {
    display: none !important;
}

.cal-team__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

.cal-team__name--dfco {
    color: #c00;
    font-weight: 800;
}

.cal-match__vs {
    font-size: .75rem;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .08em;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

/* --- Score (résultats) --- */
.cal-score {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: 1.6rem;
    font-weight: 900;
    flex-shrink: 0;
    min-width: 90px;
    justify-content: center;
}

.cal-score__sep { color: #bbb; font-weight: 400; font-size: 1rem; }





/* --- Classement --- */
.cal-standings-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.cal-standings {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.cal-standings thead tr {
    background: #f9f9f9;
    border-bottom: 2px solid #e5e5e5;
}

.cal-standings th {
    padding: .65rem .75rem;
    font-size: .75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    text-align: center;
}

.cal-standings th.cal-standings__team,
.cal-standings td.cal-standings__team { text-align: left; }

.cal-standings tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.cal-standings tbody tr:last-child { border-bottom: none; }
.cal-standings tbody tr:hover { background: #fafafa; }

.cal-standings td {
    padding: .6rem .75rem;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

.cal-standings__rank {
    font-weight: 700;
    color: #888;
    min-width: 30px;
}

.cal-standings__team {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 160px;
    font-weight: 500;
}

/* Ligne DFCO mise en avant */
.cal-standings__row--dfco {
    background: #fff5f5 !important;
}

.cal-standings__row--dfco td {
    font-weight: 700;
    color: #222;
}

.cal-standings__row--dfco .cal-standings__rank { color: #c00; }

/* --- Responsive --- */
@media (max-width: 600px) {
    .cal-tabs { gap: .2rem; }
    .cal-tab  { padding: .5rem .7rem; font-size: .8rem; }

    .cal-match { padding: 0; }
    .cal-match__day { min-width: 48px; width: 48px; border-radius: 9px 0 0 9px; }
    .cal-match__day-num { font-size: 1.3rem; }
    .cal-match__body { padding: .75rem .85rem; }

    .cal-team__name { font-size: 1rem; }
    .cal-team__logo-wrap { width: 28px; height: 28px; min-width: 28px; overflow: hidden; }
    .cal-team__logo-img  { width: 28px; height: 28px; }

    .cal-score { font-size: 1.3rem; min-width: 70px; }

    .cal-standings th,
    .cal-standings td { padding: .5rem .4rem; font-size: .78rem; }

    /* Masquer colonnes secondaires sur petit écran */
    .cal-standings th:nth-child(7),
    .cal-standings td:nth-child(7),
    .cal-standings th:nth-child(8),
    .cal-standings td:nth-child(8) { display: none; }
}

/* Classement externe (lien FFF) */
.cal-standings-external {
    text-align: center;
    padding: 3rem 1rem;
    color: #555;
}
.cal-standings-external p { margin-bottom: 1.2rem; }

/* =====================================================
   CALENDRIER ADMIN — interface d'édition
   ===================================================== */

/* Alerte succès */
.cal-alert {
    border-radius: 8px;
    padding: .75rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    font-weight: 600;
}
.cal-alert--success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Badge compétition */
.cal-match__comp {
    font-size: .72rem;
    font-weight: 700;
    background: #f0f0f0;
    color: #555;
    padding: .15rem .5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Boutons admin sur chaque match */
.cal-admin-actions {
    display: flex;
    gap: .4rem;
    margin-top: .75rem;
    padding-top: .6rem;
    border-top: 1px dashed #e8e8e8;
}

.cal-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    line-height: 1;
    background: none;
}

.cal-admin-btn--edit {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.cal-admin-btn--edit:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.cal-admin-btn--delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.cal-admin-btn--delete:hover {
    background: #ffe4e6;
    color: #9f1239;
}

.cal-admin-btn--save {
    background: #c00;
    color: #fff;
    border-color: #c00;
}
.cal-admin-btn--save:hover { background: #a00; border-color: #a00; }

.cal-admin-btn--cancel {
    background: #f3f4f6;
    color: #555;
    border-color: #e5e7eb;
}
.cal-admin-btn--cancel:hover { background: #e5e7eb; }

.cal-admin-btn--add-row {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.cal-admin-btn--add-row:hover { background: #dcfce7; }

/* Bloc formulaire */
.cal-admin-form-wrap {
    background: #fafafa;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
}

.cal-admin-forms-bottom {
    margin-top: 2.5rem;
    border-top: 2px dashed #e0e0e0;
    padding-top: 2rem;
}
.cal-admin-forms-bottom .cal-admin-form-wrap {
    margin-bottom: 0;
}

.cal-admin-form-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #e5e5e5;
}

.cal-admin-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cal-form-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.cal-form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
    min-width: 160px;
}

.cal-form-group--full { flex: 1 1 100%; }

.cal-form-group label {
    font-size: .8rem;
    font-weight: 600;
    color: #444;
}

.cal-form-group input[type="text"],
.cal-form-group input[type="date"],
.cal-form-group input[type="number"],
.cal-form-group input[type="url"] {
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    padding: .45rem .7rem;
    font-size: .88rem;
    color: #222;
    background: #fff;
    transition: border-color .15s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.cal-form-group input:focus {
    outline: none;
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(204,0,0,.1);
}

.cal-form-group .req  { color: #c00; }
.cal-form-hint        { font-size: .75rem; color: #999; font-weight: 400; }

/* ── Logo picker ── */
.cal-logo-picker {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.cal-logo-picker__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    overflow: hidden;
    flex-shrink: 0;
}

.cal-logo-picker__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.cal-logo-picker__placeholder {
    font-size: .7rem;
    color: #aaa;
    text-align: center;
    padding: .25rem;
    line-height: 1.2;
}

.cal-logo-picker__actions {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cal-admin-btn--media {
    background: #fff;
    color: #333;
    border: 1px solid #c5c5c5;
    font-size: .75rem;
    padding: .3rem .6rem;
}
.cal-admin-btn--media:hover { background: #f0f0f0; border-color: #aaa; }

.cal-admin-btn--remove {
    background: #fff;
    color: #b00;
    border: 1px solid #f0c0c0;
    font-size: .75rem;
    padding: .3rem .6rem;
}
.cal-admin-btn--remove:hover { background: #fff5f5; border-color: #e00; }



.cal-form-actions {
    display: flex;
    gap: .5rem;
    padding-top: .5rem;
    flex-wrap: wrap;
}

.cal-form-actions--standings { justify-content: space-between; }

/* Tableau d'édition du classement */
.cal-standings-admin-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: .75rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.cal-standings-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.cal-standings-admin-table thead tr {
    background: #f3f4f6;
}

.cal-standings-admin-table th {
    padding: .5rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1.5px solid #e5e5e5;
}

.cal-standings-admin-table td {
    padding: .35rem .3rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.cal-standings-admin-table tbody tr:last-child td { border-bottom: none; }

.st-drag {
    cursor: grab;
    color: #bbb;
    font-size: 1.1rem;
    padding: .35rem .5rem;
    user-select: none;
}
.st-drag:active { cursor: grabbing; }

.st-dragging { opacity: .5; }
.st-over     { background: #fff5f5 !important; outline: 2px dashed #c00; }

.st-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 5px;
    padding: .3rem .4rem;
    font-size: .82rem;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color .15s;
}
.st-input:focus { outline: none; border-color: #c00; }
.st-input--team { width: 130px; }
.st-input--num  { width: 48px; text-align: center; }

.st-dfco-cell { text-align: center; }
.st-dfco-cell input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: #c00; cursor: pointer;
}

.st-remove-btn {
    background: none;
    border: none;
    color: #e11d48;
    cursor: pointer;
    font-size: .9rem;
    padding: .2rem .4rem;
    border-radius: 4px;
    transition: background .15s;
}
.st-remove-btn:hover { background: #fff1f2; }

/* Classement public : indicateur DFCO */
.cal-standings__dfco-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #c00;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Différence de buts colorée */
.cal-diff--pos { color: #16a34a; font-weight: 600; }
.cal-diff--neg { color: #dc2626; font-weight: 600; }

/* Responsive admin */
@media (max-width: 600px) {
    .cal-form-group { min-width: 100%; }
    .cal-form-row   { flex-direction: column; }
    .cal-admin-form-wrap { padding: 1rem; }
    .st-input--team { width: 100px; }
    .cal-form-actions--standings { flex-direction: column; }
}

/* =====================================================
   PAGE CLASSEMENT — EMBED SOFASCORE
   ===================================================== */
.classement-page {
    padding: var(--page-top) 0 60px;
}
.classement-page__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}
.classement-embed-wrap {
    margin-top: 8px;
}
.classement-embed-wrap iframe {
    width: 100% !important;
    max-width: 768px !important;
    height: 1003px !important;
    border: none;
    display: block;
}
.classement-embed-credit {
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: var(--color-grey);
    margin-top: 6px;
}
.classement-embed-credit a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .classement-page {
        padding: 24px 0 40px;
    }
}

/* =====================================================
   PAGE CONNEXION / INSCRIPTION / MOT DE PASSE OUBLIÉ
   ===================================================== */
.auth-page {
    padding: var(--page-top) 16px 80px;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.auth-page__inner {
    width: 100%;
    max-width: 460px;
}

/* Boîte principale */
.auth-box {
    background: var(--color-white);
    border: 1px solid var(--color-grey-mid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* En-tête */
.auth-box__header {
    background: var(--color-primary);
    padding: 28px 32px 24px;
    text-align: center;
}
.auth-box__title {
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.auth-box__subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* Onglets */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--color-grey-mid);
    background: var(--color-grey-light);
}
.auth-tab {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: var(--color-grey);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
}
.auth-tab:hover {
    color: var(--color-dark);
    background: var(--color-grey-mid);
}
.auth-tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: var(--color-white);
}

/* Panneaux */
.auth-panel {
    display: none;
    padding: 28px 32px 32px;
}
.auth-panel--active {
    display: block;
}

/* Alertes */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert--error   { background: #fff1f2; color: #b91c1c; border-left: 3px solid #dc2626; }
.auth-alert--success { background: #e6f4ea; color: #2d6a3f; border-left: 3px solid #34a853; }
.auth-alert--info    { background: #eff6ff; color: #1d4ed8; border-left: 3px solid #3b82f6; }

/* Champ mot de passe avec œil */
.form-group__password-wrap {
    position: relative;
}
.form-group__password-wrap input {
    padding-right: 42px;
    width: 100%;
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-grey);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.toggle-password:hover { color: var(--color-dark); }

/* Inline remember + lien */
.form-group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-grey);
    cursor: pointer;
}
.auth-remember input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Boutons liens (pseudo-lien en bouton) */
.auth-link-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}
.auth-link-btn:hover { color: var(--color-primary-dark); }

/* Bas de panneau */
.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--color-grey);
}
.auth-lost__intro {
    font-size: 14px;
    color: var(--color-grey);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Champ requis */
.auth-required { color: var(--color-primary); }

/* Espacement bouton submit */
.auth-form .btn--full { margin-top: 8px; }

/* Formulaire auth — inputs héritent du style global */
.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
    width: 100%;
}

@media (max-width: 480px) {
    .auth-box__header { padding: 22px 20px 18px; }
    .auth-panel        { padding: 22px 20px 28px; }
    .auth-tab          { font-size: 11px; padding: 12px 4px; }
}

/* =====================================================
   EMBED — CHARGEMENT CONDITIONNEL (consentement cookies)
   ===================================================== */
.embed-wrap { position: relative; }

.embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #1a1a1a;
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 40px 24px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    min-height: 140px;
    width: 100%;
    box-sizing: border-box;
}

/* Iframe masquée tant qu'aucun consentement */
.embed-wrap .embed-iframe { display: none; width: 100%; }

/* Une fois activé : cacher le placeholder, afficher l'iframe */
.embed-wrap--active .embed-placeholder { display: none; }
.embed-wrap--active .embed-iframe       { display: block; }

/* Cas spécifique : ratio Twitch (padding-bottom aspect ratio) */
.twitch-player__ratio.embed-wrap--active { padding-bottom: 56.25%; }
.twitch-player__ratio:not(.embed-wrap--active) { padding-bottom: 0; }

/* =====================================================
   NEWSLETTER — OPT-IN INSCRIPTION (page-connexion.php)
   ===================================================== */
.form-group--checkbox {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =====================================================
   NEWSLETTER — TOGGLE MON COMPTE (page-compte.php)
   ===================================================== */
.compte-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border, #e5e5e5);
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.compte-newsletter__info {
    flex: 1;
}

.compte-newsletter__desc {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text, #1a1a1a);
}

.compte-newsletter__hint {
    margin: 0;
    font-size: 12px;
    color: var(--color-muted, #888);
}

.compte-newsletter__status {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
}

.compte-newsletter__status--success { color: #2ecc71; }
.compte-newsletter__status--error   { color: #e74c3c; }
.compte-newsletter__status--loading { color: #888; }

/* Toggle switch */
.newsletter-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.newsletter-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.newsletter-toggle__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 28px;
    transition: background .2s;
}

.newsletter-toggle__slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.newsletter-toggle input:checked + .newsletter-toggle__slider {
    background: #c0392b;
}

.newsletter-toggle input:checked + .newsletter-toggle__slider::before {
    transform: translateX(24px);
}

.newsletter-toggle input:focus-visible + .newsletter-toggle__slider {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

/* =====================================================
   FORMULAIRE COMMENTAIRES — IDENTITÉ UTILISATEUR CONNECTÉ
   ===================================================== */
.dshow-comment-form__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--color-surface, #f5f5f5);
    border-radius: 8px;
    border-left: 3px solid #c0392b;
}

.dshow-comment-form__avatar {
    display: block;
    width: 40px;
    height: 40px;
    max-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    flex-shrink: 0;
}

.dshow-comment-form__avatar--default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.dshow-comment-form__identity-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text, #1a1a1a);
}

/* =====================================================
   MENU MOBILE — IDENTITÉ UTILISATEUR CONNECTÉ
   ===================================================== */
.mobile-menu__account-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.mobile-menu__account-identity-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.mobile-menu__account-identity-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-menu__avatar--default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c0392b;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

/* =====================================================
   LIENS PROFIL — COMMENTAIRES & BYLINE ARTICLE
   ===================================================== */

/* Avatar cliquable dans les commentaires */
.dshow-comment__profile-link {
    display: block;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: opacity var(--transition), transform var(--transition);
}
.dshow-comment__profile-link:hover {
    opacity: 0.85;
    transform: scale(1.06);
}
.dshow-comment__profile-link img,
.dshow-comment__profile-link .avatar {
    display: block;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    overflow: hidden;
    object-fit: cover;
    border: none !important;
    margin: 0 !important;
}

/* Pseudo cliquable dans les commentaires */
.dshow-comment__author--link {
    display: inline;
    pointer-events: auto;
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition);
}
.dshow-comment__author--link:hover {
    color: var(--color-primary);
}
.dshow-comment__date {
    pointer-events: none;
}

/* Auteur cliquable dans la byline d'article */
.single-header__author-link {
    display: block;
    border-radius: 50%;
    transition: opacity var(--transition);
}
.single-header__author-link:hover { opacity: 0.8; }

.single-header__author--link {
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition);
}
.single-header__author--link:hover { color: var(--color-primary); }

/* =====================================================
   PAGE PROFIL PUBLIC — /membre/{login}
   ===================================================== */

.profil-page {
    padding: var(--page-top) 16px 60px;
    max-width: 860px;
    margin: 0 auto;
}

.profil-notfound {
    text-align: center;
    color: var(--color-grey);
    padding: 60px 0;
    font-size: 1.1rem;
}

/* --- En-tête profil --- */
.profil-header {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--color-grey-light);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.profil-header__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-grey-mid);
    flex-shrink: 0;
    display: block;
}

.profil-header__photo--default {
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profil-header__info {
    flex: 1;
}

.profil-header__name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.profil-header__since {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.profil-header__stats {
    display: flex;
    gap: 24px;
}

.profil-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-grey-mid);
    border-radius: var(--radius);
    padding: 10px 20px;
    min-width: 80px;
}

.profil-stat__value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.profil-stat__label {
    font-size: 11px;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* --- Liste commentaires --- */
.profil-comments__title {
    margin-bottom: 24px;
}

.profil-comments__none {
    color: var(--color-grey);
    font-style: italic;
    padding: 20px 0;
}

.profil-comments__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Item commentaire + card article --- */
.profil-comment-item {
    background: var(--color-white);
    border: 1px solid var(--color-grey-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.profil-comment-item:hover {
    box-shadow: var(--shadow-lg);
}

.profil-comment-item__body {
    padding: 16px 20px 12px;
}

.profil-comment-item__text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 6px;
}

.profil-comment-item__date {
    font-size: 11px;
    color: #aaa;
}

/* Card article (lien) */
.profil-comment-item__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--color-grey-light);
    border-top: 1px solid var(--color-grey-mid);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition);
}
.profil-comment-item__card:hover {
    background: #e9e9e9;
    color: inherit;
}

.profil-comment-item__card-thumb {
    width: 56px;
    height: 42px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.profil-comment-item__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profil-comment-item__card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profil-comment-item__card-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-primary);
}

.profil-comment-item__card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profil-comment-item__card-date {
    font-size: 11px;
    color: #aaa;
}

.profil-comment-item__card-arrow {
    color: #bbb;
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}
.profil-comment-item__card:hover .profil-comment-item__card-arrow {
    color: var(--color-primary);
    transform: translateX(3px);
}

/* --- Responsive --- */
@media ( max-width: 600px ) {
    .profil-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }
    .profil-header__stats {
        justify-content: center;
    }
    .profil-header__since {
        margin-bottom: 12px;
    }
    .profil-comment-item__card-thumb {
        display: none;
    }
}

/* =====================================================
   COMMENTAIRES — BLOC CONNEXION OBLIGATOIRE
   Affiché aux visiteurs non connectés à la place du formulaire
   ===================================================== */

.dshow-comment-auth {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-grey-light);
    border: 1px solid var(--color-grey-mid);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: 32px;
}

.dshow-comment-auth__icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.dshow-comment-auth__content {
    flex: 1;
}

.dshow-comment-auth__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.dshow-comment-auth__desc {
    font-size: 13px;
    color: var(--color-grey);
    line-height: 1.6;
    margin-bottom: 18px;
}

.dshow-comment-auth__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media ( max-width: 500px ) {
    .dshow-comment-auth {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }
    .dshow-comment-auth__actions {
        flex-direction: column;
    }
    .dshow-comment-auth__actions .btn {
        width: 100%;
        justify-content: center;
    }
}


/* =====================================================
   BANDEAU FLASHSCORE (single.php — ?ref=live)
   ===================================================== */
.flashscore-banner {
    position: relative;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 48px 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
}

.flashscore-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.flashscore-banner__text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
}

.flashscore-banner__text svg {
    flex-shrink: 0;
    color: #f0c040;
}

.flashscore-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #c0392b;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background .15s ease;
}

.flashscore-banner__btn:hover {
    background: #a93226;
    color: #fff;
}

.flashscore-banner__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: color .15s ease, background .15s ease;
}

.flashscore-banner__close:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

@media (max-width: 600px) {
    .flashscore-banner {
        padding: 12px 44px 12px 16px;
    }
    .flashscore-banner__inner {
        gap: 10px;
    }
    .flashscore-banner__text {
        font-size: 13px;
    }
}

/* ── Toast newsletter (cloche single) ── */
.dshow-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(20, 20, 20, 0.60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    max-width: min(400px, 88vw);
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 10000;
    white-space: normal;
}
.dshow-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Animation sonnerie de cloche ── */
/*
   transform-origin: 50% 12%  → pivot près du sommet de l'icône,
   comme une cloche suspendue par son anneau.
   Le bas (battant) oscille amplement, le haut reste quasi fixe.
*/
@keyframes dshow-bell-ring {
    0%   { transform: rotate(0deg); }
    8%   { transform: rotate(-18deg); }
    22%  { transform: rotate(20deg); }
    36%  { transform: rotate(-16deg); }
    50%  { transform: rotate(16deg); }
    62%  { transform: rotate(-10deg); }
    74%  { transform: rotate(10deg); }
    84%  { transform: rotate(-5deg); }
    92%  { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
.dshow-bell-ringing {
    display: inline-block;
    transform-origin: 50% 12%;
    animation: dshow-bell-ring 0.65s ease;
}

/* ── Traits-étincelles de la cloche (activation) ── */
/*
   Chaque .dshow-bell-spark est un trait court positionné en fixed
   au centre de la cloche. transform-origin:0 50% fait du bord gauche
   du trait le pivot, identique au centre de la cloche.
   rotate(--a) oriente le trait dans sa direction, translateX le propulse
   vers l'extérieur pendant que la cloche sonne.
*/
@keyframes dshow-spark-fly {
    0%   {
        opacity: 1;
        transform: rotate(var(--a)) translateX(9px)  scaleX(1);
    }
    65%  { opacity: 1; }
    100% {
        opacity: 0;
        transform: rotate(var(--a)) translateX(24px) scaleX(0.2);
    }
}

.dshow-bell-spark {
    position: fixed;
    height: 2px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 10001;
    transform-origin: 0 50%;
    animation: dshow-spark-fly 0.48s ease-out forwards;
}

/* ── Hover cloche inactive sur fond blanc (page Mon Compte) ── */
/* Override du blanc global → rouge doux, visible sur fond clair */
.compte-newsletter .single-notif-btn.btn--inactive:hover {
    color: rgba(192, 57, 43, 0.55);
}

/* ── Cloche newsletter page Mon Compte — taille double ── */
.compte-newsletter .single-notif-btn svg {
    width: 36px;
    height: 36px;
}

/* ── Cloche dans le byline header de l'article (fond blanc) ── */

/* Conteneur auteur : avatar + texte + cloche mobile (flex row, cloche poussée à droite) */
.single-header__byline-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

/* Base commune aux deux variantes de cloche header */
.single-notif-btn--header {
    color: #888;
    padding: 0;
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}
.single-notif-btn--header:hover {
    color: var(--color-dark);
    transform: translateY(-2px);
}
.single-notif-btn--header.btn--active {
    color: var(--color-primary);
}
.single-notif-btn--header.btn--active:hover {
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Mobile (< 768px) :
   - byline = colonne : ligne auteur en haut, métadonnées en dessous
   - cloche mobile visible, cloche desktop masquée */
@media (max-width: 767px) {
    .single-header__byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .single-header__byline-right {
        flex-wrap: wrap;
        gap: 10px 14px;
    }
    .single-notif-btn--header-desktop { display: none; }
    .single-notif-btn--header-mobile  { display: flex; }
    /* Boutons groupés à droite sans space-between */
    .single-header__byline-author {
        justify-content: flex-start;
    }
    .single-notif-btn--header-mobile {
        margin-left: auto;
    }
}

/* Desktop (≥ 768px) :
   - byline = row : auteur à gauche, [cloche desktop + métadonnées] à droite
   - cloche desktop visible dans byline-right, cloche mobile masquée */
@media (min-width: 768px) {
    .single-header__byline {
        flex-direction: row;
        align-items: center;
    }
    .single-header__byline-author {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    .single-notif-btn--header-mobile  { display: none; }
    .single-notif-btn--header-desktop { display: flex; margin-right: 10px; }
}

/* =====================================================
   ESPACE RÉDACTION — Étape 1 : socle & icône plume
   ===================================================== */

/* --- Icône plume dans la nav desktop --- */
.redaction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: .85;
    padding: 4px;
    border-radius: 4px;
    transition: opacity .2s ease;
    text-decoration: none;
}
.redaction-btn:hover { opacity: 1; }

/* --- Icône plume dans le header (account-bar) — desktop --- */
.redaction-btn--header {
    color: rgba(255,255,255,0.85);
    padding: 4px;
    margin-right: 4px;
}
.redaction-btn--header:hover { color: #fff; opacity: 1; }

/* --- Icône plume dans le bloc compte du menu mobile --- */
.redaction-btn--mobile-account {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #c0392b);
    padding: 6px;
    border-radius: 4px;
    transition: color .2s ease, background .2s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.redaction-btn--mobile-account:hover {
    color: #fff;
    background: var(--color-primary, #c0392b);
}

/* --- Icône plume dans le menu mobile (ancien, conservé pour compatibilité) --- */
.mobile-menu__item--redaction a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #CC0000;
}
.mobile-menu__item--redaction a svg { flex-shrink: 0; }

/* =====================================================
   RÉDACTION — Layout général
   ===================================================== */
.redaction-page {
    min-height: calc(100vh - 200px);
    background: #f7f7f7;
    padding: 0 0 60px;
}
.redaction-page__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header barre */
.redaction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 24px;
    flex-wrap: wrap;
}
.redaction-header__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.redaction-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.redaction-header__back {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color .15s;
}
.redaction-header__back:hover { color: #CC0000; }
.redaction-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.redaction-autosave-indicator {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Layout 2 colonnes */
.redaction-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .redaction-layout {
        grid-template-columns: 1fr;
    }
    .redaction-sidebar { order: -1; }
}

/* Colonne principale */
.redaction-main { display: flex; flex-direction: column; gap: 20px; }

/* Champs génériques */
.redaction-field { display: flex; flex-direction: column; gap: 6px; }
.redaction-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    font-family: 'Roboto', sans-serif;
}
.redaction-label__hint {
    font-weight: 400;
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}

/* Titre */
.redaction-title-input {
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.redaction-title-input:focus { border-bottom-color: #CC0000; }
.redaction-title-input::placeholder { color: #ccc; }

/* Extrait */
.redaction-excerpt-input {
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    resize: vertical;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.redaction-excerpt-input:focus { border-color: #CC0000; }

/* Zone éditeur (placeholder étape 1) */
.redaction-editor-wrap {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    min-height: 400px;
    padding: 24px;
    box-sizing: border-box;
}
.redaction-editor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 340px;
    color: #ccc;
    text-align: center;
}
.redaction-editor-placeholder p { font-size: 14px; margin: 0; }

/* Sidebar widgets */
.redaction-sidebar { display: flex; flex-direction: column; gap: 20px; }
.redaction-widget {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px;
}
.redaction-widget__title {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Catégories */
.redaction-cats { display: flex; flex-direction: column; gap: 8px; }
.redaction-cat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}
.redaction-cat-label:hover { color: #CC0000; }
.redaction-cat-checkbox { accent-color: #CC0000; width: 15px; height: 15px; flex-shrink: 0; }

/* Image de couverture */
.redaction-cover { display: flex; flex-direction: column; gap: 10px; }
.redaction-cover__preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.redaction-cover__preview img { width: 100%; height: 100%; object-fit: cover; }
.redaction-cover__empty { font-size: 13px; color: #bbb; }
.redaction-cover__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--sm { padding: 6px 12px; font-size: 13px; }

/* Infos publication */
.redaction-info-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}
.redaction-info-line:last-child { border-bottom: none; }
.redaction-info-label { color: #999; }
.redaction-info-value { color: #333; font-weight: 500; text-align: right; }

/* =====================================================
   LISTE DES BROUILLONS
   ===================================================== */
.redaction-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
.draft-item { border-bottom: 1px solid #f0f0f0; }
.draft-item:last-child { border-bottom: none; }
.draft-item__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.draft-item__link:hover { background: #fafafa; }
.draft-item__thumb {
    width: 80px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #f0f0f0;
}
.draft-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.draft-item__body { flex: 1; min-width: 0; }
.draft-item__title {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.draft-item__excerpt {
    font-size: 13px;
    color: #777;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.draft-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #999;
    align-items: center;
}
.draft-item__status {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}
.draft-item__status--draft     { background: #f0f0f0; color: #666; }
.draft-item__status--pending   { background: #fff3cd; color: #856404; }
.draft-item__status--auto-draft{ background: #f0f0f0; color: #aaa; }
.draft-item__arrow { flex-shrink: 0; color: #ccc; transition: color .15s; }
.draft-item__link:hover .draft-item__arrow { color: #CC0000; }

/* État vide */
.redaction-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    text-align: center;
    color: #ccc;
}
.redaction-empty p { font-size: 15px; color: #999; margin: 0; }

@media (max-width: 600px) {
    .redaction-header { flex-direction: column; align-items: flex-start; }
    .draft-item__thumb { display: none; }
    .draft-item__link { padding: 14px 16px; }
    .redaction-page__inner { padding: 0 12px; }
}

/* ════════════════════════════════════════
   PAGE RÉDACTION — ÉTAPE 2
════════════════════════════════════════ */

/* Layout général */
.redaction-page__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.redaction-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.redaction-page__page-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-secondary, #888);
    margin: 0;
}

.redaction-drafts-btn {
    font-size: 13px;
    padding: 6px 14px;
    flex-shrink: 0;
}

/* Champs génériques */
.redac-field {
    margin-bottom: 1.5rem;
}

.redac-field__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary, #888);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.redac-field__hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
    color: var(--color-text-tertiary, #aaa);
}

/* Titre */
.redac-title-input {
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid var(--color-border, #eee);
    padding: 0.5rem 0;
    outline: none;
    background: transparent;
    color: var(--color-text-primary, #1a1a1a);
    transition: border-color .2s;
}

.redac-title-input:focus {
    border-bottom-color: #c0392b;
}

.redac-title-input::placeholder {
    color: var(--color-text-tertiary, #ccc);
    font-weight: 400;
}

/* Catégories */
.redac-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.redac-cat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid var(--color-border, #eee);
    border-radius: 20px;
    transition: border-color .2s, background .2s;
    user-select: none;
}

.redac-cat-label:hover {
    border-color: #c0392b;
}

.redac-cat-label input[type="checkbox"] {
    accent-color: #c0392b;
}

.redac-cat-label:has(input:checked) {
    background: #fdf0ee;
    border-color: #c0392b;
    color: #c0392b;
    font-weight: 500;
}

/* Étiquettes */
.redac-tags-wrapper {
    position: relative;
    border: 1px solid var(--color-border, #eee);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    transition: border-color .2s;
    background: #fff;
    cursor: text;
}

.redac-tags-wrapper:focus-within {
    border-color: #c0392b;
    outline: none;
}

.redac-tags-pills {
    display: contents;
}

.redac-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fdf0ee;
    border: 1px solid #c0392b;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #c0392b;
    white-space: nowrap;
    flex-shrink: 0;
}

.redac-tag-pill__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: #c0392b;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    border-radius: 50%;
    transition: background .15s;
    flex-shrink: 0;
}

.redac-tag-pill__remove:hover {
    background: rgba(192, 57, 43, .15);
}

.redac-tag-input {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text, #222);
    background: transparent;
    padding: 2px 4px;
}

.redac-tag-input::placeholder {
    color: var(--color-text-tertiary, #aaa);
}

.redac-tag-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--color-border, #eee);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 180px;
    overflow-y: auto;
}

.redac-tag-suggestions.is-hidden {
    display: none;
}

.redac-tag-suggestion {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text, #222);
    transition: background .12s;
}

.redac-tag-suggestion:hover,
.redac-tag-suggestion.is-active {
    background: #fdf0ee;
    color: #c0392b;
}

.redac-tag-suggestion--new {
    font-style: italic;
    color: #888;
}

@media (max-width: 600px) {
    .redac-tag-input {
        min-width: 100px;
        font-size: 16px; /* évite le zoom iOS */
    }
    .redac-tag-pill {
        font-size: 12px;
    }
}

/* Image de couverture */
.redac-cover {
    position: relative;
    border: 2px dashed var(--color-border, #ddd);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
    min-height: 160px;
}

.redac-cover:hover {
    border-color: #c0392b;
}

.redac-cover__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    color: var(--color-text-tertiary, #aaa);
    font-size: 14px;
    padding: 2rem;
}

.redac-cover__preview {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.redac-cover__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textarea mobile */
.redac-mobile-textarea {
    width: 100%;
    min-height: 400px;
    font-size: 15px;
    line-height: 1.7;
    padding: 12px;
    border: 1px solid var(--color-border, #eee);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

/* Extrait */
.redac-excerpt-textarea {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    padding: 10px 12px;
    border: 1px solid var(--color-border, #eee);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    color: var(--color-text-primary, #1a1a1a);
}

/* Barre d'actions */
.redac-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #eee);
    flex-wrap: wrap;
}

.redac-actions__btns {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.redac-autosave-status {
    font-size: 12px;
    color: var(--color-text-tertiary, #aaa);
    min-height: 18px;
}

/* Desktop/mobile visibilité */
/* redac-mobile-only / redac-desktop-only : conservés pour d'éventuels usages futurs */
.redac-mobile-only { display: none; }
.redac-desktop-only { display: block; }

@media (max-width: 768px) {
    .redac-mobile-only  { display: block; }
    .redac-desktop-only { display: none;  }
    .redac-title-input { font-size: 1.4rem; }
    .redaction-page__header { flex-direction: column; align-items: flex-start; }

    /* ── Toolbar : scroll horizontal au lieu du wrap ── */
    .dshow-editor-toolbar-custom {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
        gap: 1px;
        padding: 5px 8px;
        /* Dépasse des bords sur mobile pour occuper toute la largeur */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .dshow-editor-toolbar-custom::-webkit-scrollbar { display: none; }

    /* Boutons légèrement plus grands pour le touch */
    .dshow-tb-btn {
        padding: 8px 8px;
        font-size: 13px;
        flex-shrink: 0;   /* empêche la compression dans le scroll */
    }
    .dshow-tb-sep { flex-shrink: 0; }

    /* ── Éditeur : hauteur minimale confortable ── */
    .redac-editor-wrap,
    #redac-editorjs {
        min-height: 280px;
    }

    /* ── Extrait visible sur mobile ── */
    .redac-field--excerpt { display: block; }

    /* ── Toggle visuel/HTML : taille touch ── */
    .redac-view-toggle__btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Modale de confirmation */
.redac-modal { max-width: 480px; }

.redac-modal__recap {
    margin: 1.5rem 0;
    border: 1px solid var(--color-border, #eee);
    border-radius: 6px;
    overflow: hidden;
}

.redac-modal__row {
    display: flex;
    gap: 1rem;
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border, #eee);
}

.redac-modal__row:last-child { border-bottom: none; }

.redac-modal__key {
    font-weight: 500;
    color: var(--color-text-secondary, #888);
    min-width: 80px;
    flex-shrink: 0;
}

.redac-modal__warnings {
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 1rem;
    min-height: 0;
}

.redac-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Utilitaire */
.is-hidden { display: none !important; }

/* ── Bannière de restauration autosave local ── */
.redac-restore-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fdf8e1;
    border: 1px solid #f0d060;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.redac-restore-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn--sm {
    padding: 4px 12px;
    font-size: 13px;
}

/* ── Page des brouillons ── */
.redac-drafts-empty {
    color: var(--color-text-secondary, #888);
    font-size: 15px;
    padding: 2rem 0;
    text-align: center;
}

.redac-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border, #eee);
    border-radius: 8px;
    overflow: hidden;
}

.redac-draft-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--color-border, #eee);
    transition: background .15s;
}

.redac-draft-item:last-child { border-bottom: none; }
.redac-draft-item:hover { background: var(--color-background-secondary, #f9f9f9); }

.redac-draft-item__thumb {
    width: 72px;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.redac-draft-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.redac-draft-item__body {
    flex: 1;
    min-width: 0;
}

.redac-draft-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redac-draft-item__title:empty::before {
    content: 'Sans titre';
    color: var(--color-text-tertiary, #aaa);
    font-style: italic;
    font-weight: 400;
}

.redac-draft-item__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-secondary, #888);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.redac-draft-item__cat {
    color: #c0392b;
    font-weight: 500;
}

.redac-draft-item__excerpt {
    font-size: 13px;
    color: var(--color-text-secondary, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.redac-draft-item__arrow {
    color: var(--color-text-tertiary, #ccc);
    flex-shrink: 0;
}

/* ── Editor.js — harmonisation thème ── */
.codex-editor {
    border: 1px solid var(--color-border, #eee);
    border-radius: 6px;
    padding: 1rem;
    min-height: 400px;
}

.codex-editor__redactor {
    padding-bottom: 100px !important;
}

.ce-block__content,
.ce-toolbar__content {
    max-width: 100% !important;
}

.ce-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-primary, #1a1a1a);
}

/* Formatage inline dans l'éditeur : gras, italique, souligné, liens */
.ce-block b,
.ce-block strong {
    font-weight: 700;
}
.ce-block i,
.ce-block em {
    font-style: italic;
}
.ce-block u {
    text-decoration: underline;
}
.ce-block a {
    color: var(--color-primary, #c0392b);
    text-decoration: underline;
}

.cdx-block {
    padding: 0.4em 0;
}

/* Citation (Quote) dans l'éditeur Editor.js */
.cdx-quote__text {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #000;
    font-style: normal;
}

.cdx-quote__caption {
    display: inline-block;
    width: 70%;
    margin-top: 10px;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: var(--color-grey8, #7b7b7a);
    font-style: normal;
}

/* Toolbar contextuelle */
.ce-toolbar__plus,
.ce-toolbar__settings-btn {
    color: #c0392b !important;
}

/* =====================================================
   BOUTON MODIFIER — icône crayon sur les articles (single)
   Visible uniquement pour les admins / rédacteurs.
   ===================================================== */
.single-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-grey-mid);
    color: var(--color-grey);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}
.single-edit-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Desktop : dans .single-header__byline-right (entre la cloche et les métadonnées) */
.single-edit-btn--desktop {
    display: inline-flex;
}
/* Mobile : dans .single-header__byline-author (à côté de la cloche) */
.single-edit-btn--mobile {
    display: none;
}

@media ( max-width: 767px ) {
    .single-edit-btn--desktop { display: none; }
    .single-edit-btn--mobile  { display: inline-flex; }
    .single-trash-btn--desktop { display: none; }
    .single-trash-btn--mobile  { display: inline-flex; }
}

/* Bouton corbeille — article publié (single.php) */
.single-trash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-grey-mid);
    color: var(--color-grey);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}
.single-trash-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
.single-trash-btn--desktop { display: inline-flex; }
.single-trash-btn--mobile  { display: none; }

/* Override mobile — doit être APRÈS les defaults ci-dessus pour gagner */
@media ( max-width: 767px ) {
    .single-trash-btn--desktop { display: none; }
    .single-trash-btn--mobile  { display: inline-flex; }
}

/* Bouton corbeille — liste des brouillons */
.redac-draft-item__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.redac-draft-item__wrapper .redac-draft-item {
    flex: 1;
    min-width: 0;
}
.redac-draft-item__trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-grey-mid);
    color: var(--color-grey);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.redac-draft-item__trash:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* =====================================================
   ÉDITEUR — TOGGLE VISUEL / HTML
   ===================================================== */
.redac-toolbars-sticky-wrap {
    position: sticky;
    top: var(--nav-height);
    z-index: 9500; /* au-dessus de la main-nav (9000) */
    display: flex;
    flex-direction: column;
}

.redac-editor-wrap {
    border: 1px solid var(--color-grey-mid);
    border-radius: var(--radius-lg);
    /* position: relative retiré — créait un contexte d'empilement qui bloquait le sticky */
}

.redac-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 10px;
    background: var(--color-grey-light);
    border: 1px solid var(--color-grey-mid);
    border-radius: 0 0 var(--radius) var(--radius);
    /* Plus sticky individuellement — géré par redac-toolbars-sticky-wrap */
    position: relative;
    z-index: 1;
    transition: box-shadow 0.15s, border-radius 0.15s;
}

.redac-editor-toolbar.is-stuck {
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.redac-view-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--color-grey-mid);
    border-radius: 6px;
    overflow: hidden;
}

.redac-view-toggle__btn {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: var(--color-grey);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    line-height: 1.6;
}
.redac-view-toggle__btn + .redac-view-toggle__btn {
    border-left: 1px solid var(--color-grey-mid);
}
.redac-view-toggle__btn--active {
    background: var(--color-primary);
    color: #fff;
}
.redac-view-toggle__btn:not(.redac-view-toggle__btn--active):hover {
    background: var(--color-grey-light);
    color: var(--color-dark);
}

/* L'éditeur Editor.js lui-même — padding interne */
.redac-editor-wrap #redac-editorjs {
    padding: 16px 4px;
    min-height: 300px;
}

/* Zone HTML */
.redac-html-textarea {
    display: block;
    width: 100%;
    min-height: 400px;
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-dark);
    background: #fafafa;
    border: none;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.redac-html-textarea:focus {
    background: #fff;
}

/* =====================================================
   PAGE MODIFIER — spécificités vs page-redaction
   ===================================================== */
.modifier-page .redac-actions__btns {
    justify-content: flex-end;
}
.modifier-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.modifier-modal__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--color-grey);
    background: #fffbe6;
    border: 1px solid #ffe08a;
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-top: 12px;
    line-height: 1.5;
}
.modifier-modal__notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #c49000;
}

/* =====================================================
   VERROU D'ÉDITION — BADGE, MODALE, BANNIÈRE
   ===================================================== */

/* ── Card verrouillée dans la liste des brouillons ── */
.redac-draft-item--locked {
    opacity: 0.7;
    pointer-events: none; /* le clic est géré par le wrapper parent */
    position: relative;
}

.redac-draft-item__wrapper--locked {
    cursor: pointer;
    position: relative;
}

/* Badge cadenas superposé en haut à droite de la card */
.redac-draft-item__lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px 3px 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.redac-draft-item__lock-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Modale de verrou (liste + éditeur) ── */
.dshow-lock-modal-overlay {
    z-index: 1200;
}

.dshow-lock-modal {
    max-width: 420px;
    text-align: center;
    padding: 2rem;
}

.dshow-lock-modal__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--dshow-red, #c0392b);
}

.dshow-lock-modal__user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: var(--surface-2, #1a1a1a);
    border-radius: 8px;
    padding: 12px;
    margin: 1rem 0 1.5rem;
}

.dshow-lock-modal__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dshow-lock-modal__message {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary, #aaa);
}

.dshow-lock-modal__message strong {
    color: var(--text-primary, #f0f2f5);
    font-weight: 600;
}

/* ── Bannière takeover en haut de l'éditeur ── */
.dshow-lock-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 16px;
}

.dshow-lock-banner.is-hidden {
    display: none;
}

.dshow-lock-banner--warning {
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid rgba(230, 126, 34, 0.4);
    color: #e67e22;
}

.dshow-lock-banner--warning svg {
    flex-shrink: 0;
    stroke: #e67e22;
}

.dshow-lock-banner strong {
    font-weight: 700;
}

/* =====================================================
   TOOLBAR CUSTOM — ÉDITEUR (rédaction + modifier)
   ===================================================== */

.dshow-editor-toolbar-custom {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    flex-wrap: wrap;
    /* Plus sticky individuellement — géré par redac-toolbars-sticky-wrap */
    position: relative;
    z-index: 1;
    transition: box-shadow 0.15s, border-radius 0.15s;
}
/* Quand elle est effectivement sticky (détectée via IntersectionObserver) */
.dshow-editor-toolbar-custom.is-stuck {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

/* Raccorder visuellement la toolbar au bord supérieur du wrapper éditeur */
.redac-field--editor .redac-editor-wrap {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dshow-tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.dshow-tb-btn:hover {
    background: #fff;
    border-color: #ccc;
    color: #111;
}

.dshow-tb-btn:active {
    background: #e8e8e8;
}

/* Toolbar : icônes uniquement, labels masqués sur tous les écrans */
.dshow-tb-btn__text {
    display: none;
}

.dshow-tb-btn {
    padding: 6px 7px;
}

/* État actif (alignement sélectionné) */
.dshow-tb-btn.is-active {
    background: #fff;
    border-color: #c0392b;
    color: #c0392b;
}
.dshow-tb-sep {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: #d0d0d0;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Raccorder la toolbar à l'éditeur Editor.js */

/* Bouton Image principal : légèrement mis en valeur */
#tb-media {
    background: #fff3f3;
    border-color: #e8c0c0;
    color: #c0392b;
    font-weight: 600;
}

#tb-media:hover {
    background: #fde8e8;
    border-color: #c0392b;
}


/* ============================================================
   NARROW MODE — Overrides desktop (dshow-narrow-mode)
   Actif uniquement sur écrans ≥ 947px (breakpoint nav desktop).
   Ne touche pas au responsive mobile/tablette existant.
   ============================================================ */

@media (min-width: 947px) {

    /* Homepage */
    body.dshow-narrow-mode .home-content-wrap {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Section derniers articles (homepage) */
    body.dshow-narrow-mode .latest-section__inner {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Section podcast (homepage) */
    body.dshow-narrow-mode .podcast-section__inner {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Pages articles / actus / débriefs / mercato / humeur / portraits / rétrospective / vie du club */
    body.dshow-narrow-mode .actu-page__inner {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Layout avec sidebar filtres (pages archives avec sidebar) */
    body.dshow-narrow-mode .actu-page--with-sidebar .actu-page__layout {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        /* Annuler le flex-row desktop : revenir en colonne comme sur mobile */
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Sidebar : pleine largeur (comme mobile), non sticky */
    body.dshow-narrow-mode .actu-page--with-sidebar .actu-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        position: static !important;
    }

    /* Réactiver le bouton toggle en narrow mode */
    body.dshow-narrow-mode .actu-sidebar__toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Laisser le JS gérer l'affichage du body (replié par défaut) */
    body.dshow-narrow-mode .actu-sidebar__body {
        display: block !important; /* sera masqué par la classe --collapsed via JS */
    }
    body.dshow-narrow-mode .actu-sidebar--collapsed .actu-sidebar__body {
        display: none !important;
    }

    /* Pages archives (Actualités, Débriefs…) */
    body.dshow-narrow-mode .archive-page__inner {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Calendrier */
    body.dshow-narrow-mode .calendrier-page {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Page LDS TV (Twitch) */
    body.dshow-narrow-mode .twitch-page {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Pages Rédaction & Modifier : masquer les asides, nm-main pleine largeur */
    body.dshow-narrow-mode.dshow-no-sidebar .nm-left-col,
    body.dshow-narrow-mode.dshow-no-sidebar .nm-pub {
        display: none !important;
    }
    body.dshow-narrow-mode.dshow-no-sidebar #nm-main {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    /* Footer — s'étend sur toute la largeur du layout 3 colonnes */
    body.dshow-narrow-mode .site-footer__inner {
        max-width: 1120px !important;
    }

    /* ============================================================
       NM-LAYOUT — Layout flex 3 colonnes
       ============================================================ */

    /* ============================================================
       NM — HOMEPAGE : reproduire exactement le layout ≥ 1150px
       dans la colonne centrale (qui fait ~724px, donc le @media
       (min-width:1150px) ne se déclenche jamais dans ce contexte).
       ============================================================ */

    /* Carrousel : pleine largeur dans nm-main */
    body.dshow-narrow-mode .carousel-section .home-content-wrap {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* latest-section : flex row, articles à gauche, débriefs à droite */
    body.dshow-narrow-mode .latest-section__inner {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 32px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.dshow-narrow-mode .latest-order-1 { order: 1 !important; }
    body.dshow-narrow-mode .latest-order-2 { order: 2 !important; }

    /* Colonne débriefs : largeur fixe à droite */
    body.dshow-narrow-mode .latest-section__debriefs {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .debriefs-grid {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        justify-content: space-between !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief {
        flex: 1 !important;
        max-height: none !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__thumb img {
        height: 60px !important;
        width: 90px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__thumb {
        width: 90px !important;
        min-width: 90px !important;
    }

    /* Colonne articles : layout vertical 2 cols uniquement sur grand écran (≥ 1150px) */
    /* Sur < 1150px : géré par le bloc @media (max-width: 1149px) → layout horizontal */

@media (min-width: 1150px) {

    /* Articles et Débriefs empilés verticalement */
    body.dshow-narrow-mode .latest-section__inner {
        flex-direction: column !important;
        gap: 24px !important;
    }

    /* ── Bloc Articles : pleine largeur, grille 2 cols ── */
    body.dshow-narrow-mode .latest-section__articles {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }
    body.dshow-narrow-mode .latest-section__articles .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        align-content: start !important;
        align-items: stretch !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article {
        height: 100% !important;
        flex-direction: column !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article__thumb-link {
        flex: none !important;
        width: 100% !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article .card-article__thumb {
        padding-top: 56.25% !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article .card-article__thumb img {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article__body {
        flex: 1 !important;
        padding: 12px !important;
    }

    /* ── Bloc Débriefs : pleine largeur, grille 2 cols ── */
    body.dshow-narrow-mode .latest-section__debriefs {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        display: block !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .debriefs-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        flex-direction: unset !important;
        gap: 16px !important;
        justify-content: unset !important;
    }
    /* Annuler le flex:1/stretch prévu pour la colonne */
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief {
        flex: none !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__thumb {
        width: 100px !important;
        min-width: 100px !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__thumb img {
        width: 100px !important;
        height: 70px !important;
    }
}

    /* Masquer la date sur toutes les cards en narrow mode */
    body.dshow-narrow-mode .card-article__date,
    body.dshow-narrow-mode .card-article-row__stat--date,
    body.dshow-narrow-mode .card-debrief__stat:first-child {
        display: none !important;
    }

    /* Titres cards articles (card-article-row) : exactement 2 lignes */
    body.dshow-narrow-mode .latest-section__articles .card-article-row__title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        min-height: calc(0.95rem * 1.35 * 2) !important;
    }

    /* Métadonnées débriefs homepage : alignées à droite comme le badge */
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__meta {
        justify-content: flex-end !important;
        text-align: right !important;
    }

    /* Titres cards débriefs : exactement 2 lignes */
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        min-height: calc(0.88rem * 1.35 * 2) !important;
    }

    /* Podcast : pleine largeur */
    body.dshow-narrow-mode .podcast-section__inner {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* ============================================================
       NM-LAYOUT — Layout flex 3 colonnes
       ============================================================ */

    /* En narrow-mode : activation du flex 3 colonnes */
    body.dshow-narrow-mode #nm-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        max-width: min(1120px, calc(100% - 20px));
        margin: 0 auto;
    }

    /* Contenu principal : prend tout l'espace restant entre les deux colonnes */
    body.dshow-narrow-mode #nm-main {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;  /* empile carousel → latest-section → podcast verticalement */
    }

    /* Les sections enfants prennent toute la largeur de nm-main */
    body.dshow-narrow-mode #nm-main > .carousel-section,
    body.dshow-narrow-mode #nm-main > .latest-section,
    body.dshow-narrow-mode #nm-main > .podcast-section {
        width: 100%;
        flex-shrink: 0;
    }

    /* Afficher les colonnes latérales uniquement en narrow-mode */
    body.dshow-narrow-mode .nm-breves,
    body.dshow-narrow-mode .nm-pub {
        display: block !important;
    }

    /* nm-left-col : transparent sur grand écran (ses enfants participent
       directement au flex de #nm-layout via display:contents) */
    body.dshow-narrow-mode .nm-left-col {
        display: contents;
    }

    /* Ordre dans le flex de #nm-layout : brèves | nm-main | pub */
    body.dshow-narrow-mode .nm-breves { order: 1; }
    body.dshow-narrow-mode #nm-main   { order: 2; }
    body.dshow-narrow-mode .nm-pub    { order: 3; }

    /* ============================================================
       NM-BREVES — Colonne Brèves (gauche)
       ============================================================ */

    body.dshow-narrow-mode .nm-breves {
        width: 180px;
        flex-shrink: 0;
        margin-top: 32px;    /* aligne avec le haut du carrousel (padding-top de carousel-section) */
        position: sticky;
        top: calc(var(--nav-height) + var(--hbanner-height, 0px) + 12px);   /* colle sous la nav fixe + bannière sticky éventuelle */
        max-height: calc(100vh - var(--nav-height) - var(--hbanner-height, 0px) - 24px);
        overflow: hidden;
        background: #fff;
        border-radius: 6px;
        border: 1px solid #e5e5e5;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    }

    /* ============================================================
       NM-PUB — Colonne Pub (droite)
       ============================================================ */

    body.dshow-narrow-mode .nm-pub {
        width: 180px;
        flex-shrink: 0;
        margin-top: 32px;
        position: sticky;
        top: calc(var(--nav-height) + var(--hbanner-height, 0px) + 12px);
        max-height: calc(100vh - var(--nav-height) - var(--hbanner-height, 0px) - 24px);
        overflow: hidden;
        background: #fff;
        border-radius: 6px;
        border: 1px solid #e5e5e5;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    }

}

/* ============================================================
   NM-BREVES & NM-PUB — Styles internes (hors media query)
   Actifs dès que les sidebars sont visibles (≥ 600px narrow mode).
   ============================================================ */

.nm-breves__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #e5e5e5;
}

.nm-breves__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a1a1a;
}

.nm-breves__nav {
    display: flex;
    gap: 4px;
}

.nm-breves__btn {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

.nm-breves__btn:hover        { background: #e0e0e0; }
.nm-breves__btn:disabled     { opacity: .35; cursor: default; }

.nm-breves__pages            { padding: 0; }

.nm-breves__page             { display: none; }
.nm-breves__page--active     { display: block; }

.nm-breves__item {
    display: block;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background .12s;
}

.nm-breves__item:hover       { background: #fafafa; }
.nm-breves__item:last-child  { border-bottom: none; }

.nm-breves__meta {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #CC2222;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}

.nm-breves__headline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    min-height: calc(12px * 1.35 * 2); /* 2 lignes fixes */
    color: #1a1a1a;
}

.nm-pub__header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #e5e5e5;
}

.nm-pub__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a1a1a;
}

.nm-pub__item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.nm-pub__item:last-child     { border-bottom: none; }

.nm-pub__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.nm-pub__empty               { height: 40px; }

/* ============================================================
   NARROW MODE — Layout 3 colonnes étendu jusqu'à 600px
   Entre 600px et 946px : nm-left-col (Brèves + Pub empilées)
   à gauche, nm-main prend tout l'espace à droite.
   En dessous de 600px : asides masquées.
   ============================================================ */
@media (min-width: 600px) and (max-width: 946px) {

    body.dshow-narrow-mode #nm-layout {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: calc(100% - 20px) !important;
        margin: 0 auto !important;
        padding-top: 8px !important;
        padding-bottom: var(--hbanner-height, 0px) !important;
    }

    /* nm-left-col : colonne gauche, brèves au-dessus, pub en dessous */
    body.dshow-narrow-mode .nm-left-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 140px !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        align-self: flex-start !important;
        position: sticky !important;
        top: calc(var(--nav-height, 60px) + var(--hbanner-height, 0px) + 16px) !important;
        max-height: calc(100vh - var(--nav-height, 60px) - var(--hbanner-height, 0px) - 32px) !important;
        overflow-y: visible !important;
    }

    body.dshow-narrow-mode .nm-breves,
    body.dshow-narrow-mode .nm-pub {
        display: block !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        position: static !important;    /* le sticky est porté par .nm-left-col */
        max-height: none !important;
        overflow: hidden !important;
        background: #fff !important;
        border-radius: 6px !important;
        border: 1px solid #e5e5e5 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
        margin-top: 0 !important;
    }

    /* nm-main : prend tout l'espace à droite */
    body.dshow-narrow-mode #nm-main {
        display: block !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        order: 2 !important;
    }
}

@media (max-width: 599px) {
    body.dshow-narrow-mode .nm-breves,
    body.dshow-narrow-mode .nm-pub {
        display: none !important;
    }
}

/* ============================================================
   BLOCS MOBILE INLINE — Brèves & Partenaires
   Masqués par défaut sur tous les écrans.
   Affichés uniquement sous 600px où les asides latéraux
   (.nm-breves, .nm-pub) sont masqués.
   ============================================================ */

/* Masquage global — hors mobile ces blocs ne doivent jamais apparaître */
.mobile-breves-inline,
.mobile-pub-inline {
    display: none;
}

/* Affichage sous 600px — uniquement si le narrow-mode est actif */
@media (max-width: 599px) {

    body.dshow-narrow-mode .mobile-breves-inline,
    body.dshow-narrow-mode .mobile-pub-inline {
        display: block;
        /* Alignement identique à .home-content-wrap / .latest-section__inner */
        max-width: 1080px;
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 16px;
        background: #fff;
        border-top: 2px solid var(--color-red, #c0392b);
    }

    /* ── En-tête commun ── */
    .mobile-breves-inline__header,
    .mobile-pub-inline__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .mobile-breves-inline__title,
    .mobile-pub-inline__title {
        display: block;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-red, #c0392b);
    }

    /* ── Boutons nav ‹ › (mobile-breves uniquement) ── */
    .mobile-breves-inline__nav {
        display: flex;
        gap: 4px;
    }

    .mobile-breves-inline__btn {
        width: 20px;
        height: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #f5f5f5;
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        color: #444;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .15s;
        padding: 0;
    }

    .mobile-breves-inline__btn:hover    { background: #e0e0e0; }
    .mobile-breves-inline__btn:disabled { opacity: .35; cursor: default; }

    /* ── Pages de brèves ── */
    .mb-breves__page             { display: none; }
    .mb-breves__page--active     { display: block; }

    /* ── Brèves : liste d'items ── */
    .mobile-breves-inline__item {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: inherit;
    }

    .mobile-breves-inline__item:last-child {
        border-bottom: none;
    }

    .mobile-breves-inline__meta {
        font-size: 11px;
        font-weight: 600;
        color: var(--color-red, #c0392b);
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .mobile-breves-inline__headline {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        min-height: calc(14px * 1.4 * 2); /* 2 lignes fixes */
        color: #1a1a1a;
    }

    .mobile-breves-inline__item:hover .mobile-breves-inline__headline {
        color: var(--color-red, #c0392b);
    }

    /* ── Partenaires : premium ── */
    .mobile-pub-inline__premium {
        margin-bottom: 12px;
    }

    .mobile-pub-inline__premium a {
        display: block;
    }

    .mobile-pub-inline__premium-img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
    }

    /* ── Partenaires : séparateur (cas 2) ── */
    .mobile-pub-inline__separator {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 12px 0;
        color: #999;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .mobile-pub-inline__separator::before,
    .mobile-pub-inline__separator::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5e5e5;
    }

    /* ── Partenaires : liste standards ── */
    .mobile-pub-inline__standards {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .mobile-pub-inline__standard-item {
        border-bottom: none;
    }

    .mobile-pub-inline__standard-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 0;
        text-decoration: none;
        color: #1a1a1a;
    }

    .mobile-pub-inline__standard-thumb {
        width: 48px;
        height: 48px;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 3px;
    }

    .mobile-pub-inline__standard-name {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
        text-align: center;
        max-width: 64px;
    }

    /* ── Partenaires : CTA vide (cas 4) ── */
    .mobile-pub-inline__cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-pub-inline__cta-title {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
    }

    .mobile-pub-inline__cta-text {
        margin: 0;
        font-size: 13px;
        color: #666;
        line-height: 1.5;
    }

    .mobile-pub-inline__cta-btn {
        display: inline-block;
        align-self: flex-start;
        margin-top: 4px;
        padding: 8px 16px;
        background: var(--color-red, #c0392b);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        border-radius: 4px;
    }
}

/* ============================================================

/* ============================================================
   NARROW MODE — Reset mobile sur fenêtres < 1150px
   Quand narrow mode est actif et que la fenêtre est trop étroite
   pour afficher les 3 colonnes, on remet le contenu central
   en version mobile (annule les overrides du @media ≥ 768px).
   ============================================================ */
@media (max-width: 1149px) {

    /* Homepage : empiler Articles puis Débriefs en colonne, 1 card par ligne */
    body.dshow-narrow-mode .latest-section__inner {
        flex-direction: column !important;
        gap: 24px !important;
    }
    body.dshow-narrow-mode .latest-section__articles {
        width: 100% !important;
        flex: none !important;
    }
    body.dshow-narrow-mode .latest-section__articles .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }

    /* Sidebar filtres : revenir en colonne, toggle actif */
    body.dshow-narrow-mode .actu-page--with-sidebar .actu-page__layout {
        flex-direction: column !important;
    }
    body.dshow-narrow-mode .actu-page--with-sidebar .actu-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        position: static !important;
    }
    body.dshow-narrow-mode .actu-sidebar__toggle {
        display: flex !important;
    }

    /* Archive : revenir en colonne */
    body.dshow-narrow-mode .archive-page__inner {
        flex-direction: column !important;
    }
    body.dshow-narrow-mode .archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Débriefs : annuler le flex:1 et remettre les dimensions normales de la thumb */
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief {
        flex: none !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .debriefs-grid {
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__thumb {
        width: 100px !important;
        min-width: 100px !important;
    }
    body.dshow-narrow-mode .latest-section__debriefs .card-debrief__thumb img {
        height: 70px !important;
        width: 100px !important;
    }

    /* card-article-row : layout horizontal identique à card-debrief (photo 100×70px à gauche) */
    body.dshow-narrow-mode .latest-section__articles .card-article-row__link {
        flex-direction: row !important;
        gap: 12px !important;
        padding: 12px !important;
        align-items: center !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article-row__left {
        width: auto !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article-row__thumb {
        width: 100px !important;
        padding-top: 0 !important;
        height: auto !important;
        position: static !important;
        border-radius: var(--radius) !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article-row__thumb img {
        position: static !important;
        width: 100px !important;
        height: 70px !important;
        object-fit: cover !important;
        inset: unset !important;
        display: block !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article-row__thumb--placeholder {
        position: static !important;
        width: 100px !important;
        height: 70px !important;
        border-radius: var(--radius) !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article-row__body {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 6px !important;
        align-self: center !important;
    }

    /* Cards articles : même style que card-debrief (photo 100×70px à gauche) */
    body.dshow-narrow-mode .latest-section__articles .card-article {
        flex-direction: row !important;
        align-items: stretch !important;
        overflow: visible !important;
        border-radius: var(--radius-lg) !important;
        box-shadow: var(--shadow) !important;
        background: var(--color-white) !important;
    }
    /* Le lien-thumbnail : fixé à 100px, hauteur automatique */
    body.dshow-narrow-mode .latest-section__articles .card-article__thumb-link {
        flex: 0 0 100px !important;
        width: 100px !important;
        display: block !important;
        overflow: hidden !important;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    }
    /* Annuler le padding-top 16:9 — hauteur dictée par le contenu */
    body.dshow-narrow-mode .latest-section__articles .card-article .card-article__thumb {
        position: static !important;
        padding-top: 0 !important;
        width: 100px !important;
        height: 100% !important;
        min-height: 70px !important;
        overflow: hidden !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article .card-article__thumb img {
        position: static !important;
        display: block !important;
        width: 100px !important;
        height: 100% !important;
        min-height: 70px !important;
        object-fit: cover !important;
        inset: unset !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article .card-article__thumb--placeholder {
        position: static !important;
        width: 100px !important;
        height: 100% !important;
        min-height: 70px !important;
    }
    /* Badge catégorie : sortir de l'absolute dans la thumb, le mettre dans le body */
    body.dshow-narrow-mode .latest-section__articles .card-article .card-article__cat {
        position: static !important;
        display: inline-block !important;
        align-self: flex-start !important;
        margin-top: auto !important;
    }
    /* Body : flex colonne, padding compact */
    body.dshow-narrow-mode .latest-section__articles .card-article__body {
        flex: 1 !important;
        padding: 10px 12px !important;
        gap: 6px !important;
        justify-content: center !important;
        min-width: 0 !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article__body {
        flex: 1 !important;
        padding: 10px 12px !important;
        min-width: 0 !important;
        gap: 6px !important;
        justify-content: center !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article__title {
        font-size: 0.88rem !important;
    }
    body.dshow-narrow-mode .latest-section__articles .card-article__meta,
    body.dshow-narrow-mode .latest-section__articles .card-article__date {
        font-size: 11px !important;
    }


}

/* ============================================================
   NM — Mode classique : colonnes latérales masquées,
   wrappers transparents (display:contents).
   Ces règles sont HORS @media et s'appliquent toujours.
   ============================================================ */

/* Colonnes masquées par défaut (hors narrow-mode) */
.nm-breves,
.nm-pub {
    display: none !important;
}

/* Wrappers transparents hors narrow-mode */
body:not(.dshow-narrow-mode) #nm-layout {
    display: contents;
}

body:not(.dshow-narrow-mode) #nm-main {
    display: contents;
}

/* =====================================================
   CARDS — Masquer les dates sous 800px
   ===================================================== */
@media (max-width: 799px) {
    .card-article__date,
    .card-article-row__stat--date,
    .card-debrief__stat:first-child {
        display: none !important;
    }
}

/* ============================================================
   ÉTAPE 6 — PARTENAIRES & PUBLICITÉ (sidebar-pub.php)
   Nouvelles règles pour les quatre cas de la colonne droite.
   ============================================================ */

/* ── Bloc premium (skyscraper) ────────────────────────────── */
.nm-pub__premium {
    padding: 10px 12px;
}

.nm-pub__premium-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ── Séparateur premium / standards (cas 2) ──────────────── */
.nm-pub__separator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin: 4px 0;
}

.nm-pub__separator::before,
.nm-pub__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.nm-pub__separator-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #aaa;
    white-space: nowrap;
}

/* ── Liste partenaires standard ───────────────────────────── */
.nm-pub__standards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nm-pub__standard-item {
    border-bottom: 1px solid #f0f0f0;
}

.nm-pub__standard-item:last-child {
    border-bottom: none;
}

.nm-pub__standard-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

a.nm-pub__standard-link:hover {
    background: #f7f7f7;
}

.nm-pub__standard-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

.nm-pub__standard-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    word-break: break-word;
}

/* ── Bloc « Votre pub ici ? » (cas 4) ─────────────────────── */
.nm-pub__cta {
    margin: 12px;
    padding: 14px 12px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    text-align: center;
}

.nm-pub__cta-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.nm-pub__cta-text {
    margin: 0 0 12px;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

.nm-pub__cta-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: #c0392b;
    border-radius: 4px;
    transition: background .15s ease;
}

.nm-pub__cta-btn:hover {
    background: #a93226;
}

/* ============================================================
   ÉTAPE 7 — BANNIÈRE HORIZONTALE (LEADERBOARD)
   .dshow-hbanner — au-dessus de #nm-layout, pleine largeur.
   ============================================================ */

.dshow-hbanner {
    width: 100%;
    display: block;
    overflow: hidden;
    /* Pas de margin/padding : la bannière colle directement
       au-dessus du #nm-layout sans espace résiduel. */
}

.dshow-hbanner__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Version sticky : la bannière reste collée sous la main-nav
   quand l'utilisateur scrolle. La main-nav est le seul élément
   fixe (position:sticky top:0, --nav-height: 48px).
   top-bar (36px) et site-header (72px) scrollent et disparaissent. */
.dshow-hbanner--sticky {
    position: sticky;
    top: var(--nav-height); /* 48px */
    z-index: 8000; /* sous la main-nav (z-index: 9000), au-dessus du contenu */
}

/* Mobile : masquée pour ne pas écraser l'écran.
   La bannière s'affiche sur tous les écrans. */

/* ============================================================
   ÉTAPE 8 — RAFFINEMENTS CSS PARTENAIRES & PUBLICITÉ
   Compléments précis aux règles posées en étapes 6 et 7.
   ============================================================ */

/* ── Lien premium : display:block pour couvrir tout le bloc ──
   Sans ça, le <a> reste inline et seule l'image est cliquable,
   pas le padding ni l'espace autour. */
.nm-pub__premium a {
    display: block;
}

/* ── nm-pub en flex-column (narrow-mode) ─────────────────────
   Deux effets simultanés :
   1. Scroll interne de la liste standards (cas 2 & 3) :
      les fiches défilent dans l'espace disponible sans déborder
      de la colonne sticky qui a un max-height contraint.
   2. Centrage vertical du CTA (cas 4) :
      margin:auto top/bottom sur .nm-pub__cta fonctionne
      uniquement si le parent est un flex container.
   Les blocs premium / séparateur / standards s'empilent
   normalement en colonne — comportement identique à display:block. */
body.dshow-narrow-mode .nm-pub {
    display: flex;
    flex-direction: column;
}

/* Header : hauteur fixe, ne participe pas au scroll interne */
.nm-pub__header {
    flex-shrink: 0;
}

/* Bloc premium et séparateur : taille intrinsèque, pas de grow */
.nm-pub__premium,
.nm-pub__separator {
    flex-shrink: 0;
}

/* Liste standards : prend tout l'espace restant sous le header
   (et sous le premium le cas échéant) et scrolle si besoin.
   overscroll-behavior:contain empêche le scroll de propager
   à la page parente quand on atteint le bas de la liste. */
.nm-pub__standards {
    flex: 1 1 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Scrollbar discrète sur navigateurs Webkit */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.nm-pub__standards::-webkit-scrollbar {
    width: 4px;
}

.nm-pub__standards::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.nm-pub__standards::-webkit-scrollbar-track {
    background: transparent;
}

/* CTA pub vide (cas 4) : margin auto top/bottom = centrage vertical
   dans l'espace disponible après le header.
   Surcharge le margin:12px posé en étape 6 (gauche/droite conservés). */
.nm-pub__cta {
    margin-top: auto;
    margin-bottom: auto;
}

/* ============================================================
   LIKES SUR LES COMMENTAIRES
   ============================================================ */

/* ── Pied de commentaire (contient le bouton like) ── */
.dshow-comment__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-grey-mid);
}

/* ── Bouton like (cliquable, connecté) ── */
.dshow-comment__like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-grey-mid);
    background: transparent;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform 0.1s ease;
    user-select: none;
}

.dshow-comment__like:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(204, 0, 0, 0.05);
}

/* État liké */
.dshow-comment__like.is-liked {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(204, 0, 0, 0.08);
}

.dshow-comment__like.is-liked:hover {
    background: rgba(204, 0, 0, 0.14);
}

/* Micro-animation au clic */
.dshow-comment__like:active {
    transform: scale(0.92);
}

/* Pendant le chargement AJAX */
.dshow-comment__like.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Compteur ── */
.dshow-comment__like-count {
    font-variant-numeric: tabular-nums;
    min-width: 12px;
    text-align: left;
}

/* ── Affichage statique du compteur (non connecté, likes > 0) ── */
.dshow-comment__like-static {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
}
