/* ==========================================================================
   PAGE: CRÉDITS — maquette « CRÉDITS + MENTIONS LÉGALES » (cadre 520:1025,
   1280×1279). Texte Plaak 44B de 39px en capitales, interligne 42px, colonne
   de 747px à x = 281, première ligne de base à y = 162 ; cinq photos de
   format 3/2 autour et sous le texte (le texte passe devant). Mesures en vw
   du cadre de 1280 (1vw = 12,8px). Pas de cadre mobile (338:1143 est vide) :
   sur téléphone, le texte puis les photos en deux colonnes.
   ========================================================================== */

.credits-page {
  position: relative;
  /* le panneau dessiné finit à y = 864, le pied de page commence à 873 */
  min-height: 68.2vw;
  /* haut du texte à 10,34vw : sa première ligne de base tombe à 12,69vw
     (162px à 1280), comme dessiné */
  padding: 10.34vw 1.875vw 4vw 21.95vw;
}

/* Titre pour les lecteurs d'écran : la maquette n'en dessine pas */
.credits-title {
  position: absolute;
  top: 10.34vw;
  left: 21.95vw;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.credits-text {
  position: relative;
  z-index: 2;
  width: 58.36vw;
  max-width: 100%;
  font-family: 'Plaak44B', var(--font-title);
  font-size: 3.047vw;
  /* 42px pour 39px */
  line-height: 1.077;
  letter-spacing: 0;
  font-variant-ligatures: none;
  text-transform: uppercase;
  color: var(--fg);
  overflow-wrap: break-word;
}

/* Les blocs se suivent ligne à ligne, sans blanc entre eux */
.credits-text p {
  margin: 0;
}

.credits-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.credits-text a:hover,
.credits-text a:focus-visible {
  color: var(--color-orange);
}

.credits-photo {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: cover;
}

/* Places et tailles des cinq photos du cadre (x, y, l, h à 1280) */
.credits-photo-1 { left: 8.52vw;  top: 18.52vw; width: 13.44vw; height: 9.14vw; }  /* 109, 237, 172×117 */
.credits-photo-2 { left: 72.34vw; top: 21.33vw; width: 18.52vw; height: 12.27vw; } /* 926, 273, 237×157 */
.credits-photo-3 { left: 8.52vw;  top: 37.97vw; width: 21.88vw; height: 14.53vw; } /* 109, 486, 280×186 */
.credits-photo-4 { left: 72.42vw; top: 41.09vw; width: 17.19vw; height: 11.48vw; } /* 927, 526, 220×147 */
.credits-photo-5 { left: 46.95vw; top: 53.05vw; width: 14.61vw; height: 9.69vw; }  /* 601, 679, 187×124 */

@media (max-width: 959px) {
  .credits-page {
    min-height: 0;
    padding: calc(var(--header-offset) + 8px) var(--gap) 40px;
  }

  .credits-title {
    top: calc(var(--header-offset) + 8px);
    left: var(--gap);
  }

  .credits-text {
    width: 100%;
    font-size: clamp(20px, 5.4vw, 30px);
  }

  .credits-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 32px;
  }

  .credits-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  /* une cinquième photo seule prend la largeur */
  .credits-photo:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
