/* Durcissement responsive transversal — 13-08-2026.
   Charge en dernier dans les layouts public et tunnel. */

html {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
svg {
  max-width: 100%;
}

.nav-menu-cta {
  display: none !important;
}

.ov-page-hero > *,
.how-steps article > *,
.flow-main > * {
  min-width: 0;
}

/* Les hubs Guide utilisent leur propre gabarit et commencaient a y=0 sous
   les deux barres fixes. */
.gd-page {
  padding-top: 136px;
}

/* La navigation complète n'a matériellement plus assez de place avant
   1180 px : on bascule donc en menu compact avant que ses boutons se tordent. */
@media (max-width: 1179px) {
  .ov-header,
  .ov-header.is-scrolled,
  body:not(.ov-home) .ov-header,
  body.ov-home .ov-header.is-scrolled {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .ov-header .menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
    color: inherit;
  }

  .ov-header > .nav-cta {
    display: none;
  }

  .ov-header .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff !important;
    color: var(--text-950);
    box-shadow: var(--shadow);
  }

  .ov-header .nav-links.open,
  .ov-header .nav-links.is-open {
    display: flex;
    flex-direction: column;
  }

  .ov-header .nav-links a {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1ede2;
    border-radius: 10px;
    font-size: .94rem;
  }

  .ov-header .nav-follow {
    margin-left: 0;
    padding-left: 14px;
    border-left: 0;
  }

  .ov-header .nav-follow::before {
    display: none;
  }

  .ov-header .nav-links .nav-menu-cta {
    display: inline-flex !important;
    justify-content: center;
    margin-top: 8px;
    border: 0;
    color: #151515 !important;
    background: var(--gold-500) !important;
    font-weight: 800;
  }

  .ov-header .nav-menu-cta .ov-icone {
    color: #151515;
  }
}

@media (max-width: 800px) {
  .ov-page-hero {
    min-width: 0;
  }

  .ov-page-hero h1,
  .ov-page-hero p,
  .how-steps h2 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .ov-page-hero .btn,
  .how-help .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .gd-page {
    padding-top: 118px;
  }

  /* Le libelle reste porte par aria-label. Le conserver visuellement hors de
     la pastille repliee elargissait encore le document de plus de 300 px. */
  .pf-wa__texte {
    display: none;
  }
}

@media (max-width: 480px) {
  .flow-nav {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
  }

  .flow-nav .ov-brand--image {
    width: 148px;
    max-width: 148px;
    flex-basis: 148px;
  }

  .flow-nav .ov-brand__visual {
    max-width: 148px;
  }

  .flow-nav .secure-pill {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0 !important;
  }

  .flow-nav .secure-pill__copy {
    display: none;
  }

  .flow-contact {
    gap: 0;
  }
}

@media (max-width: 360px) {
  .ov-page-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ov-page-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.2rem);
  }

  .ov-header,
  .ov-header.is-scrolled,
  body:not(.ov-home) .ov-header,
  body.ov-home .ov-header.is-scrolled {
    width: calc(100% - 20px);
    padding-left: 13px;
  }

  .ov-brand--image {
    width: 154px;
    max-width: 154px;
    flex-basis: 154px;
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
