/* Caisse Claire — sections photo de marque (passe images puis passe Gemini, 18 nov 2026 : 6 photos). Le réel ancre, la caisse anime. */
html:not([data-photos="on"]) .s-photo { display: none; }
.s-photo { position: relative; z-index: 6; background: var(--bleu-f); color: var(--papier); }
.s-photo picture, .s-photo img { display: block; width: 100%; height: 100%; }
.s-photo img { object-fit: cover; }
.mention { font: 800 10px/14px var(--dot); letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin: 0; }

/* plein écran : une photo, une phrase */
.ph-plein { height: 100vh; height: 100svh; overflow: hidden; }
.ph-plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 16, 32, 0) 45%, rgba(13, 16, 32, .62)); pointer-events: none; }
.ph-texte { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: 6vh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.ph-texte h2 { margin: 10px 0 0; font: 900 clamp(44px, 4.6vw, 80px)/.92 var(--af); font-stretch: 125%; letter-spacing: -.025em; max-width: 13ch; }
.ph-texte h2 em { font-style: normal; color: var(--laiton); }
.ph-texte p.sous { margin: 16px 0 0; font-size: 19px; line-height: 28px; max-width: 34ch; }
.ph-texte .mention { text-align: right; }
.ph-haut .ph-texte { bottom: auto; top: calc(var(--barre) + 5vh); }
.ph-haut::after { background: linear-gradient(0deg, rgba(13, 16, 32, 0) 50%, rgba(13, 16, 32, .55)); }

/* diptyque : deux côtés du même geste */
.ph-dip { padding: 120px var(--g) 110px; background: var(--bleu); }
.ph-tete { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.ph-tete h2 { margin: 12px 0 0; font: 900 clamp(44px, 5.4vw, 84px)/.92 var(--af); font-stretch: 125%; letter-spacing: -.025em; }
.ph-tete p { margin: 0; font-size: 19px; line-height: 28px; max-width: 36ch; justify-self: end; }
.dip { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.dip figure { margin: 0; }
.dip figure:nth-child(2) { margin-top: 14vh; }
.dip .cadre { overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; }
.dip figure:nth-child(2) .cadre { aspect-ratio: 4 / 5; }
.dip figcaption { display: flex; gap: 14px; margin-top: 14px; font-size: 15px; line-height: 22px; max-width: 46ch; }
.dip figcaption b { font: 800 12px/22px var(--dot); letter-spacing: .1em; text-transform: uppercase; flex: none; color: var(--laiton); }
.ph-dip > .mention { margin-top: 40px; }

/* bandeau de matière : une macro en plein cadre */
.ph-matieres { height: 78vh; background: var(--encre); }
.ph-matieres figure { position: relative; margin: 0; height: 100%; overflow: hidden; }
.ph-matieres figcaption { position: absolute; left: var(--g); bottom: 22px; font: 800 12px var(--dot); letter-spacing: .1em; text-transform: uppercase; background: rgba(22, 23, 27, .66); padding: 7px 10px; border-radius: 3px; }

@media (max-width: 760px) {
  /* téléphone : la photo garde l'écran de la marque dégagé, le texte passe dessous */
  .ph-plein { height: auto; }
  .ph-plein::after { display: none; }
  .ph-plein picture { height: 72svh; }
  .ph-plein .ph-texte, .ph-haut .ph-texte { position: static; padding: 26px var(--g) 40px; }
  .ph-texte { grid-template-columns: 1fr; gap: 12px; }
  .ph-texte h2 { font-size: 44px; }
  .ph-texte p.sous { font-size: 16px; line-height: 23px; }
  .ph-texte .mention { text-align: left; }
  .ph-dip { padding: 80px var(--g) 70px; }
  .ph-tete { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .ph-tete h2 { font-size: 42px; }
  .ph-tete p { justify-self: start; font-size: 16px; line-height: 24px; }
  .dip { grid-template-columns: 1fr; gap: 34px; }
  .dip figure:nth-child(2) { margin-top: 0; }
  .dip .cadre, .dip figure:nth-child(2) .cadre { aspect-ratio: 4 / 5; }
  .ph-matieres { height: 64svh; }
}
.ph-tete .etiq { text-align: left; }
