/* ================================================================
   HORIZONINFO — mobile.css v5.0
   Design mobile fidèle au screenshot AZA.PNG
   Palette exacte : fond blanc/gris clair, violet #6D28D9, cartes blanches
   Toutes les variables héritées de style.css
   CSS pur · 320px → 991px · Mobile-first
   
   MODIFICATIONS V5 :
   - Rubriques retirées du corps
   - Newsletter retirée du corps
   - "Suivez-nous" retiré du corps
   - Articles à la une positionnés avant la grille
   - Section Émissions ajoutée
   - Les + lus conservés après Émissions
   ================================================================ */


/* ════════════════════════════════════════════════════════════════
   §1  SURCHARGE VARIABLES — palette screenshot fidèle
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  :root {
    /* Couleurs du site (screenshot) */
    --m-bg:         #F4F6F9;     /* fond page — gris très clair */
    --m-surf:       #FFFFFF;     /* cartes, header content */
    --m-surf2:      #FAFBFC;     /* cartes secondaires */
    --m-surf3:      #EEF0F4;     /* pills inactives, fonds secondaires */
    --m-hdr-bg:     #FFFFFF;     /* fond du header desktop → blanc sur mobile aussi */
    --m-topbar-bg:  #F4F6F9;     /* fond top-bar → gris clair comme sur le screenshot */
    --m-border:     #E4E7EC;
    --m-border2:    #C9CDD6;

    /* Violet — couleur principale */
    --m-brand:      #6D28D9;
    --m-brand-d:    #4C1D95;
    --m-brand-l:    #8B5CF6;
    --m-brand-bg:   rgba(109,40,217,.07);
    --m-brand-bg2:  rgba(109,40,217,.13);

    /* Textes */
    --m-text:       #111827;
    --m-text2:      #374151;
    --m-text3:      #6B7280;
    --m-text4:      #9CA3AF;

    /* Accents */
    --m-gold:       #B45309;
    --m-gold-l:     #D97706;
    --m-red:        #DC2626;     /* rouge flash/live */
    --m-green:      #059669;

    /* Ombres fidèles au style.css */
    --m-shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --m-shadow-md:   0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
    --m-shadow-card: 0 2px 8px rgba(17,24,39,.05), 0 0 0 1px rgba(17,24,39,.04);
    --m-shadow-brand: 0 6px 22px rgba(109,40,217,.22);

    /* Rayons (identiques au style.css) */
    --m-r-xs:   3px;
    --m-r-sm:   6px;
    --m-r-md:   10px;
    --m-r-lg:   14px;
    --m-r-xl:   20px;
    --m-r-full: 9999px;

    /* Tailles fixes */
    --m-pad:       14px;
    --m-tb-h:      42px;
    --m-hdr-h:     80px;
    --m-flash-h:   40px;
    --m-bnav-h:    58px;
  }
}


/* ════════════════════════════════════════════════════════════════
   §2  BASE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  body {
    background: var(--m-bg);
    overflow-x: hidden;
  }
  body.no-scroll { overflow: hidden; }

  /* Padding bottom pour la bottom-nav */
  .main-content {
    padding-bottom: calc(var(--m-bnav-h) + env(safe-area-inset-bottom) + 24px);
  }

  /* Éléments desktop cachés */
  .press-col-left,
  .press-col-right,
  .hdr-nav,
  .tb-date {
    display: none !important;
  }

  /* Container plein bord sur mobile */
  .container { padding-left: 0; padding-right: 0; }
}


/* ════════════════════════════════════════════════════════════════
   §3  TOP-BAR  — fond gris clair comme le screenshot
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .top-bar {
    background: var(--m-topbar-bg) !important;
    height: var(--m-tb-h);
    border-bottom: 1px solid var(--m-border);
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .top-bar .container {
    padding: 0 var(--m-pad);
    display: flex; align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .tb-left {
    display: flex; align-items: center;
    gap: 4px; margin-right: auto;
  }
  .tb-date { display: none !important; }

  /* Icônes sociales — comme dans le screenshot, icônes de couleur sombre */
  .tb-socials {
    display: flex !important; gap: 3px; margin-right: 6px;
  }
  .tb-socials a {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: var(--m-text3);
    font-size: .78rem;
    border-radius: var(--m-r-sm);
    border: 1px solid var(--m-border);
    background: var(--m-surf);
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
  }
  .tb-socials a:active {
    background: var(--m-brand-bg);
    color: var(--m-brand);
    border-color: var(--m-brand-bg2);
  }

  /* Boutons connexion et abonnement — style screenshot */
  .tb-connexion-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 13px;
    border-radius: var(--m-r-full);
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    background: var(--m-brand);
    color: white;
    border: none; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
    box-shadow: var(--m-shadow-brand);
  }
  .tb-connexion-btn:active { background: var(--m-brand-d); }

  .btn-sub {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 13px;
    border-radius: var(--m-r-full);
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    background: var(--m-brand);
    color: white;
    border: none; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
    box-shadow: var(--m-shadow-brand);
  }
  .btn-sub:active { background: var(--m-brand-d); }
}

@media (max-width: 479px) {
  .tb-connexion-btn span, .btn-sub span { display: none; }
  .tb-socials { display: none !important; }
  .tb-connexion-btn, .btn-sub { padding: 6px 10px; }
}


/* ════════════════════════════════════════════════════════════════
   §4  HEADER — fond BLANC comme le screenshot
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .site-header {
    background: var(--m-surf) !important;
    height: var(--m-hdr-h);
    position: sticky;
    top: var(--m-tb-h);
    z-index: 199;
    border-bottom: 2px solid var(--m-brand);   /* ligne violet sous le header */
    box-shadow: var(--m-shadow-md);
  }
  .site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
  }

  .hdr-inner {
    height: var(--m-hdr-h);
    padding: 0 var(--m-pad);
    display: flex; align-items: center;
    justify-content: space-between;
  }

  /* ── Logo (couleurs du screenshot : fond violet, texte noir + violet) ── */
  .hdr-logo { gap: 9px; text-decoration: none; }

  .hdr-logo-icon {
    width: 40px; height: 40px;
    font-size: 1.3rem; font-weight: 800;
    border-radius: var(--m-r-md);
    background: linear-gradient(145deg, var(--m-brand-d), var(--m-brand)) !important;
    color: white !important;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    box-shadow: var(--m-shadow-brand);
    flex-shrink: 0;
  }

  /* Nom logo : "Horizon" noir + "Info" violet — plus grand et impactant */
  .hdr-logo-name {
    font-size: 1.55rem !important;
    font-weight: 900 !important;
    color: var(--m-brand) !important;   /* tout violet comme desktop */
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -.5px;
    text-align: center;
  }
  .hdr-logo-name span {
    color: var(--m-brand) !important;   /* span aussi violet */
  }

  /* Slogan/tag — affiché sur tous les mobiles, police et couleur améliorées */
  /* Slogan — police corps de texte, noir discret */
  .hdr-logo-tag {
    display: block !important;
    font-size: .62rem; font-weight: 500;
    color: var(--m-text3) !important;
    letter-spacing: .15px;
    margin-top: 1px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-family: 'DM Sans', var(--font-body), sans-serif !important;
    font-style: normal;
    text-align: center;
  }

  /* ── Actions header ── */
  .hdr-actions { display: flex; align-items: center; gap: 5px; }

  .btn-icon {
    width: 38px; height: 38px;
    border: 1px solid var(--m-border);
    color: var(--m-text3);
    background: var(--m-surf);
    border-radius: var(--m-r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
  }
  .btn-icon:active {
    background: var(--m-brand-bg);
    color: var(--m-brand);
    border-color: var(--m-brand-bg2);
  }

  /* Barre de recherche ouverte */
  .srch-box {
    background: var(--m-surf);
    border: 1px solid var(--m-border);
  }
  .srch-box input { color: var(--m-text); font-size: .85rem; }
  .srch-box input::placeholder { color: var(--m-text4); }
  .srch-box button { color: var(--m-brand); }

  /* ── Hamburger — barres sombres sur fond blanc ── */
  .btn-ham {
    display: flex !important;
    border: 1px solid var(--m-border);
    background: var(--m-surf);
    border-radius: var(--m-r-md);
    width: 38px; height: 38px;
    padding: 0 9px;
    flex-direction: column; justify-content: center; gap: 5px;
  }
  .btn-ham span {
    background: var(--m-text2) !important;
    height: 1.5px !important; width: 100%;
    border-radius: 2px;
    transition: all .22s ease; transform-origin: center;
  }
  .btn-ham:active {
    background: var(--m-brand-bg);
    border-color: var(--m-brand-bg2);
  }
  .btn-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--m-brand) !important; }
  .btn-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .btn-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--m-brand) !important; }
}

@media (max-width: 479px) {
  .hdr-logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .hdr-logo-name { font-size: 1.32rem !important; text-align: center; }
  .hdr-logo-tag  { max-width: 170px; font-size: .58rem; text-align: center; }
}
@media (max-width: 359px) {
  .hdr-logo-icon { width: 32px; height: 32px; font-size: 1rem; }
  .hdr-logo-name { font-size: 1.12rem !important; text-align: center; }
  .hdr-logo-tag  { max-width: 140px; font-size: .52rem; text-align: center; }
  .srch-wrap     { display: none !important; }
}


/* ════════════════════════════════════════════════════════════════
   §5  OVERLAY + DRAWER — fond gris foncé translucide
       Le drawer lui-même : fond BLANC avec accents violets
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  /* Overlay sombre translucide */
  .mob-overlay {
    background: rgba(17,24,39,.55) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  /* Drawer — fond BLANC, dans la logique du site */
  .mob-drawer {
    background: var(--m-surf) !important;
    border-left: 1px solid var(--m-border);
    width: min(320px, 88vw);
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
  }

  /* En-tête du drawer */
  .drw-head {
    background: var(--m-brand);   /* violet comme le header du screenshot */
    border-bottom: none;
    height: 64px;
    padding: 0 18px;
    display: flex; align-items: center; justify-content: space-between;
  }

  .drw-logo { display: flex; align-items: center; gap: 9px; }
  .drw-logo-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.2) !important;
    border-radius: var(--m-r-md);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
    font-family: var(--font-display);
    border: 1px solid rgba(255,255,255,.3);
  }
  .drw-logo-name {
    font-size: 1.05rem; font-weight: 800;
    color: white !important;
    font-family: var(--font-display);
  }

  .btn-drw-close {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
  }
  .btn-drw-close:active { background: rgba(255,255,255,.3); }

  /* Formulaire de recherche */
  .drw-body .drw-section form {
    display: flex; gap: 6px;
    background: var(--m-surf3);
    border: 1px solid var(--m-border);
    border-radius: var(--m-r-md); overflow: hidden;
    padding: 0 4px 0 12px;
  }
  .drw-body .drw-section form input[type="search"] {
    flex: 1; background: none; border: none;
    color: var(--m-text); font-size: .85rem;
    padding: 10px 0; outline: none;
    font-family: var(--font-body);
  }
  .drw-body .drw-section form input[type="search"]::placeholder { color: var(--m-text4); }
  .drw-body .drw-section form button {
    background: none; border: none;
    color: var(--m-brand); font-size: .9rem;
    padding: 0 10px; cursor: pointer;
  }
  .drw-body .drw-section form button:active { color: var(--m-brand-d); }

  /* Titre de section */
  .drw-section-title {
    padding: 14px 18px 5px;
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--m-text4);
    font-family: var(--font-mono);
  }

  /* Liens de navigation */
  .drw-nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 18px;
    font-size: .9rem; font-weight: 500;
    color: var(--m-text2) !important;
    border-left: 2px solid transparent;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
  }
  .drw-nav-link i {
    color: var(--m-text4); font-size: .85rem;
    width: 18px; text-align: center; flex-shrink: 0;
    transition: color .15s;
  }
  .drw-nav-link:active,
  .drw-nav-link.active {
    color: var(--m-brand) !important;
    background: var(--m-brand-bg);
    border-left-color: var(--m-brand);
  }
  .drw-nav-link.active i,
  .drw-nav-link:active i { color: var(--m-brand); }

  /* Point coloré catégorie */
  .drw-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

  /* Auth */
  .drw-auth {
    padding: 16px 18px;
    border-top: 1px solid var(--m-border);
  }
  .btn-drw-login {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px;
    background: var(--m-brand);
    color: white; border-radius: var(--m-r-md);
    font-weight: 700; font-size: .88rem;
    text-decoration: none;
    box-shadow: var(--m-shadow-brand);
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
  }
  .btn-drw-login:active { background: var(--m-brand-d); }

  /* Carte utilisateur connecté */
  .drw-user-card { display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 10px; }
  .drw-user-av {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--m-brand-d), var(--m-brand));
    border-radius: var(--m-r-md); color: white;
    font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .drw-user-name { color: var(--m-text); font-weight: 700; font-size: .9rem; }
  .drw-user-role { color: var(--m-text3); font-size: .7rem; margin-top: 2px; }
  .drw-user-link {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: var(--m-r-md);
    color: var(--m-text2); font-size: .85rem; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: all .15s;
  }
  .drw-user-link:active { background: var(--m-brand-bg); color: var(--m-brand); }
  .drw-user-link.logout { color: var(--m-red); }
  .drw-user-link.logout:active { background: rgba(220,38,38,.07); }

  /* Réseaux sociaux dans le drawer */
  .drw-socials {
    display: flex; gap: 8px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--m-border);
  }
  .drw-social {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--m-border);
    border-radius: var(--m-r-md); background: var(--m-surf3);
    color: var(--m-text3); font-size: .85rem; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: all .15s;
  }
  .drw-social:active {
    background: var(--m-brand);
    color: white; border-color: var(--m-brand);
  }
}


/* ════════════════════════════════════════════════════════════════
   §6  FLASH BAR — sticky juste sous le header
       Position corrigée : après la section "À la une" dans le DOM
       mais sticky collée sous le header visuellement
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .flash-bar {
    background: var(--m-surf);
    border-bottom: 1px solid var(--m-border);
    height: var(--m-flash-h);
    /* Statique sur mobile : s'affiche dans le flux normal,
       juste après la section "À la une" */
    position: relative;
    top: auto;
    z-index: 10;
    box-shadow: var(--m-shadow-sm);
  }
  .flash-bar-inner {
    display: flex; align-items: center;
    height: 100%; padding: 0; overflow: hidden;
  }

  /* Label FLASH violet oblique */
  .fi-label {
    background: var(--m-brand) !important;
    height: 100%;
    padding: 0 18px 0 var(--m-pad);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    display: flex; align-items: center; gap: 6px;
    flex-shrink: 0; border-right: none;
  }
  .fi-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: white; flex-shrink: 0;
    animation: mob-blink 1.4s ease infinite;
  }
  .fi-label span:not(.fi-dot) {
    display: block !important;
    color: white; font-size: .62rem; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .fi-divider { display: none !important; }

  /* Ticker */
  .fi-ticker { flex: 1; min-width: 0; position: relative; overflow: hidden; }
  .fi-ticker::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 24px;
    background: linear-gradient(to right, var(--m-surf), transparent);
    z-index: 2; pointer-events: none;
  }
  .fi-ticker::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 24px;
    background: linear-gradient(to left, var(--m-surf), transparent);
    z-index: 2; pointer-events: none;
  }
  .fi-track { animation-duration: 32s !important; }
  .fi-item {
    display: inline-flex; align-items: center; gap: 8px;
    height: var(--m-flash-h); padding: 0 22px;
    font-size: .8rem; color: var(--m-text2); flex-shrink: 0;
  }
  .fi-item a { color: var(--m-text2); text-decoration: none; }
  .fi-item a:active { color: var(--m-brand); }
  .fi-n {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--m-brand); color: white;
    font-size: .55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-family: var(--font-mono);
  }

  /* Contrôles */
  .fi-controls { gap: 2px; padding: 0 8px; flex-shrink: 0; }
  .fi-ctrl {
    width: 28px; height: 28px;
    background: var(--m-surf3); border: 1px solid var(--m-border);
    border-radius: var(--m-r-sm); color: var(--m-text3); font-size: .65rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: all .15s;
  }
  .fi-ctrl:active {
    background: var(--m-brand-bg); color: var(--m-brand); border-color: var(--m-brand-bg2);
  }

  @keyframes mob-blink { 0%,100%{opacity:1} 50%{opacity:.2} }
}

/* ════════════════════════════════════════════════════════════════
   §7  BARRE CATÉGORIES — SUPPRIMÉE DU CORPS (V5)
       Les catégories restent uniquement dans le drawer.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* La barre sticky est désactivée dans le corps principal */
  .mob-cats-bar { display: none !important; }

  /* Pills conservées pour pages de liste (catégorie.php) */
  .mob-cat-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 13px; border-radius: var(--m-r-full);
    font-size: .64rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
    white-space: nowrap; flex-shrink: 0;
    color: var(--m-text3); background: var(--m-surf3);
    border: 1px solid var(--m-border);
    text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: all .15s;
    font-family: var(--font-mono);
  }
  .mob-cat-pill.active {
    background: var(--m-brand); color: white;
    border-color: var(--m-brand); box-shadow: var(--m-shadow-brand);
  }
  .mob-cat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; opacity: .75; }
  .mob-cat-pill.active .mob-cat-dot { opacity: 1; background: white !important; }
}


/* ════════════════════════════════════════════════════════════════
   §8  LAYOUT 1 COLONNE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .press-grid {
    display: block !important;
    padding: 0 0 20px !important; gap: 0 !important;
  }
  .press-col-left,
  .press-col-right { display: none !important; }
  .press-col-main  { padding: 0; }
}


/* ════════════════════════════════════════════════════════════════
   §9  HERO — .feat-main / .feat-sides / .ov-*
       Reproduit le style du screenshot (grande image + badge + badge catégorie)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .feat-wrap { margin-bottom: 0; }
  .feat-grid { display: block !important; border-radius: 0 !important; overflow: hidden; }

  /* Grande image hero */
  .feat-main { height: 270px !important; overflow: hidden; }
  .feat-main .ov-card { height: 270px; }
  .feat-main .ov-card:active img { transform: scale(1.03); }

  .feat-main .ov-body { padding: 14px 16px 18px; }

  /* Badge catégorie — pill arrondie comme dans le screenshot */
  .feat-main .ov-badge {
    border-radius: var(--m-r-full) !important;
    font-size: .6rem; font-weight: 700;
    padding: 4px 12px; margin-bottom: 9px;
    display: inline-block;
    font-family: var(--font-mono);
    letter-spacing: .4px; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }

  /* Titre principal */
  .feat-main .ov-title.lg {
    font-size: 1.22rem; line-height: 1.28;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    display: -webkit-box; overflow: hidden;
  }
  .feat-main .ov-meta { font-size: .62rem; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

  /* CTA injecté par JS */
  .mob-hero-cta {
    display: inline-flex !important; align-items: center; gap: 7px;
    margin-top: 12px; padding: 9px 18px;
    background: var(--m-brand);
    color: white; border-radius: var(--m-r-full);
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    font-family: var(--font-mono);
    box-shadow: var(--m-shadow-brand);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: all .15s;
  }
  .mob-hero-cta:active { background: var(--m-brand-d); transform: scale(.96); }
  .mob-hero-cta i { font-size: .62rem; }

  /* Sous-articles — masqués sur mobile (remplacés par la grille d'articles) */
  .feat-sides {
    display: none !important;
  }
}

@media (min-width: 580px) and (max-width: 991px) {
  .feat-main, .feat-main .ov-card { height: 305px !important; }
  .feat-main .ov-title.lg { font-size: 1.35rem; }
}

@media (max-width: 374px) {
  .feat-main, .feat-main .ov-card { height: 230px !important; }
  .feat-main .ov-title.lg { font-size: 1.05rem; }
}


/* ════════════════════════════════════════════════════════════════
   §10  SECTION HEADER .sec-hdr — design magazine moderne
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .sec-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px var(--m-pad) 12px;
    border-bottom: none; margin-bottom: 0;
    background: var(--m-surf);
    border-top: 3px solid var(--m-brand);
    box-shadow: var(--m-shadow-sm);
    position: sticky; top: calc(var(--m-tb-h) + var(--m-hdr-h));
    z-index: 10;
  }
  .sec-hdr::after { display: none; }

  .sec-hdr-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: .6px;
    color: var(--m-text); font-family: var(--font-mono);
  }
  /* Barre violette — épaisse et impactante */
  .sec-hdr-bar {
    display: inline-block; width: 4px; height: 20px; border-radius: 3px;
    background: linear-gradient(to bottom, var(--m-brand-l), var(--m-brand));
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(109,40,217,.4);
  }
  .sec-hdr-title i { color: var(--m-brand); font-size: .8rem; }

  /* Bouton "Voir tout" */
  .sec-hdr-more {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; font-size: .64rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .4px;
    color: white;
    background: var(--m-brand);
    border: none;
    border-radius: var(--m-r-full);
    text-decoration: none; white-space: nowrap;
    font-family: var(--font-mono);
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--m-shadow-brand);
    transition: all .15s;
  }
  .sec-hdr-more:active { background: var(--m-brand-d); transform: scale(.96); }
  .sec-hdr-more i { font-size: .55rem; }
  .sec-hdr-right { display: flex; align-items: center; gap: 8px; }
  .sec-pg { font-size: .62rem; color: var(--m-text3); }
}


/* ════════════════════════════════════════════════════════════════
   §11  CARTES ARTICLES "DERNIÈRES ACTUALITÉS"
        Design magazine premium : cartes larges, lisibles, engageantes
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .art-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Toutes les cartes : layout horizontal image gauche + texte droite */
  .art-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    border-radius: 0 !important;
    background: var(--m-surf) !important;
    border: none !important;
    border-bottom: 1px solid var(--m-border) !important;
    box-shadow: none !important;
    overflow: hidden;
    min-height: 108px;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
  }
  .art-card:active { background: var(--m-surf3) !important; transform: none !important; }

  /* Premier article — style hero full-width */
  .art-card:first-child {
    flex-direction: column !important;
    grid-column: auto;
    border-bottom: 3px solid var(--m-brand) !important;
    margin-bottom: 6px !important;
    background: var(--m-surf) !important;
  }

  .art-card:first-child .art-card-img-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden; flex-shrink: 0;
    position: relative;
  }

  .art-card:first-child .art-card-body {
    padding: 14px 16px 14px !important;
  }

  .art-card:first-child .art-card-title {
    font-size: 1.12rem !important; line-height: 1.3;
    font-family: var(--font-display); font-weight: 800;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    display: -webkit-box; overflow: hidden;
    color: var(--m-text); margin-bottom: 8px;
    text-decoration: none; display: block;
  }

  .art-card:first-child .art-card-excerpt {
    display: -webkit-box !important;
    font-size: .84rem; color: var(--m-text3); line-height: 1.55;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 10px;
  }

  /* Badge catégorie sur le 1er article hero — discret, en haut à gauche */
  .art-card:first-child .art-card-cat {
    position: absolute;
    top: 10px; left: 10px;
    font-size: .52rem;
    font-weight: 700;
    padding: 3px 8px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 5px !important;
    color: #fff !important;
    background: rgba(0,0,0,.45) !important;
    backdrop-filter: blur(3px);
    box-shadow: none !important;
    white-space: nowrap;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Autres articles : layout horizontal compact */
  .art-card:not(:first-child) {
    flex-direction: row !important;
    align-items: stretch;
    padding: 12px 16px !important;
    min-height: 96px;
  }

  .art-card:not(:first-child) .art-card-img-wrap {
    width: 96px !important;
    min-width: 96px;
    height: 80px !important;
    aspect-ratio: auto !important;
    border-radius: var(--m-r-md) !important;
    overflow: hidden; flex-shrink: 0;
    margin-right: 13px;
    position: relative;
    background: var(--m-surf3);
    align-self: center;
  }

  .art-card:not(:first-child) .art-card-img {
    width: 100%; height: 100%; object-fit: cover;
  }

  /* Badge catégorie sur les cartes horizontales — pill discret en haut à gauche */
  .art-card:not(:first-child) .art-card-cat {
    position: absolute;
    top: 6px; left: 6px;
    font-size: .48rem;
    font-weight: 700;
    padding: 2px 6px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .35px;
    border-radius: 4px !important;
    white-space: nowrap;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    color: #fff !important;
    background: rgba(0,0,0,.45) !important;
    backdrop-filter: blur(2px);
    box-shadow: none !important;
  }

  .art-card:not(:first-child) .art-card-body {
    padding: 0 !important; flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
    gap: 4px;
  }

  .art-card:not(:first-child) .art-card-title {
    font-size: .9rem !important; line-height: 1.35;
    font-family: var(--font-display); font-weight: 700;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    display: -webkit-box; overflow: hidden;
    color: var(--m-text); margin: 0;
    text-decoration: none;
    transition: color .15s;
  }
  .art-card:not(:first-child):active .art-card-title { color: var(--m-brand); }

  .art-card:not(:first-child) .art-card-excerpt { display: none; }

  /* Footer méta — date + temps lecture */
  .art-card-footer {
    display: flex; align-items: center; gap: 8px;
    padding-top: 0 !important; margin-top: 4px !important;
    border-top: none !important;
  }

  .art-card:first-child .art-card-footer {
    padding-top: 10px !important;
    border-top: 1px solid var(--m-border) !important;
    margin-top: 8px !important;
  }

  .art-card-meta { display: flex; gap: 8px; align-items: center; }
  .art-card-meta span {
    font-size: .6rem; color: var(--m-text3);
    font-family: var(--font-mono);
    display: flex; align-items: center; gap: 2px;
  }
  .art-card-meta i { font-size: .54rem; color: var(--m-brand); }
  .art-readtime {
    font-size: .58rem; color: var(--m-gold-l); font-family: var(--font-mono);
    font-weight: 600;
  }

  /* Flèche indicatrice */
  .art-card:not(:first-child) .art-card-arrow {
    color: var(--m-border); font-size: .65rem; flex-shrink: 0;
    align-self: center; margin-left: auto; padding-left: 6px;
    transition: color .15s, transform .15s;
  }
  .art-card:not(:first-child):active .art-card-arrow {
    color: var(--m-brand); transform: translateX(3px);
  }

  /* Désactiver hover desktop */
  .art-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--m-border) !important;
  }
  .art-card:hover .art-card-img { transform: none !important; }
  .art-card:active .art-card-img { transform: scale(1.04) !important; }
}

@media (max-width: 374px) {
  .art-card:not(:first-child) .art-card-img-wrap { width: 82px !important; min-width: 82px; height: 68px !important; }
  .art-card:not(:first-child) .art-card-title { font-size: .84rem !important; }
}
@media (min-width: 600px) and (max-width: 991px) {
  .art-card:not(:first-child) .art-card-img-wrap { width: 110px !important; min-width: 110px; height: 88px !important; }
  .art-card:not(:first-child) .art-card-title { font-size: .95rem !important; }
  .art-card:first-child .art-card-title { font-size: 1.22rem !important; }
}


/* ════════════════════════════════════════════════════════════════
   §12  À LA UNE MOBILE — hero-une carousel avec progress bar violet
        Le carousel hero-une est dans .mob-une-section
        Flash bar est sticky SOUS le header (après la une dans le DOM)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  /* ── Cache le hero desktop (feat-wrap) ── */
  .press-col-left { display: none !important; }
  .feat-wrap { display: none !important; }

  /* ── Wrapper section À la une — plein bord, pas de padding latéral ── */
  .mob-une-section {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
  }

  /* ── Label "À la une" — discret, au-dessus du carousel ── */
  .hero-une__label {
    display: none !important; /* le badge est intégré dans le carousel */
  }

  /* ── Carousel hero-une plein bord ── */
  .mob-une-section .hero-une {
    border-radius: 0 !important;
    margin: 0 !important;
    /* Hauteur adaptée mobile */
    aspect-ratio: 4/3;
    min-height: 280px;
    max-height: 400px;
    box-shadow: none !important;
  }

  /* ── Barre de progression violette — bien visible sur mobile ── */
  .hero-une__progress {
    height: 4px !important;
    background: linear-gradient(90deg, #4C1D95, #6D28D9, #8B5CF6, #C4B5FD) !important;
    box-shadow: 0 0 12px rgba(139,92,246,.9), 0 0 4px rgba(109,40,217,.7) !important;
    z-index: 10 !important;
    transform: translateZ(0);
  }
  .hero-une__progress.animating {
    transition-property: width !important;
    transition-timing-function: linear !important;
  }

  /* ── Flèches — toujours visibles sur mobile ── */
  .hero-une__arrow {
    opacity: .8 !important;
    transform: scale(.92) !important;
    width: 32px !important;
    height: 32px !important;
  }
  .hero-une__arrow:active {
    background: rgba(109,40,217,.8) !important;
    opacity: 1 !important;
  }

  /* ── Dots — plus gros pour le tactile ── */
  .hero-une__dot {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px;
    min-height: 7px;
  }
  .hero-une__dot.active {
    width: 24px !important;
  }

  /* ── Compteur position ── */
  .hero-une__counter {
    top: .75rem;
    right: .75rem;
  }

  /* ── Corps texte — padding ajusté mobile ── */
  .hero-une__body {
    padding: 1rem 1rem 4.5rem !important;
  }

  /* ── Titre ── */
  .hero-une__title {
    font-size: 1.05rem !important;
    -webkit-line-clamp: 3 !important;
  }

  /* ── Bouton Lire ── */
  .hero-une__read {
    padding: .45rem 1rem !important;
    font-size: .72rem !important;
  }

  /* ── Badge À LA UNE ── */
  .hero-une__badge {
    font-size: .56rem !important;
  }
}

@media (min-width: 580px) and (max-width: 991px) {
  .mob-une-section .hero-une {
    aspect-ratio: 16/9;
    min-height: 300px;
    max-height: 440px;
  }
  .hero-une__title { font-size: 1.2rem !important; -webkit-line-clamp: 2 !important; }
  .hero-une__body  { padding: 1.25rem 1.25rem 4.75rem !important; }
}

@media (max-width: 374px) {
  .mob-une-section .hero-une {
    aspect-ratio: 3/4;
    min-height: 260px;
  }
  .hero-une__title { font-size: .9rem !important; }
}

/* ════════════════════════════════════════════════════════════════
   §13  NEWSLETTER — SUPPRIMÉE DU CORPS (V5)
        La newsletter est maintenant uniquement dans footer.php
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .mob-nl-block { display: none !important; }
}


/* ════════════════════════════════════════════════════════════════
   §13b  ARTICLES À LA UNE — liste verticale (V5)
         .mobile-une-section / .mob-une-item
         Affiché AVANT les grilles
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .mobile-une-section {
    background: var(--m-surf);
    border-top: 3px solid var(--m-brand);
    border-bottom: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-card);
    margin: 10px var(--m-pad) 16px;
    border-radius: var(--m-r-lg);
    overflow: hidden;
  }

  /* En-tête */
  .mob-une-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--m-border);
    background: linear-gradient(to right, var(--m-brand-bg), transparent);
  }
  .mob-une-head-left { display: flex; align-items: center; gap: 8px; }
  .mob-une-bar {
    display: inline-block; width: 3px; height: 18px;
    border-radius: 2px; background: var(--m-brand); flex-shrink: 0;
  }
  .mob-une-label {
    font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--m-text); font-family: var(--font-mono);
  }
  .mob-une-label i { color: var(--m-brand); margin-right: 2px; }
  .mob-une-all {
    font-size: .64rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    color: var(--m-brand); background: var(--m-brand-bg);
    border: 1px solid var(--m-brand-bg2);
    padding: 4px 11px; border-radius: var(--m-r-full);
    text-decoration: none; font-family: var(--font-mono);
    display: inline-flex; align-items: center; gap: 3px;
    -webkit-tap-highlight-color: transparent; transition: all .15s;
  }
  .mob-une-all:active { background: var(--m-brand); color: white; }
  .mob-une-all i { font-size: .5rem; }

  /* Liste */
  .mob-une-list { display: flex; flex-direction: column; }

  /* Item */
  .mob-une-item {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--m-border);
    text-decoration: none; color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
  }
  .mob-une-item:last-child { border-bottom: none; }
  .mob-une-item:active { background: var(--m-surf3); }

  /* Premier article — mis en avant */
  .mob-une-item--top {
    flex-direction: column; gap: 10px;
    background: linear-gradient(to bottom, var(--m-brand-bg), transparent);
  }
  .mob-une-item--top .mob-une-thumb {
    width: 100%; height: 180px; border-radius: var(--m-r-lg);
  }
  .mob-une-item--top .mob-une-title {
    font-size: 1.08rem; -webkit-line-clamp: 3;
  }

  /* Vignette */
  .mob-une-thumb {
    position: relative; flex-shrink: 0;
    width: 90px; height: 68px;
    border-radius: var(--m-r-md); overflow: hidden;
    background: var(--m-surf3);
  }
  .mob-une-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .mob-une-thumb-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--m-surf3);
  }
  .mob-une-thumb-ph i { color: var(--m-border); font-size: 1rem; }

  /* Badge UNE */
  .mob-une-top-badge {
    position: absolute; top: 7px; left: 7px;
    background: var(--m-brand); color: white;
    font-size: .48rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .6px;
    padding: 3px 8px; border-radius: var(--m-r-full);
    font-family: var(--font-mono);
    display: inline-flex; align-items: center; gap: 4px;
    box-shadow: var(--m-shadow-brand);
  }
  .mob-une-top-badge i { font-size: .44rem; }

  /* Infos */
  .mob-une-info { flex: 1; min-width: 0; }
  .mob-une-cat {
    display: inline-block;
    font-size: .5rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 2px 8px; border-radius: var(--m-r-xs);
    background: var(--m-brand-bg); color: var(--m-brand);
    font-family: var(--font-mono); margin-bottom: 5px;
  }
  .mob-une-title {
    font-family: var(--font-display);
    font-size: .9rem; font-weight: 700; line-height: 1.32;
    color: var(--m-text); margin: 0 0 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mob-une-date {
    font-size: .6rem; color: var(--m-text3);
    font-family: var(--font-mono);
    display: flex; align-items: center; gap: 4px;
  }
  .mob-une-date i { color: var(--m-brand); font-size: .55rem; }
}

@media (min-width: 480px) and (max-width: 991px) {
  .mob-une-item--top .mob-une-thumb { height: 220px; }
  .mob-une-title { font-size: .95rem; }
}


/* ════════════════════════════════════════════════════════════════
   §13c  SECTION ÉMISSIONS  .mob-emissions (V5)
         Grille de cards d'émissions — remplace les rubriques dans le corps
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .mob-emissions {
    background: var(--m-surf);
    border-top: 1px solid var(--m-border);
    border-bottom: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-card);
    margin: 16px var(--m-pad) 8px;
    border-radius: var(--m-r-lg);
    overflow: hidden;
  }

  /* En-tête */
  .mob-em-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--m-border);
    background: linear-gradient(to right, var(--m-brand-bg), transparent);
  }
  .mob-em-head-left { display: flex; align-items: center; gap: 8px; }
  .mob-em-bar {
    display: inline-block; width: 3px; height: 18px;
    border-radius: 2px; background: var(--m-brand); flex-shrink: 0;
  }
  .mob-em-label {
    font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--m-text); font-family: var(--font-mono);
  }
  .mob-em-label i { color: var(--m-brand); margin-right: 2px; }
  .mob-em-all {
    font-size: .64rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    color: var(--m-brand); background: var(--m-brand-bg);
    border: 1px solid var(--m-brand-bg2);
    padding: 4px 11px; border-radius: var(--m-r-full);
    text-decoration: none; font-family: var(--font-mono);
    display: inline-flex; align-items: center; gap: 3px;
    -webkit-tap-highlight-color: transparent; transition: all .15s;
  }
  .mob-em-all:active { background: var(--m-brand); color: white; }
  .mob-em-all i { font-size: .5rem; }

  /* Grille d'émissions */
  .mob-em-grid {
    display: flex;
    flex-direction: column;
  }

  /* Card émission — ligne full-width avec icône colorée */
  .mob-em-card {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--m-border);
    text-decoration: none; color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
  }
  .mob-em-card:last-child { border-bottom: none; }
  .mob-em-card:active { background: var(--m-surf3); }

  /* Icône ronde colorée */
  .mob-em-icon {
    width: 44px; height: 44px; border-radius: var(--m-r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    transition: transform .15s;
  }
  .mob-em-icon--img { overflow: hidden; padding: 0; }
  .mob-em-card:active .mob-em-icon { transform: scale(.92); }

  /* Wrapper texte */
  .mob-em-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
  }

  /* Nom de l'émission */
  .mob-em-name {
    font-size: .92rem; font-weight: 700;
    color: var(--m-text); font-family: var(--font-display);
    line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* Description courte */
  .mob-em-desc {
    font-size: .72rem; color: var(--m-text3); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* Badge nombre d'épisodes */
  .mob-em-ep-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .65rem; font-weight: 600;
    font-family: var(--font-mono);
    color: var(--m-brand);
    background: var(--m-brand-bg);
    padding: 2px 8px; border-radius: var(--m-r-full);
    margin-top: 2px;
    width: fit-content;
  }
  .mob-em-ep-badge i { font-size: .55rem; }

  /* Flèche play */
  .mob-em-arrow {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--m-brand); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; flex-shrink: 0;
    box-shadow: var(--m-shadow-brand);
    transition: transform .15s;
  }
  .mob-em-card:active .mob-em-arrow { transform: scale(.88); }
}

@media (min-width: 480px) and (max-width: 991px) {
  /* Sur écrans plus larges : grille 2 colonnes */
  .mob-em-grid {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .mob-em-card {
    width: 50%;
    border-right: 1px solid var(--m-border);
    box-sizing: border-box;
  }
  .mob-em-card:nth-child(even) { border-right: none; }
}


/* ════════════════════════════════════════════════════════════════
   §14  LES + LUS (V5)
        Conservés après les émissions
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .mob-popular {
    display: block !important;
    background: var(--m-surf);
    border-top: 1px solid var(--m-border);
    border-bottom: 1px solid var(--m-border);
    box-shadow: var(--m-shadow-card);
    margin: 16px var(--m-pad) 8px;
    border-radius: var(--m-r-lg);
    overflow: hidden;
  }

  /* En-tête avec icône flamme */
  .mob-pop-head {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--m-border);
    background: linear-gradient(to right, var(--m-brand-bg), transparent);
  }
  .mob-pop-head > i { color: var(--m-brand); font-size: .88rem; }
  .mob-pop-head > span {
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .7px;
    color: var(--m-brand); font-family: var(--font-mono);
  }

  /* Item */
  .mob-pop-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 16px; border-bottom: 1px solid var(--m-border);
    text-decoration: none; color: inherit;
    -webkit-tap-highlight-color: transparent; transition: background .15s;
  }
  .mob-pop-item:last-child { border-bottom: none; }
  .mob-pop-item:active { background: var(--m-surf3); }

  /* Rang — violet pour le #1 */
  .mob-pop-rank {
    font-family: var(--font-display);
    font-size: 1.28rem; font-weight: 900; font-style: italic;
    color: var(--m-border); width: 22px; flex-shrink: 0;
    text-align: center; line-height: 1; padding-top: 2px;
  }
  .mob-pop-rank.r1 { color: var(--m-brand); }        /* violet pour le #1 */
  .mob-pop-rank.r2 { color: var(--m-gold-l); }       /* or pour le #2 */
  .mob-pop-rank.r3 { color: var(--m-gold); }         /* or foncé pour le #3 */

  /* Vignette */
  .mob-pop-thumb {
    width: 86px; height: 64px; border-radius: var(--m-r-md);
    overflow: hidden; flex-shrink: 0; background: var(--m-surf3);
  }
  .mob-pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .mob-pop-thumb-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--m-surf3);
  }
  .mob-pop-thumb-ph i { color: var(--m-border); font-size: 1rem; }

  /* Info */
  .mob-pop-info { flex: 1; min-width: 0; }
  .mob-pop-title {
    font-family: var(--font-display);
    font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--m-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 5px; transition: color .15s;
  }
  .mob-pop-item:active .mob-pop-title { color: var(--m-brand); }
  .mob-pop-meta {
    font-size: .6rem; color: var(--m-text3);
    display: flex; gap: 10px; font-family: var(--font-mono);
  }
  .mob-pop-meta i { color: var(--m-brand); font-size: .55rem; margin-right: 2px; }
}


/* ════════════════════════════════════════════════════════════════
   §15  PAGINATION
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .pagination {
    padding: 18px var(--m-pad) 8px;
    gap: 5px; flex-wrap: wrap; justify-content: center;
  }
  .pg-btn {
    min-width: 38px; height: 38px;
    font-size: .8rem; padding: 0 10px;
    border-radius: var(--m-r-md);
    background: var(--m-surf);
    border: 1px solid var(--m-border);
    color: var(--m-text2);
    -webkit-tap-highlight-color: transparent;
  }
  .pg-btn:hover { transform: none !important; }
  .pg-btn:active {
    border-color: var(--m-brand) !important; color: var(--m-brand) !important;
    background: var(--m-brand-bg) !important; transform: scale(.95) !important;
  }
  .pg-btn.current {
    background: var(--m-brand) !important; border-color: var(--m-brand) !important;
    color: white !important; box-shadow: var(--m-shadow-brand);
  }
  .pg-btn.disabled { opacity: .4; pointer-events: none; }
  .pg-info { font-size: .65rem; color: var(--m-text3); text-align: center; padding: 4px var(--m-pad); }
}


/* ════════════════════════════════════════════════════════════════
   §16  BOTTOM NAV FIXE — fond blanc, icône active = violet
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .mob-bottom-nav {
    display: flex !important;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--m-surf);
    border-top: 1px solid var(--m-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    z-index: 300;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mob-bn-inner {
    display: flex; width: 100%;
    align-items: stretch; justify-content: space-around;
    height: var(--m-bnav-h);
  }
  .mob-bn-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; flex: 1; padding: 4px 0;
    color: var(--m-text4);
    font-size: .52rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3px;
    text-decoration: none; cursor: pointer;
    border: none; background: none;
    font-family: var(--font-mono);
    -webkit-tap-highlight-color: transparent; transition: color .15s;
  }
  .mob-bn-item i { font-size: .95rem; line-height: 1; }
  .mob-bn-item.active { color: var(--m-brand); }
  .mob-bn-item:active  { color: var(--m-brand-l); }

  /* Bouton central — violet, surélevé */
  .mob-bn-center {
    width: 46px; height: 46px;
    background: var(--m-brand);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; box-shadow: var(--m-shadow-brand);
    margin-top: -14px; transition: transform .15s;
  }
  .mob-bn-item:active .mob-bn-center { transform: scale(.9); }
}


/* ════════════════════════════════════════════════════════════════
   §17  SCROLL TOP BUTTON
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .scroll-top {
    bottom: calc(var(--m-bnav-h) + env(safe-area-inset-bottom) + 12px) !important;
    right: var(--m-pad) !important;
    width: 40px !important; height: 40px !important;
    border-radius: 50% !important; font-size: .82rem !important;
    background: var(--m-brand) !important; color: white !important;
    box-shadow: var(--m-shadow-brand) !important;
    border: none !important;
  }
  .scroll-top:hover  { transform: none !important; }
  .scroll-top:active { transform: scale(.92) !important; }
}


/* ════════════════════════════════════════════════════════════════
   §18  FOOTER MOBILE — structure repensée, claire et moderne
        4 zones : brand + socials | liens essentiels | articles récents | copyright
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .site-footer {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    background: #0d0d1a;
  }
  .site-footer .container { padding: 0; }

  /* ── GRILLE : 1 colonne, sections empilées ── */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .footer-grid > * {
    padding: 24px var(--m-pad) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }

  /* ── ZONE 1 — Brand : logo + slogan + socials ── */
  .footer-brand-col {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(160deg, rgba(109,40,217,.18) 0%, transparent 60%);
    padding-top: 28px !important;
    padding-bottom: 22px !important;
  }

  .footer-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-mono); font-size: .55rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    color: var(--m-brand-l); background: rgba(109,40,217,.15);
    border: 1px solid rgba(109,40,217,.3);
    padding: 3px 10px; border-radius: var(--m-r-full);
    margin-bottom: 12px;
  }
  .footer-badge i { font-size: .5rem; }

  .footer-logo-name {
    font-family: var(--font-display); font-size: 2rem !important;
    font-weight: 900; color: white !important;
    letter-spacing: -.03em; line-height: 1;
    margin-bottom: 6px;
  }
  .footer-logo-name span { color: var(--m-brand-l) !important; }

  .footer-divider {
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--m-brand), transparent);
    border-radius: 2px; margin-bottom: 10px;
  }

  .footer-tagline {
    font-size: .84rem !important; color: rgba(255,255,255,.5) !important;
    line-height: 1.5; margin-bottom: 16px;
    font-family: var(--font-body);
  }

  /* Contacts — une ligne par entrée, pleine largeur */
  .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
  }
  .footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    font-family: var(--font-mono);
    text-decoration: none;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .footer-contact i {
    color: var(--m-brand-l);
    font-size: .72rem;
    flex-shrink: 0;
    width: 15px;
    text-align: center;
    margin-top: 2px;
  }
  .footer-contact:active { color: rgba(255,255,255,.85); }

  /* Réseaux sociaux — icônes rondes */
  .footer-socials {
    display: flex !important; flex-wrap: wrap; gap: 8px;
    margin-top: 0 !important;
  }
  .footer-soc {
    width: 36px !important; height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: rgba(255,255,255,.65) !important;
    font-size: .82rem !important;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-soc:active {
    background: var(--hover-color, var(--m-brand)) !important;
    color: white !important; border-color: transparent !important;
    transform: scale(.92);
  }
  .footer-soc:hover { transform: none !important; }

  /* ── ZONE 2 — Navigation rapide (masquer les colonnes nav complexes) ── */
  .footer-col:nth-child(2) {
    display: none !important;
  }
  .footer-col:nth-child(3) {
    display: none !important;
  }

  /* ── ZONE 3 — Articles récents ── */
  .footer-col:nth-child(4) {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  .footer-col:nth-child(4) h5 {
    font-size: .62rem !important; font-weight: 800;
    text-transform: uppercase; letter-spacing: .8px;
    color: rgba(255,255,255,.35); font-family: var(--font-mono);
    margin-bottom: 14px !important;
    display: flex; align-items: center; gap: 6px;
  }
  .footer-col:nth-child(4) h5 i { color: var(--m-brand-l); }

  /* Articles récents — layout liste horizontal compact */
  .footer-recent {
    display: flex !important; align-items: center; gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-decoration: none; color: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s;
  }
  .footer-recent:last-child { border-bottom: none; }
  .footer-recent:active { opacity: .8; }

  .footer-recent-img {
    width: 62px !important; height: 50px !important;
    border-radius: var(--m-r-md) !important;
    flex-shrink: 0; overflow: hidden;
    background: rgba(255,255,255,.06);
  }
  .footer-recent-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: none !important;
  }
  .footer-recent:active .footer-recent-img img { transform: none !important; }

  .footer-recent-title {
    font-size: .8rem !important; font-weight: 600;
    color: rgba(255,255,255,.75) !important;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-family: var(--font-body);
  }
  .footer-recent-date {
    font-size: .58rem; color: rgba(255,255,255,.3);
    font-family: var(--font-mono); margin-top: 3px;
    display: flex; align-items: center; gap: 4px;
  }
  .footer-recent-date i { font-size: .52rem; color: var(--m-brand-l); }

  /* ── BARRE DE COPYRIGHT ── */
  .footer-bottom {
    background: rgba(0,0,0,.3);
    padding: calc(var(--m-bnav-h) + env(safe-area-inset-bottom) + 12px) var(--m-pad) 14px !important;
    flex-direction: column !important; gap: 8px !important;
    font-size: .6rem !important; color: rgba(255,255,255,.25) !important;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.06) !important;
  }
  .footer-bottom .container {
    flex-direction: column !important; align-items: center !important;
    text-align: center; gap: 6px !important;
  }
  .footer-bottom strong { color: rgba(255,255,255,.4) !important; }
  .footer-bottom-links {
    display: flex !important; flex-wrap: wrap; justify-content: center;
    gap: 10px 18px !important; font-size: .6rem !important;
  }
  .footer-bottom-links a { color: rgba(255,255,255,.25) !important; text-decoration: none; }
  .footer-bottom-links a:active { color: var(--m-brand-l) !important; }

  /* Liens texte dans le footer */
  .footer-link {
    display: flex; align-items: center;
    font-size: .82rem !important; color: rgba(255,255,255,.55) !important;
    padding: 5px 0 !important; text-decoration: none;
    border-bottom: none; transition: color .14s;
    font-family: var(--font-body);
  }
  .footer-link:hover  { transform: none !important; }
  .footer-link:active { color: white !important; transform: none !important; }
}

/* Bloc navigation footer mobile — simplifié visuellement */
@media (max-width: 991px) {
  /* Lien rapides en grille 2×3 injectés par CSS */
  .mob-footer-links {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px; padding: 20px var(--m-pad);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .mob-footer-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: var(--m-r-md);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.55); font-size: .78rem;
    text-decoration: none; font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
    transition: background .14s;
  }
  .mob-footer-link:active {
    background: rgba(109,40,217,.2); color: white;
    border-color: rgba(109,40,217,.4);
  }
  .mob-footer-link i { font-size: .72rem; color: var(--m-brand-l); width: 14px; text-align: center; }
}

/* ════════════════════════════════════════════════════════════════
   §19  ÉLÉMENTS SUPPRIMÉS (V5)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Supprimer les anciens éléments mobiles qui ne sont plus utilisés */
  .mobile-only-elements,
  .mobile-section-cats,
  .mobile-socials,
  .mobile-newsletter,
  .mobile-events {
    display: none !important;
  }

  /* Scroll catégories supprimé du corps */
  .mobile-cats-scroll {
    display: none !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   §20  OPTIMISATIONS PERFORMANCE TOUCH
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .btn-ham, .btn-drw-close, .btn-icon,
  .mob-bn-item, .pg-btn, .fi-ctrl,
  .mob-em-arrow,
  .une-carousel-arrow { min-height: 44px; min-width: 44px; }
  .mob-une-thumb img,
  .art-card .art-card-img,
  .ov-card img,
  .footer-recent-img img { transition: none !important; }
  body, html { max-width: 100vw; }
}


/* ════════════════════════════════════════════════════════════════
   §21  ACCESSIBILITÉ & ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  *:focus-visible {
    outline: 2px solid var(--m-brand); outline-offset: 3px;
    border-radius: var(--m-r-sm);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fi-track { animation: none !important; }
  .fi-dot   { animation: none !important; opacity: 1; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}