/* NeoVibe · le site vitrine
   Une page = une sortie, du jour à la nuit : chaque section déclare son
   heure (data-heure), et la page prend les couleurs de la section qui
   occupe le milieu de l'écran (js/ciel.js). Mobile d'abord. */

/* ─── Polices (celles de l'app, OFL) ─────────────────────────────────── */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* ─── Les couleurs animables ─────────────────────────────────────────── */
@property --ciel { syntax: "<color>"; inherits: true; initial-value: #F7F9FC; }
@property --encre { syntax: "<color>"; inherits: true; initial-value: #0F1319; }
@property --douce { syntax: "<color>"; inherits: true; initial-value: #4F5A6B; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #D10480; }
@property --sur-accent { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --ligne { syntax: "<color>"; inherits: true; initial-value: rgba(15, 19, 25, 0.1); }
@property --halo-a { syntax: "<color>"; inherits: true; initial-value: rgba(0, 169, 189, 0.2); }
@property --halo-b { syntax: "<color>"; inherits: true; initial-value: rgba(255, 192, 46, 0.28); }

/* Les heures de la journée. Chacune garde un contraste de lecture net. */
:root,
:root[data-heure="jour"] {
  --ciel: #F7F9FC; --encre: #0F1319; --douce: #4F5A6B; --accent: #D10480; --sur-accent: #FFFFFF;
  --surface: #FFFFFF; --ligne: rgba(15, 19, 25, 0.1);
  --halo-a: rgba(0, 169, 189, 0.2); --halo-b: rgba(255, 192, 46, 0.3);
}
:root[data-heure="apres-midi"] {
  --ciel: #FFF0E2; --encre: #2A1A14; --douce: #6B4F43; --accent: #C8037A; --sur-accent: #FFFFFF;
  --surface: #FFFFFF; --ligne: rgba(42, 26, 20, 0.12);
  --halo-a: rgba(249, 119, 60, 0.3); --halo-b: rgba(245, 48, 140, 0.16);
}
:root[data-heure="coucher"] {
  --ciel: #2E0F2C; --encre: #FFF3EE; --douce: #E2BDCD; --accent: #FFD35C; --sur-accent: #2E0F2C;
  --surface: rgba(255, 255, 255, 0.06); --ligne: rgba(255, 255, 255, 0.14);
  --halo-a: rgba(249, 119, 60, 0.42); --halo-b: rgba(245, 48, 140, 0.34);
}
:root[data-heure="nuit"] {
  --ciel: #07080C; --encre: #F3F6FB; --douce: #9AA5B8; --accent: #FF4FAC; --sur-accent: #0A0D14;
  --surface: rgba(255, 255, 255, 0.045); --ligne: rgba(255, 255, 255, 0.1);
  --halo-a: rgba(255, 79, 172, 0.2); --halo-b: rgba(58, 216, 232, 0.12);
}
:root[data-heure="minuit"] {
  --ciel: #050508; --encre: #F3F6FB; --douce: #9AA5B8; --accent: #FF4FAC; --sur-accent: #0A0D14;
  --surface: rgba(255, 255, 255, 0.05); --ligne: rgba(255, 255, 255, 0.12);
  --halo-a: rgba(180, 75, 240, 0.2); --halo-b: rgba(255, 79, 172, 0.14);
}
/* Le mode événement repeint l'accent, à toute heure de la nuit. */
:root[data-mode="evenement"]:is([data-heure="nuit"], [data-heure="minuit"]) {
  --accent: #B79CFF; --halo-a: rgba(167, 139, 250, 0.3); --halo-b: rgba(232, 121, 249, 0.18);
}

:root {
  --gouttiere: 20px;
  --r-petit: 12px;
  --r-image: 20px;
  --r-tel: 34px;
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --rythme: clamp(88px, 16vw, 168px);
  color-scheme: light dark;
  transition: --ciel 1.1s ease, --encre 1.1s ease, --douce 1.1s ease, --accent 1.1s ease, --sur-accent 1.1s ease,
    --surface 1.1s ease, --ligne 1.1s ease, --halo-a 1.6s ease, --halo-b 1.6s ease;
}

/* ─── Socle ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` gagne toujours : sans ça, un `display` de classe le contredit. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ciel);
  color: var(--encre);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Fredoka", "Figtree", sans-serif; font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 12.5vw, 6.8rem); line-height: 0.98; letter-spacing: -0.022em; }
h2 { font-size: clamp(2.1rem, 8.6vw, 4.3rem); line-height: 1.03; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--encre); color: var(--ciel); padding: 10px 14px; border-radius: var(--r-petit);
}
.evitement:focus { top: 12px; }

.contenu { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gouttiere); }
.contenu.etroit { max-width: 640px; }
section { position: relative; padding-block: var(--rythme); }
.surtitre {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.texte { color: var(--douce); max-width: 34rem; margin-top: 22px; font-size: 1.125rem; }
.petit { color: var(--douce); font-size: 0.9375rem; margin-top: 12px; }
.douce { color: var(--douce); }

/* Le ciel : deux lumières qui dérivent lentement derrière tout. */
.ciel { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.halo { position: absolute; width: 110vmax; height: 110vmax; border-radius: 50%; }
.halo.a { left: -45vmax; top: -40vmax; background: radial-gradient(circle, var(--halo-a), transparent 62%); animation: derive-a 34s ease-in-out infinite alternate; }
.halo.b { right: -50vmax; bottom: -50vmax; background: radial-gradient(circle, var(--halo-b), transparent 62%); animation: derive-b 41s ease-in-out infinite alternate; }
@keyframes derive-a { to { transform: translate(28vmax, 22vmax); } }
@keyframes derive-b { to { transform: translate(-24vmax, -30vmax); } }

/* ─── En-tête : la marque et l'horloge ───────────────────────────────── */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) var(--gouttiere) 12px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.entete.defile { background: color-mix(in oklab, var(--ciel) 86%, transparent); box-shadow: 0 1px 0 var(--ligne); }
.marque {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em;
  min-height: 40px;
}
.marque-point { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.marque-point::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: ping-marque 2.8s var(--sortie) infinite;
}
@keyframes ping-marque { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.horloge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--ligne);
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9375rem;
}
.astre { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #FFC02E; transition: background-color 0.6s ease, box-shadow 0.6s ease; }
.horloge.soir .astre { background: #F9773C; }
/* La lune : le même disque, mordu par une ombre. */
.horloge.nuit .astre { background: transparent; box-shadow: inset -4px -2px 0 0 #E8E4FF; }

/* ─── Boutons ────────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--sur-accent);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px var(--accent);
  transition: transform 0.18s var(--sortie), box-shadow 0.3s ease;
}
.bouton:active { transform: scale(0.96); }
@media (hover: hover) { .bouton:hover { box-shadow: 0 14px 38px -10px var(--accent); } }
.bouton-petit { min-height: 44px; padding: 0 20px; font-size: 0.96875rem; }
.bouton[disabled] { opacity: 0.6; cursor: progress; }
.lien-bouton {
  background: none; border: 0; padding: 10px 4px; min-height: 40px; cursor: pointer;
  color: var(--douce); text-decoration: underline; text-underline-offset: 4px; font-size: 0.9375rem;
}
@media (hover: hover) { .lien-bouton:hover { color: var(--encre); } }

/* ─── Apparitions au défilement ──────────────────────────────────────── */
.apparait { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 0.9s var(--sortie), transform 0.9s var(--sortie), filter 0.9s var(--sortie); }
.apparait.vu { opacity: 1; transform: none; filter: none; }
.sans-js .apparait { opacity: 1; transform: none; filter: none; }

/* ─── 1. L'ouverture ─────────────────────────────────────────────────── */
.ouverture { min-height: 100svh; display: flex; align-items: flex-end; padding-block: 0; overflow: hidden; }
.champ-ping { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.ouverture-texte { position: relative; padding-top: 120px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); pointer-events: none; }
.ouverture-texte a, .ouverture-texte button { pointer-events: auto; }
.ouverture h1 { max-width: 11ch; }
.chapo { margin-top: 22px; max-width: 30rem; font-size: 1.1875rem; color: var(--douce); }
.ouverture-actions { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.indice-ping { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--douce); }
.indice-doigt { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.indice-doigt::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--accent); animation: ping-marque 2.2s var(--sortie) infinite; }

/* ─── 2. Le constat ──────────────────────────────────────────────────── */
.constat h2 { max-width: 14ch; }
.chaine { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.chaine li {
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: clamp(1.45rem, 6vw, 2.4rem); line-height: 1.2;
  color: var(--douce); letter-spacing: -0.012em;
}
.chaine li:nth-child(2) { padding-left: 1.2ch; transition-delay: 0.08s; }
.chaine li:nth-child(3) { padding-left: 2.4ch; transition-delay: 0.16s; }
.chaine-fin { padding-left: 3.6ch; color: var(--accent) !important; transition-delay: 0.24s; }
.formule {
  margin-top: 36px; font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: clamp(1.35rem, 5.4vw, 2rem); line-height: 1.15; max-width: 22ch;
}

/* ─── 3. La boucle ───────────────────────────────────────────────────── */
.boucle-grille { display: grid; gap: 56px; align-items: center; }
.anneau { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin-inline: auto; }
.anneau svg { width: 100%; height: 100%; overflow: visible; }
.anneau-piste { fill: none; stroke: var(--ligne); stroke-width: 2; }
.anneau-reperes circle { fill: var(--douce); opacity: 0.5; }
.anneau-astre { fill: var(--accent); filter: drop-shadow(0 0 12px var(--accent)); }
.anneau-tour { transform-origin: 150px 150px; animation: tour 12s linear infinite; }
@keyframes tour { to { transform: rotate(360deg); } }
.anneau-etapes {
  list-style: none; margin: 0; padding: 0; position: absolute; inset: 22%;
  display: grid; place-items: center; text-align: center;
}
.anneau-etapes li {
  grid-area: 1 / 1; font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: clamp(1.25rem, 5.4vw, 1.65rem); line-height: 1.12;
  opacity: 0; animation: etape 12s linear infinite;
}
.anneau-etapes li:nth-child(2) { animation-delay: 2s; }
.anneau-etapes li:nth-child(3) { animation-delay: 4s; }
.anneau-etapes li:nth-child(4) { animation-delay: 6s; }
.anneau-etapes li:nth-child(5) { animation-delay: 8s; }
.anneau-etapes li:nth-child(6) { animation-delay: 10s; color: var(--accent); }
@keyframes etape {
  0% { opacity: 0; transform: translateY(8px); }
  3%, 14% { opacity: 1; transform: none; }
  17%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ─── 4. Comment ça marche (le format de Charles) ────────────────────── */
.etapes h2 { text-align: center; margin-bottom: 48px; }
.etapes-liste { list-style: none; margin: 0; padding: 0; }
.etape { text-align: center; }
.etape + .etape { margin-top: 18px; }
.etape:not(.etape-fin)::after {
  content: ""; display: block; width: 2px; height: 34px; margin: 20px auto 0;
  background: linear-gradient(var(--douce), transparent);
}
.etape-image { position: relative; margin: 0 0 22px; border-radius: var(--r-image); overflow: hidden; background: var(--surface); outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; }
.etape-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--sortie); }
.etape.vu .etape-image img { transform: none; }
.pastille {
  position: absolute; left: 14px; bottom: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 10, 14, 0.62); color: #fff;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em;
}
.etape h3 { font-family: "Figtree", sans-serif; font-weight: 500; font-size: clamp(1.6rem, 6.4vw, 2rem); letter-spacing: -0.012em; }
.etape p { margin: 10px auto 0; max-width: 30rem; color: var(--douce); font-size: 1.125rem; }
.etape-boucle { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; }
.etape-boucle svg { width: 34px; height: 34px; fill: none; stroke: var(--encre); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.etape-fin.vu .etape-boucle svg { animation: une-boucle 1.6s var(--sortie) 0.4s 1 both; }
@keyframes une-boucle { from { transform: rotate(-180deg); } to { transform: none; } }

/* ─── 5. La citation ─────────────────────────────────────────────────── */
.citation { padding-block: calc(var(--rythme) * 0.6); }
.citation-texte {
  font-family: "Fredoka", sans-serif; font-weight: 600; text-align: center;
  font-size: clamp(2rem, 9vw, 5.2rem); line-height: 1.02; letter-spacing: -0.022em;
  text-wrap: balance;
}

/* ─── 6. Les démonstrations ──────────────────────────────────────────── */
.essayer { padding-bottom: 0; }
.essayer > .contenu:first-child h2 { max-width: 16ch; }
.demo { display: grid; gap: 34px; padding-block: calc(var(--rythme) * 0.62); align-items: center; }
.demo-texte h3 { margin-bottom: 14px; max-width: 18ch; }
.demo-texte p:not(.petit):not(.surtitre) { color: var(--douce); max-width: 32rem; font-size: 1.0625rem; }

/* 6a. Se croiser */
.scene-croiser {
  position: relative; height: 340px; border-radius: 28px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--ligne);
  overflow: hidden; touch-action: none; user-select: none;
}
.onde-zone { position: absolute; inset: 0; pointer-events: none; }
.onde {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; animation: onde 1.6s var(--sortie) forwards;
}
@keyframes onde { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(4); opacity: 0; } }
.tel {
  position: absolute; top: 72px; width: 74px; height: 132px; border-radius: 18px;
  background: #15161C; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  display: grid; padding: 6px; transition: box-shadow 0.4s ease;
}
.tel-ecran {
  border-radius: 13px; background: linear-gradient(160deg, #1E2130, #0E0F15);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  color: #F3F6FB; transition: background-color 0.4s ease;
}
.tel-nom { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1rem; }
.tel-etat { font-size: 0.6875rem; color: #9AA5B8; line-height: 1.2; padding-inline: 4px; }
.tel-toi { left: 16%; cursor: grab; touch-action: none; }
.tel-toi:active { cursor: grabbing; }
.tel-autre { right: 16%; }
.scene-croiser[data-etat="captes"] .tel,
.scene-croiser[data-etat="amis"] .tel { box-shadow: 0 0 0 2px var(--accent), 0 0 36px -6px var(--accent); }
.scene-croiser[data-etat="captes"] .tel-etat,
.scene-croiser[data-etat="amis"] .tel-etat { color: var(--accent); }
.scene-consigne { position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-size: 0.9375rem; color: var(--douce); padding-inline: 16px; }
.scene-actions { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* 6b. La Vibe */
.vibe {
  display: grid; justify-items: center; gap: 16px; background: none; border: 0; padding: 0; cursor: pointer;
  perspective: 1400px; width: 100%;
}
.vibe-carte {
  position: relative; display: block; width: min(78vw, 320px); aspect-ratio: 3 / 4;
  transform-style: preserve-3d; transition: transform 0.85s var(--sortie);
}
.vibe[aria-pressed="true"] .vibe-carte { transform: rotateY(180deg); }
.vibe-face {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; backface-visibility: hidden;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vibe-face img { width: 100%; height: 100%; object-fit: cover; }
.vibe-verso { transform: rotateY(180deg); }
.vibe-haut {
  position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 0.875rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.mini-avatar {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #2DD4BF; color: #07221F; font-family: "Fredoka", sans-serif; font-size: 0.875rem; text-shadow: none;
}
.vibe-compte { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); font-variant-numeric: tabular-nums; }
.vibe-indice { color: var(--douce); font-size: 0.9375rem; }
@media (hover: hover) { .vibe:hover .vibe-carte { transform: rotateY(-8deg); } .vibe[aria-pressed="true"]:hover .vibe-carte { transform: rotateY(172deg); } }

/* 6c. Le feed */
.telephone {
  width: min(82vw, 330px); margin-inline: auto; padding: 10px; border-radius: var(--r-tel);
  background: #111217; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.telephone-ecran {
  position: relative; height: min(132vw, 560px); border-radius: calc(var(--r-tel) - 10px); overflow: hidden;
  background: #07080C; color: #F3F6FB; overscroll-behavior: contain;
}
.feed-barre {
  position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px 26px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem;
  background: linear-gradient(#07080C 55%, transparent);
}
.feed-compte { font-family: "Figtree", sans-serif; font-size: 0.8125rem; color: #9AA5B8; font-variant-numeric: tabular-nums; }
.feed-liste { list-style: none; margin: 0; padding: 62px 12px 40px; display: grid; gap: 12px; will-change: transform; }
.feed-carte { border-radius: 18px; overflow: hidden; position: relative; background: #15161C; }
.feed-carte img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feed-carte span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: 0.875rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.feed-carte em { font-style: normal; font-weight: 400; color: #C9D1DE; }
.feed-fin { padding: 34px 18px 60px; text-align: center; color: #9AA5B8; }
.feed-fin strong { display: block; color: #F3F6FB; font-family: "Fredoka", sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.feed-message {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3;
  /* Un fond PLEIN : le message passe par-dessus les photos, et un fond
     transparent le rendait illisible sur une image claire (Jay, 2026-10-13). */
  padding: 12px 14px; border-radius: 16px; background: #FF4FAC;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.75); color: #0A0D14;
  font-size: 0.9rem; line-height: 1.35; font-weight: 600;
  opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s var(--sortie);
  pointer-events: none;
}
.feed-message.visible { opacity: 1; transform: none; }
.feed-activer, .feed-terminer {
  position: absolute; z-index: 4; border: 0; cursor: pointer; font-weight: 600;
}
.feed-activer {
  inset: 0; background: rgba(7, 8, 12, 0.35); color: #fff; font-size: 1rem;
  display: grid; place-items: center;
}
.feed-terminer { right: 12px; top: 12px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.8125rem; }
/* À la souris, la molette suffit : pas de bouton d'activation. */
@media (hover: hover) and (pointer: fine) { .feed-activer { display: none; } }

/* 6d. L'événement */
.carte-soiree { border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ligne); }
.carte-plan {
  position: relative; height: 240px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.07) 47% 53%, transparent 53%) 0 0 / 120px 100%,
    linear-gradient(transparent 46%, rgba(255, 255, 255, 0.07) 46% 54%, transparent 54%) 0 0 / 100% 96px,
    radial-gradient(circle at 60% 45%, rgba(255, 79, 172, 0.12), transparent 60%),
    #0C0D13;
}
.point-chaud { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 18%, transparent 19%); }
.point-chaud::before, .point-chaud::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: chaud 2.6s var(--sortie) infinite; opacity: 0;
}
.point-chaud::after { animation-delay: 1.3s; }
@keyframes chaud { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.pc1 { width: 120px; height: 120px; left: calc(58% - 60px); top: calc(44% - 60px); }
.pc2 { width: 70px; height: 70px; left: calc(28% - 35px); top: calc(66% - 35px); }
.pc3 { width: 54px; height: 54px; left: calc(80% - 27px); top: calc(24% - 27px); }
.lieu { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); color: #fff; font-weight: 600; font-size: 0.875rem; }
.lieu-point { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.carte-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; }
.presents { font-variant-numeric: tabular-nums; }
.bouton-rejoindre[aria-pressed="true"] { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--accent); }

.barre-evenement {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.6s var(--sortie);
}
.barre-evenement.ouverte { transform: none; }
.barre-interieur {
  max-width: 620px; margin-inline: auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 22px;
  background: #15121F; color: #F3F6FB; box-shadow: 0 0 0 1px rgba(183, 156, 255, 0.4), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.barre-direct { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #B79CFF; box-shadow: 0 0 0 4px rgba(183, 156, 255, 0.25); animation: direct 1.6s ease-in-out infinite; }
@keyframes direct { 50% { box-shadow: 0 0 0 8px rgba(183, 156, 255, 0); } }
.barre-texte { flex: 1; min-width: 0; font-size: 0.9375rem; line-height: 1.35; }
.barre-defi { color: #C9C0EA; font-size: 0.8125rem; }
.barre-quitter { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; cursor: pointer; }
body.en-evenement { padding-bottom: 96px; }

/* ─── 7. Le partage ──────────────────────────────────────────────────── */
.partage-grille { display: grid; gap: 40px; align-items: start; }
.partage h2 { max-width: 12ch; }
.tendu { display: grid; gap: 22px; justify-items: center; }
.tendu-carte {
  width: min(84vw, 340px); border-radius: 26px; overflow: hidden; background: #111217; color: #F3F6FB;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.tendu-haut { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.tendu-avatar { position: relative; width: 34px; height: 34px; flex: none; }
.tendu-inconnu, .tendu-photo {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 600; transition: opacity 0.6s ease, filter 0.6s ease;
}
.tendu-inconnu { background: #2A2C38; color: #9AA5B8; }
.tendu-photo { background: var(--accent) center / cover; color: var(--sur-accent); font-size: 0.8125rem; opacity: 0; filter: blur(6px); }
.tendu-qui { font-weight: 600; font-size: 0.9375rem; }
.tendu-carte img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tendu-bas { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 6px; }
.coeur {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: none; border: 0; border-radius: 999px; cursor: pointer; color: #F3F6FB; font-weight: 600;
}
.coeur svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.4s var(--sortie), fill 0.3s ease, stroke 0.3s ease; }
.coeur:active svg { transform: scale(0.8); }
.coeur[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); animation: battement 0.6s var(--sortie); }
@keyframes battement { 0% { transform: scale(0.6); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.tendu-bas .lien-bouton { color: #9AA5B8; }
.tendu.revelee .tendu-inconnu { opacity: 0; }
.tendu.revelee .tendu-photo { opacity: 1; filter: none; }
.revele { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--sortie); width: 100%; max-width: 30rem; }
.revele-interieur { overflow: hidden; opacity: 0; transition: opacity 0.6s ease 0.2s; }
.tendu.revelee .revele { grid-template-rows: 1fr; }
.tendu.revelee .revele-interieur { opacity: 1; }
.revele-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.revele-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--accent); }
.revele-titre { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.75rem; color: var(--accent); }
.revele p:not(.revele-titre) { color: var(--douce); }
.revele strong { color: var(--encre); font-weight: 600; }
.revele blockquote { margin: 18px 0; padding: 0; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-underline-offset: 5px; }
.lien-fleche::after { content: "↓"; }

/* ─── 8. Les lieux ───────────────────────────────────────────────────── */
.lieux h2 { max-width: 14ch; }
.lieux .texte { max-width: 38rem; }
.lieux-objectif { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ligne); max-width: 38rem; color: var(--douce); font-size: 1.125rem; }
.lieux-objectif strong { color: var(--accent); font-weight: 600; }

/* ─── 9. Rejoindre ───────────────────────────────────────────────────── */
.rejoindre-grille { display: grid; gap: 40px; align-items: start; }
.rejoindre h2 { max-width: 13ch; }
.formulaire { display: grid; gap: 22px; }
.champ { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.champ label, .champ legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.facultatif { font-weight: 400; color: var(--douce); margin-left: 6px; }
input:not([type="radio"]):not([type="checkbox"]), textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--encre); box-shadow: inset 0 0 0 1px var(--ligne);
  font: inherit; font-size: 1rem; transition: box-shadow 0.2s ease;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.champ.en-erreur input, .champ.en-erreur textarea { box-shadow: inset 0 0 0 2px #FF6B6B; }
.champ-erreur { color: #FF8A8A; font-size: 0.875rem; min-height: 0; }
.champ-erreur:empty { display: none; }
.champ-aide { color: var(--douce); font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puce span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--ligne); font-size: 0.9375rem; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.puce input:checked + span { background: var(--accent); color: var(--sur-accent); box-shadow: none; }
.puce input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--douce); cursor: pointer; }
.case input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.case a { color: var(--encre); }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bouton-envoyer { justify-self: start; }
.formulaire-erreur { color: #FF8A8A; font-size: 0.9375rem; }
.formulaire-erreur:empty { display: none; }
.merci { position: relative; padding: 34px 0; }
.merci:focus { outline: none; }
.merci-onde { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); }
.merci-onde::before, .merci-onde::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: onde 2s var(--sortie) infinite; }
.merci-onde::after { animation-delay: 1s; }
.merci-titre { margin-top: 70px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; }

/* ─── Pied ───────────────────────────────────────────────────────────── */
.pied { padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); }
.pied-citation { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.35rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 26px; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 40px; color: var(--douce); text-underline-offset: 4px; }
.pied-auteur { color: var(--douce); font-size: 0.875rem; margin-top: 10px; }

/* ─── Pages de texte (mentions, confidentialité, 404) ────────────────── */
.page-texte { padding-top: 120px; padding-bottom: 80px; }
.page-texte h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); margin-bottom: 28px; }
.page-texte h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 40px 0 12px; }
.page-texte p, .page-texte li { color: var(--douce); max-width: 40rem; }
.page-texte p + p { margin-top: 12px; }
.page-texte ul { padding-left: 1.2em; }
.page-texte li + li { margin-top: 6px; }
.page-texte strong { color: var(--encre); font-weight: 600; }
.page-texte .retour { display: inline-flex; min-height: 44px; align-items: center; margin-top: 36px; font-weight: 600; }

/* ─── Plus grand que le téléphone ────────────────────────────────────── */
@media (min-width: 760px) {
  :root { --gouttiere: 40px; }
  .ouverture { align-items: center; }
  .ouverture-texte { padding-bottom: 0; padding-top: 0; }
  .ouverture-actions { flex-direction: row; align-items: center; gap: 28px; }
  .constat h2, .lieux h2, .rejoindre h2 { max-width: 18ch; }
  .chaine li:nth-child(2) { padding-left: 2ch; }
  .chaine li:nth-child(3) { padding-left: 4ch; }
  .chaine-fin { padding-left: 6ch; }
  .boucle-grille { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .demo { grid-template-columns: 1fr 1fr; gap: 64px; }
  .demo:nth-of-type(even) .demo-texte { order: 2; }
  .scene-croiser { height: 380px; }
  .partage-grille, .rejoindre-grille { grid-template-columns: 1fr 1fr; gap: 64px; }
  .partage-grille > .demo-texte { position: sticky; top: 120px; }
  .tendu { justify-items: start; }
  .formulaire { padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ligne); }
  .pied .contenu { display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: end; }
  .pied-liens { justify-content: flex-end; margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
  .contenu.etroit { max-width: 720px; }
}

/* ─── Moins de mouvement ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .apparait { opacity: 1; transform: none; filter: none; }
  .anneau-etapes { position: static; inset: auto; display: block; margin-top: 18px; }
  .anneau-etapes li { opacity: 1; animation: none; font-size: 1.1rem; }
  .anneau-tour { animation: none; }
}
