/* ==========================================================================
   PAGE: LIEUX COMMUNS
   ========================================================================== */

/* ==========================================================================
   NEW LAYOUT — LIEUX COMMUNS PAGE (2026)
   ========================================================================== */

.lieuxcommuns-page {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.template-lieux-communs .site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg);
}

.lieuxcommuns-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  z-index: 2;
}

.lieuxcommuns-hero-video-wrap {
  position: absolute;
  top: 70px;
  left: 24px;
  width: 73.5vw;
  height: 58vh;
  z-index: 2;
  pointer-events: none;
}

.lieuxcommuns-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lieuxcommuns-hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.lieuxcommuns-hero-copy {
  position: relative;
  flex: 0 0 45vw;
  width: 45vw;
  padding: 24px;
  z-index: 3;
}

.lieuxcommuns-hero-title {
  margin: 0 0 14px;
  font-size: var(--size-h1);
  line-height: 0.85;
  color: var(--fg);
  background: transparent;
}

.lieuxcommuns-hero-description {
  background: var(--bg);
  color: #050505;
  padding: 16px 18px;
  font-size: var(--text-md);
  line-height: 1.28;
}

.lieuxcommuns-hero-description p {
  margin: 0 0 0.5em;
}

.lieuxcommuns-hero-description p:last-child {
  margin-bottom: 0;
}

.lieuxcommuns-hero-cross {
  position: absolute;
  left: 0;
  right: 45vw;
  top: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  background-image: url('../../img/orange-cross.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: 1220px auto;
}

.lieuxcommuns-punchline-section {
  position: relative;
  z-index: 2;
  background: var(--bg);
  color: var(--fg);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.lieuxcommuns-punchline-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.lieuxcommuns-punchline-section-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PLAAK56', sans-serif;
  font-size: clamp(2rem, 2.2vw, 3.5rem);
  text-transform: uppercase;
  color: var(--fg);
  padding: 2vw 1vw 1vw 1vw;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.lieuxcommuns-punchline-section-image {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding-left: var(--gap);
}

.lieuxcommuns-punchline-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   LISTE DES PROJETS — une seule mise en page pour toutes les cartes
   (Thomas, 16/11/2026 : simplifier les cinq mises en page cycliques du cadre
   873:910 en une seule). Tirée des cinq :
   - composition de la mise en page 5 (« Cutting Kapharnaüm », 873:925-927,
     893:689) : l'image en haut à droite sur la trame rayée, le titre en bas
     à gauche qui chevauche la trame, les infos sous le titre ;
   - trame rayée de 473×412 derrière chaque image : commune aux cinq (note
     963:595) ; fichier absent, imitée en CSS ;
   - titre Plaak 44B de 70px : mises en page 2 et 5 (Très Grand Film,
     Cutting) ;
   - infos (année, lieu) Plaak 56 de 20px, interligne plein : mises en page
     1, 3 et 4 (Bloom, Atelier, Racines ; 2 et 5 disent MS PGothic) ;
   - deux colonnes, la droite plus basse : la disposition des cartes dans
     le cadre (Bloom / Très Grand Film, Atelier / Racines).
   Mesures rapportées à la largeur de la carte dessinée (650px, de x = 363 à
   1013 dans le cadre de 1600), en cqi : trame à 12,77 % sur 72,77 % ; image
   à 43,23 % sur 56,77 %, 4,77cqi sous le haut de la trame, format 369/233 ;
   titre 10,77cqi, première ligne de base 9cqi sous l'image (6,77 dessinés :
   les accents d'une première ligne longue, 0,80em au-dessus de la ligne de
   base, ne touchent ainsi jamais l'image) ; infos 3,08cqi,
   ligne de base 4,92cqi sous la dernière du titre, sur 44 % de la carte.
   ========================================================================== */

.lieuxcommuns-projects-grid-section {
  position: relative;
  background: var(--bg);
  padding: 3.125vw 5.75vw 6vw;
  z-index: 3;
}

.lieuxcommuns-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8vw;
  row-gap: 6vw;
  align-items: start;
}

/* la colonne de droite descend, comme dans le cadre */
.lieuxcommuns-project-card:nth-child(even) {
  margin-top: 9vw;
}

.lieuxcommuns-project-card {
  min-width: 0;
  container-type: inline-size;
}

.lieuxcommuns-project-link {
  display: block;
  color: #050505;
  text-decoration: none;
}

.lieuxcommuns-project-visual {
  position: relative;
  /* hauteur de la trame : 72,77cqi × 412 / 473 */
  height: 63.39cqi;
}

.lieuxcommuns-project-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12.77cqi;
  width: 72.77cqi;
  height: 63.39cqi;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0,
    rgba(0, 0, 0, 0.22) 2px,
    transparent 2px,
    transparent 5px
  );
}

.lieuxcommuns-project-vignette {
  position: absolute;
  top: 4.77cqi;
  left: 43.23cqi;
  width: 56.77cqi;
  aspect-ratio: 369 / 233;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.lieuxcommuns-project-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Le haut des infos remonte sur la trame : la première ligne de base du
   titre tombe à 4,77 + 35,85 (bas de l'image) + 9 = 49,62cqi du haut,
   soit une boîte de titre qui commence à 49,62 − 0,75em (Plaak 44B à
   l'interligne 1) = 41,54cqi, donc 21,85cqi au-dessus du bas de la trame */
.lieuxcommuns-project-info {
  position: relative;
  z-index: 1;
  margin-top: -21.85cqi;
}

.lieuxcommuns-project-title {
  margin: 0;
  font-family: 'Plaak44B', var(--font-title);
  font-size: 10.77cqi;
  line-height: 1;
  letter-spacing: 0;
  font-variant-ligatures: none;
  text-transform: uppercase;
  overflow-wrap: break-word;
  color: #050505;
}

/* ligne de base des infos 4,92cqi sous celle du titre : la boîte du titre
   finit 0,25em (2,69cqi) sous sa ligne de base, celle des infos (Plaak 56,
   interligne 1) a sa ligne de base à 0,8em (2,46cqi) */
.lieuxcommuns-project-year,
.lieuxcommuns-project-subtitle {
  width: 44%;
  margin: 0;
  font-family: 'Plaak56', var(--font-subtitle);
  font-size: max(12px, 3.08cqi);
  line-height: 1;
  letter-spacing: 0;
  font-variant-ligatures: none;
  text-transform: uppercase;
  overflow-wrap: break-word;
  color: #050505;
}

.lieuxcommuns-project-title + p {
  margin-top: -0.23cqi;
}

/* Manifeste et citation (maquette 906:985 et 866:887, cadres de 1600×900) :
   écran de 16/9, photo à fond perdu, texte Plaak 44B de 80px (5vw) blanc à
   3,125vw du bord et 2,5vw du haut, interligne plein. Voile sombre léger
   pour que le texte reste lisible sur toute photo. Téléphone (917:730,
   917:760) : plein écran, texte de 48px (12,2vw) à 14px du bord. */
.lieuxcommuns-statement {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 56.25vw;
  padding: 2.5vw 1.5vw 2.5vw 3.125vw;
  background: #050505;
  color: #F0EFEF;
}

.lieuxcommuns-statement-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lieuxcommuns-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 5, 0.35);
}

.lieuxcommuns-statement-text {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 95.4vw;
  font-family: 'Plaak44B', var(--font-title);
  font-size: 5vw;
  line-height: 1;
  letter-spacing: 0;
  font-variant-ligatures: none;
  text-transform: uppercase;
}

.lieuxcommuns-statement-text p {
  margin: 0 0 0.5em;
}

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

/* Principes (860:876) : le schéma sur le fond de la page, 93vw de large à
   2vw du bord, centré dans un écran de 16/9 */
.lieuxcommuns-principles {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 56.25vw;
  padding: 2vw 4.9vw 2vw 2vw;
  background: var(--bg);
}

.lieuxcommuns-principles img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 959px) {
  .lieuxcommuns-statement {
    min-height: 100svh;
    padding: 14px;
  }

  .lieuxcommuns-statement-text {
    max-width: none;
    font-size: min(12.2vw, 48px);
  }

  .lieuxcommuns-principles {
    min-height: 0;
    padding: 24px var(--gap);
  }
}

@media (min-width: 960px) {
  /* Maquette « LIEUX COMMUNS V » (cadre 1600×900, 860:870), mesures en vw de
     ce cadre : vidéo 943×421 à 2,06vw du bord gauche ; titre à droite, sa
     ligne de base sur le bas de la vidéo ; texte juste dessous ; croix orange
     sous la vidéo à partir de cette même ligne, et en bande à sa gauche.
     Thomas, 16/11/2026. Sous 960px : disposition empilée (plus bas). */
  .lieuxcommuns-hero {
    display: grid;
    grid-template-columns: 2.06vw 58.94vw 2vw minmax(0, 1fr) var(--gap);
    grid-template-rows: auto minmax(19.25vw, auto);
    padding: max(10.69vw, var(--header-offset)) 0 0;
    min-height: 0;
  }

  .lieuxcommuns-hero-video-wrap {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 943 / 421;
    /* no text inside: its last baseline is its bottom edge */
    align-self: last baseline;
  }

  .lieuxcommuns-hero-bottom,
  .lieuxcommuns-hero-copy {
    display: contents;
  }

  /* 229,8px dans le cadre de 1600 : à 1280, 184px (l'échelle commune des
     titres, 215px, ne tient pas à côté de la vidéo) */
  .lieuxcommuns-hero-title {
    grid-column: 4;
    grid-row: 1;
    align-self: last baseline;
    margin: 0;
    font-size: 14.36vw;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 3;
  }

  .lieuxcommuns-hero-description {
    grid-column: 4;
    grid-row: 2;
    align-self: start;
    /* 36px under the title's baseline in the 1600 frame; the title's line box
       already reaches ~0.75vw below it */
    margin-top: 1.5vw;
    padding: 0 0 var(--gap);
    z-index: 3;
  }

  .lieuxcommuns-hero-cross {
    position: relative;
    inset: auto;
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    margin: 6.19vw 1.1vw 0 0;
  }

}

@media (max-width: 959px) {
  .lieuxcommuns-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'title'
      'video'
      'description';
    gap: 20px;
    min-height: auto;
    padding: calc(var(--header-offset) + 8px) var(--gap) 28px;
  }

  .lieuxcommuns-hero-video-wrap {
    position: relative;
    top: auto;
    left: auto;
    grid-area: video;
    width: 100%;
    height: 48svh;
    min-height: 360px;
  }

  .lieuxcommuns-hero-bottom {
    display: contents;
  }

  .lieuxcommuns-hero-copy {
    display: contents;
  }

  .lieuxcommuns-hero-title {
    grid-area: title;
    width: 100%;
    max-width: 100%;
    line-height: 0.9;
    text-align: end;
    margin-bottom: 0;
  }

  .lieuxcommuns-hero-description {
    grid-area: description;
    padding: 0;
    font-size: clamp(18px, 4.6vw, 20px);
    line-height: 1.32;
  }

  .lieuxcommuns-hero-cross {
    display: none;
  }

  .lieuxcommuns-punchline-section,
  .lieuxcommuns-punchline-section-inner {
    min-height: auto;
  }

  .lieuxcommuns-punchline-section-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .lieuxcommuns-punchline-section-text {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 24px 0 16px;
    font-size: clamp(20px, 5.6vw, 30px);
    line-height: 1.05;
    justify-content: flex-start;
    order: 2;
  }

  .lieuxcommuns-punchline-section-image {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    padding: 0 0 24px;
    min-height: 0;
    order: 1;
  }

  .lieuxcommuns-punchline-section-image img {
    aspect-ratio: 1.15 / 1;
    height: auto;
  }

  /* Téléphone : la même carte sur toute la largeur (les cadres 917:771
     reprennent les mises en page du bureau à l'échelle) ; infos plus larges
     pour rester lisibles à 12px */
  .lieuxcommuns-projects-grid-section {
    padding: 24px var(--gap) 48px;
  }

  .lieuxcommuns-projects-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }

  .lieuxcommuns-project-card:nth-child(even) {
    margin-top: 0;
  }

  .lieuxcommuns-project-year,
  .lieuxcommuns-project-subtitle {
    width: 72.77%;
  }
}

@media (max-width: 420px) {
  .lieuxcommuns-punchline-section-text {
    padding: 18px 0 14px;
    font-size: clamp(18px, 5.4vw, 24px);
  }

  .lieuxcommuns-punchline-section-image {
    padding: 0 0 18px;
  }
}
