/* Site de Mementa : l'ambiance de la présentation de l'app (sombre, Fraunces, bouton crème), scènes construites en CSS. */
:root {
  --bg: #15120f;
  --bg-deep: #0e0c0a;
  --surface: #1f1b18;
  --surface-2: #2a2521;
  --border: rgba(244, 237, 228, .1);
  --cream: #f4ede4;
  --text: #f4ede4;
  --muted: #a89f95;
  --apricot: #f0986f;
  --accent: #e07a4f;
  --star: #f2a33a;
  --c-film: #e07a4f;
  --c-series: #8f8cf0;
  --c-book: #4fb39a;
  --c-video: #ef5a4c;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-snap-type: y proximity; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.screen { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; position: relative; }

/* Logo : la marque de l'app, en crème */
.brand { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; font: 700 26px/1 var(--serif); letter-spacing: -0.01em; }
.brand svg { width: .95em; height: 1.02em; }
.brand path { fill: currentColor; }
.brand-xl { font-size: clamp(46px, 6vw, 68px); }

.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }

/* Boutons : la pilule crème de « Continuer » */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font: 500 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-cream { background: var(--cream); color: #1d2230; }
.btn-cream:hover { background: #fffaf3; }
.btn-line { color: var(--text); box-shadow: inset 0 0 0 1px rgba(244, 237, 228, .22); min-height: 44px; padding: 0 18px; font-size: 15px; background: rgba(21, 18, 15, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-text { color: var(--text); min-height: 44px; padding: 0 8px; font-size: 16px; }

.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--apricot); }

/* ───────── Héros : un mur d'affiches qui défile lentement ───────── */
.hero { display: flex; align-items: flex-end; padding: 96px 0 clamp(56px, 10vh, 110px); isolation: isolate; overflow: hidden; }
.wall {
  position: absolute; inset: -12% -8% -12% 42%; z-index: -1;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  transform: rotate(-8deg);
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .35) 22%, #000 50%), linear-gradient(to top, transparent 10%, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .35) 22%, #000 50%), linear-gradient(to top, transparent 10%, #000 45%);
  mask-composite: intersect;
}
.col { display: flex; flex-direction: column; gap: 16px; }
.col:nth-child(even) { margin-top: -90px; }
.col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; background: var(--surface); }
.hero-text { max-width: 560px; position: relative; }
.hero h1 { font: 600 clamp(38px, 5.2vw, 64px)/1.04 var(--serif); letter-spacing: -0.02em; margin: 26px 0 18px; text-wrap: balance; }
.hero .lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; }
.note { color: var(--muted); font-size: 14px; }

/* ───────── Chapitres : un écran chacun, une scène et un texte ───────── */
.chapter { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 56px 0; }
.chapter.flip .scene { order: 2; }
.chapter h2 { font: 600 clamp(32px, 4.2vw, 52px)/1.06 var(--serif); letter-spacing: -0.02em; margin: 16px 0 16px; text-wrap: balance; }
.chapter p { color: var(--muted); font-size: 19px; max-width: 36ch; text-wrap: pretty; }
.scene { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; }

/* Pastille de catégorie, comme sur les cartes de l'app */
.tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(14, 12, 10, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 13px/1 var(--sans); color: var(--cream); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }

/* Scène 1 : la bibliothèque en éventail */
.card { position: absolute; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); background: var(--surface); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.lib-film { width: 36%; aspect-ratio: 2/3; left: 4%; top: 20%; transform: rotate(-12deg); --c: var(--c-film); }
.lib-series { width: 38%; aspect-ratio: 2/3; left: 31%; top: 2%; transform: rotate(-1deg); z-index: 2; --c: var(--c-series); }
.lib-book { width: 34%; aspect-ratio: 2/3; right: 3%; top: 18%; transform: rotate(11deg); --c: var(--c-book); }
.lib-video { width: 50%; aspect-ratio: 16/9; left: 30%; bottom: 2%; transform: rotate(3deg); z-index: 3; --c: var(--c-video);
  background: radial-gradient(90% 120% at 25% 20%, #ffd166 0, #ff7a59 30%, #7b2ff7 70%, #2a1257 100%); }
.lib-video .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(14, 12, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; }
.lib-video .play::after { content: ''; margin-left: 4px; width: 16px; height: 19px; background: var(--cream); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.lib-video .dur { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); font: 500 12px/1.2 var(--sans); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font: 500 13px/1 var(--sans); }
.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin-top: 8px; overflow: hidden; }
.bar b { display: block; height: 100%; width: var(--p, 50%); background: var(--c, var(--accent)); border-radius: inherit; }

/* Scène 2 : un avis avec ses émotions */
.review { position: absolute; inset: 12% 2% auto; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.review-head { display: flex; gap: 16px; }
.review-head img { width: 84px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; flex: none; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.mini { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--sans); color: #1d2230; background: var(--av, #9fb4ff); }
.review h3 { font: 600 21px/1.2 var(--sans); margin: 8px 0 6px; }
.stars { color: var(--star); font-size: 20px; letter-spacing: 3px; }
.stars span { color: rgba(242, 163, 58, .3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.chip { padding: 8px 13px; border-radius: 999px; background: var(--surface-2); font: 500 14px/1 var(--sans); }
.chip.on { background: rgba(240, 152, 111, .14); box-shadow: inset 0 0 0 1.5px var(--apricot); color: #ffd9c6; }
.quote { font: italic 500 21px/1.35 var(--serif); }
.bubble { position: absolute; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.bubble.b1 { right: -2%; top: 6%; }
.bubble.b2 { right: 6%; bottom: 14%; }
.bubble.b3 { left: -2%; bottom: 22%; width: 48px; height: 48px; font-size: 21px; }

/* Scène 3 : les amis et ce qu'ils font */
.scene-friends { aspect-ratio: auto; display: grid; gap: 34px; }
.friends { display: flex; justify-content: center; gap: clamp(14px, 3vw, 26px); }
.friend { text-align: center; font-size: 14px; }
.friend .av { width: clamp(58px, 7vw, 74px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font: 600 24px/1 var(--serif); color: #1d2230; background: var(--av); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ring); }
.friend b { display: block; font-weight: 500; }
.friend small { color: var(--muted); font-size: 13px; }
.feed { display: grid; gap: 14px; }
.act { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 14px 16px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); }
.act:nth-child(2) { margin-left: 8%; margin-right: -4%; }
.act .mini { width: 44px; height: 44px; font-size: 17px; flex: none; }
.act div { flex: 1; min-width: 0; }
.act strong { font-weight: 600; }
.act p { font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.act img { width: 46px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; flex: none; }
.act .bar { --c: var(--c-series); }

/* ───────── « Ce soir » : cinq affiches en éventail sur une scène sombre ───────── */
.tonight { display: flex; align-items: center; padding: 48px 0; }
.stage {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; min-height: calc(100svh - 96px);
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: 36px;
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 32px; padding: clamp(32px, 6vw, 80px);
}
.stage::before { /* la lumière au sol de l'écran « Ce soir » de l'app */
  content: ''; position: absolute; z-index: -1; left: 40%; right: -6%; bottom: -12%; height: 60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 119, 60, .45), rgba(173, 79, 72, .12) 60%, transparent);
}
.stage h2 { font: 600 clamp(34px, 4.8vw, 60px)/1.03 var(--serif); letter-spacing: -0.02em; margin: 16px 0 18px; max-width: 13ch; }
.stage p { color: var(--muted); font-size: 19px; max-width: 36ch; }
.moods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.moods span { padding: 10px 16px; border-radius: 999px; background: rgba(244, 237, 228, .07); box-shadow: inset 0 0 0 1px rgba(244, 237, 228, .12); font-size: 15px; }
.moods span.on { background: var(--cream); color: #1d2230; box-shadow: none; }
.fan { position: relative; height: min(56vh, 460px); }
.fan img { position: absolute; left: 50%; bottom: 14%; width: 30%; aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; transform-origin: 50% 260%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); translate: -50% 0; }
.fan img:nth-child(1) { rotate: -16deg; }
.fan img:nth-child(2) { rotate: -8deg; }
.fan img:nth-child(3) { rotate: 0deg; z-index: 2; width: 34%; }
.fan img:nth-child(4) { rotate: 8deg; }
.fan img:nth-child(5) { rotate: 16deg; }
.count { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 3; display: flex; gap: 6px; }
.count i { width: 26px; height: 4px; border-radius: 4px; background: var(--apricot); }

.final { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 64px 0; }
.final h2 { font: 600 clamp(32px, 4.6vw, 54px)/1.06 var(--serif); letter-spacing: -0.02em; margin: 28px auto 30px; max-width: 18ch; text-wrap: balance; }

footer { border-top: 1px solid var(--border); }
footer .wrap { padding: 28px 0 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ───────── Page d'invitation : /u/<pseudo> ───────── */
.invite .hero { align-items: center; }
.invite .wall { inset: -10%; opacity: .5; -webkit-mask-image: none; mask-image: none; }
.invite .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(21, 18, 15, .94) 35%, rgba(21, 18, 15, .6) 100%); }
.invite-card { width: min(460px, 100%); margin-inline: auto; text-align: center; }
.avatar { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: linear-gradient(135deg, #f6b08e, #f0986f); color: #1d2230; display: grid; place-items: center; font: 600 42px/1 var(--serif); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--apricot); }
.invite-card h1 { font: 600 clamp(34px, 8vw, 46px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 14px 0 14px; text-wrap: balance; }
.invite-card .lead { color: var(--muted); font-size: 18px; margin-inline: auto; max-width: 30ch; }
.invite-card .cta { flex-direction: column; align-items: stretch; margin-top: 32px; }
.steps { list-style: none; text-align: left; margin-top: 34px; display: grid; gap: 14px; color: var(--muted); font-size: 15px; counter-reset: s; background: rgba(31, 27, 24, .85); border: 1px solid var(--border); border-radius: 22px; padding: 20px 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.steps li { display: flex; gap: 12px; align-items: baseline; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(240, 152, 111, .16); color: var(--apricot); font: 600 13px/24px var(--sans); text-align: center; }

/* ───────── Mobile ───────── */
@media (max-width: 860px) {
  .hero { padding-bottom: 48px; }
  .wall { inset: -8% -30% 44% -30%; grid-template-columns: repeat(4, 1fr); gap: 10px;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 55%); mask-image: linear-gradient(to top, transparent 0, #000 55%); -webkit-mask-composite: source-over; mask-composite: add; }
  .col { gap: 10px; }
  .col img { border-radius: 12px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .chapter.flip .scene { order: 0; }
  .scene { width: min(100%, 420px); }
  .review { padding: 18px; inset: 10% 0 auto; }
  .review-head img { width: 64px; }
  .quote { font-size: 18px; }
  .bubble.b2, .bubble.b3 { display: none; }
  .stage { grid-template-columns: 1fr; min-height: calc(100svh - 64px); }
  .tonight { padding: 32px 0; }
  .fan { height: 300px; }
  .invite .wall { inset: -10% -40%; }
}

@media (prefers-reduced-motion: no-preference) {
  .col { animation: drift 80s linear infinite alternate; }
  .col:nth-child(even) { animation-direction: alternate-reverse; }
  @keyframes drift { from { translate: 0 0; } to { translate: 0 -30%; } }
  .bubble { animation: float 6s ease-in-out infinite alternate; }
  .bubble.b2 { animation-delay: -2s; }
  .bubble.b3 { animation-delay: -4s; }
  @keyframes float { to { translate: 0 -10px; } }
  .reveal { animation: up 1s cubic-bezier(.2, .8, .2, 1) both; }
  .reveal-2 { animation-delay: .12s; }
  .reveal-3 { animation-delay: .24s; }
  @keyframes up { from { opacity: 0; translate: 0 20px; } }
}
