/* ============================================================
   DANS LA NUIT, LE FEU — portraits.css
   Section 4 (Pinar, duotone ambre) + Section 5 (Romane, beige)
   ============================================================ */

.portrait {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--noir);
}

/* ----------------------------------------------------------
   SECTION 4 — PINAR (photo plein ecran + duotone)
   ---------------------------------------------------------- */
.portrait--pinar {
  display: flex;
  align-items: center;
}

.portrait--pinar .portrait__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;   /* décalé à droite : Pinar au premier plan */
  transform: scale(1.15);        /* agrandit la photo */
  transform-origin: 65% center;
  filter: url(#duotone-dlnlf);
  z-index: 0;
}

.portrait--pinar .portrait__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,13,24,0.92) 0%, rgba(7,13,24,0.72) 38%, rgba(7,13,24,0.15) 72%, rgba(7,13,24,0) 100%),
    linear-gradient(0deg, rgba(7,13,24,0.55) 0%, rgba(7,13,24,0) 35%);
}

/* Mots geants OISEAU / LIBRE — debordent, mix-blend screen */
.portrait__giant {
  position: absolute;
  z-index: 2;
  font-family: var(--f-geant);
  font-weight: 500;            /* medium */
  font-style: italic;
  line-height: 0.78;
  letter-spacing: -0.01em;
  color: var(--ambre2);       /* #E07832 */
  mix-blend-mode: screen;
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(5rem, 17vw, 16rem);
}
/* OISEAU deborde par le HAUT hors cadre, LIBRE par le BAS — ils traversent */
.portrait__giant--top {
  top: clamp(-9vh, -6vh, -3vh);
  right: clamp(1rem, 4vw, 4rem);
}
.portrait__giant--bottom {
  bottom: clamp(-9vh, -6vh, -3vh);
  right: clamp(8rem, 20vw, 20rem);
}

/* Bloc texte (gauche) */
.portrait__content {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
}

.portrait__eyebrow {
  font-family: var(--f-corps);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ambre2);
  margin-bottom: clamp(0.9rem, 2vh, 1.4rem);
}
.portrait__name {
  font-family: var(--f-titre);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--creme);
  margin-bottom: 0.6rem;
}
.portrait__role {
  font-family: var(--f-cite);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: var(--creme);
  opacity: 0.8;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.portrait__bio {
  font-family: var(--f-corps);
  font-weight: 200;
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
  line-height: 1.7;
  color: var(--creme);
  opacity: 0.78;
  margin-bottom: clamp(1.4rem, 3.5vh, 2.2rem);
}
.portrait__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-corps);
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--creme);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(240, 232, 216, 0.3);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.3s var(--ease-bezier);
}
.portrait__link svg { width: 18px; height: 7px; }
.portrait__link:hover { color: var(--ambre2); border-color: var(--ambre2); gap: 0.9rem; }

/* Dots carousel (Saison 2 a venir) */
.portrait__dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
}
.portrait__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240, 232, 216, 0.3);
}
.portrait__dot.is-active { background: var(--ambre2); width: 22px; border-radius: 4px; }
.portrait__dot.is-soon { border: 1px dashed rgba(240, 232, 216, 0.4); background: none; }

/* ----------------------------------------------------------
   SECTION 5 — ROMANE (rupture beige, layout inverse)
   ---------------------------------------------------------- */
.portrait--romane {
  background: var(--beige);
  color: var(--noir);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* Grain local plus marque sur le fond beige */
.portrait--romane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.portrait--romane .portrait__media {
  position: relative;
  z-index: 60;                 /* photo Romane exclue du grain global */
  overflow: hidden;
}
.portrait--romane .portrait__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;   /* Romane est a droite du cadre */
  filter: url(#duotone-romane);
}

.portrait--romane .portrait__content {
  z-index: 2;
  max-width: 38rem;
  align-self: center;
  justify-self: start;
  padding: clamp(2.5rem, 6vw, 6rem);
}
.portrait--romane .portrait__eyebrow { color: var(--ambre); }
.portrait--romane .portrait__name    { color: var(--noir); }
.portrait--romane .portrait__role    { color: var(--noir); opacity: 0.7; }
.portrait--romane .portrait__bio     { color: var(--noir); opacity: 0.82; }
.portrait--romane .portrait__bio em  { font-style: italic; }

/* ----------------------------------------------------------
   Responsive — empilement
   ---------------------------------------------------------- */
@media (max-width: 760px) {
  .portrait--romane {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh auto;
  }
  .portrait__giant { font-size: clamp(3.5rem, 22vw, 9rem); }
}
