/* ==========================================================================
   PAGE: HOME MOBILE PORTRAIT OVERRIDES
   ========================================================================== */

@media (max-width: 959px) {
  .template-home .header-logo .logo-small {
    height: 56px;
  }

  .template-home .hero {
    min-height: 88svh;
    padding: calc(var(--logo-height) + 24px) var(--gap) 88px;
    align-items: center;
  }

  .template-home .hero-content h1 {
    font-size: clamp(92px, 24vw, 168px);
    line-height: 0.92;
  }

  .template-home .hero-content .hero-subtitle {
    font-size: clamp(16px, 4.5vw, 22px);
    /* -0.55em glued the subtitle to the bottom of the title letters */
    margin-top: -0.15em;
    letter-spacing: 0.03em;
  }

  .template-home .home-construction-band {
    padding: 8px 0;
  }

  .template-home .home-construction-track {
    gap: 2rem;
  }

  .template-home .home-construction-track span {
    font-size: clamp(16px, 4.5vw, 24px);
  }

  .home-split-hero {
    min-height: auto;
  }

  .home-split-block {
    min-height: 52svh;
  }

  .home-split-title {
    --home-title-size: clamp(28px, 10vw, 56px);
    padding-bottom: 20px;
  }

  .home-split-lieux-communs .home-split-title {
    --home-title-size: clamp(56px, 18vw, 108px);
  }
}
/* ACTUALITÉS sur téléphone, maquette 326:372 (393px) : « PROCHAINS
   ÉVÉNEMENTS » sur toute la largeur (encre de 8,5 à 379,5), capitales 18px
   sous la vidéo ; bande de 5px 10px sous la ligne de base ; vignettes de
   362×289 dans des marges de 16px, une par ligne ; date Plaak 44B à la
   largeur dessinée (312px), 7px du bord, ligne de base 10px au-dessus du bas
   de l'image ; légendes de 13px 12px sous l'image ; 21px avant l'image
   suivante. */
@media (max-width: 959px) {
  .home-news {
    padding-bottom: 10vw;
  }

  .home-news-title {
    margin: calc(4.7vw - 0.15em) 0 calc(2.54vw - 0.15em);
    padding: 0 2.16vw;
    font-size: 29.55vw;
  }

  .home-news-title-wide {
    display: none;
  }

  .home-news-title-phone {
    display: inline;
    white-space: nowrap;
  }

  .home-news-band {
    height: 1.27vw;
  }

  .home-news-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5.34vw;
    margin-top: 4.45vw;
    padding: 0 4.07vw;
  }

  .home-news-thumb {
    aspect-ratio: 362 / 289;
  }

  .home-news-date {
    left: 1.78vw;
    bottom: calc(2.54vw - 0.125em);
    font-size: 20vw;
  }

  .home-news-caption {
    column-gap: 8px;
    margin-top: 3.05vw;
    padding-right: 0;
    font-size: max(12px, 3.31vw);
  }

  .home-news-item:not(:last-child) .home-news-caption {
    padding-right: 0;
  }

  /* lieu à la moitié de l'image (198px pour une image de 16 à 378) */
  .home-news-project {
    min-width: 50%;
    font-size: max(12px, 3.31vw);
  }
}
