/* Memorable — joinmemorable.app
   Direction « chambre noire premium », alignée sur l'app (theme/index.ts) :
   fond noir chaud éclairé par le haut, or comme matière, tirages photo, verre fumé.
   Fraunces uniquement pour les grands titres (≥ 20 px) ; le reste en police système. */

:root {
  --bg: #100f0d;
  --bg-deep: #0b0a08;
  --bg-glow: #2b2116;
  --surface: #1a1816;
  --border: #2a2724;

  --gold: #c9a961;
  --gold-light: #f3dfae;
  --gold-soft: #e9cf8f;
  --gold-deep: #a88645;
  --gold-shadow: #8e6e35;
  --on-gold: #1a1409;
  --gold-tint: rgba(201, 169, 97, 0.14);

  --text: #f5efe4;
  --text-soft: #a89c8a;
  --text-dim: #6f665a;
  --print: #efe6d6;
  --success: #46a758;
  --error: #e5484d;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  --radius-card: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg-deep);
  /* Lueur chaude en haut → noir profond, comme le fond d'ambiance de l'app. */
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(43, 33, 22, 0.95) 0%, rgba(16, 15, 13, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Grain argentique très léger sur tout le site. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* `hidden` doit gagner sur les display des composants (ex. .code en flex). */
[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------------- Typographie ---------------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(44px, 6.2vw, 84px);
  text-wrap: balance;
  line-height: 1;
  letter-spacing: -0.035em;
}

.title {
  text-wrap: balance;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-shadow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 36ch;
}

.kicker {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------------- Boutons ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow:
    0 10px 30px rgba(201, 169, 97, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 38px rgba(201, 169, 97, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Reflet qui balaie l'or (GoldSheen de l'app). */
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 5.5s var(--ease) 1.4s infinite;
  pointer-events: none;
}

@keyframes sheen {
  0% { transform: translateX(-120%); }
  22%, 100% { transform: translateX(120%); }
}

.btn-glass {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: var(--glass-strong);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn[aria-disabled='true'] {
  cursor: default;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------------- Navigation ---------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(16, 15, 13, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-shadow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 72px;
}

/* Mur de photos floues : colonnes qui défilent en sens alternés, inclinées, sous un voile. */
.hero {
  isolation: isolate;
}

/* .photo-wall découpe le mur à la taille de sa section (et porte le masque de fondu) ;
   .wall-inner est le mur lui-même, plus grand et incliné. */
.photo-wall {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  opacity: 0.5;
  pointer-events: none;
}

.wall-inner {
  position: absolute;
  inset: -20% -10%;
  display: flex;
  justify-content: center;
  gap: 18px;
  transform: rotate(-8deg);
}

.wall-col {
  flex: 0 0 clamp(110px, 13vw, 190px);
  overflow: hidden;
}

.wall-track {
  animation: wall-scroll var(--dur, 70s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.wall-col:nth-child(even) .wall-track {
  animation-direction: reverse;
}

.wall-track img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 16px;
  filter: blur(3px) saturate(1.1);
}

/* Bords fondus par masque : mur et voile disparaissent dans le fond du site, sans ligne. */
.hero .photo-wall,
.hero::after {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.final .photo-wall,
.final::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 62%, transparent 100%);
}

/* Le mur du haut apparaît en fondu au chargement. */
.hero .photo-wall {
  animation: halo-in 2.2s ease-out both;
}

/* La piste contient deux fois la même série : -50 % = un cycle exact, boucle sans couture. */
@keyframes wall-scroll {
  to { transform: translateY(-50%); }
}

/* Voile : lisibilité du texte (plus sombre à gauche) et fondu vers le fond en bas. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 22% 50%, rgba(11, 10, 8, 0.82), rgba(11, 10, 8, 0.35) 70%),
    linear-gradient(180deg, rgba(16, 15, 13, 0.55) 0%, rgba(16, 15, 13, 0.2) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-copy .display {
  margin: 0 0 24px;
}

.hero-copy .lede {
  margin-bottom: 36px;
}

/* Entrée du haut de page : chaque ligne monte en sortant du flou, l'une après l'autre. */
.hero .line {
  display: block;
}

.intro {
  animation: rise 1.1s var(--ease) var(--delay, 0s) both;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 26px;
    filter: blur(10px);
  }
}

/* Halo doré derrière la pile de tirages. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.2), rgba(201, 169, 97, 0) 70%);
  pointer-events: none;
}

/* ---------------- Tirages photo ---------------- */

.print {
  position: relative;
  padding: 7px 7px 26px;
  background: var(--print);
  border-radius: 4px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.print img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}

/* Pile de l'accueil : même composition que l'écran d'accueil de l'app (PhotoStack).
   Trois niveaux par tirage, chacun son mouvement, pour que les transformations ne se
   marchent pas dessus :
     .slot    → position, rotation, profondeur 3D, arrivée en éventail (ressort) ;
     .floater → flottement lent, hors phase entre les tirages ;
     .print   → le tirage lui-même : « développement » de la photo, reflet glacé.
   Les valeurs de repos sont l'état final : sans animation, la pile est simplement posée. */
.hero-visual {
  perspective: 1400px;
}

.stack {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 1.04;
  transform-style: preserve-3d;
  /* --tx / --ty : pointeur lissé (-1 → 1) ; --sy : parallaxe au scroll. Écrits par site.js. */
  --tx: 0;
  --ty: 0;
  --sy: 0px;
  transform:
    translateY(var(--sy))
    rotateX(calc(var(--ty) * -7deg))
    rotateY(calc(var(--tx) * 9deg));
}

.slot {
  position: absolute;
  transform-style: preserve-3d;
  rotate: var(--r);
  transform: translate3d(
    calc(var(--tx) * var(--d) * 14px),
    calc(var(--ty) * var(--d) * 10px),
    calc(var(--d) * 60px)
  );
  animation: deal 1.25s cubic-bezier(0.34, 1.32, 0.64, 1) var(--in, 0s) both;
}

.slot.p-left {
  width: 44.6%;
  left: 1.5%;
  top: 15%;
  --r: -9deg;
  --d: 0.4;
  --from: 58%;
  --in: 0.28s;
}

.slot.p-right {
  width: 44.6%;
  right: 1.5%;
  top: 12%;
  --r: 8deg;
  --d: 0.5;
  --from: -58%;
  --in: 0.36s;
}

.slot.p-hero {
  width: 50.8%;
  left: 24.6%;
  top: 0;
  z-index: 2;
  --r: -1.5deg;
  --d: 1;
  --from: 0%;
  --in: 0.1s;
}

/* Les tirages partent empilés au centre, puis s'ouvrent en éventail avec un léger rebond. */
@keyframes deal {
  from {
    opacity: 0;
    translate: var(--from) 36px;
    rotate: 0deg;
    scale: 0.86;
  }
  35% {
    opacity: 1;
  }
}

.floater {
  animation: float 7s ease-in-out var(--fd, 0s) infinite;
}

.p-left .floater { --fd: -2.3s; }
.p-right .floater { --fd: -4.6s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.stack .print {
  overflow: hidden;
}

/* Développement : noir → ambre de lampe inactinique → couleurs, comme la révélation de 21h. */
.stack .print img {
  animation: develop 2.6s cubic-bezier(0.45, 0, 0.2, 1) 0.55s both;
}

.p-left .print img { animation-duration: 2s; animation-delay: 0.75s; }
.p-right .print img { animation-duration: 2s; animation-delay: 0.85s; }

@keyframes develop {
  0% { filter: brightness(0.06) sepia(1) saturate(2.2) hue-rotate(-14deg) contrast(1.2); }
  45% { filter: brightness(0.62) sepia(0.85) saturate(1.5) hue-rotate(-8deg) contrast(1.08); }
  100% { filter: none; }
}

/* Reflet glacé qui traverse le tirage principal, de temps en temps. */
.p-hero .print::after {
  content: '';
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-70%);
  animation: gloss 9s cubic-bezier(0.45, 0, 0.2, 1) 3.4s infinite;
  pointer-events: none;
}

@keyframes gloss {
  0% { transform: translateX(-70%); }
  16%, 100% { transform: translateX(70%); }
}

/* Couronne : tombe sur la gagnante une fois la photo développée, puis brille doucement. */
.crown {
  position: absolute;
  left: 50%;
  top: -30px;
  z-index: 1;
  width: 44px;
  translate: -50% 0;
  rotate: 1.5deg;
  color: var(--gold);
  filter: drop-shadow(0 6px 14px rgba(201, 169, 97, 0.45));
}

.stack .crown {
  animation:
    crown-drop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2.7s both,
    crown-glow 3.2s ease-in-out 3.6s infinite;
}

@keyframes crown-drop {
  from {
    opacity: 0;
    translate: -50% -26px;
    scale: 0.6;
  }
}

@keyframes crown-glow {
  0%, 100% { filter: drop-shadow(0 6px 14px rgba(201, 169, 97, 0.4)); }
  50% { filter: drop-shadow(0 6px 22px rgba(233, 207, 143, 0.75)); }
}

/* Halo doré qui s'allume derrière la pile pendant le développement. */
.hero-visual::before {
  animation: halo-in 2.4s ease-out 0.8s both;
}

@keyframes halo-in {
  from { opacity: 0; }
}

/* ---------------- Sections ---------------- */

.section {
  padding-block: clamp(88px, 12vw, 160px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head .title {
  margin-top: 12px;
}

/* Les trois temps du rituel. */
.ritual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 12px 12px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.card-body {
  padding: 0 16px;
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

.card p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

.scene {
  position: relative;
  height: 240px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: radial-gradient(90% 80% at 50% 0%, rgba(43, 33, 22, 0.9), rgba(16, 15, 13, 0.4));
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Scène 1 : un tirage + le bouton de capture. */
.scene-post .print {
  width: 120px;
  transform: rotate(-4deg);
}

.capture {
  position: absolute;
  left: calc(50% + 28px);
  top: calc(50% + 34px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 10px rgba(201, 169, 97, 0.16), 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Scène 2 : trois photos anonymes, un vote. */
.vote-row {
  display: flex;
  gap: 10px;
  padding: 0 20px;
}

.vote-tile {
  position: relative;
  width: 84px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.vote-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vote-tile.is-picked {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  transform: translateY(-6px);
}

.vote-check {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--on-gold);
}

/* Scène 3 : 21:00 et la gagnante. */
.scene-reveal .print {
  width: 116px;
  transform: rotate(2deg);
}

.scene-reveal .crown {
  width: 34px;
  top: -24px;
}

.scene-reveal .clock {
  position: absolute;
  left: 22px;
  bottom: 16px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Survol des cartes : elles se soulèvent, le bord s'éclaire, la scène respire. */
.card {
  transition:
    opacity 0.9s var(--ease),
    transform 0.6s var(--ease),
    border-color 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}

.scene > * {
  transition: scale 0.8s var(--ease);
}

@media (hover: hover) {
  .js .card.fx.in:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 97, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.4);
    transition-delay: 0s;
  }

  .card:hover .scene > * {
    scale: 1.04;
  }
}

/* Scène 1 : flash de l'appareil sur le tirage, puis le bouton de capture « respire ». */
.scene-post .print {
  overflow: hidden;
}

.scene-post .print::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff6ea;
  opacity: 0;
  pointer-events: none;
}

.card.in .scene-post .print::after {
  animation: flash 1.1s ease-out 0.5s both;
}

@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: 0.95; }
  100% { opacity: 0; }
}

.capture::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 97, 0.55);
  opacity: 0;
}

.card.in .capture::before {
  animation: ring 2.8s ease-out 1.4s infinite;
}

@keyframes ring {
  0% { opacity: 0.8; scale: 1; }
  100% { opacity: 0; scale: 1.7; }
}

/* Scène 2 : les photos arrivent, une est choisie, la coche apparaît. */
.card.in .vote-tile {
  animation: tile-in 0.8s var(--ease) both;
}

.card.in .vote-tile:nth-child(1) { animation-delay: 0.25s; }
.card.in .vote-tile:nth-child(2) { animation-delay: 0.35s; }
.card.in .vote-tile:nth-child(3) { animation-delay: 0.45s; }

@keyframes tile-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

.vote-tile.is-picked {
  transform: none;
  translate: 0 -6px;
}

.card.in .vote-tile.is-picked {
  animation:
    tile-in 0.8s var(--ease) 0.35s both,
    pick 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes pick {
  from {
    translate: 0 0;
    outline-color: transparent;
  }
}

.card.in .vote-check {
  animation: pop 0.5s cubic-bezier(0.34, 1.7, 0.64, 1) 1.45s both;
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.2;
  }
}

/* Scène 3 : la photo se développe, la couronne tombe, l'heure s'affiche. */
.card.in .scene-reveal .print img {
  animation: develop 2.2s cubic-bezier(0.45, 0, 0.2, 1) 0.4s both;
}

.card.in .scene-reveal .crown {
  animation: crown-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 2s both;
}

.card.in .scene-reveal .clock {
  animation: rise 1s var(--ease) 0.3s both;
}

/* Calendrier : les gagnantes se posent jour après jour. */
.calendar.in .cal-day img {
  animation: day-in 0.7s var(--ease) calc(0.25s + var(--i, 0) * 28ms) both;
}

@keyframes day-in {
  from {
    opacity: 0;
    scale: 0.7;
  }
}

/* ---------------- Album ---------------- */

.album {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.album .title {
  margin: 12px 0 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 14px;
  color: var(--text);
}

.calendar {
  padding: 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
}

.cal-count {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  padding-bottom: 4px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: capitalize;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.cal-day img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cal-day span {
  position: absolute;
  left: 6px;
  top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.cal-day.has-photo span {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.cal-day.is-empty {
  background: transparent;
}

/* ---------------- CTA final ---------------- */

/* Même mur flou que le haut de page, sous un voile centré qui se fond dans le fond en haut
   et en bas : la page se referme comme elle s'ouvre. */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(140px, 16vw, 220px) 0;
}

.final::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(11, 10, 8, 0.85), rgba(11, 10, 8, 0.5) 100%);
}

.final .title {
  max-width: 14ch;
  margin: 0 auto 32px;
}

.final .cta-row {
  justify-content: center;
}

.invite-hint {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--text-soft);
}

.invite-hint a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.invite-hint a:hover {
  text-decoration: underline;
}

/* ---------------- Pied de page ---------------- */

.footer {
  margin-top: auto;
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer .wordmark {
  font-size: 20px;
}

.made-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------------- Pages courtes (invitation, e-mail, légal, 404) ---------------- */

.page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 72px;
}

.panel {
  width: 100%;
  max-width: 480px;
  padding: clamp(28px, 6vw, 44px);
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.panel h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 6vw, 38px);
  line-height: 1.1;
}

.panel .lede {
  margin: 0 auto;
  font-size: 17px;
}

.panel .cta-row {
  justify-content: center;
  margin-top: 32px;
}

.panel .cta-row .btn {
  flex: 1 1 200px;
}

/* Petite pile de tirages en tête de l'invitation. */
.mini-stack {
  position: relative;
  width: 168px;
  height: 120px;
  margin: 0 auto 20px;
}

.mini-stack .print {
  position: absolute;
  top: 6px;
  width: 64px;
  padding: 4px 4px 14px;
  border-radius: 3px;
}

.mini-stack .print:nth-child(1) { left: 6px; transform: rotate(-10deg); }
.mini-stack .print:nth-child(2) { right: 6px; transform: rotate(9deg); }
.mini-stack .print:nth-child(3) { left: 50%; top: 0; width: 72px; z-index: 1; transform: translateX(-50%) rotate(-1.5deg); }

/* Code d'invitation. */
.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  padding: 10px 10px 10px 22px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
}

.code-value {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.copy-btn:hover {
  background: var(--glass-strong);
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn.is-done {
  color: var(--success);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 14px;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.steps strong {
  font-weight: 600;
  line-height: 32px;
}

.steps span {
  font-size: 15px;
  color: var(--text-soft);
}

/* Icône d'état (e-mail confirmé, 404). */
.status-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-shadow));
  box-shadow: 0 0 0 10px rgba(201, 169, 97, 0.12), 0 12px 32px rgba(201, 169, 97, 0.3);
}

.status-icon[data-tone='wait'] {
  background: var(--gold-tint);
  color: var(--gold);
  box-shadow: none;
}

.status-icon[data-tone='error'] {
  background: rgba(229, 72, 77, 0.14);
  color: var(--error);
  box-shadow: none;
}

.status-icon svg {
  display: none;
}

.status-icon[data-tone='ok'] .i-ok,
.status-icon[data-tone='wait'] .i-wait,
.status-icon[data-tone='error'] .i-error {
  display: block;
}

/* Pages légales. */
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 140px var(--gutter) 96px;
}

.legal h1 {
  margin: 10px 0 28px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.05;
}

.legal p {
  color: var(--text-soft);
}

/* Texte légal bilingue : seul le bloc de la langue de la page s'affiche. */
[data-lang] {
  display: none;
}

html[lang='fr'] [data-lang='fr'],
html[lang='en'] [data-lang='en'],
html[data-legal='fr'] [data-lang='fr'],
html[data-legal='en'] [data-lang='en'] {
  display: block;
}

/* Les autres langues lisent la version anglaise : pas de double affichage. */
html[data-legal='en'] [data-lang='fr'] {
  display: none;
}

.legal-langnote {
  margin-top: 12px;
  color: var(--gold-soft);
}

/* Choix de la langue, dans le pied de page. */
.lang-picker {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 34px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a89c8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
      no-repeat right 12px center,
    var(--glass);
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lang-picker:hover {
  color: var(--text);
}

.lang-picker option {
  background: var(--surface);
  color: var(--text);
}

.legal h2 {
  margin: 36px 0 10px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

.legal-meta {
  font-size: 14px;
}

.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--gold-tint);
  color: var(--gold-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------------- Apparitions au scroll ---------------- */

.js .fx {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .fx.in {
  opacity: 1;
  transform: none;
}

.js .fx-d1 { transition-delay: 0.08s; }
.js .fx-d2 { transition-delay: 0.16s; }
.js .fx-d3 { transition-delay: 0.24s; }

/* ---------------- Responsive ---------------- */

/* ---------------- Dans le groupe ---------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 12px 12px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    opacity 0.9s var(--ease),
    transform 0.6s var(--ease),
    border-color 0.6s var(--ease);
}

.feature.is-wide {
  grid-column: span 2;
}

.feature h3,
.feature p {
  padding: 0 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.feature-scene {
  position: relative;
  height: 200px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: radial-gradient(90% 80% at 50% 0%, rgba(43, 33, 22, 0.9), rgba(16, 15, 13, 0.4));
  overflow: hidden;
  display: grid;
  place-items: center;
}

@media (hover: hover) {
  .js .feature.fx.in:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 97, 0.32);
    transition-delay: 0s;
  }
}

.mini-avatar {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Médailles : mêmes métaux que l'app (bronze, argent, or), la plus rare au centre. */
.medals {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

.medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: clamp(54px, 9vw, 84px);
}

.medal.is-hero {
  width: clamp(78px, 13vw, 116px);
}

.medal-shine {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 999px;
}

.medal-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.medal.is-hero .medal-shine::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(230, 180, 60, 0.35), rgba(230, 180, 60, 0) 65%);
  z-index: -1;
}

/* Reflet qui balaie la médaille de temps en temps. */
.medal-shine::after {
  content: '';
  position: absolute;
  inset: 0 0 6% 0;
  border-radius: 999px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 120% 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.feature.in .medal-shine::after {
  animation: medal-shine 5s var(--ease) 1.2s infinite;
}

.feature.in .medal:nth-child(2) .medal-shine::after { animation-delay: 1.6s; }
.feature.in .medal:nth-child(3) .medal-shine::after { animation-delay: 1.4s; }
.feature.in .medal:nth-child(4) .medal-shine::after { animation-delay: 1.8s; }
.feature.in .medal:nth-child(5) .medal-shine::after { animation-delay: 2s; }

@keyframes medal-shine {
  0% { background-position: 120% 0; }
  30%, 100% { background-position: -120% 0; }
}

.feature.in .medal {
  animation: medal-in 0.8s var(--ease) both;
}

.feature.in .medal:nth-child(1) { animation-delay: 0.2s; }
.feature.in .medal:nth-child(2) { animation-delay: 0.3s; }
.feature.in .medal:nth-child(3) { animation-delay: 0.45s; }
.feature.in .medal:nth-child(4) { animation-delay: 0.35s; }
.feature.in .medal:nth-child(5) { animation-delay: 0.25s; }

@keyframes medal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

.medal-label {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.medal.is-hero .medal-label {
  color: var(--gold-light);
  font-weight: 600;
}

/* Série : grande flamme, compteur et la semaine. */
.streak-scene {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.streak-flame {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 18px rgba(230, 180, 60, 0.4));
}

.feature.in .streak-flame {
  animation: flicker 2.8s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.04, 0.98) rotate(-2deg); }
  60% { transform: scale(0.98, 1.04) rotate(1.5deg); }
}

.streak-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.streak-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.streak-days {
  color: var(--text-soft);
  font-size: 14px;
}

.streak-dots {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}

.streak-dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.streak-dots i.is-today {
  background: transparent;
  border: 2px solid var(--gold);
}

.feature.in .streak-dots i.is-today {
  animation: today 1.8s ease-in-out infinite;
}

@keyframes today {
  50% { box-shadow: 0 0 0 5px rgba(201, 169, 97, 0.18); }
}

/* Contours : du bronze à l'or, ils grandissent avec la série. */
.frames-scene {
  display: flex;
  align-items: center;
  gap: 18px;
}

.frames-scene .mini-avatar {
  width: 52px;
  height: 52px;
  overflow: visible;
  background: none;
  border-radius: 999px;
}

.frames-scene .mini-avatar img {
  border-radius: 999px;
  border: 3px solid var(--bg);
}

.ring-bronze {
  padding: 2px;
  background: linear-gradient(135deg, #e6c08f, #b08d57, #4f3a1f) !important;
}

.ring-silver {
  padding: 3px;
  background: linear-gradient(135deg, #e2e8ee, #aeb8c3, #4c5560) !important;
  transform: scale(1.12);
}

.ring-gold {
  padding: 4px;
  background: conic-gradient(#fbe6a2, #e6b43c, #6e4c10, #e6b43c, #fbe6a2) !important;
  box-shadow: 0 0 28px rgba(230, 180, 60, 0.45);
  transform: scale(1.3);
}

/* Réactions et commentaires. */
.talk-scene {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 0 20px;
}

.talk-print {
  width: 96px;
  flex: none;
  transform: rotate(-4deg);
}

.talk-print img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.talk-thread {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  white-space: nowrap;
}

.bubble .mini-avatar {
  width: 26px;
  height: 26px;
}

.bubble.is-reply {
  margin-left: 22px;
}

.talk-reactions {
  display: flex;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.talk-reactions li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-tint);
  border: 1px solid rgba(201, 169, 97, 0.3);
  font-size: 13px;
}

/* Podium. */
.podium-scene {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100%;
  padding-top: 34px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-block {
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(76px, 10vw, 104px);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  border-bottom: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-soft);
}

.step-1 .step-block {
  height: 96px;
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.35), rgba(201, 169, 97, 0.06));
  border-color: rgba(201, 169, 97, 0.45);
  color: var(--gold-light);
}

.step-1 .step-block small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-soft);
}

.step-2 .step-block {
  height: 66px;
}

.step-3 .step-block {
  height: 46px;
}

.step-1 .mini-avatar {
  width: 50px;
  height: 50px;
  box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(201, 169, 97, 0.4);
}

.podium-crown {
  position: absolute;
  top: -26px;
  width: 30px;
  color: var(--gold);
  filter: drop-shadow(0 4px 10px rgba(201, 169, 97, 0.45));
}

/* Surnoms. */
.nick-scene {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 78%;
}

.nick-tag {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: -0.01em;
}

.nick-votes {
  display: grid;
  gap: 6px;
  width: 100%;
}

.nick-row {
  display: grid;
  grid-template-columns: 52px 1fr 14px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.nick-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--glass-strong);
  overflow: hidden;
}

.nick-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}

.nick-row.is-against .nick-bar i {
  background: var(--text-dim);
}

/* ---------------- Découvrir ---------------- */

.discover-visual {
  display: grid;
  place-items: center;
}

.feed-print {
  position: relative;
  width: min(340px, 80vw);
  padding: 18px;
  border-radius: var(--radius-card);
  background: radial-gradient(90% 70% at 50% 0%, rgba(43, 33, 22, 0.95), rgba(16, 15, 13, 0.6));
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.feed-print .print {
  transform: rotate(-1.5deg);
}

.feed-print .print img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}

.feed-print .crown {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 44px;
  translate: -50% 0;
  z-index: 1;
}

.feed-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

/* Contour Lauréat : anneau doré autour de la photo de profil. */
.feed-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 2px;
  border-radius: 999px;
  background: conic-gradient(var(--gold-light), var(--gold), var(--gold-deep), var(--gold-light));
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 2px solid var(--bg);
  object-fit: cover;
}

.feed-handle {
  font-weight: 600;
  font-size: 15px;
}

.feed-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-tint);
  border: 1px solid rgba(201, 169, 97, 0.35);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.feed-reactions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feed-reactions li {
  flex: 1;
  padding: 7px 0;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  text-align: center;
  font-size: 15px;
}

.feed-reactions span {
  color: var(--text-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------------- Memorable+ ---------------- */

.plus-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-card);
  text-align: center;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(201, 169, 97, 0.16), rgba(201, 169, 97, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(201, 169, 97, 0.3);
}

.plus-card .title {
  margin: 12px 0 16px;
}

.plus-card .lede {
  margin: 0 auto;
}

.plus-chips {
  justify-content: center;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .discover .discover-visual {
    order: 2;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .feature.is-wide {
    grid-column: auto;
  }

  .feature {
    text-align: center;
  }

  .talk-print {
    display: none;
  }

  .talk-scene {
    padding: 0 12px;
  }

  .medals {
    gap: 6px;
    padding: 0 8px;
  }

  .medal {
    width: 46px;
  }

  .medal.is-hero {
    width: 68px;
  }

  .medal-label {
    font-size: 10.5px;
  }

  .bubble {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .section {
    padding-block: 72px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .final {
    padding: 120px 0;
  }

  /* Pas de profondeur 3D sur petit écran : les tirages latéraux déborderaient. */
  .slot {
    transform: none;
  }

  /* Ni inclinaison ni parallaxe : la pile est en bas du haut de page, elle serait rognée. */
  .stack {
    transform: none;
  }

  .hero::after {
    background:
      radial-gradient(90% 60% at 50% 35%, rgba(11, 10, 8, 0.8), rgba(11, 10, 8, 0.4) 75%),
      linear-gradient(180deg, rgba(16, 15, 13, 0.5) 0%, rgba(16, 15, 13, 0.25) 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero-copy .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .cta-row {
    justify-content: center;
  }

  .ritual {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .album {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .album .lede {
    margin: 0 auto;
  }

  .chips {
    justify-content: center;
  }

  .calendar {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .stack {
    width: 84vw;
  }

  .calendar {
    padding: 16px;
  }

  .cal-grid {
    gap: 4px;
  }

  .code-value {
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Très petits écrans : le logo seul dans la barre, pour laisser la place au bouton. */
@media (max-width: 360px) {
  .nav .brand .wordmark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .fx {
    opacity: 1;
    transform: none;
  }
}
