/* Correctifs audit 2026-06-02, charges apres les feuilles principales. */
body.home-page .hero .hero-title,
body.home-page .hero .hero-title em {
  color: #fffaf2 !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

body.home-page .hero .hero-sub,
body.home-page .hero .hero-eyebrow {
  color: rgba(255, 250, 242, 0.96) !important;
  opacity: 1 !important;
}

body.home-page .hero-left {
  opacity: 1 !important;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    overflow-wrap: normal;
  }

  body.home-page .header-inner {
    gap: 0.45rem !important;
    padding-inline: 0.65rem !important;
  }

  .site-header--brand .header-inner,
  body.home-page .header-inner {
    display: grid !important;
    grid-template-columns: minmax(6.6rem, 1fr) auto auto !important;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .site-header--brand .brand-logo,
  body.home-page .brand-logo {
    width: 7.45rem;
    flex: 0 1 7.45rem;
    min-width: 0;
  }

  .site-header--brand .brand-logo img {
    max-width: 100%;
    height: auto;
  }

  .site-header--brand .nav-actions,
  body.home-page .nav-actions {
    min-width: 0;
    gap: 0.3rem !important;
    justify-self: end;
    flex-shrink: 0;
  }

  .site-header--brand .header-cta--phone,
  body.home-page .header-cta--phone {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding-inline: 0 !important;
    font-size: 0 !important;
    white-space: nowrap;
  }

  .site-header--brand .header-cta--phone::before,
  body.home-page .header-cta--phone::before {
    content: "☎";
    font-size: 1rem;
    line-height: 1;
  }

  body.home-page .hero .hero-title {
    max-width: 100% !important;
    font-size: clamp(2rem, 8.6vw, 2.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body.home-page .hero {
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }

  body.home-page .hero-left {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: clamp(1rem, 4.8vw, 2rem) !important;
    padding-block: clamp(4.5rem, 10vw, 6rem) 2rem !important;
    box-sizing: border-box !important;
  }

  body.home-page .hero-right {
    display: block !important;
    order: 2 !important;
    width: 100% !important;
    padding: 0 clamp(1rem, 4vw, 2rem) 4rem !important;
    box-sizing: border-box !important;
  }

  body.home-page .hero-image-fill {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 0 !important;
  }

  body.home-page .hero-portrait {
    width: min(72vw, 18rem) !important;
    max-width: 18rem !important;
    margin: 0 auto !important;
  }

  body.home-page .hero-sub {
    max-width: 100% !important;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem) !important;
    line-height: 1.7 !important;
  }

  body.home-page .hero-actions {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.home-page .hero-actions a {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.home-page .hero,
  body.home-page .hero-left,
  .page-hero,
  .page-hero-inner,
  .prestation-hero,
  .prestation-hero-inner,
  .forme-container,
  .blog-container,
  .content-section,
  .container,
  main section {
    max-width: 100%;
    box-sizing: border-box;
  }

  body.home-page .hero-title,
  body.home-page .hero-sub,
  .page-hero h1,
  .page-hero p,
  .prestation-hero h1,
  .prestation-hero p,
  .forme-title,
  .forme-subtitle,
  .field,
  .field input,
  .field textarea {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (max-width: 640px) {
  .site-header--brand .header-inner,
  body.home-page .header-inner {
    grid-template-columns: minmax(6.2rem, 1fr) auto !important;
    padding-inline: 0.6rem 1rem !important;
  }

  .site-header--brand .brand-logo,
  body.home-page .brand-logo {
    width: 7rem !important;
    flex-basis: 7rem !important;
  }

  body.home-page .hero-left {
    padding-inline: 1.05rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.home-page .hero .hero-title {
    width: min(20rem, calc(100vw - 4.4rem)) !important;
    max-width: min(20rem, calc(100vw - 4.4rem)) !important;
    font-size: clamp(1.85rem, 7.6vw, 2.15rem) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    margin-bottom: 1.25rem !important;
  }

  body.home-page .hero-sub {
    width: min(20rem, calc(100vw - 4.4rem)) !important;
    max-width: min(20rem, calc(100vw - 4.4rem)) !important;
    margin-top: 0 !important;
    padding-top: 1.6rem !important;
    display: block !important;
    position: relative !important;
  }

  body.home-page .nav-actions {
    margin-right: 1.1rem !important;
  }
}
