/**
 * Page gateway (accueil sans audience) — téléphone uniquement (≤640px).
 * Desktop et tablette inchangés.
 */
@media (max-width: 640px) {
  body.page-home:not([data-audience]) .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100dvh;
    padding:
      max(0.5rem, env(safe-area-inset-top, 0px))
      1.25rem
      max(1.25rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  body.page-home:not([data-audience]) .hero-content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    padding: 0 !important;
    box-sizing: border-box;
  }

  body.page-home:not([data-audience]) .gateway-brand {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
    align-self: center;
    gap: 0.65rem;
    margin: calc(env(safe-area-inset-top, 0px) + clamp(2.25rem, 10.5vh, 3.25rem)) auto 0;
    width: 100%;
    max-width: 17rem;
    pointer-events: none;
  }

  body.page-home:not([data-audience]) .gateway-brand-mark {
    width: 4.5rem;
    margin-inline: auto;
    filter: drop-shadow(0 2px 6px rgba(5, 21, 37, 0.28));
  }

  body.page-home:not([data-audience]) .gateway-brand-text {
    gap: 0.3rem;
    width: 100%;
  }

  body.page-home:not([data-audience]) .gateway-brand-name {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 4px rgba(5, 21, 37, 0.45);
  }

  body.page-home:not([data-audience]) .gateway-brand-name-light {
    font-weight: 300;
  }

  body.page-home:not([data-audience]) .gateway-brand-name-bold {
    font-weight: 700;
  }

  body.page-home:not([data-audience]) .gateway-brand-tagline {
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: none;
  }

  body.page-home:not([data-audience]) .audience-gateway {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-top: clamp(0.625rem, 2.75vh, 1.125rem);
  }

  body.page-home:not([data-audience]) .audience-gateway h1 {
    font-family: var(--font-sans) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.015em;
    max-width: 20ch;
    margin: 0 auto 0.35rem;
    text-wrap: balance;
    hyphens: none;
    text-shadow: 0 1px 8px rgba(5, 21, 37, 0.35);
  }

  body.page-home:not([data-audience]) .audience-gateway .hero-lead {
    font-family: var(--font-sans) !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    max-width: 28ch;
    margin: 0 auto 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 6px rgba(5, 21, 37, 0.28);
  }

  body.page-home:not([data-audience]) .audience-cards {
    width: 100%;
    margin: 0;
    gap: 0.625rem;
  }

  body.page-home:not([data-audience]) .audience-card {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: center;
    width: 100%;
    padding: 0.875rem 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(5, 21, 37, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  }

  body.page-home:not([data-audience]) .audience-card:active {
    transform: scale(0.985);
    background: rgba(255, 255, 255, 0.98);
  }

  body.page-home:not([data-audience]) .audience-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(5, 21, 37, 0.1);
  }

  body.page-home:not([data-audience]) .audience-card::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / 3;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid var(--blue-700);
    border-bottom: 1.5px solid var(--blue-700);
    transform: rotate(-45deg);
    opacity: 0.45;
    align-self: center;
    justify-self: end;
  }

  body.page-home:not([data-audience]) .audience-card-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--blue-50);
    color: var(--blue-800);
  }

  body.page-home:not([data-audience]) .audience-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  body.page-home:not([data-audience]) .audience-card strong {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-sans);
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.2;
    color: var(--blue-900);
  }

  body.page-home:not([data-audience]) .audience-card span:last-child {
    grid-column: 2;
    grid-row: 2;
    font-family: var(--font-sans);
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    color: var(--gray-600);
  }

  body.page-home:not([data-audience]) .hero-bg-photo--gateway img {
    object-position: 50% 30%;
  }
}

@media (max-width: 380px) {
  body.page-home:not([data-audience]) .hero {
    padding-inline: 1rem;
  }

  body.page-home:not([data-audience]) .hero-content {
    max-width: 100%;
  }

  body.page-home:not([data-audience]) .audience-gateway h1 {
    font-size: 1.125rem !important;
    max-width: 18ch;
  }

  body.page-home:not([data-audience]) .audience-card {
    padding: 0.75rem 0.875rem;
    column-gap: 0.625rem;
  }
}
