/* ============================================================
   JBS — Responsive
   ============================================================ */

/* ---------- <= 1120px (tablette paysage / petit laptop) ---------- */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .x-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .podcast-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.g-1 {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- <= 900px : tablette ---------- */
@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  /* Navigation mobile */
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 500;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: var(--rdc-blue-deep);
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-med) var(--ease),
      visibility var(--t-med) var(--ease);
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .main-nav .pattern-bg {
    display: block;
  }

  .mobile-head {
    display: flex;
  }

  .main-nav .brand {
    color: var(--ivory);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .nav-link {
    font-size: 1.6rem;
    font-family: var(--font-display);
    color: var(--ivory);
    padding: 16px 4px;
    justify-content: space-between;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    color: var(--rdc-gold-soft);
  }

  .nav-has-children {
    display: block;
  }

  .nav-has-children > .nav-link .chev {
    width: 30px;
    height: 30px;
  }

  .submenu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 0 10px;
    display: none;
  }

  .nav-has-children.open > .submenu {
    display: block;
  }

  .submenu a {
    color: var(--ivory);
    padding: 12px 8px;
    border-left: 2px solid rgba(232, 200, 121, 0.4);
    border-radius: 0;
  }

  .submenu a strong {
    font-size: 1.1rem;
    font-family: var(--font-display);
  }

  .submenu a small {
    color: var(--rdc-gold-soft);
    opacity: 0.8;
  }

  .submenu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rdc-gold-soft);
  }

  .nav-cta {
    margin: 20px 0 0;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .site-header-inner .brand {
    color: var(--rdc-blue-deep);
  }

  .mobile-panel-hint {
    margin-top: auto;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ivory);
    opacity: 0.55;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-photo-wrap {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .hero-diagonal {
    opacity: 0.6;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-sticky {
    position: static;
  }

  .news-card-featured {
    grid-template-columns: 1fr;
  }

  .news-card-featured .news-media {
    aspect-ratio: 16 / 9;
  }

  .podcast-layout {
    grid-template-columns: 1fr;
  }

  .podcast-cover-wrap {
    position: static;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

/* ---------- <= 640px : téléphone ---------- */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .demo-banner {
    font-size: 0.7rem;
    padding: 7px 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text b {
    font-size: 0.95rem;
  }

  .brand-text span {
    font-size: 0.58rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-photo-card {
    left: 12px;
    bottom: 14px;
    padding: 14px 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card-featured {
    grid-column: 1;
  }

  .news .section-head,
  .x-section .section-head,
  .podcast .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .x-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-buttons {
    gap: 8px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .btn-play {
    width: 64px;
    height: 64px;
  }

  .btn-play svg {
    width: 26px;
    height: 26px;
  }

  .player-second-row {
    flex-direction: column;
    align-items: stretch;
  }

  .player-actions {
    justify-content: center;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
}

/* ---------- <= 360px : très petits écrans ---------- */
@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .episode-row {
    flex-wrap: wrap;
  }
}

/* ---------- >= 1440px : grand écran ---------- */
@media (min-width: 1440px) {
  :root {
    --container-wide: 1560px;
  }

  .hero {
    min-height: 92svh;
  }
}

/* ---------- Hauteur réduite ---------- */
@media (max-height: 700px) and (min-width: 901px) {
  .hero {
    min-height: 100svh;
  }

  .hero-scroll {
    display: none;
  }
}
