/* ==========================================================================
   Heycout — site de présentation
   Même ciel, même disque, même rouge que l'app. Titres gras en deux tons
   (blanc, puis gris), démos vivantes de l'app. Le rouge reste réservé à l'action.
   ========================================================================== */

.landing {
  --gutter: clamp(16px, 5vw, 72px);
  --neon: 0 0 42px rgba(255, 30, 61, 0.36), 0 0 120px rgba(255, 30, 61, 0.16);
  --red-disc: radial-gradient(circle at 34% 30%, #ff6b7f, var(--accent) 42%, #6d0016 78%, #1a0207);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
.landing main, .l-nav, .l-foot { position: relative; z-index: 1; }
.landing .ico { width: 1em; height: 1em; flex-shrink: 0; }

.landing h1, .landing h2, .landing h3 { text-wrap: balance; }
.landing h1 em, .landing h2 em, .landing h3 em, .quote-after em { font-style: normal; color: #75757f; }

.sky-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

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

.l-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
}
.l-brand { font-size: 24px; }
.l-nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); font-weight: 600; }
.l-bracket { font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.l-login { color: var(--text-muted); transition: color 0.2s; }
.l-login:hover { color: var(--text); }
.l-enter {
  padding: 12px 26px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #050508;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.l-enter:hover { transform: translateY(-1px); }

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

.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.l-btn-main { background: var(--accent); color: #fff; box-shadow: 0 0 30px var(--accent-glow); }
.l-btn-main:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 0 46px var(--accent-glow); }
.l-btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.l-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* --- Ouverture (hero) ------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(60px, 9vw, 130px);
  max-width: 1440px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.hero h1 em { font-weight: 800; }
.hero-sub { max-width: 52ch; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin: 16px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }

.hero-visual { position: relative; display: grid; place-items: center; padding: 30px 0; }

/* --- Téléphone ------------------------------------------------------------- */

.phone {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 9 / 19.3;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2a31, #0c0c10 40%, #1b1b21);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), var(--neon), 0 40px 80px rgba(0, 0, 0, 0.7);
}
.phone-island {
  position: absolute;
  top: 21px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: #000;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: var(--sky);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

/* L'accueil de l'app, aux proportions d'un iPhone de 390 px : 1em = 16 px. */
.ui {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 0 1em;
  font-size: 4.1026cqw;
  line-height: 1.3;
}
.ui .ico { width: 1.25em; height: 1.25em; }
.ui img { display: block; }
.ui-status { display: flex; align-items: center; justify-content: space-between; height: 3.2em; padding: 0.4em 0.9em 0 1.2em; font-size: 0.95em; font-weight: 700; }
.ui-sys { display: flex; align-items: flex-end; gap: 0.15em; }
.ui-sys i { width: 0.22em; background: #fff; border-radius: 0.1em; }
.ui-sys i:nth-child(1) { height: 0.4em; }
.ui-sys i:nth-child(2) { height: 0.6em; }
.ui-sys i:nth-child(3) { height: 0.8em; }
.ui-sys b { width: 1.6em; height: 0.8em; margin-left: 0.35em; border-radius: 0.25em; border: 0.12em solid rgba(255, 255, 255, 0.6); background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box; padding: 0.08em; }

.ui-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.5em 0 0.9em; }
.ui-brand { font-size: 1.375em; gap: 0.45em; }
.ui-brand .brand-mark { width: 1.27em; height: 1.27em; }
.ui-btns { display: flex; gap: 0.625em; }
.ui-round { position: relative; display: grid; place-items: center; width: 2.625em; height: 2.625em; border-radius: 0.8125em; background: var(--surface-2); }
.ui-bell i {
  position: absolute; top: -0.3em; right: -0.3em;
  min-width: 1.2em; height: 1.2em; border-radius: 1em;
  background: var(--accent); color: #fff; box-shadow: 0 0 0.75em var(--accent-glow);
  font-style: normal; font-weight: 800; font-size: 0.7em; line-height: 1.2em; text-align: center;
}
.ui-me { background: radial-gradient(circle at 35% 30%, #ff6b7f, var(--accent) 50%, #3d000c); font-weight: 800; font-size: 1.1em; width: 2.386em; height: 2.386em; border-radius: 0.74em; }

.ui-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0.3em 0 0.75em; }
.ui-head strong { display: flex; align-items: center; gap: 0.4em; font-size: 1.25em; letter-spacing: -0.03em; }
.ui-head strong .ico { color: var(--accent); width: 1em; height: 1em; }
.ui-head span { color: var(--text-muted); font-size: 0.8125em; font-weight: 700; }

.ui-exclus { display: grid; grid-auto-flow: column; grid-auto-columns: 10.5em; gap: 1.125em; }
.ui-ex { display: grid; gap: 0.2em; min-width: 0; }
.ui-ex-art { position: relative; display: block; aspect-ratio: 1; border-radius: 1em; overflow: hidden; box-shadow: var(--shadow-card); }
.ui-ex-art img { width: 100%; height: 100%; object-fit: cover; }
.ui-badge {
  position: absolute; top: 0.7em; left: 0.7em;
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.25em 0.7em; border-radius: 1em;
  background: var(--accent); color: #fff; box-shadow: 0 0 1em var(--accent-glow);
  font-size: 0.72em; font-weight: 800;
}
.ui .ui-badge .ico { width: 1em; height: 1em; }
.ui-ex b, .ui-card b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; letter-spacing: -0.02em; }
.ui-ex b { margin-top: 0.35em; }
.ui-ex small { color: var(--text-muted); font-size: 0.875em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.875em 1.625em; margin-top: 1.9em; }
.ui-card { min-width: 0; }
.ui-art { position: relative; display: block; aspect-ratio: 1; }
.ui-art > img, .ui-art > .cover { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1em; object-fit: cover; box-shadow: var(--shadow-card); }
.ui-play {
  position: absolute; right: -0.5em; bottom: -0.5em;
  display: grid; place-items: center;
  width: 3em; height: 3em; border-radius: 0.875em;
  background: rgba(30, 30, 38, 0.94); color: #fff;
  box-shadow: 0 0.5em 1.25em rgba(0, 0, 0, 0.55);
}
.ui .ui-play .ico { width: 1.1em; height: 1.1em; }
.ui-card b { margin-top: 1.125em; }
.ui-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; margin-top: 0.2em; color: var(--text-muted); }
.ui-foot small { display: flex; align-items: center; gap: 0.35em; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.875em; }
.ui .ui-foot small .ico { width: 1em; height: 1em; color: var(--text-faint); }

/* Bas de l'écran : le lecteur flotte au-dessus d'une bande de ciel et de la barre d'accueil. */
.ui::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0), var(--sky) 45%);
}
.ui::before {
  content: "";
  position: absolute; z-index: 3; left: 50%; bottom: 0.5em;
  width: 8.5em; height: 0.3em; border-radius: 1em;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
}
.ui-player {
  position: absolute; z-index: 2; left: 0.75em; right: 0.75em; bottom: 1.5em;
  display: grid; gap: 0.35em;
  padding: 0.625em 0.75em 0.55em;
  border-radius: 1.5em;
  background: rgba(24, 24, 31, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(12px);
}
.ui-player-top { display: flex; align-items: center; gap: 0.625em; }
.ui-disc { width: 2.875em; height: 2.875em; --glow: rgba(255, 138, 91, 0.5); }
.ui-player-meta { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ui-player-meta b { font-size: 0.9375em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ui-player-meta small { color: var(--text-muted); font-size: 0.8125em; }
.ui-pause { display: flex; align-items: center; justify-content: center; gap: 0.25em; width: 2.75em; height: 2.75em; border-radius: 50%; background: #fff; }
.ui-pause i { width: 0.3em; height: 1em; border-radius: 0.1em; background: #050508; }
.ui-wave { height: 2em; gap: 0.12em; }
.ui-wave i:nth-child(-n+15) { background: #fff; }

/* Ondes */
.lw { display: flex; align-items: center; gap: 2px; height: 26px; }
.lw i { flex: 1; min-width: 1px; height: var(--h); border-radius: 2px; background: rgba(255, 255, 255, 0.35); }

/* Pochettes des démos */
.mcover { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.mcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cartes flottantes autour du téléphone */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(24, 24, 31, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(12px);
  font-size: 13px;
  line-height: 1.3;
}
.float-card small { display: block; color: var(--text-muted); font-size: 12px; }
.float-notif { top: 62%; left: -10%; max-width: 260px; animation: bob 6s ease-in-out infinite; }
.float-chips { top: 30%; right: -6%; gap: 6px; padding: 9px; animation: bob 6s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.fc-avatar {
  position: relative;
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #7a5cff, #3a1f9e);
  font-weight: 800;
}
.fc-avatar.a2 { background: linear-gradient(145deg, #9be15d, #2f9e44); }
.fc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip-l {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface-3);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  white-space: nowrap;
}

/* --- Manifeste ------------------------------------------------------------- */

.manifesto {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 110px) var(--gutter);
  border-top: 1px solid var(--border);
}
.manifesto blockquote { margin: 0; }
.manifesto-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 70px); }
.big-quote {
  margin: 0;
  font-size: clamp(52px, 9.4vw, 142px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.quote-after {
  margin: 18px 0 0;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.manifesto-disc {
  width: clamp(140px, 22vw, 300px);
  aspect-ratio: 1;
  --cover-bg: var(--red-disc);
  --glow: var(--accent-glow);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 160px rgba(255, 30, 61, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.manifesto-disc.is-spinning { animation-duration: 4.5s; }
.manifesto-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(24px, 5vw, 64px);
  margin-top: clamp(32px, 5vw, 60px);
  max-width: 980px;
  font-size: 17px;
  color: var(--text-muted);
}
.manifesto-body p { margin: 0; }
.manifesto-body strong { color: var(--text); }
.signature {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.signature span { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.signature a { font-family: var(--mono); font-size: 14px; color: var(--text); border-bottom: 1px solid var(--accent); }
.signature a:hover { color: var(--accent-hover); }

/* --- Programme (fonctionnalités) ------------------------------------------ */

.programme { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--gutter); }
.programme h2 { margin-bottom: 40px; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; max-width: 16ch; }

.movements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; }
.mv h3 { margin: 22px 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.mv > p:last-child { margin: 0; color: var(--text-muted); max-width: 46ch; }

.mv-art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #17171d, #0e0e13);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(16px, 2.2vw, 28px);
}

/* I. Rangement */
.drop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.drop-grid small {
  position: absolute; z-index: 1; left: 7px; bottom: 6px; right: 7px;
  font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.drop-grid .is-target { outline: 2px dashed rgba(255, 255, 255, 0.55); outline-offset: 3px; }
.drop-plus {
  position: absolute; z-index: 1; right: 6px; top: 6px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #2fbf71; font-style: normal; font-weight: 800; font-size: 14px;
}
.drop-grid .dragging { transform: rotate(-6deg) scale(0.9); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6); animation: drag 4s var(--ease) infinite; }
@keyframes drag { 0%, 15% { transform: translate(0, 0) rotate(-6deg) scale(0.9); } 55%, 70% { transform: translate(-96%, -8%) rotate(-3deg) scale(0.62); opacity: 1; } 85% { opacity: 0; } 100% { opacity: 0; } }
.versions { display: grid; gap: 6px; }
.ver {
  display: flex; justify-content: space-between; gap: 10px;
  margin: 0; padding: 9px 12px; border-radius: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  border: 1px solid transparent;
}
.ver small { font-size: 11px; white-space: nowrap; }
.ver.is-active { color: var(--text); border-color: rgba(120, 150, 255, 0.6); background: rgba(90, 110, 232, 0.08); }
.ver.is-active small { color: #9fb0ff; }

/* III. Paroles et repères */
.detect-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detect-hint { font-size: 12px; color: var(--text-faint); }
.lyr { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 800; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -0.02em; line-height: 1.2; }
.lyr li { color: rgba(255, 255, 255, 0.28); }
.lyr li.on { color: #fff; animation: karaoke 6s steps(1) infinite; }
.lyr li:nth-child(3) { animation: karaoke2 6s steps(1) infinite; }
@keyframes karaoke { 50%, 100% { color: rgba(255, 255, 255, 0.5); } }
@keyframes karaoke2 { 50%, 100% { color: #fff; } }

/* Bibliothèque : les sons des autres sur ton accueil */
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lib-list li { display: flex; align-items: center; gap: 12px; }
.lib-list .mcover { width: 54px; flex-shrink: 0; }
.lib-list span span, .lib-list > li > span:last-child { display: grid; min-width: 0; }
.lib-list b { font-size: 15px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-list small { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 13px; }
.lib-list small .ico { color: var(--text-faint); }

/* V. Exclus */
.art-exclu { background: radial-gradient(circle at 50% 110%, rgba(255, 30, 61, 0.28), transparent 60%), linear-gradient(160deg, #17171d, #0e0e13); }
.notif-stack { display: grid; gap: 10px; }
.nf {
  display: flex; align-items: center; gap: 11px;
  margin: 0; padding: 12px 14px; border-radius: 18px;
  background: rgba(40, 20, 26, 0.9); border: 1px solid rgba(255, 30, 61, 0.22);
  font-size: 13.5px; line-height: 1.3;
}
.nf small { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.nf small .ico { color: var(--accent); }
.nf-2 { margin-left: 18px; background: var(--surface-2); border-color: var(--border); }
.exclu-tag {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* VI. Partage */
.share-mini { display: grid; gap: 10px; }
.sm-comment { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }
.at { margin-right: 6px; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--r-pill); background: #fff; color: #050508; font-weight: 700; font-size: 12.5px; }
.sm-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); }

/* --- Ton son reste à toi : mêmes cartes, autres démos ---------------------- */

.safe { border-top: 1px solid var(--border); }
.movements-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.url-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 10px 14px; border-radius: var(--r-pill);
  background: var(--surface-2);
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  overflow: hidden; white-space: nowrap;
}
.url-bar span { overflow: hidden; text-overflow: ellipsis; }
.url-bar b { color: var(--text); font-weight: 600; }
.access { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; }
.access-no { background: var(--danger-soft); color: var(--danger); animation: access 4s ease-in-out infinite; }
.access-ok { background: rgba(47, 191, 113, 0.12); color: #4fd88c; animation: access 4s ease-in-out -2s infinite; }
@keyframes access { 0%, 40%, 100% { opacity: 1; } 50%, 90% { opacity: 0.35; } }

.dl-row, .dl-person {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 12px 14px; border-radius: 16px;
  background: var(--surface-2); font-size: 13.5px; font-weight: 700;
}
.dl-row > span:first-child { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.switch-l { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); animation: switch-bg 3.6s steps(1) infinite; }
.switch-l i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; animation: switch-knob 3.6s ease-in-out infinite; }
@keyframes switch-bg { 50% { background: var(--accent); } }
@keyframes switch-knob { 0%, 45% { transform: none; } 50%, 95% { transform: translateX(18px); } }
.dl-person > span:nth-child(2) { flex: 1; display: grid; }
.dl-person small { color: var(--text-muted); font-weight: 500; font-size: 12px; }
.dl-close { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--text-muted); }

.art-device { justify-items: center; text-align: center; }
.device-ring {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03), 0 0 0 16px rgba(255, 255, 255, 0.02);
  font-size: 30px;
}
.device-lines { display: grid; gap: 4px; margin: 0; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.device-lines span { opacity: 0; animation: line-in 4.8s ease-out infinite; }
.device-lines span + span { animation-delay: 0.9s; }
@keyframes line-in { 0% { opacity: 0; transform: translateY(6px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.device-sent { margin: 0; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(47, 191, 113, 0.12); color: #4fd88c; font-family: var(--mono); font-size: 12px; }

.leave-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.leave-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; animation: leave 5s ease-in infinite; }
.leave-list li:nth-child(2) { animation-delay: 0.25s; }
.leave-list li:nth-child(3) { animation-delay: 0.5s; }
.leave-list .mcover { width: 38px; border-radius: 8px; }
@keyframes leave { 0%, 45% { opacity: 1; transform: none; filter: none; } 62%, 88% { opacity: 0; transform: translateX(24px); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
.leave-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--danger-soft); color: var(--danger);
  font-weight: 700; font-size: 13px;
}

/* --- Final ----------------------------------------------------------------- */

.finale {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(60px, 10vw, 150px) var(--gutter);
}
.fts {
  margin: 0 0 30px;
  padding: 8px 20px 10px;
  border: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(-5deg);
  text-shadow: 0 0 18px var(--accent-glow);
  box-shadow: 0 0 26px rgba(255, 30, 61, 0.28), inset 0 0 18px rgba(255, 30, 61, 0.16);
}
.finale h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 800; }
.finale > p:not(.fts) { max-width: 46ch; margin: 22px 0 0; font-size: 18px; color: var(--text-muted); }
.finale .hero-cta { justify-content: center; }

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

.l-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px));
}
.foot-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 13px 24px; border-radius: var(--r-pill);
  background: var(--surface-2);
  font-weight: 600;
}
a.pill:hover { background: var(--surface-3); }
.pill-light { background: #fff; color: #050508; }
.foot-legal { width: 100%; margin: 8px 0 0; font-size: 13px; color: var(--text-faint); }
.foot-legal a:hover { color: var(--text); }

/* ==========================================================================
   Animation d'entrée
   ========================================================================== */

/* L'ouverture est décidée avant l'affichage (script en tête de page). */
.intro-pending body { overflow: hidden; }
.intro-pending .sky-canvas { z-index: 101; }
.intro-pending .intro[hidden] { display: grid !important; }
/* Filet de sécurité si le script ne se charge pas. */
.intro-pending .intro { animation: intro-failsafe 0.6s 6s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--sky);
  transition: opacity 0.9s var(--ease);
}
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-skip {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 18px;
  z-index: 103;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.intro-skip:hover { color: var(--text); }

.intro-logo {
  position: absolute;
  z-index: 102;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  pointer-events: none;
}
.intro-disc {
  position: relative;
  width: clamp(72px, 11vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff6b7f, var(--accent) 42%, #6d0016 78%, #1a0207);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 140px rgba(255, 30, 61, 0.25);
  opacity: 0;
  transform: scale(0.3) rotate(-120deg);
  transition: opacity 0.6s, transform 1.1s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.intro-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0, 0, 0, 0) 0 4px, rgba(0, 0, 0, 0.1) 4px 5px);
}
.intro-disc::after { content: ""; position: absolute; inset: 41%; border-radius: 50%; background: var(--sky); box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9); }
.intro-logo.is-disc .intro-disc { animation: spin 3.6s linear infinite 1.1s; }
.intro-word {
  font-weight: 800;
  font-size: clamp(56px, 10vw, 120px);
  letter-spacing: -0.055em;
  line-height: 1;
  padding: 0.04em 0.02em 0.16em;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.3s, clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.intro-logo.is-disc .intro-disc { opacity: 1; transform: none; }
.intro-logo.is-word .intro-word { opacity: 1; clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Petits écrans
   ========================================================================== */

@media (max-width: 1080px) {
  .movements, .movements-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding-top: 10px; }
  .float-notif { left: 0; }
  .float-chips { right: 0; }
  .manifesto-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .movements, .movements-4 { grid-template-columns: minmax(0, 1fr); }
  .l-bracket, .l-login { display: none; }
  .hero-cta .l-btn { flex: 1 1 100%; }
  .hero-visual { display: flex; flex-direction: column; align-items: center; }
  .float-notif { position: relative; top: auto; left: auto; z-index: 4; margin-top: -22px; max-width: 290px; }
  .float-chips { top: 34%; right: -4px; }
  .manifesto-top { grid-template-columns: minmax(0, 1fr); }
  .manifesto-disc { width: 120px; order: -1; }
  .l-foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
  .device-lines span { opacity: 1; }
}
