/* ==========================================================================
   PIXEL HEXAGONE — Responsive (mobile-first refinements)
   ========================================================================== */

/* === BREAKPOINT 1280px — bascule du menu en mode hamburger === */
@media (max-width: 1280px) {
  .header-main {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 16px;
  }
  .logo { order: 1; }
  .header-actions { order: 2; }

  .nav-main {
    order: 3;
    flex: 1 0 100%;
    margin-top: 12px;
    border-top: 1px solid var(--ink-soft);
    padding-top: 12px;
    display: none;
  }
  .nav-main.open { display: block; animation: slideDown 0.3s ease; }
  .nav-main ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-main li { border-bottom: 1px dashed var(--ink-fade); }
  .nav-main li:last-child { border-bottom: none; }
  .nav-main a { display: block; padding: 14px 0; font-size: 0.85rem; }

  .menu-btn { display: block; }
  .header-actions .btn-cta { display: none; }

  /* Décorations hero adaptées */
  .hero::before { font-size: 9rem; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero::before { font-size: 8rem; right: 2%; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-featured { grid-column: span 2; border-right: none; padding-right: 0; border-bottom: 1px solid var(--ink-soft); padding-bottom: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat:nth-child(2) { border-right: none; }
  .form-wrap { grid-template-columns: 1fr; }
  .unedeux { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }

  body { font-size: 17px; }

  /* HEADER MOBILE */
  .header-top .wrap { font-size: 0.6rem; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .header-top .live { display: none; }
  .header-main { padding: 12px 0; }
  .logo { font-size: 1.4rem; }
  .logo small { font-size: 0.5rem; }
  .search-btn { padding: 7px 10px; font-size: 0.65rem; }
  .menu-btn { padding: 7px 10px; font-size: 0.65rem; }

  /* HERO */
  .hero { padding: 40px 0 50px; }
  .hero::before { font-size: 5rem; top: 10px; opacity: 0.3; }
  .hero-main h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--ink-soft); padding-top: 24px; margin-top: 20px; }
  .hero-aside .quote { font-size: 1.1rem; }
  .hero-art img { height: 240px; }
  .hero-art .caption { flex-direction: column; gap: 6px; align-items: flex-start; font-size: 0.6rem; }

  /* MARQUEE */
  .marquee-track { font-size: 0.7rem; gap: 30px; }

  /* SECTIONS */
  .section { padding: 60px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 30px;
  }
  .section-head .col-num { font-size: 1.6rem; }
  .section-head .col-link { font-size: 0.7rem; }

  /* ARTICLES */
  .articles-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-featured { grid-column: 1; }
  .article-featured .art-img { height: 220px; }
  .article-featured .art-title { font-size: 1.7rem; }
  .art-title { font-size: 1.3rem; }

  /* STATS */
  .stats-strip { padding: 40px 0; }
  .stat { padding: 0 10px; }
  .stat-num { font-size: 2.6rem; }
  .stat-label { font-size: 0.65rem; }

  /* CARTES JEUX */
  .games-grid { grid-template-columns: 1fr; gap: 24px; }
  .games-filters { padding: 14px; gap: 8px; }
  .filter-btn { padding: 6px 12px; font-size: 0.65rem; }

  /* CARTES */
  .feature-block { padding: 30px 20px; }
  .feature-block h3 { font-size: 1.5rem; }

  /* TIMELINE */
  .timeline { padding-left: 30px; }
  .timeline::before { left: 8px; }
  .tl-item::before { left: -27px; width: 12px; height: 12px; }

  /* FORMULAIRE */
  .form-section { padding: 60px 0; }
  .lead-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* FOOTER */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; font-size: 0.65rem; }
  .footer-bottom .legal-links { gap: 14px; }

  /* COOKIES */
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
  }
  .cookie-banner h4 { font-size: 1.2rem; }
  .cookie-actions { flex-direction: column; gap: 8px; }
  .cookie-actions button { width: 100%; }

  /* BACK TO TOP */
  .back-top { width: 42px; height: 42px; bottom: 20px; right: 20px; font-size: 1.3rem; }

  /* PAGE HEAD */
  .page-head { padding: 50px 0 30px; }
  .page-head h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .page-head .page-intro { font-size: 1.05rem; }

  /* ARTICLE LONG */
  .article-long { padding: 40px 0 60px; }
  .article-long p { font-size: 1.05rem; }
  .article-long blockquote { padding: 18px 22px; font-size: 1.25rem; margin: 30px 0; }

  /* ACCORDION */
  .acc-trigger { font-size: 1.1rem; padding: 18px 0; }

  /* TABS */
  .tab-btn { padding: 12px 16px; font-size: 0.75rem; }

  /* ÉVÉNEMENTS */
  .event-card {
    grid-template-columns: 100px 1fr;
    gap: 18px;
  }
  .event-card > .event-cta { grid-column: 1 / -1; }
  .event-date { padding: 14px 8px; }
  .event-date .day { font-size: 2rem; }
  .event-info h3 { font-size: 1.3rem; }

  /* CALLOUT */
  .callout-strip h3 { font-size: 1.5rem; }
  .callout-strip .wrap { flex-direction: column; align-items: flex-start; }

  /* BIT BANNER */
  .bit-banner h2 { font-size: 1.8rem; }
  .bit-banner::before, .bit-banner::after { font-size: 0.9rem; }

  /* TEAM */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .team-img { width: 130px; height: 130px; }

  /* SHOP */
  .shop-grid { grid-template-columns: 1fr; }
  .product-img { height: 220px; }

  /* HR DECO */
  .hr-deco { margin: 40px 0; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-bottom .legal-links { flex-direction: column; gap: 8px; }
  .header-top { font-size: 0.55rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .cookie-banner, .back-top, .form-section { display: none; }
  body { background: white; color: black; }
  body::before, body::after { display: none; }
}
