@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500&family=Great+Vibes&display=swap');

:root {
  --rm-black: #050505;
  --rm-soft-black: #0b0a09;
  --rm-paper: #f4efe7;
  --rm-muted: #bdb5a8;
  --rm-copper: #c8642d;
  --rm-ember: #ff7830;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--rm-black); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--rm-paper);
  background:
    radial-gradient(circle at 50% 30%, rgba(126, 53, 23, .13), transparent 32rem),
    linear-gradient(180deg, #050505, #070605 55%, #030303);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    repeating-radial-gradient(circle at 20% 40%, transparent 0 2px, rgba(255,255,255,.035) 2px 3px),
    linear-gradient(120deg, transparent 30%, rgba(255,255,255,.015), transparent 70%);
  mix-blend-mode: soft-light;
}

[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }

.rm-skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  background: var(--rm-paper);
  color: #111;
  padding: .75rem 1rem;
  border-radius: 999px;
  transition: top .2s ease;
}
.rm-skip:focus { top: 1rem; }

.rm-film-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(5,5,5,.8), transparent);
  pointer-events: none;
}
.rm-film-header a { pointer-events: auto; text-decoration: none; }
.rm-film-brand { font: 400 2rem/1 Great Vibes, cursive; }
.rm-film-return {
  color: var(--rm-muted);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rm-opening {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 6rem 1.25rem 3rem;
  overflow: hidden;
}
.rm-opening-copy {
  position: relative;
  z-index: 2;
  width: min(48rem, 100%);
  text-align: center;
}
.rm-opening-line,
.rm-opening-title,
.rm-opening-subtitle,
.rm-start {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease;
}
.rm-opening .is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.rm-opening-line {
  margin: .75rem 0;
  color: #d6cec1;
  font: 400 clamp(1.25rem, 3vw, 2.2rem)/1.35 Cormorant Garamond, serif;
}
.rm-opening-title {
  margin: 2.2rem 0 .4rem;
  font: 500 clamp(4.2rem, 13vw, 9.5rem)/.83 Cormorant Garamond, serif;
  letter-spacing: -.055em;
}
.rm-opening-subtitle {
  margin: 1.5rem 0 2.6rem;
  color: var(--rm-muted);
  font: 300 clamp(1rem, 2vw, 1.35rem)/1.5 Inter, sans-serif;
  letter-spacing: .05em;
}
.rm-start {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  min-height: 3.6rem;
  padding: .85rem 1.5rem;
  border: 1px solid rgba(222, 132, 76, .5);
  border-radius: 999px;
  color: #fff7ec;
  background: linear-gradient(135deg, rgba(192, 85, 35, .72), rgba(81, 29, 10, .72));
  box-shadow: 0 1rem 4rem rgba(196, 78, 28, .13);
  cursor: pointer;
}
.rm-opening-glow {
  position: absolute;
  width: 45rem;
  height: 45rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 68, 24, .12), transparent 65%);
  filter: blur(18px);
  animation: rmBreathe 8s ease-in-out infinite;
}

.rm-screen {
  min-height: 100svh;
  padding: 5.5rem 1rem 2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 1s ease;
}
.rm-screen.is-visible { opacity: 1; }
.rm-cinema {
  position: relative;
  width: min(92vw, 31rem);
  aspect-ratio: 9 / 16;
  background: #000;
  box-shadow: 0 2rem 8rem rgba(0,0,0,.76), 0 0 8rem rgba(142, 54, 20, .09);
  overflow: hidden;
}
.rm-cinema video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.rm-film-toggle {
  position: absolute;
  inset: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease, background .25s ease;
}
.rm-cinema:hover .rm-film-toggle,
.rm-film-toggle:focus-visible,
.rm-cinema.is-paused .rm-film-toggle {
  opacity: 1;
  background: rgba(0,0,0,.18);
}
.rm-film-toggle-icon {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  margin: auto;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(9px);
  font-size: 1.35rem;
}
.rm-film-status {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .78rem;
}
.rm-screen-caption {
  color: #81796f;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.rm-story {
  position: relative;
  padding: clamp(6rem, 12vw, 12rem) 1.25rem;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.rm-story.is-visible { opacity: 1; }
.rm-story-inner { width: min(46rem, 100%); margin: 0 auto; }
.rm-story-kicker {
  margin: 0 0 1rem;
  color: var(--rm-copper);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.rm-story h2 {
  margin: 0 0 4rem;
  text-align: center;
  font: 500 clamp(3.8rem, 10vw, 7rem)/.95 Cormorant Garamond, serif;
}
.rm-story-text { color: #d8d1c6; font: 300 clamp(1.12rem, 2vw, 1.35rem)/1.9 Cormorant Garamond, serif; }
.rm-story-text p { margin: 0 0 1.45rem; }
.rm-story-text p:first-child,
.rm-story-text p:nth-child(2) { text-align: center; font-style: italic; color: #eee7dc; }
.rm-story-text strong { color: #fff5e7; font-weight: 500; }
.rm-dedication {
  margin: clamp(5rem, 11vw, 9rem) 0;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgba(202, 102, 48, .26);
  background: linear-gradient(145deg, rgba(73, 28, 11, .18), rgba(255,255,255,.015));
  text-align: center;
}
.rm-dedication-label { margin: 0 0 2rem; font: 400 clamp(3rem, 8vw, 5.5rem)/1 Great Vibes, cursive; color: #e1a16e; }
.rm-dedication p:not(.rm-dedication-label):not(.rm-signature) { color: #cfc7ba; line-height: 1.8; }
.rm-thanks { color: #fff1dd !important; font-weight: 500; }
.rm-signature { margin: 2rem 0 0; font: 400 3rem/1 Great Vibes, cursive; color: #f0c09a; }
.rm-story blockquote {
  margin: clamp(5rem, 12vw, 9rem) 0;
  color: #eee7dd;
  text-align: center;
  font: italic 400 clamp(1.6rem, 4vw, 2.8rem)/1.45 Cormorant Garamond, serif;
}
.rm-story-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.rm-story-actions a,
.rm-story-actions button {
  min-height: 3.4rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(211, 125, 70, .42);
  text-decoration: none;
  color: #fff2e0;
  background: rgba(116, 43, 16, .24);
  cursor: pointer;
}
.rm-story-actions button { color: #cfc6ba; background: transparent; }

.rm-embers { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.rm-embers i {
  position: absolute;
  bottom: -1rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rm-ember);
  box-shadow: 0 0 .6rem rgba(255,93,28,.9);
  opacity: 0;
  animation: rmEmber 10s linear infinite;
}
.rm-embers i:nth-child(1) { left: 9%; animation-delay: 1s; }
.rm-embers i:nth-child(2) { left: 19%; animation-delay: 6s; animation-duration: 13s; }
.rm-embers i:nth-child(3) { left: 31%; animation-delay: 3s; }
.rm-embers i:nth-child(4) { left: 43%; animation-delay: 8s; animation-duration: 14s; }
.rm-embers i:nth-child(5) { left: 52%; animation-delay: 0s; }
.rm-embers i:nth-child(6) { left: 63%; animation-delay: 5s; animation-duration: 12s; }
.rm-embers i:nth-child(7) { left: 72%; animation-delay: 2s; }
.rm-embers i:nth-child(8) { left: 81%; animation-delay: 7s; animation-duration: 15s; }
.rm-embers i:nth-child(9) { left: 90%; animation-delay: 4s; }
.rm-embers i:nth-child(10) { left: 47%; animation-delay: 10s; }

body.rm-transition-out::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  animation: rmFadeCover 1.15s ease forwards;
}

@keyframes rmBreathe { 50% { transform: scale(1.08); opacity: .65; } }
@keyframes rmEmber {
  0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  12% { opacity: .7; }
  70% { opacity: .28; }
  100% { transform: translate3d(2.5rem, -105vh, 0) scale(.2); opacity: 0; }
}
@keyframes rmFadeCover { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 560px) {
  .rm-film-header { padding: 1rem; }
  .rm-film-brand { font-size: 1.65rem; }
  .rm-film-return { font-size: .6rem; }
  .rm-opening { padding-inline: 1rem; }
  .rm-opening-line { font-size: 1.28rem; }
  .rm-cinema { width: min(100%, 27rem); }
  .rm-story { padding-inline: 1rem; }
  .rm-story-inner { width: 100%; }
  .rm-dedication { padding: 2rem 1.2rem; }
  .rm-story-actions { flex-direction: column; }
  .rm-story-actions a, .rm-story-actions button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rm-opening-line, .rm-opening-title, .rm-opening-subtitle, .rm-start { opacity: 1; transform: none; filter: none; }
}

/* V3.29 — accès public daté et avant-premières privées */
.rm-locked-page {
  min-height: 100svh;
  overflow: hidden;
}
.rm-lock {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  isolation: isolate;
  overflow: hidden;
}
.rm-lock::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(191, 76, 28, .16), transparent 22rem),
    radial-gradient(circle at 20% 85%, rgba(91, 32, 15, .13), transparent 25rem),
    #030303;
}
.rm-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: repeating-radial-gradient(circle at 25% 35%, transparent 0 2px, rgba(255,255,255,.04) 2px 3px);
  mix-blend-mode: soft-light;
}
.rm-lock-card {
  width: min(46rem, 100%);
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1.4rem, 7vw, 5.5rem);
  text-align: center;
  border: 1px solid rgba(213, 153, 83, .19);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(18, 15, 12, .9), rgba(5, 5, 5, .82));
  box-shadow: 0 2rem 7rem rgba(0,0,0,.66), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
  animation: rmLockEnter 1.35s ease both;
}
.rm-lock-brand {
  display: inline-block;
  margin-bottom: 3.2rem;
  color: #f6ead9;
  font: 400 clamp(2rem, 8vw, 3.5rem)/1 Great Vibes, cursive;
  text-decoration: none;
}
.rm-lock-kicker {
  margin: 0 0 1.3rem;
  color: #c89155;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.rm-lock h1 {
  margin: 0;
  color: #f7f1e8;
  font: 500 clamp(4rem, 15vw, 8rem)/.82 Cormorant Garamond, serif;
  letter-spacing: -.055em;
}
.rm-lock-message {
  max-width: 32rem;
  margin: 2.2rem auto;
  color: #c9c0b5;
  font: 400 clamp(1.15rem, 3vw, 1.65rem)/1.5 Cormorant Garamond, serif;
}
.rm-lock-date {
  display: grid;
  gap: .45rem;
  width: min(25rem, 100%);
  margin: 2.4rem auto 1.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(205, 144, 74, .28);
  border-bottom: 1px solid rgba(205, 144, 74, .28);
}
.rm-lock-date span {
  color: #988a79;
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.rm-lock-date strong {
  color: #e5b678;
  font: 500 clamp(1.55rem, 5vw, 2.35rem)/1.1 Cormorant Garamond, serif;
}
.rm-lock-small,
.rm-lock-error {
  color: #91877a;
  font-size: .78rem;
  line-height: 1.65;
}
.rm-lock-error { color: #d89478; }
.rm-lock-return {
  display: inline-flex;
  margin-top: 1.6rem;
  padding: .75rem 1.25rem;
  border: 1px solid rgba(211, 155, 89, .3);
  border-radius: 999px;
  color: #d9c4a8;
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.rm-lock-return:hover { border-color: #cf9455; color: #fff; transform: translateY(-2px); }
.rm-lock-signature {
  margin: 2.6rem 0 0;
  color: #d8a464;
  font: 400 2.2rem/1 Great Vibes, cursive;
}
.rm-lock-embers i {
  position: absolute;
  bottom: -2rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff7b2e;
  box-shadow: 0 0 12px #ff6520;
  opacity: 0;
  animation: rmLockEmber 8s linear infinite;
}
.rm-lock-embers i:nth-child(1){left:12%;animation-delay:-1s}.rm-lock-embers i:nth-child(2){left:29%;animation-delay:-5s}.rm-lock-embers i:nth-child(3){left:46%;animation-delay:-2.5s}.rm-lock-embers i:nth-child(4){left:64%;animation-delay:-6.5s}.rm-lock-embers i:nth-child(5){left:78%;animation-delay:-3.8s}.rm-lock-embers i:nth-child(6){left:91%;animation-delay:-7.3s}
.rm-preview-welcome,
.rm-preview-message {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease;
}
.rm-preview-welcome.is-visible,
.rm-preview-message.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.rm-preview-welcome {
  margin: 0 0 .65rem;
  color: #e9bb7e;
  font: 400 clamp(2rem, 6vw, 3.5rem)/1 Great Vibes, cursive;
}
.rm-preview-message {
  max-width: 35rem;
  margin: 0 auto 1.8rem;
  color: #a99f92;
  font: 400 1rem/1.6 Cormorant Garamond, serif;
}
@keyframes rmLockEnter { from { opacity: 0; transform: translateY(20px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rmLockEmber { 0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; } 16% { opacity: .65; } 100% { transform: translate3d(30px,-105vh,0) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rm-lock-card, .rm-lock-embers i { animation: none !important; } }
