/* ============================================================
   STRASSTOI — page Camillia
   1. Et pour le reste… : la planche de quatre portraits
   2. Strass.toi Studio : la galerie, en pages de magazine
   3. La visionneuse du Studio
   ============================================================ */


/* ============================================================
   0. MON HISTOIRE
   Le titre à gauche, le récit à droite, en colonne de lecture.
   Rien d'autre.
   ============================================================ */

.histoire__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.histoire__grille h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.06;
}
.histoire__texte p {
  margin: 0 0 1.15em;
  max-width: 62ch;
  font-size: .98rem;
  line-height: 1.8;
}
.histoire__texte p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .histoire__grille { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}


/* ============================================================
   1. ET POUR LE RESTE…
   Quatre portraits de même format, les phrases dessous, en
   italique. Deux photos sur quatre descendent d'un cran : le
   rythme d'une planche de magazine, sans rien qui bouge.
   ============================================================ */

.reste-section.section { padding-block: clamp(4rem, 10vh, 7.5rem); }

.reste__tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.reste__tete h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.06;
}
.reste__tete h2 em { font-style: italic; color: var(--rose-clair); }
.reste__tete p {
  justify-self: end;
  margin: 0;
  max-width: 40ch;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--brume);
}

.planche {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2.2rem);
  align-items: start;
}
.planche__photo { margin: 0; }
.planche__photo:nth-child(even) { margin-top: clamp(2rem, 6vw, 5.5rem); }

.planche__cadre {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--noir);
}
.planche__cadre picture,
.planche__cadre img {
  display: block;
  width: 100%;
  height: 100%;
}
.planche__cadre img { object-fit: cover; object-position: 50% 30%; }

.planche__photo figcaption {
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--filet);
}
.planche__num {
  display: block;
  margin-bottom: .7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--rose);
}
.planche__photo q {
  display: block;
  quotes: "« " " »";
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.5;
  color: var(--blanc);
}

@media (max-width: 1000px) {
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .planche__photo:nth-child(even) { margin-top: 3rem; }
}
@media (max-width: 700px) {
  .reste__tete { grid-template-columns: 1fr; gap: 1rem; }
  .reste__tete p { justify-self: start; }
  .planche { column-gap: .9rem; row-gap: 2.2rem; }
  .planche__photo:nth-child(even) { margin-top: 2.2rem; }
  .planche__photo figcaption { padding-top: .9rem; margin-top: .9rem; }
  .planche__photo q { font-size: .92rem; }
}


/* ============================================================
   2. STRASS.TOI STUDIO
   Une page claire au milieu du noir, comme on tourne la page
   d'un magazine : papier blanc cassé, encre noire, les photos
   en couleur. Le titre en très grand, façon couverture.
   ============================================================ */

.shoot-section.section {
  padding-block: clamp(4rem, 10vh, 8rem);
  background: var(--blanc);
  color: var(--noir);
}

.shoot__tete {
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--noir);
}
.shoot__sur {
  margin: 0 0 .2rem;
  max-width: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.6rem);
  color: var(--prune);
}
.shoot__titre {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  /* Le mot remplit toute la largeur, comme le titre d'une
     couverture, quelle que soit la taille de l'écran. */
  font-size: min(calc((100vw - 2 * var(--marge)) / 3.6), 23rem);
  line-height: .82;
  white-space: nowrap;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--noir);
}
.shoot__titre::before { display: none; }
.shoot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 2rem;
  margin-top: 1.4rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--encre-inv);
}

/* --- Les rangées -------------------------------------------- */

.shoot__rang {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 2.6rem);
  align-items: start;
  margin-bottom: clamp(3rem, 8vw, 7.5rem);
}
.shoot__rang:last-child { margin-bottom: 0; }

/* Une grande, une petite qui tombe en bas. */
.shoot__rang--paire .shoot__photo:nth-child(1) { grid-column: 1 / 8; }
.shoot__rang--paire .shoot__photo:nth-child(2) { grid-column: 9 / 13; align-self: end; }

/* L'inverse : la petite en haut à gauche, un peu descendue. */
.shoot__rang--paire-inverse .shoot__photo:nth-child(1) { grid-column: 1 / 5; margin-top: 16%; }
.shoot__rang--paire-inverse .shoot__photo:nth-child(2) { grid-column: 6 / 13; }

/* Trois, celle du milieu décalée. */
.shoot__rang--trio .shoot__photo:nth-child(1) { grid-column: 1 / 5; }
.shoot__rang--trio .shoot__photo:nth-child(2) { grid-column: 5 / 9; margin-top: 14%; }
.shoot__rang--trio .shoot__photo:nth-child(3) { grid-column: 9 / 13; }

/* Seule, au centre, comme une pleine page. */
.shoot__rang--seule .shoot__photo { grid-column: 4 / 10; }

/* À l'horizontale : toute la largeur. */
.shoot__rang--large .shoot__photo { grid-column: 1 / 13; }

/* --- Une photo ---------------------------------------------- */

.shoot__photo { margin: 0; min-width: 0; }

.shoot__lien {
  display: block;
  overflow: hidden;
  background: #E6E2DC;
  cursor: zoom-in;
}
.shoot__lien img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(.22, .61, .36, 1);
}
.shoot__lien:focus-visible { outline: 1px solid var(--noir); outline-offset: 4px; }

.shoot__photo figcaption {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-top: .9rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--encre-inv);
}
.shoot__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--prune);
}

/* --- Tablette ----------------------------------------------- */
@media (max-width: 1000px) {
  .shoot__rang--seule .shoot__photo { grid-column: 3 / 11; }
}

/* --- Téléphone ----------------------------------------------
   Six colonnes. Les grandes prennent toute la largeur, les
   petites cinq colonnes sur six, une fois à droite, une fois à
   gauche : on garde le rythme sans rien rétrécir à l'excès.  */
@media (max-width: 700px) {
  .shoot__rang {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: .8rem;
    row-gap: 1.8rem;
    margin-bottom: 2.4rem;
  }
  .shoot__rang .shoot__photo { margin-top: 0 !important; align-self: start !important; }

  .shoot__rang--paire .shoot__photo:nth-child(1)         { grid-column: 1 / 7; }
  .shoot__rang--paire .shoot__photo:nth-child(2)         { grid-column: 2 / 7; }
  .shoot__rang--paire-inverse .shoot__photo:nth-child(1) { grid-column: 1 / 6; }
  .shoot__rang--paire-inverse .shoot__photo:nth-child(2) { grid-column: 1 / 7; }

  .shoot__rang--trio .shoot__photo:nth-child(1) { grid-column: 1 / 7; }
  .shoot__rang--trio .shoot__photo:nth-child(2) { grid-column: 1 / 4; }
  .shoot__rang--trio .shoot__photo:nth-child(3) { grid-column: 4 / 7; margin-top: 2.2rem !important; }

  .shoot__rang--seule .shoot__photo,
  .shoot__rang--large .shoot__photo { grid-column: 1 / 7; }

  .shoot__photo figcaption { gap: .6rem; margin-top: .6rem; font-size: .56rem; letter-spacing: .16em; }
  .shoot__num { font-size: .8rem; }
}


/* ============================================================
   3. LA VISIONNEUSE
   Plein écran, noir, la photo entière, rien d'autre.
   ============================================================ */

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #080808;
  color: var(--blanc);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s .45s;
}
.visionneuse.est-ouverte {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s;
}

.visionneuse__haut,
.visionneuse__bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem var(--marge);
  padding-top: max(1.2rem, env(safe-area-inset-top));
}
.visionneuse__bas { padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); padding-top: 1rem; }

.visionneuse__marque {
  font-family: var(--serif);
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.visionneuse__compte {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--brume);
}

.visionneuse button {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem 0;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brume);
  cursor: pointer;
  transition: color var(--vif);
}
.visionneuse button:hover { color: var(--blanc); }
.visionneuse button:focus-visible { outline: 1px solid var(--rose); outline-offset: 4px; }
.visionneuse__prec::before,
.visionneuse__suiv::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  transition: width var(--moyen);
}
.visionneuse__prec:hover::before,
.visionneuse__suiv:hover::after { width: 44px; }

.visionneuse__scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--marge);
}
.visionneuse__scene img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(.99);
  transition: opacity .5s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.visionneuse__scene img.est-chargee { opacity: 1; transform: none; }

.visionneuse__legende {
  flex: 1;
  text-align: center;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sourdine);
}

@media (max-width: 700px) {
  .visionneuse__scene { padding: 0; }
  .visionneuse__prec::before,
  .visionneuse__suiv::after { width: 18px; }
  .visionneuse__legende { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .shoot__lien img,
  .visionneuse,
  .visionneuse__scene img { transition: none; }
}


/* ============================================================
   4. SA PHRASE
   En romain, plus en italique : posée, presque gravée. Seuls
   deux mots passent en italique rose. Un filet vertical au-dessus
   en guise de guillemet, la signature en petites capitales.
   ============================================================ */

.citation-camillia.section { padding-block: clamp(5rem, 14vh, 9rem); }

.citation-camillia blockquote {
  position: relative;
  margin: 0 auto 2.2rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  max-width: 24ch;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.24;
  letter-spacing: -.012em;
  text-wrap: balance;
  color: var(--blanc);
}
.citation-camillia blockquote::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, transparent, var(--rose));
}
.citation-camillia blockquote em {
  font-style: italic;
  color: var(--rose-clair);
}

.citation-camillia .signature {
  margin: 0 auto;
  font-family: var(--sans);
  font-style: normal;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brume);
}
.citation-camillia .signature::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  margin-right: 1rem;
  vertical-align: middle;
  background: var(--rose);
}


/* ============================================================
   5. LA PAGE CAMILLIA, AGENCEMENT D'OCTOBRE 2026
   Moins de vide, plus de rythme de magazine :
     les chiffres     un bandeau sous la photo
     mon histoire     la photo qui reste, le récit à côté
     ma façon…        titre et photo à gauche, la liste à droite
     le shooting      une double page, une grande et trois petites
   ============================================================ */

/* --- Les chiffres ------------------------------------------- */
.camillia-chiffres {
  background: var(--noir);
  border-top: 1px solid var(--filet);
}
.camillia-chiffres__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  margin: 0;
}
.camillia-chiffres__liste > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: .7rem;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--filet);
  text-align: center;
}
.camillia-chiffres__liste > div:first-child { border-left: 0; }
.camillia-chiffres__liste dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--blanc);
}
.camillia-chiffres__liste dt {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sourdine);
}

/* --- Mon histoire ------------------------------------------- */
.histoire__grille--photo {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}
.histoire__photo {
  position: sticky;
  top: 110px;
  margin: 0;
}
.histoire__photo picture,
.histoire__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
.histoire__photo figcaption {
  margin-top: .9rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sourdine);
}
.histoire__grille--photo h2 {
  margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1;
}
.histoire__grille--photo h2 em { font-style: italic; color: var(--rose); }
.histoire__texte .histoire__chapeau {
  margin-bottom: 1.6em;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--blanc);
}
.histoire__texte .histoire__exergue {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: clamp(1.2rem, 2.4vw, 1.8rem) 0;
  border-top: 1px solid var(--filet-fort);
  border-bottom: 1px solid var(--filet-fort);
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--blanc);
}
.histoire__exergue em { font-style: italic; color: var(--rose); }

/* --- Ma façon de travailler --------------------------------- */
.facon {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.facon__gauche { position: sticky; top: 110px; }
.facon__gauche h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1;
}
.facon__gauche h2 em { font-style: italic; color: var(--rose); }
.facon__gauche > p {
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--brume);
}
.facon__photo { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.facon__photo picture,
.facon__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.facon__liste li { padding: clamp(1.6rem, 3vw, 2.3rem) 0; }
.facon__liste li:last-child { border-bottom: 1px solid var(--filet); }
.facon__liste h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.facon__liste p { max-width: 48ch; line-height: 1.7; }

/* --- Le jour du shooting : la double page ------------------- */
.double {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}
.double .planche__photo:nth-child(even) { margin-top: 0; }
.double__grande .planche__cadre { aspect-ratio: 4 / 5; }
.double__droite {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}
.double__tete h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1;
}
.double__tete h2 em { font-style: italic; color: var(--rose-clair); }
.double__tete p { margin: 0; max-width: 34ch; font-size: .92rem; color: var(--brume); }
.double__petites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 1.6vw, 1.4rem);
}
.double__petites .planche__photo q { font-size: clamp(.9rem, 1.05vw, 1rem); }

/* --- Tablette et téléphone ---------------------------------- */
@media (max-width: 1000px) {
  .histoire__grille--photo,
  .facon,
  .double { grid-template-columns: minmax(0, 1fr); }
  .histoire__photo,
  .facon__gauche { position: static; }
  .histoire__photo picture,
  .histoire__photo img { aspect-ratio: 4 / 3; object-position: 80% 30%; }
  .double__droite { order: -1; gap: 2rem; }
  /* Le titre « Mon histoire » passe avant la photo. */
  .histoire__grille--photo { gap: 0; }
  .histoire__grille--photo .histoire__texte { display: contents; }
  .histoire__grille--photo h2 { order: -2; }
  .histoire__photo { order: -1; margin-bottom: 2rem; }
}
@media (max-width: 700px) {
  .camillia-chiffres__liste > div { padding-inline: .4rem; }
  .camillia-chiffres__liste dd { font-size: 2rem; }
  .camillia-chiffres__liste dt { font-size: .58rem; letter-spacing: .12em; line-height: 1.5; }
  /* Les trois petites glissent l'une après l'autre. */
  .double__petites {
    display: flex;
    gap: .8rem;
    margin-inline: calc(var(--marge) * -1);
    padding-inline: var(--marge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--marge);
    scrollbar-width: none;
  }
  .double__petites::-webkit-scrollbar { display: none; }
  .double__petites .planche__photo { flex: 0 0 62%; scroll-snap-align: start; }
}


/* ============================================================
   6. LA PLANCHE DU SHOOTING, DE UNE À SIX PHOTOS (étape 9)
   La classe double--n dit combien de photos. La règle : jamais
   de trou, la première en grand tant qu'elle a de la place.
     1  la photo à gauche, le titre à droite
     2  le titre au-dessus, les deux photos côte à côte, même taille
     3  la grande, et deux à côté
     4  la grande, et trois à côté (l'agencement d'origine)
     5  la grande, et quatre en rang à côté
     6  le titre au-dessus, six photos en deux rangs de trois
   ============================================================ */

.double--1 .double__droite { justify-content: flex-end; }

.double--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.double--2 .double__droite,
.double--2 .double__petites { display: contents; }
.double--2 .double__tete { grid-column: 1 / -1; order: -1; }
.double--2 .double__petites .planche__cadre { aspect-ratio: 4 / 5; }
.double--2 .double__petites .planche__photo q { font-size: clamp(1rem, 1.25vw, 1.15rem); }

.double--3 .double__petites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.double--3 .double__petites .planche__cadre { aspect-ratio: 4 / 5; }

.double--5 .double__petites { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.double--6 { grid-template-columns: minmax(0, 1fr); }
.double--6 .double__droite { gap: clamp(2rem, 4vw, 3rem); }
.double--6 .double__petites {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: clamp(2rem, 4vw, 3rem);
}
.double--6 .double__petites .planche__cadre { aspect-ratio: 4 / 5; }
.double--6 .double__petites .planche__photo q { font-size: clamp(1rem, 1.25vw, 1.15rem); }

@media (max-width: 1000px) {
  .double--2 .double__droite,
  .double--2 .double__petites { display: block; }
  .double--2 .double__petites .planche__photo + .planche__photo { margin-top: 2rem; }
}
@media (max-width: 700px) {
  /* Sur téléphone, les petites glissent toutes, quel que soit leur
     nombre (voir plus haut) ; à deux, elles restent l'une sous
     l'autre. */
  .double--2 .double__petites { display: block; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .double--6 .double__petites .planche__photo { flex-basis: 62%; }
}
