:root {
  color-scheme: light;
  --encre: #0f1512;
  --texte: #39423c;
  --gris: #5b655f;
  --fond: #ffffff;
  --fond-doux: #f2f4ef;
  --trait: #dfe3dc;
  --gazon: #1c5a2c;
  --gazon-clair: #9bdcaa;
  --erreur: #b3261e;
  --erreur-clair: #ffb4ab;
  --marge: clamp(16px, 4vw, 56px);
  --espace: clamp(64px, 10vw, 136px);
  --police: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hauteur-entete: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--hauteur-entete) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--encre);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
}

h2 {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
}

p {
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--gazon);
  outline-offset: 3px;
}

.insecable {
  white-space: nowrap;
}

.aller-contenu {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 10px 18px;
  background: var(--encre);
  color: #fff;
  border-radius: 999px;

  &:focus {
    top: 12px;
  }
}

/* Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--encre);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;

  &:hover {
    background: var(--gazon);
  }
}

.bouton-clair {
  background: #fff;
  color: var(--encre);

  &:hover {
    background: var(--gazon-clair);
    color: var(--encre);
  }
}

.bouton-petit {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}

/* En-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--hauteur-entete);
  padding: 10px var(--marge);
  background: #fff;
  border-bottom: 1px solid var(--trait);
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 78%;
  text-decoration: none;
  white-space: nowrap;

  img {
    width: 40px;
    height: 40px;
  }
}

/* Le bouton et le lien Accueil n'existent que dans le menu du téléphone */
.menu-bouton,
.menu-seul {
  display: none;
}

/* Sur téléphone, ce bloc est un popover : sur grand écran, il reste dans la ligne de l'en-tête */
.entete nav {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;

  a {
    white-space: nowrap;
  }

  a:not(.bouton) {
    padding: 10px 0;
    font-weight: 600;
    text-decoration: none;
    color: var(--encre);

    &:hover,
    &[aria-current="page"] {
      color: var(--gazon);
      text-decoration: underline;
      text-underline-offset: 6px;
      text-decoration-thickness: 2px;
    }
  }
}

/* Grande photo d'ouverture */

.ouverture {
  /* Le format 16:9 garde les têtes et le ballon entiers ; le texte reste visible sans défiler */
  --hauteur-ouverture: max(calc(100svh - var(--hauteur-entete)), min(56.25vw, 105svh));

  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--hauteur-ouverture);
  background: var(--encre);
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Le voile suit le texte, en bas à droite : le visage de la joueuse en haut à droite reste net et lumineux */
    background: linear-gradient(to top left, rgb(8 14 10 / 0.82) 0%, rgb(8 14 10 / 0.5) 26%, rgb(8 14 10 / 0) 48%);
  }

  img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
  }
}

.ouverture-texte {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 8px;
  width: 100%;
  padding: var(--marge);
  /* Le texte à droite, sur la pelouse libre, reste visible sans défiler */
  padding-bottom: clamp(72px, 15vh, 140px);
  color: #fff;
  text-align: right;

  h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5.4vw, 5.5rem);

    span {
      display: block;
      margin-top: 8px;
      font-size: 0.46em;
      font-weight: 700;
      line-height: 1.12;
      max-width: none;
      white-space: nowrap;
    }
  }

  .bouton {
    margin-top: 14px;
  }
}

.surtitre {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ouverture-texte .surtitre {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
}

/* Sections */

.section {
  padding: var(--espace) var(--marge);
}

.section-douce {
  background: var(--fond-doux);
}

.manifeste {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;

  .suite {
    display: grid;
    justify-items: start;
    gap: 28px;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.5;
  }
}

/* Mosaïque de l'accueil, pensée pour des photos verticales */

.mosaique {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  padding: 0 clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px);

  .colonne {
    display: grid;
    align-content: start;
    gap: clamp(8px, 1.2vw, 16px);
  }

  .colonne:nth-child(2) {
    margin-top: clamp(32px, 8vw, 120px);
  }

  a {
    display: block;
    overflow: hidden;
  }

  img {
    width: 100%;
    transition: scale 0.5s ease;
  }

  a:hover img {
    scale: 1.03;
  }
}

/* Bandeau plein écran avec texte */

.bandeau {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: min(92svh, 62vw);
  background: var(--encre);
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgb(8 14 10 / 0.62) 0%, rgb(8 14 10 / 0.3) 34%, rgb(8 14 10 / 0) 58%);
  }

  img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  div {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: end;
    gap: 24px;
    padding: clamp(32px, 7vw, 104px) var(--marge) var(--marge);
    text-align: right;
  }

  h2 {
    color: #fff;
    max-width: 14ch;
    font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  }
}

/* Ce que je propose */

.titre-section {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.offres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: 0 0 clamp(32px, 5vw, 56px);
  padding: 0;
  list-style: none;

  li {
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 20px;
    border-top: 3px solid var(--encre);
  }
}

.note {
  margin-bottom: 28px;
}

/* Reportages */

.cartes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.cartes-grandes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.carte {
  display: grid;
  align-content: start;
  gap: 4px;
  text-decoration: none;

  .cadre {
    margin-bottom: 12px;
    overflow: hidden;
  }

  img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: scale 0.5s ease;
  }

  /* Garde les pieds de la joueuse dans le cadre */
  .couverture-bas {
    object-position: 50% 100%;
  }

  &:hover img {
    scale: 1.03;
  }

  &:hover h3 {
    color: var(--gazon);
  }

  span {
    color: var(--gris);
    font-size: 0.9375rem;
  }
}

/* Pourquoi moi */

.terrain {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;

  .suite {
    display: grid;
    justify-items: start;
    gap: 20px;
  }

  img {
    width: 100%;
  }
}

/* Photo de profil ronde d'À propos, à côté du texte */
.terrain-portrait {
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);

  img {
    width: 380px;
    border-radius: 50%;
  }
}

/* Haut des pages intérieures */

.tete-page {
  display: grid;
  gap: 16px;
  padding: clamp(40px, 7vw, 96px) var(--marge) clamp(32px, 5vw, 64px);

  .surtitre {
    color: var(--gazon);
  }
}

/* Galerie d'un reportage */

.galerie {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  padding: 0 clamp(8px, 1.2vw, 16px);

  a {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
  }

  a:hover img {
    scale: 1.02;
  }

  .s2 {
    grid-column: span 2;
  }

  .s3 {
    grid-column: span 3;
  }

  .s4 {
    grid-column: span 4;
  }

  .s6 {
    grid-column: span 6;
  }
}

.autres {
  display: grid;
  gap: 8px;
  padding: clamp(40px, 6vw, 72px) var(--marge);

  ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  a {
    font-weight: 700;
    color: var(--encre);
    text-underline-offset: 5px;

    &:hover {
      color: var(--gazon);
    }
  }
}

/* Contact, sur fond sombre */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  padding: var(--espace) var(--marge);
  background: linear-gradient(135deg, #0b1f13 0%, #123f24 58%, #0f1512 100%);
  color: #e8efe9;

  h1,
  h2 {
    color: #fff;
  }

  a {
    color: #fff;
  }

  :focus-visible {
    outline-color: #fff;
  }
}

.contact-texte {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 20px;
}

.coordonnees {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;

  a {
    display: inline-block;
    padding: 6px 0;
    font-weight: 700;
    text-underline-offset: 5px;
  }
}

.formulaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(16px, 2vw, 32px);
  align-content: start;
}

.champ {
  display: grid;
  gap: 8px;
  align-content: start;

  label {
    font-weight: 700;
  }

  input,
  textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid rgb(255 255 255 / 0.55);
    border-radius: 14px;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    font: inherit;
    /* Garde les pictogrammes natifs lisibles sur le fond sombre */
    color-scheme: dark;

    &:focus {
      outline: 0;
      border-color: #fff;
      box-shadow: 0 0 0 1.5px #fff;
    }
  }

  textarea {
    min-height: 140px;
    resize: vertical;
  }

  input:user-invalid,
  textarea:user-invalid {
    border-color: var(--erreur-clair);
  }

  input:user-invalid + .erreur,
  textarea:user-invalid + .erreur {
    display: block;
  }
}

.champ-large {
  grid-column: 1 / -1;
}

.erreur {
  display: none;
  color: var(--erreur-clair);
  font-size: 0.9375rem;
  font-weight: 600;
}

.formulaire-pied {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.formulaire-info {
  font-size: 0.9375rem;
  color: #c7d4ca;
}

.formulaire-statut {
  font-weight: 700;
}

/* Visionneuse */

.visionneuse {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 12 10 / 0.97);
  color: #fff;

  &[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  &:modal {
    overscroll-behavior: contain;
  }

  &::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
    background: rgb(8 12 10 / 0.97);
  }

  form {
    display: flex;
    justify-content: flex-end;
    padding: 12px var(--marge) 8px;
  }

  figure {
    display: grid;
    place-items: center;
    min-height: 0;
    margin: 0;
    padding: 0 8px;
  }

  img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
  }

  .commandes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px var(--marge) max(14px, env(safe-area-inset-bottom));
  }

  :focus-visible {
    outline-color: #fff;
  }
}

.visionneuse-bouton {
  min-width: 48px;
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;

  &:hover {
    background: rgb(255 255 255 / 0.14);
  }
}

/* Texte des mentions légales */

.texte-long {
  display: grid;
  gap: 16px;
  padding: 0 var(--marge) var(--espace);

  h2 {
    margin-top: 32px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }

  .a-completer {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3b0;
    color: var(--encre);
  }
}

/* Pied de page */

.pied {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vw, 72px) var(--marge) 28px;
  background: var(--encre);
  color: #c7d0ca;
  font-size: 0.9875rem;

  a {
    display: inline-block;
    padding: 4px 0;
    color: #fff;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      text-underline-offset: 4px;
    }
  }

  :focus-visible {
    outline-color: #fff;
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pied-nom {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.1;
  }

  .copyright {
    grid-column: 1 / -1;
    max-width: none;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 0.18);
    font-size: 0.875rem;

    /* Dans une phrase, le lien reste souligné pour se repérer */
    a {
      padding: 0;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
}

/* Raccourcis de contact, sur téléphone uniquement */

.barre-contact {
  display: none;
}

/* Apparition légère au défilement, sans effet si le navigateur ne le gère pas */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  @supports (animation-timeline: view()) {
    .apparait {
      animation: apparait linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }
  }
}

@keyframes apparait {
  from {
    opacity: 0;
    translate: 0 28px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Accueil : la photo reste en place, grossit un peu et s'efface pendant que la suite de la page glisse par-dessus */

@media (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .ouverture {
      position: sticky;
      /* Si la photo dépasse de l'écran, elle remonte jusqu'à montrer son bas avant de s'immobiliser */
      top: min(var(--hauteur-entete), calc(100svh - var(--hauteur-ouverture)));
      animation: ouverture-efface linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;

      /* scroll(root) et non scroll() : overflow: hidden fait de .ouverture le défilement le plus proche */
      img {
        animation: ouverture-zoom linear both;
        animation-timeline: scroll(root);
        animation-range: 0 75vh;
      }
    }

    .ouverture-texte {
      animation: ouverture-texte-efface linear both;
      animation-timeline: scroll(root);
      animation-range: 0 35vh;
    }

    .accueil-debut > :not(.ouverture) {
      position: relative;
      z-index: 1;
      background: var(--fond);
    }
  }
}

@keyframes ouverture-efface {
  15% {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes ouverture-zoom {
  to {
    scale: 1.12;
  }
}

@keyframes ouverture-texte-efface {
  to {
    opacity: 0;
    translate: 0 -40px;
  }
}

/* Tablette et téléphone */

@media (max-width: 900px) {
  .manifeste,
  .terrain,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .offres {
    grid-template-columns: minmax(0, 1fr);
  }

  .cartes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pied {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pied-presentation {
    grid-column: 1 / -1;
  }

  .bandeau {
    min-height: 78vw;
  }
}

@media (max-width: 720px) {
  :root {
    --hauteur-entete: 64px;
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  /* La barre du bas remplace le bouton de contact de l'en-tête */
  .entete .bouton {
    display: none;
  }

  /* Le logo, le nom et le menu déroulant. Sans popover, les liens restent dans l'en-tête */
  @supports selector(:popover-open) {
    .entete {
      padding-block: 8px;
    }

    .menu-bouton {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 8px 16px;
      border: 1px solid var(--trait);
      border-radius: 999px;
      background: #fff;
      color: var(--encre);
      font: inherit;
      font-weight: 700;
      cursor: pointer;

      &:has(+ nav:popover-open) {
        border-color: var(--encre);
        background: var(--encre);
        color: #fff;
      }
    }

    .menu-icone {
      width: 18px;
      height: 12px;
      border-block: 2px solid currentColor;
      background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat;
    }

    .entete nav {
      position: fixed;
      inset: var(--hauteur-entete) 0 auto;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      width: 100%;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--trait);
      background: #fff;
      color: var(--encre);
      box-shadow: 0 16px 32px rgb(8 14 10 / 0.16);

      &:popover-open {
        display: flex;
      }

      a:not(.bouton) {
        padding: 14px var(--marge);
        border-bottom: 1px solid var(--trait);
        font-size: 1.25rem;
      }

      .menu-seul {
        display: block;
      }

      .bouton {
        display: flex;
        margin: 16px var(--marge) 0;
        min-height: 52px;
        font-size: 1.0625rem;
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .entete nav {
        opacity: 0;
        translate: 0 -8px;
        transition: opacity 0.18s ease, translate 0.18s ease, display 0.18s allow-discrete, overlay 0.18s allow-discrete;

        &:popover-open {
          opacity: 1;
          translate: 0 0;

          @starting-style {
            opacity: 0;
            translate: 0 -8px;
          }
        }
      }
    }
  }

  .ouverture {
    --hauteur-ouverture: calc(100svh - var(--hauteur-entete) - 60px - env(safe-area-inset-bottom));
  }

  .mosaique {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    .colonne {
      display: contents;
    }

    .colonne:last-child a:last-child {
      display: none;
    }
  }

  .galerie {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    .s2,
    .s3 {
      grid-column: span 1;
    }

    .s4,
    .s6 {
      grid-column: span 2;
    }

    .s2:last-child:nth-child(odd),
    .s3:last-child:nth-child(odd) {
      grid-column: span 2;
    }
  }

  .formulaire {
    grid-template-columns: minmax(0, 1fr);
  }

  .terrain-portrait img {
    width: 260px;
  }

  /* Sur téléphone aussi, le titre se lit sur la photo */
  .ouverture {
    &::after {
      display: none;
    }

    img {
      object-position: 41% 50%;
    }
  }

  /* À gauche, le titre laisse le ballon visible à droite. Le dégradé suit la hauteur du texte, quel que soit l'écran */
  .ouverture-texte {
    justify-items: start;
    padding-top: 72px;
    padding-bottom: 24px;
    background: linear-gradient(to top, rgb(8 14 10 / 0.85) 0%, rgb(8 14 10 / 0.62) 62%, rgb(8 14 10 / 0) 100%);
    text-align: left;

    /* Le nom est déjà dans l'en-tête, juste au-dessus */
    .surtitre {
      display: none;
    }

    h1 {
      font-size: clamp(2.75rem, 13vw, 3.25rem);

      span {
        font-size: 1.125rem;
        white-space: normal;
      }
    }

    .bouton {
      margin-top: 10px;
      padding-inline: 16px;
    }
  }

  /* Sur téléphone aussi, le texte se lit sur la photo : recadrée en vertical, elle garde la place au-dessus de la joueuse */
  .bandeau {
    display: block;
    min-height: 0;

    &::after {
      display: none;
    }

    img {
      position: static;
      height: auto;
    }

    /* Le titre en grand, sur toute la largeur, au-dessus de la tête de la joueuse */
    div {
      position: absolute;
      inset: 0 0 auto;
      justify-items: start;
      gap: 14px;
      padding: 28px var(--marge) 56px;
      background: linear-gradient(to bottom, rgb(8 14 10 / 0.78) 0%, rgb(8 14 10 / 0.58) 62%, rgb(8 14 10 / 0) 100%);
      text-align: left;
    }

    h2 {
      font-size: clamp(2.75rem, 14.6vw, 5.5rem);
    }
  }

  .barre-contact {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--encre);

    a {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 60px;
      color: #fff;
      font-weight: 700;
      text-decoration: none;
      border-left: 1px solid rgb(255 255 255 / 0.2);

      &:first-child {
        border-left: 0;
      }
    }

    a:focus-visible {
      outline-color: #fff;
      outline-offset: -5px;
    }
  }
}

/* Écran vertical : la photo verticale garde les deux joueuses entières, le texte passe sous leurs pieds */
@media (min-width: 721px) and (orientation: portrait) {
  .ouverture img {
    object-position: 50% 100%;
  }

  .ouverture-texte {
    padding-bottom: var(--marge);
  }
}

/* Téléphone à la verticale : la photo remplit l'écran, calée à droite pour garder entière la joueuse en bleu */
@media (max-width: 720px) and (orientation: portrait) {
  .ouverture img {
    object-position: 100% 50%;
  }
}

/* Sans menu déroulant, les liens restent dans l'en-tête et le nom leur laisse la place */
@supports not selector(:popover-open) {
  @media (max-width: 380px) {
    .marque span {
      display: none;
    }
  }
}

@media (max-width: 560px) {
  .cartes-grandes {
    grid-template-columns: minmax(0, 1fr);
  }
}
