/* ================================================================
   HORIZONINFO — responsive.css v1.0
   CSS Responsive Complet : Mobile (320px+) · Tablette (768px+) · Desktop (1024px+)
   À importer APRÈS style.css  |  Remplace tous les @media existants
   ================================================================ */

/* ════════════════════════════════════════════════════════════════
   VARIABLES RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
:root {
  --mobile-nav-height: 60px;
  --mobile-padding:    16px;
  --tablet-padding:    24px;

  /* Tailles de police fluides */
  --fs-h1-mobile:  1.6rem;
  --fs-h2-mobile:  1.3rem;
  --fs-h3-mobile:  1.1rem;
  --fs-body-small: 0.875rem;
}

/* ════════════════════════════════════════════════════════════════
   UTILITAIRES RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
.mobile-only  { display: none !important; }
.desktop-only { display: block; }

@media (max-width: 992px) {
  .mobile-only  { display: block !important; }
  .desktop-only { display: none !important; }
}

/* Scroll horizontal masqué pour widgets mobiles */
.scroll-x-mobile {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.scroll-x-mobile::-webkit-scrollbar { display: none; }
.scroll-x-mobile > * { scroll-snap-align: start; }


/* ════════════════════════════════════════════════════════════════
   ▶ DESKTOP LARGE (1200px → 1340px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1340px) {
  .container { padding: 0 20px; }

  .press-grid {
    grid-template-columns: 240px 1fr 270px;
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: 240px 1fr 1fr 1fr;
    gap: 32px;
  }

  .feat-grid {
    grid-template-columns: 1fr 300px;
    grid-template-rows: 460px;
  }
  .feat-main { height: 460px; }
}


/* ════════════════════════════════════════════════════════════════
   ▶ TABLETTE LARGE (992px → 1199px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .container { padding: 0 var(--tablet-padding); }

  /* Layout principal : 2 colonnes */
  .press-grid {
    grid-template-columns: 1fr 260px;
    gap: 20px;
    padding: 22px 0 50px;
  }
  .press-col-left { display: none !important; }
  .press-col-right {
    position: sticky;
    top: calc(var(--header-height) + var(--topbar-height) + 12px);
  }

  /* Featured grid */
  .feat-grid {
    grid-template-columns: 1fr 270px;
    grid-template-rows: 420px;
  }
  .feat-main { height: 420px; }
  .feat-sides {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }

  /* Article grids */
  .art-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .art-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .footer-grid > div:first-child .footer-contacts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  /* Navigation : réduire spacing */
  .nav-link { padding: 0 10px; font-size: .78rem; }
  .hdr-logo { margin-right: 22px; }
}


/* ════════════════════════════════════════════════════════════════
   ▶ TABLETTE (768px → 991px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  :root {
    --header-height: 64px;
    --topbar-height: 38px;
  }

  /* ─── Top bar ─────────────────────────────────────────────────── */
  .top-bar { position: relative; }
  .tb-date { font-size: .65rem; }
  .tb-socials a { width: 26px; height: 26px; font-size: .68rem; }

  /* ─── Header ──────────────────────────────────────────────────── */
  .site-header { top: 0; position: sticky; }
  .hdr-nav { display: none !important; }
  .btn-ham { display: flex !important; }
  .hdr-logo { margin-right: auto; }

  /* ─── Layout principal : 1 colonne ───────────────────────────── */
  .press-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 0 40px;
  }
  .press-col-left  { display: none !important; }
  .press-col-right { display: none; }
  .press-col-main  { padding: 0; }

  /* ─── Featured grid — masqué sur mobile (remplacé par .une-carousel dans mobile.css) ── */
  /* .feat-wrap est display:none via mobile.css §12 sur ≤991px */

  .ov-title.lg { font-size: 1.35rem; }
  .ov-title.sm { font-size: .85rem; }

  /* ─── Grilles articles ────────────────────────────────────────── */
  .art-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .art-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .art-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  /* ─── Section headers ─────────────────────────────────────────── */
  .sec-hdr-title { font-size: .75rem; }
  .section-header-title { font-size: 1.1rem; }
  .section-header-line { display: none; }

  /* ─── Flash bar ───────────────────────────────────────────────── */
  .flash-bar { height: 44px; }
  .fi-item { padding: 0 20px; font-size: .8rem; }
  .fi-label span:last-child { display: none; }

  /* ─── Sidebar mobile : bloc infos (affiché après les articles) ── */
  .mobile-sidebar-widgets {
    display: block !important;
    margin-top: 30px;
    padding: 0;
  }
  .mobile-sidebar-widgets .sbox { margin-bottom: 16px; }

  /* ─── Article detail ──────────────────────────────────────────── */
  .art-detail-hero { height: 320px; }
  .art-detail-hero-body { padding: 20px 20px 24px; }
  .art-detail-title { font-size: 1.6rem; }
  .art-detail-meta  { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  .art-detail-body  { padding: 20px; }
  .art-detail-excerpt { font-size: 1.05rem; padding: 15px 18px; }

  /* ─── Page hero ───────────────────────────────────────────────── */
  .page-hero { padding: 28px 0 20px; }
  .page-hero h1  { font-size: 1.7rem; }
  .page-hero-icon { width: 54px; height: 54px; font-size: 1.4rem; }

  /* ─── Footer — géré entièrement par mobile.css en-dessous de 991px ── */
}


/* ════════════════════════════════════════════════════════════════
   ▶ MOBILE (480px → 767px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root {
    --header-height:   58px;
    --topbar-height:   36px;
    --mobile-padding:  14px;
  }

  /* ─── Container ───────────────────────────────────────────────── */
  .container { padding: 0 var(--mobile-padding); }

  /* ─── Typographie responsive ──────────────────────────────────── */
  h1 { font-size: var(--fs-h1-mobile); }
  h2 { font-size: var(--fs-h2-mobile); }
  h3 { font-size: var(--fs-h3-mobile); }

  /* ─── Top bar : plus compact ──────────────────────────────────── */
  .tb-date { display: none; }
  .tb-connexion-btn span,
  .btn-sub span { font-size: .6rem; letter-spacing: 0; }
  .tb-connexion-btn,
  .btn-sub { padding: 5px 12px; gap: 5px; font-size: .62rem; }

  /* ─── Logo ────────────────────────────────────────────────────── */
  .hdr-logo-icon { width: 38px; height: 38px; font-size: 1.2rem; }
  .hdr-logo-name { font-size: 1.25rem; }
  .hdr-logo-tag  { display: none; }
  .hdr-logo { gap: 9px; }

  /* ─── Flash bar ───────────────────────────────────────────────── */
  .flash-bar { height: 42px; }
  .fi-item   { padding: 0 16px; font-size: .78rem; }
  .fi-ctrl   { width: 26px; height: 26px; }

  /* ─── Press grid ──────────────────────────────────────────────── */
  .press-grid { padding: 12px 0 30px; }

  /* ─── Featured : mode empilé ──────────────────────────────────── */
  .feat-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    border-radius: var(--radius-lg);
  }
  .feat-main { height: 280px; }
  .feat-sides {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 160px;
    gap: 3px;
  }
  .feat-sm:nth-child(n + 3) { display: flex; }

  /* ─── Grilles articles ────────────────────────────────────────── */
  .art-grid--3,
  .art-grid--4,
  .art-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .articles-grid { grid-template-columns: 1fr; }

  /* ─── Article cards ───────────────────────────────────────────── */
  .art-card-body  { padding: 11px 11px 10px; gap: 5px; }
  .art-card-title { font-size: .92rem; }
  .art-card-excerpt { font-size: .78rem; -webkit-line-clamp: 2; }
  .art-card-footer { padding-top: 8px; }
  .art-card-meta span,
  .art-readtime   { font-size: .58rem; }

  /* ─── Article detail ──────────────────────────────────────────── */
  .art-detail-hero   { height: 240px; }
  .art-detail-hero-body { padding: 14px; }
  .art-detail-title  { font-size: 1.35rem; }
  .art-detail-meta   { padding: 10px 14px; gap: 8px; font-size: .68rem; }
  .art-detail-body   { padding: 16px; }
  .art-detail-excerpt { font-size: .98rem; padding: 13px 16px; margin-bottom: 18px; }
  .share-btns { margin-left: 0; margin-top: 8px; width: 100%; justify-content: flex-end; }

  /* ─── Section headers ─────────────────────────────────────────── */
  .sec-hdr { flex-wrap: wrap; gap: 8px; }
  .section-header { flex-wrap: wrap; gap: 10px; }
  .section-header-more { font-size: .65rem; padding: 6px 12px; }

  /* ─── Page hero ───────────────────────────────────────────────── */
  .page-hero { padding: 20px 0 16px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-hero h1    { font-size: 1.45rem; }
  .page-hero p     { font-size: .88rem; }
  .page-hero-icon  { width: 48px; height: 48px; font-size: 1.2rem; }
  .page-hero-badges { gap: 7px; }
  .page-hero-badge  { font-size: .62rem; padding: 4px 11px; }

  /* ─── Pagination ──────────────────────────────────────────────── */
  .pagination { gap: 4px; }
  .pg-btn { min-width: 36px; height: 36px; font-size: .78rem; padding: 0 8px; }

  /* ─── Footer mobile : géré par mobile.css ── */
}


/* ════════════════════════════════════════════════════════════════
   ▶ PETIT MOBILE (360px → 479px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 479px) {
  :root {
    --header-height: 56px;
    --topbar-height: 34px;
  }

  .container { padding: 0 12px; }

  /* ─── Top bar minimal ─────────────────────────────────────────── */
  .tb-socials { display: none; }
  .tb-connexion-btn span,
  .btn-sub span { display: none; }
  .tb-connexion-btn,
  .btn-sub {
    padding: 5px 10px;
    border-radius: var(--radius-md);
  }

  /* ─── Logo compact ────────────────────────────────────────────── */
  .hdr-logo-icon { width: 34px; height: 34px; font-size: 1.05rem; }
  .hdr-logo-name { font-size: 1.1rem; }
  .hdr-inner     { height: var(--header-height); }

  /* ─── Flash bar ───────────────────────────────────────────────── */
  .flash-bar { height: 40px; }
  .fi-n      { width: 15px; height: 15px; font-size: .55rem; }
  .fi-item   { font-size: .74rem; padding: 0 12px; }

  /* ─── Featured ────────────────────────────────────────────────── */
  .feat-main { height: 240px; }
  .feat-sides {
    grid-template-columns: 1fr;
    grid-template-rows: 140px;
  }
  .feat-sm:nth-child(n + 2) { display: none; }

  /* ─── Grilles : 1 colonne ─────────────────────────────────────── */
  .art-grid--3,
  .art-grid--4,
  .art-grid--2,
  .articles-grid { grid-template-columns: 1fr; gap: 10px; }

  /* ─── Article card ────────────────────────────────────────────── */
  .art-card-cat { font-size: .5rem; padding: 3px 8px; }

  /* ─── Article detail ──────────────────────────────────────────── */
  .art-detail-hero  { height: 200px; }
  .art-detail-title { font-size: 1.15rem; }
  .art-detail-meta  { gap: 6px; flex-wrap: wrap; }
  .art-detail-meta span { font-size: .65rem; }
  .art-detail-body  { padding: 14px; }
  .share-btn        { width: 30px; height: 30px; font-size: .7rem; }

  /* ─── Page hero ───────────────────────────────────────────────── */
  .page-hero h1   { font-size: 1.3rem; }
  .page-hero-icon { width: 44px; height: 44px; font-size: 1.1rem; }

  /* ─── Ov-title ────────────────────────────────────────────────── */
  .ov-title.lg { font-size: 1.15rem; }
  .ov-body     { padding: 14px 12px; }
  .ov-meta     { font-size: .56rem; gap: 8px; }
  .ov-badge    { font-size: .52rem; padding: 2px 7px; }

  /* ─── Footer mobile : géré par mobile.css ── */
}


/* ════════════════════════════════════════════════════════════════
   ▶ TRÈS PETIT (≤ 359px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 359px) {
  .hdr-logo-icon { width: 30px; height: 30px; font-size: .95rem; }
  .hdr-logo-name { font-size: 1rem; }
  .ov-title.lg   { font-size: 1rem; }
  .feat-main     { height: 210px; }
  .page-hero h1  { font-size: 1.15rem; }
}


/* ════════════════════════════════════════════════════════════════
   DRAWER MOBILE — Améliorations
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* ─── Drawer plus large sur tablette ─────────────────────────── */
  .mob-drawer {
    width: 340px;
    max-width: 90vw;
  }

  /* ─── Recherche dans le drawer ────────────────────────────────── */
  .drw-search-form {
    margin: 0 0 4px;
  }
  .drw-search-input {
    font-size: .82rem;
    padding: 9px 11px;
  }

  /* ─── Navigation du drawer ────────────────────────────────────── */
  .drw-nav-link {
    padding: 13px 18px;
    font-size: .9rem;
  }
  .drw-section-title { font-size: .6rem; }
}


/* ════════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS — VERSION MOBILE HORIZONTAL
   ════════════════════════════════════════════════════════════════ */

/* Bloc "Suivez-nous" horizontal sur mobile */
@media (max-width: 991px) {
  .sbox--socials .socials-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
  }
  .social-row {
    flex: 1 1 calc(50% - 6px);
    min-width: 130px;
    border-left: none;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 8px 12px;
  }
  .social-row:hover {
    transform: none;
    padding-left: 12px;
  }
}

/* Bloc "Les + lus" — liste horizontale sur mobile */
@media (max-width: 991px) {
  .pop-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 12px;
  }
  .pop-list::-webkit-scrollbar { display: none; }
  .art-mini {
    flex: 0 0 200px;
    flex-direction: column;
    padding: 10px;
    border-bottom: none;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
  }
  .art-mini-rank { display: none; }
  .art-mini-thumb {
    width: 100%;
    height: 110px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
  }
  .art-mini-info { width: 100%; }
  .art-mini-title { font-size: .82rem; -webkit-line-clamp: 2; }
}

/* ─── Widget Catégories : grille 2 colonnes sur mobile ─────────── */
@media (max-width: 991px) {
  .cats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 4px 0;
  }
  .cat-item {
    flex-direction: row;
    padding: 8px 12px;
  }
  .cat-item:hover { padding-left: 14px; }
}

/* ─── Événements — scroll horizontal ──────────────────────────── */
@media (max-width: 991px) {
  .events-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .events-block::-webkit-scrollbar { display: none; }
}


/* ════════════════════════════════════════════════════════════════
   CARROUSEL À LA UNE — VERSION MOBILE COMPLÈTE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Carrousel mobile affiché EN HAUT du contenu */
  .une-mobile-carousel-wrap {
    display: block !important;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
  }

  .une-mobile-carousel-wrap .une-carousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
  }

  .une-carousel-slide .une-carousel-content {
    padding: 16px;
  }

  .une-carousel-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .une-carousel-excerpt { font-size: .85rem; -webkit-line-clamp: 2; }
  .une-carousel-meta    { font-size: .65rem; gap: 12px; }

  .une-carousel-controls {
    padding: 10px 16px;
  }
}


/* ════════════════════════════════════════════════════════════════
   BANNER MOBILE SOCIAL (widget discret en bas des articles)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .mobile-social-bar {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobile-social-bar::-webkit-scrollbar { display: none; }
  .mobile-social-bar-label {
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--purple);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mobile-social-bar a {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: .85rem;
    flex-shrink: 0; transition: transform var(--t-fast);
  }
  .mobile-social-bar a:hover { transform: scale(1.1); }
}


/* ════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION — version tablette
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) and (max-width: 991px) {
  .nl-form {
    flex-direction: row;
    align-items: stretch;
  }
  .nl-field { flex: 1; }
  .nl-btn {
    width: auto;
    padding: 0 20px;
    white-space: nowrap;
  }
}


/* ════════════════════════════════════════════════════════════════
   SECTIONS ARTICLES — adaptation tablette/mobile
   ════════════════════════════════════════════════════════════════ */

/* Breadcrumb condensé */
@media (max-width: 640px) {
  .breadcrumb { font-size: .66rem; gap: 5px; }
  .breadcrumb-current { font-size: .66rem; padding: 2px 8px; }
}

/* Grille articles related */
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; gap: 12px; }
  .art-grid--3   { grid-template-columns: 1fr; }
  .art-grid--2   { grid-template-columns: 1fr; }
  .art-grid--4   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Section header sous 640px */
@media (max-width: 640px) {
  .section-header-title { font-size: 1rem; }
  .section-header-icon  { width: 34px; height: 34px; font-size: 1rem; }
  .section-header-more  { font-size: .6rem; padding: 5px 10px; }
}

/* Pagination compacte */
@media (max-width: 479px) {
  .pg-btn { min-width: 32px; height: 32px; font-size: .72rem; }
  .pg-info { font-size: .62rem; }
}


/* ════════════════════════════════════════════════════════════════
   FOOTER MOBILE — géré par mobile.css §18
   ════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════
   AMÉLIORATIONS TACTILES — agrandir zones cliquables mobile
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Zones tactiles minimum 44px */
  .btn-ham        { min-width: 44px; min-height: 44px; }
  .btn-icon       { min-width: 44px; min-height: 44px; }
  .fi-ctrl        { min-width: 36px; min-height: 36px; }
  .pg-btn         { min-height: 40px; }
  .une-carousel-arrow { min-width: 36px; min-height: 36px; }

  /* Pas d'effets hover sur touch (évite les bugs) */
  .art-card:hover           { transform: none; }
  .art-card:active          { transform: translateY(-2px); }
  .article-card-modern:hover{ transform: none; }
  .article-card-modern:active { transform: translateY(-2px); }
  .nav-drop-link:hover      { transform: none; }
  .cat-item:hover           { padding-left: 14px; }

  /* Smooth scroll et overscroll contain */
  .pop-list, .scroll-x-mobile {
    overscroll-behavior-x: contain;
  }
}


/* ════════════════════════════════════════════════════════════════
   SCROLL TOP BUTTON — repositionner sur mobile (au-dessus de la bottom nav)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .scroll-top {
    bottom: calc(58px + env(safe-area-inset-bottom) + 12px) !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: .82rem !important;
  }
}

@media (max-width: 479px) {
  .scroll-top {
    bottom: calc(58px + env(safe-area-inset-bottom) + 10px) !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   PROMO BOX — adaptation mobile
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .promo-box { padding: 18px 16px; }
  .promo-icon { font-size: 1.5rem; }
  .promo-box h4 { font-size: 1rem; }
  .promo-box p  { font-size: .8rem; margin-bottom: 14px; }
  .btn-white    { font-size: .76rem; padding: 8px 16px; }
}


/* ════════════════════════════════════════════════════════════════
   IMAGES — optimisation mobile
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Forcer 16:9 sur les petites cartes */
  .art-card-img-wrap { aspect-ratio: 16 / 9; }
  .article-card-modern-image { aspect-ratio: 16 / 9; }

  /* Désactiver l'animation de zoom sur mobile (perf) */
  .art-card:hover .art-card-img,
  .ov-card:hover img,
  .article-card-modern:hover .article-card-modern-image img,
  .footer-recent:hover .footer-recent-img img {
    transform: none;
  }
}


/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITÉ — focus visible sur mobile
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  *:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }
}


/* ════════════════════════════════════════════════════════════════
   PRINT — désactiver sidebar et navigation pour impression
   ════════════════════════════════════════════════════════════════ */
@media print {
  .top-bar,
  .site-header,
  .flash-bar,
  .press-col-left,
  .press-col-right,
  .mob-drawer,
  .mob-overlay,
  .scroll-top,
  .site-footer { display: none !important; }

  .press-grid { display: block; }
  .art-card { page-break-inside: avoid; }
  body { font-size: 12pt; line-height: 1.5; }
}


/* ════════════════════════════════════════════════════════════════
   OVERRIDE FINAL — sécurité responsive (empêche débordements)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Empêcher tout overflow horizontal */
  body, .main-content, .site-footer { overflow-x: hidden; }

  /* Tous les éléments restent dans leur conteneur */
  img, video, iframe, table {
    max-width: 100%;
    height: auto;
  }

  /* Tableaux scrollables */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Textes longs : empêcher débordement */
  h1, h2, h3, h4, .art-card-title,
  .art-detail-title, .ov-title,
  .une-carousel-title {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}
