/* ==========================================================================
   PAGE: A PROPOS
   ========================================================================== */

/* Intro section: page-specific split hero layout */
.apropos-intro {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.apropos-intro-media {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

.apropos-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apropos-intro-content {
  padding: var(--header-offset) var(--gap) var(--section-padding-y);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 10;
}

.apropos-intro-content h1 {
  font-size: var(--size-h1);
  letter-spacing: 0;
  line-height: 0.75;
  margin: 0 0 10px;
}

/* Téléphone. Maquette « A propos mobile » (cadre 393, 326:504) : « Conserver
   la superposition titre avec image » ; le titre (100px) commence à 25,4vw
   du bord et sa ligne de base tombe 17px (4,33vw) sous le bas de la photo,
   ses capitales en recouvrent le bas. */
@media (max-width: 959px) {
  .apropos-intro-content {
    padding-top: 0;
  }

  .apropos-intro-content h1 {
    position: relative;
    margin: calc(4.33vw - 0.725 * var(--size-h1)) 0 10px calc(25.4vw - 2 * var(--gap));
  }
}

.apropos-subtitle {
  font-family: var(--font-subtitle);
  /* Scales from 20px to 30px */
  font-size: clamp(20px, 3vw, 30px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-top: 0;
  margin-right: 20%;
  margin-bottom: clamp(20px, 4vh, 40px);
}

.apropos-text {
  /* Scales from 16px to 22px */
  font-size: clamp(16px, 2vw, var(--text-md));
  max-width: min(100%, 37.5rem);
  margin-left: 20%;
}

.apropos-text p {
  margin: 0 0 1em;
}

.apropos-text p:last-child {
  margin-bottom: 0;
}

.apropos-text strong {
  font-weight: bold;
}

/* Desktop. Maquette « A PROPOS » (cadre 1280, 1009:646), mesures en vw de ce
   cadre : photo 626×822 à 1,875vw du bord, son haut sous le logo ; titre à
   46,72vw, à cheval sur le bord droit de la photo (qui finit à 50,78vw), sa
   ligne de base 228px (17,8vw) sous le haut de la photo ; sous-titre à
   51,8vw sur 29,45vw, première ligne de base 49px sous celle du titre ;
   texte à 66,25vw sur 31,9vw (bord droit à 24px de l'écran), première ligne
   de base 84px sous la dernière du sous-titre. Photo et texte défilent
   ensemble, comme dessiné. Thomas, 16/11/2026. Sous 960px : empilé. */
@media (min-width: 960px) {
  .apropos-intro {
    grid-template-columns: 1.875vw 48.9vw minmax(0, 1fr);
    align-items: start;
    padding: max(10.08vw, var(--header-offset)) 0 0;
  }

  .apropos-intro-media {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 626 / 822;
  }

  .apropos-intro-content {
    grid-column: 2 / 4;
    grid-row: 1;
    display: block;
    padding: 0 0 var(--section-padding-y) 44.84vw;
  }

  /* Titre : échelle commune (215px à 1280, 227 au plus) ; sa ligne de base
     tombe à 0,725em du haut de sa ligne (interligne 0,75, Plaak 21A) */
  .apropos-intro-content h1 {
    margin: calc(17.8vw - 0.725 * var(--size-h1)) 0 0;
  }

  /* Maquette : Plaak 56 à 25px, interligne plein (24px) */
  .apropos-subtitle {
    width: 29.45vw;
    margin: calc(3.83vw - 0.025 * var(--size-h1) - 0.78em) 0 0 5.08vw;
    font-size: 25px;
    letter-spacing: 0;
    line-height: 0.96;
  }

  /* 84px de ligne de base à ligne de base ; la première ligne de base du
     texte est à 25,5px du haut de sa boîte (22px, interligne 1,6) */
  .apropos-text {
    width: 31.9vw;
    max-width: none;
    margin: calc(6.56vw - 30px) 0 0 19.53vw;
  }
}

/* Keypoints section */
.apropos-keypoints {
  padding: 1px 15px;
  margin: 20px 0;
}

.apropos-keypoints-list {
  list-style: none;
  padding: 20px var(--gap);
  color: var(--fg);
}

.apropos-keypoints-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.apropos-keypoints-arrow {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.apropos-keypoints-text {
  font-family: var(--font-title);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

@media (min-width: 960px) {
  .apropos-keypoints-list {
    padding: 20px 30px;
  }

  /* Maquette : chiffres clés en alternance Plaak 44B 80px / Plaak 56 50px
     (polices posées par site.js) ; plus petits sous 1280px de large */
  .apropos-keypoints-item:nth-child(odd) .apropos-keypoints-text {
    font-size: min(80px, 6.25vw);
  }

  .apropos-keypoints-item:nth-child(even) .apropos-keypoints-text {
    font-size: min(50px, 3.91vw);
  }

  /* Maquette : flèche de 39px, texte 19px après elle, 23px entre deux lignes,
     interligne plein, aucun espacement de lettres (« 1 COMPAGNIE NATIONALE ET
     INTERNATIONALE » tient sur une ligne à 80px) */
  .apropos-keypoints-item {
    gap: min(19px, 1.48vw);
    padding: min(11.5px, 0.9vw) 0;
  }

  .apropos-keypoints-arrow {
    width: min(39px, 3.05vw);
  }

  .apropos-keypoints-text {
    letter-spacing: 0;
    line-height: 1;
    font-variant-ligatures: none;
  }
}

/* ==========================================================================
   GALLERIES SECTION - Two columns with sticky titles
   ========================================================================== */

.apropos-galleries {
  position: relative;
}

.apropos-galleries-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.apropos-gallery-column {
  position: relative;
}

/* Maquette : L'ÉQUIPE / LE LIEU à la taille des titres de page. Police dessinée :
   Plaak 31R, que le site n'a pas : Plaak 21A, la police des titres de page */
.apropos-gallery-title {
  font-family: 'Plaak21A', var(--font-title);
  font-size: var(--size-h1);
  letter-spacing: 0;
  font-variant-ligatures: none;
  line-height: 0.8;
  margin: 0;
  padding: 0 var(--gap);
  /* Overlap first image */
  position: relative;
  z-index: 2;
  transform: translateY(30%);
}

/* First column title aligned right */
.apropos-gallery-column:first-child .apropos-gallery-title {
  text-align: right;
}

.apropos-gallery-images {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.apropos-gallery-item {
  margin: 0;
  padding: 0;
}

.apropos-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hide scrollbar on mobile */
.apropos-galleries-scrollbar {
  display: none;
}

/* Desktop: two columns side by side */
@media (min-width: 960px) {
  .apropos-galleries-wrapper {
    flex-direction: row;
    gap: 0;
  }

  .apropos-gallery-column {
    flex: 1;
    min-width: 0;
    padding: 0 24px;
  }

  .apropos-gallery-column:first-child {
    padding-left: 0;
  }

  .apropos-gallery-column:last-child {
    padding-right: 0;
  }

  /* Maquette : L'ÉQUIPE finit contre la barre centrale, LE LIEU commence au
     bord de sa colonne de photos ; leur ligne de base 15px (1,17vw) sous le
     haut des photos (la boîte finit 20px + 0,05em sous la ligne de base) */
  .apropos-gallery-title {
    position: sticky;
    top: 60px; /* Below header */
    padding: 20px 0;
    z-index: 2;
    transform: translateY(calc(20px + 0.05em + 1.17vw));
  }

  .apropos-gallery-column:first-child .apropos-gallery-title {
    margin-right: -24px;
  }

  .apropos-gallery-images {
    position: relative;
    z-index: 1;
  }

  /* Central scrollbar track */
  /* Maquette : barre de 16px (1,25vw) entre les colonnes, qui commence 208px
     (16,25vw) sous le haut des photos, donc sous les titres L'ÉQUIPE / LE
     LIEU au lieu de passer entre eux. La boîte des titres mesure
     40px + 0,8 × la taille des titres ; collés, ils sont à 60px du haut. */
  .apropos-galleries-scrollbar {
    display: block;
    width: 1.25vw;
    background: rgba(255, 255, 255, 0.15);
    position: sticky;
    top: calc(100px + 0.8 * var(--size-h1) + 16.25vw);
    height: calc(100vh - 160px - 0.8 * var(--size-h1) - 16.25vw);
    min-height: 120px;
    z-index: 3;
    align-self: flex-start;
    margin-top: calc(40px + 0.8 * var(--size-h1) + 16.25vw);
  }

  /* Scrollbar thumb - animated via JS */
  .apropos-galleries-scrollbar::before {
    content: '';
    display: block;
    width: 100%;
    height: 20%;
    background: var(--fg);
    transform: translateY(calc(var(--scroll-progress, 0) * 400%));
    transition: transform 0.1s ease-out;
  }
}
