/* AGD Live — compact mobile composition, scoped to page 151. */
body.page-id-151 .premium-header {
  border-radius: 0 0 28px 28px;
  overflow: visible;
}

body.page-id-151 .agd-live-page {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* WordPress peut laisser deux paragraphes vides autour du shortcode : ils
   créent un blanc artificiel entre le header, la carte et le footer. */
body.page-id-151 .agd-live-page > p {
  display: none !important;
}

body.page-id-151 .wp-site-blocks > main#wp--skip-link--target,
body.page-id-151 .wp-site-blocks > .wp-block-template-part:has(> .premium-footer) {
  margin-top: 0 !important;
}

/* Hors direct : signal rouge visible, mais non rempli. */
body.page-id-151 .agd-live-badge__dot,
body.page-id-151 .agd-live-match-header__dot {
  background: transparent !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14) !important;
}

body.page-id-151 .site-footer.premium-footer {
  margin-top: 0;
}

body.page-id-151 .agd-live-scene {
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(119, 185, 255, .22), transparent 30%),
    linear-gradient(135deg, #061d3a 0%, #124968 58%, #277b8e 100%);
}

body.page-id-151 .site-footer.premium-footer {
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

@media (min-width: 801px) {
  body.page-id-151 .premium-header .header-inner {
    min-height: 184px;
    height: 184px;
  }

  body.page-id-151 .premium-header .premium-brand {
    min-height: 96px;
  }

  body.page-id-151 .premium-header .premium-brand .brand-logo img {
    width: 92px;
    height: 74px;
  }

  body.page-id-151 .premium-header .premium-nav {
    grid-row: 2;
  }
}

@media (max-width: 800px) {
  body.page-id-151 .wp-site-blocks > main#wp--skip-link--target {
    margin-bottom: -24px !important;
  }

  body.page-id-151 .premium-header {
    height: 96px !important;
    min-height: 96px !important;
  }

  body.page-id-151 .premium-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 0 14px !important;
  }

  body.page-id-151 .premium-header .premium-brand {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    height: 76px !important;
  }

  body.page-id-151 .premium-header .premium-brand .brand-logo img {
    width: 64px !important;
    height: 58px !important;
  }

  body.page-id-151 .premium-header .brand-title strong {
    font-size: .86rem !important;
  }

  body.page-id-151 .premium-header .brand-title em {
    font-size: .52rem !important;
  }

  body.page-id-151 .premium-header .header-top-badges,
  body.page-id-151 .premium-header .header-live-strip {
    display: none !important;
  }

  body.page-id-151 .premium-header .menu-toggle {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  body.page-id-151 .premium-header .premium-nav {
    top: 96px !important;
  }

  body.page-id-151 .agd-live-page {
    width: min(100% - 24px, 560px);
    padding: 0;
  }

  body.page-id-151 .agd-live-scene {
    margin: 8px 0;
    padding: 20px 14px 16px;
    border-radius: 24px;
  }

  body.page-id-151 .agd-live-badge {
    padding: 6px 11px;
    font-size: .66rem;
  }

  body.page-id-151 .agd-live-kicker {
    margin: 13px 0 5px;
    font-size: .66rem;
  }

  body.page-id-151 .agd-live-scene h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  body.page-id-151 .agd-live-intro {
    margin-top: 9px;
    font-size: .88rem;
    line-height: 1.35;
  }

  body.page-id-151 .agd-live-player {
    margin-top: 16px;
    border-radius: 13px;
  }

  body.page-id-151 .agd-live-scene__foot {
    margin-top: 11px;
  }

  body.page-id-151 .agd-live-scene__foot p {
    font-size: .75rem;
    line-height: 1.25;
  }

  body.page-id-151 .agd-live-back {
    min-height: 38px;
    margin-top: 10px;
    padding: 8px 14px;
    font-size: .84rem;
  }

  body.page-id-151 .site-footer.premium-footer {
    padding: 22px 12px 10px;
  }

  body.page-id-151 .site-footer.premium-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 13px 12px;
    padding-bottom: 13px;
  }

  body.page-id-151 .site-footer.premium-footer .footer-identity {
    grid-column: 1 / -1;
  }

  body.page-id-151 .site-footer.premium-footer .footer-logo img {
    width: 92px;
  }

  body.page-id-151 .site-footer.premium-footer .footer-identity p {
    max-width: 280px;
    margin-top: 4px;
    font-size: .75rem;
    line-height: 1.25;
  }

  body.page-id-151 .site-footer.premium-footer .footer-column {
    gap: 3px;
    padding-top: 0;
  }

  body.page-id-151 .site-footer.premium-footer h3 {
    margin-bottom: 3px;
    font-size: .8rem;
  }

  body.page-id-151 .site-footer.premium-footer .footer-column a {
    font-size: .7rem;
    line-height: 1.2;
  }

  body.page-id-151 .site-footer.premium-footer .footer-partners {
    padding: 10px 0 11px;
  }

  body.page-id-151 .site-footer.premium-footer .footer-partners-heading {
    gap: 6px;
    font-size: .58rem;
  }

  body.page-id-151 .site-footer.premium-footer .partner-logos {
    gap: 5px;
    margin-top: 7px;
  }

  body.page-id-151 .site-footer.premium-footer .partner-logo {
    min-height: 52px;
    padding: 4px;
    border-radius: 9px;
  }

  body.page-id-151 .site-footer.premium-footer .partner-logo img {
    max-height: 36px;
  }

  body.page-id-151 .site-footer.premium-footer .footer-bottom {
    gap: 3px;
    padding-top: 7px;
    font-size: .58rem;
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-151 .agd-live-scene::before,
  body.page-id-151 .agd-live-scene::after {
    display: none;
  }
}
