:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --nav-bg: rgb(255 255 255 / .78);
  --nav-line: rgb(0 0 0 / .06);
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --night: #000000;
  --night-2: #161617;
  --amber: #f5a35c;
  --cocon: #ff7a2f;
  --cocon-blue: #3d6bff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Mode sombre : réglage du système, sauf si le visiteur a choisi le mode clair */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --surface: #1c1c1e; --surface-alt: #1c1c1e;
    --ink: #f5f5f7; --ink-2: #a1a1a6; --line: #38383a;
    --nav-bg: rgb(22 22 23 / .8); --nav-line: rgb(255 255 255 / .08); --link: #2997ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --surface: #1c1c1e; --surface-alt: #1c1c1e;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --line: #38383a;
  --nav-bg: rgb(22 22 23 / .8); --nav-line: rgb(255 255 255 / .08); --link: #2997ff;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(56px, 11vw, 112px); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(40px, 6.5vw, 72px); line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.15; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--nav-line); }
.nav-in { display: flex; justify-content: space-between; align-items: center; height: 48px; width: min(1000px, 100% - 32px); margin-inline: auto; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.nav nav { display: flex; gap: 28px; font-size: 13px; }
.nav nav a { color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.theme { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: color .2s, background .2s; }
.theme:hover { color: var(--ink); background: var(--surface-alt); }
.theme svg { width: 18px; height: 18px; }
.theme .moon, :root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }

/* Boutons */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 28px; }
.pill { display: inline-block; padding: 12px 22px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 17px; transition: background .2s, transform .2s var(--ease); }
.pill:hover { background: var(--blue-hover); }
.pill:active { transform: scale(.97); }
.more { color: var(--link); font-size: 17px; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; }
.note { color: var(--ink-2); font-size: 14px; }

/* Accueil */
.hero { text-align: center; padding: clamp(96px, 16vw, 168px) 16px clamp(80px, 12vw, 136px); background: var(--bg-alt); }
.hero-sub { max-width: 640px; margin: 20px auto 0; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.3; color: var(--ink-2); font-weight: 500; }

/* Grandes tuiles produit */
.tile { text-align: center; padding: clamp(80px, 11vw, 120px) 16px; }
.kicker { font-size: clamp(17px, 2vw, 21px); font-weight: 600; margin-bottom: 8px; }
.tile-sub { max-width: 620px; margin: 16px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; }

/* LKN · Avant l'aube */
.tile-dark { background: var(--night); color: #f5f5f7; }
.tile-dark .kicker { color: var(--amber); }
.tile-dark .tile-sub { color: #a1a1a6; }
.tile-dark .more { color: #2997ff; }
.pill-excl { background: var(--amber); color: #1d1d1f; }
.pill-excl:hover { background: #f7b273; }
.cover { width: min(560px, 100%); margin: 64px auto 0; }
.cover img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 760px; margin: 72px auto 0; }
.facts strong { display: block; font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts span { color: #a1a1a6; font-size: 14px; }
.tracks { list-style: none; counter-reset: t; max-width: 560px; margin: 64px auto 0; padding: 8px 24px; text-align: left; background: var(--night-2); border-radius: 18px; }
.tracks li { counter-increment: t; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #2c2c2e; }
.tracks li:last-child { border-bottom: 0; }
.tracks li::before { content: counter(t); width: 18px; color: #98989d; font-variant-numeric: tabular-nums; }
.tracks span { flex: 1; }
.tracks time { color: #98989d; font-variant-numeric: tabular-nums; }

/* Cocon */
.tile-light { background: var(--bg); }
.tile-light .kicker { color: var(--cocon); }
.tile-light .tile-sub { color: var(--ink-2); }
.toi { color: var(--cocon-blue); }
.moi { color: var(--cocon); }
.pill-cocon { background: var(--cocon); color: #1d1d1f; }
.pill-cocon:hover { background: #ff8a45; }

.phone { width: 290px; margin: 64px auto 0; padding: 12px; border-radius: 48px; background: #1d1d1f; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .35); }
.screen { position: relative; min-height: 560px; padding: 44px 16px 20px; border-radius: 38px; background: #14151a; color: #f5f5f7; text-align: left; font-size: 13px; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #000; }
.app-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.card { padding: 16px; border-radius: 20px; background: #20222b; }
.avatars { display: flex; margin-bottom: 10px; }
.avatars i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 12px; background: var(--cocon-blue); }
.avatars i + i { margin-left: -6px; background: var(--cocon); border: 2px solid #20222b; }
.card b { display: block; font-size: 16px; }
.card .big { display: block; font-size: 20px; font-weight: 700; margin-top: 2px; }
.card small { display: block; color: #8e8e93; margin-top: 4px; }
.think { margin-top: 14px; padding: 10px; border-radius: 12px; background: #fff; color: #1d1d1f; text-align: center; font-weight: 600; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mini div { padding: 12px 10px; border-radius: 16px; background: #20222b; font-size: 20px; }
.mini span { display: block; font-size: 11px; color: #c7c7cc; margin-top: 4px; }

.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 80px auto 0; text-align: left; }
.features li { padding: 28px 24px; border-radius: 22px; background: var(--surface-alt); color: var(--ink-2); font-size: 15px; }
.features b { display: block; color: var(--ink); font-size: 19px; margin: 12px 0 6px; }
.ico { font-size: 28px; line-height: 1; }

/* Musique */
.music { background: var(--bg-alt); text-align: center; padding: clamp(80px, 11vw, 120px) 16px; }
.music .kicker { color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 64px auto 0; text-align: left; }
.card-artist { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px 32px; border-radius: 28px; background: var(--surface); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card-artist:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .15); }
.genre { color: var(--ink-2); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.card-artist h3 { font-size: 32px; }
.card-artist > p:not(.genre) { color: var(--ink-2); flex: 1; }
.card-artist iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; margin-top: 10px; background: #282828; }
.card-artist .more { font-size: 15px; margin-top: 6px; }

/* Engagements */
.values { text-align: center; padding: clamp(80px, 11vw, 120px) 16px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1000px; margin: 64px auto 0; }
.values-grid h3 { margin: 16px 0 8px; font-size: 21px; }
.values-grid p { color: var(--ink-2); font-size: 16px; }

/* Pied de page */
.foot { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; }
.foot-in { width: min(1000px, 100% - 32px); margin-inline: auto; padding: 24px 0 32px; }
.foot-in > p { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot a { color: var(--link); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; }

/* Apparition au défilement (seulement si le JS est actif) */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav nav { gap: 16px; font-size: 12px; }
  .nav-right { gap: 12px; }
  .grid, .values-grid, .features { grid-template-columns: 1fr; }
  .values-grid { gap: 40px; }
  .facts { gap: 12px; }
  .facts strong { font-size: 26px; white-space: nowrap; }
  .features li { padding: 22px 20px; }
  .card-artist { padding: 28px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Mode sombre : séparer les sections noires et détacher le téléphone du fond */
:root[data-theme="dark"] .tile-light { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .phone { box-shadow: 0 0 0 1px #3a3a3c; }
