/* ======================================================================
   ADAPTATIONS — tablette et mobile, toutes sections
   Chargée après les feuilles des sections : elle les corrige selon la largeur d'écran.
   ====================================================================== */

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header .brand-mark {
    width: 26px;
    height: 26px;
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--ink-dark);
  }

  .mobile-brand em {
    font-style: italic;
    font-weight: 430;
  }

  .hero-art {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    aspect-ratio: 9 / 12;
    flex: none;
  }

  .hero-portrait {
    width: 100%;
    bottom: 0;
  }

  .hero-portrait::before,
  .hero-portrait::after { display: none; }

  .hero-art::after { height: 17%; }

  .hero-main {
    flex: 1;
    padding-top: 106px;
    padding-bottom: 20px;
    background: var(--hero-sky-row, url('../../assets/hero/hero-sky-row.png')) center / 100% 100% no-repeat;
  }

  .hero-copy { max-width: 100%; }
  .hero-bottom { position: absolute; bottom: 0; padding-bottom: 22px; }
  .hero-motion-toggle {
    bottom: 84px;
    right: 14px;
  }

  .hero-title {
    --hero-line: calc((100vw - 48px) / 7.81);
    --hero-line-ratio: 0.7966; /* line 1 at weight 200 ÷ line 2 at weight 500 */
  }

  .hero-title span { font-weight: 200; }

  .hero-refs {
    display: block;
    max-width: none;
    padding-top: 0;
    border-top: 0;
  }

  .tools-label { margin-bottom: 14px; }
  .tools-logos { gap: 28px; }

  .tool-item svg {
    width: 26px;
    height: 26px;
  }

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

@media (min-width: 721px) {
  .mobile-brand {
    display: none;
  }
}
