* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  overflow: hidden;
  /* cursor: none; -- désactivé temporairement pendant la construction du site, à remettre avant le jour J */
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #0a0a0a;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* Écran d'accueil — direction éditoriale/moderne : typo bold surdimensionnée,
   palette quasi monochrome, photos = focale, repères numérotés type "chapitres" */
#screen-intro .home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  max-width: 64rem;
}

#screen-intro .home-eyebrow {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #c9a86a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

#screen-intro .home-title {
  display: flex;
  flex-direction: column;
  color: #f2e8d5;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
}

#screen-intro .home-photos {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
}

#screen-intro .home-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 11rem;
}

#screen-intro .home-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
  border: 1px solid rgba(242, 232, 213, 0.15);
}

#screen-intro .home-photo figcaption {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #c9a86a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

#screen-intro .hint {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #f2e8d5;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.6;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Écran de titre d'acte */
#screen-act-title h1 {
  color: #f2e8d5;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 40px rgba(212, 175, 122, 0.35);
}

/* Écran photo */
#screen-photo {
  background: #000;
}

.photo {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.4s ease;
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.9);
}

.photo.visible {
  opacity: 1;
  z-index: 2;
}

/* Compteur de photo (ex: "03 / 10"), écho du repère "01 — Enfance" de l'accueil */
.photo-counter {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
  z-index: 3;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: #c9a86a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.photo-counter.visible {
  opacity: 0.75;
  transform: translateY(0);
}

/* Écran de fin */
#screen-end h1 {
  color: #c9a86a;
  font-size: 6rem;
}
