:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-faint: #7a7a7a;
  --paper: #f5f1ea;
  --paper-warm: #ede6d8;
  --night: #0a1a2e;
  --night-deep: #050d1a;
  --stone: #2c2c2a;
  --glacier: #e8eef2;
  --ember: #8b4513;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.8s ease-out,
    transform 1.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.3s;
}
.reveal-delay-2 {
  transition-delay: 0.6s;
}
.reveal-delay-3 {
  transition-delay: 0.9s;
}

.scene {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.scene-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.6;
}
.scene-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.35;
  margin-bottom: 1.8rem;
  max-width: 640px;
}
.scene-body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
  max-width: 520px;
  opacity: 0.85;
}

/* Scènes plein écran (1, 5, clôture) */
.scene-fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 8vh 8vw;
}
.scene-fullscreen .bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.scene-fullscreen .veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.scene-fullscreen .content {
  position: relative;
  z-index: 2;
  margin-bottom: 7vw;
}

@media screen and (max-width: 767px) {
  .scene-fullscreen .content {
    position: relative;
    z-index: 2;
    margin-bottom: 35vw;
  }

  .scroll-hint {
    bottom: 15vh !important;
  }
}

/* Scène 1 — Accueil */
.scene-1 {
  background: var(--night-deep);
  color: var(--glacier);
}
.scene-1 .veil {
  background: linear-gradient(
    180deg,
    rgba(5, 13, 26, 0.45) 0%,
    rgba(5, 13, 26, 0.65) 50%,
    rgba(5, 13, 26, 0.6) 100%
  );
}
.scene-1 .scene-label {
  color: rgba(232, 238, 242, 0.85);
}
.scene-1 .scene-quote {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.3;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 300;
}
.scroll-hint {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(232, 238, 242, 0.6);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateX(-50%) translateY(6px);
  }
}

/* Scène 5 — Solennité */
.scene-5 {
  background: #1a1a1a;
  color: #d8d8d8;
}
.scene-5 .veil {
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.4) 0%,
    rgba(15, 15, 15, 0.65) 100%
  );
}
.scene-5 .content {
  max-width: 620px;
}
.scene-5 .scene-label {
  color: rgba(216, 216, 216, 0.6);
}

/* Clôture */
.scene-closing {
  min-height: 70vh;
  display: none;
  background: var(--night-deep);
  color: var(--glacier);
}
.scene-closing.active {
  display: flex;
}
.scene-closing .veil {
  background: linear-gradient(
    180deg,
    rgba(5, 13, 26, 0.55) 0%,
    rgba(5, 13, 26, 0.4) 100%
  );
}
.scene-closing .closing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.4;
  max-width: 520px;
  margin-bottom: 4rem;
}
.scene-closing .closing-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(232, 238, 242, 0.65);
}

/* Scènes divisées (2, 3, 4, 6) */
.scene-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 100vh;
}
.scene-split .text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh 6vw;
}
.scene-split .photo-side {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}
.scene-split .photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-2 {
  background: #2a251e;
  color: #e8ddc5;
}
.scene-2 .scene-label {
  color: rgba(232, 221, 197, 0.6);
}
.scene-2 .scene-body {
  color: rgba(232, 221, 197, 0.82);
}

.scene-3 {
  background: linear-gradient(180deg, #c8d7e3 0%, #e8eef2 60%, #f5f1ea 100%);
  color: var(--ink);
}

.scene-4 {
  background: #2d3a2a;
  color: #d8dcc8;
}
.scene-4 .scene-label {
  color: rgba(216, 220, 200, 0.6);
}
.scene-4 .scene-body {
  color: rgba(216, 220, 200, 0.82);
}
.scene-4 .glacier-line,
.scene-3 .glacier-line {
  margin-top: 3rem;
  padding-top: 1.2rem;
  max-width: 420px;
  border-top: 0.5px solid rgba(216, 220, 200, 0.3);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(216, 220, 200, 0.5);
  text-transform: uppercase;
}

.scene-3 .glacier-line {
  color: #1a1a1a;
  border-top: 0.5px solid #1a1a1a;
}

.scene-6 {
  background: linear-gradient(
    180deg,
    #f5e8d0 0%,
    var(--paper-warm) 60%,
    var(--paper) 100%
  );
  color: var(--ink);
}
.scene-6 .text-side {
  padding: 8vh 6vw 10vh;
}
.scene-6 .bascule {
  margin-bottom: 3rem;
}
.scene-6 .question-block {
  border-top: 0.5px solid rgba(26, 26, 26, 0.25);
  padding-top: 2.5rem;
}
.scene-6 .question {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.35;
  margin-bottom: 2rem;
}
.scene-6 textarea {
  width: 100%;
  min-height: 120px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(26, 26, 26, 0.2);
  padding: 20px 22px;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.scene-6 textarea::placeholder {
  color: rgba(26, 26, 26, 0.35);
  font-style: italic;
}
.scene-6 textarea:focus {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}
.scene-6 .meta-fields {
  display: flex;
  gap: 12px;
  margin-top: 1.2rem;
}
.scene-6 input[type="text"] {
  flex: 1;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(26, 26, 26, 0.3);
  outline: none;
  color: var(--ink);
  transition: border-color 0.3s;
}
.scene-6 input[type="text"]::placeholder {
  color: rgba(26, 26, 26, 0.4);
}
.scene-6 input[type="text"]:focus {
  border-bottom-color: var(--ink);
}
.scene-6 .anon-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
}
.scene-6 .anon-check input {
  cursor: pointer;
}
.scene-6 .submit-btn {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  padding: 16px 36px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition:
    background 0.4s,
    letter-spacing 0.4s;
}
.scene-6 .submit-btn:hover {
  background: #000;
  letter-spacing: 1.2px;
}
.scene-6 .submit-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.scene-6 .rgpd-mention {
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 480px;
}

.footer {
  background: var(--paper);
  padding: 3rem 8vw 2rem;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  text-align: center;
  border-top: 0.5px solid rgba(26, 26, 26, 0.1);
}

@media (max-width: 768px) {
  .scene-quote {
    font-size: 26px;
  }
  .scene-1 .scene-quote {
    font-size: 32px;
  }
  .scene-split {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 1fr;
  }
  .scene-split .photo-side {
    grid-row: 1;
    min-height: 50vh;
  }
  .scene-split .text-side {
    grid-row: 2;
    padding: 8vh 8vw;
  }
  .scene-6 .text-side {
    padding: 8vh 8vw;
  }
}
