/* =====================================================================
   Unrecorded — Creative Direction document
   Art direction: "sound is something you play."
   Premium first, playful second — dark refined base + tactile, chunky
   controls, satisfying motion, one colour per product. No arcade kitsch.
   Plain CSS, no framework. Cloudflare-ready.
   ===================================================================== */

:root {
  /* warm near-black greyscale ramp */
  --bg:        #0b0a0d;
  --bg-2:      #0f0e12;
  --panel:     #141218;
  --panel-2:   #17151c;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --ink:       #f0eff2;
  --ink-2:     #c9c7cf;
  --muted:     #8e8b97;
  --faint:     #605d6a;

  /* playful accent (Pulsed violet) — used for state + a little life */
  --accent:    #a78bfa;
  --accent-2:  #c4b3ff;
  --accent-dk: #6d50c4;

  /* one colour per product — desaturated to stay premium */
  --t-pulsed:  #a78bfa;
  --t-spaced:  #67d4c6;
  --t-scaled:  #9ed06a;
  --t-tailed:  #f0a35e;
  --t-wrapped: #f08cae;
  --t-utility: #8fb0e6;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      820px;
  --read:      64ch;
  --spring:    cubic-bezier(.2,.85,.25,1.15);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --disp: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(167,139,250,.32); }

/* ---- full-page translation: show only the active language ---------- */
[data-lang="fr"] [lang="en"], [data-lang="en"] [lang="fr"] { display: none; }

/* =====================================================================
   Top bar — brand + chunky keycap language switch (the only control)
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(11,10,13,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { font-family: var(--mono); font-weight: 500; letter-spacing: .16em; font-size: 13px; }
.nav__brand b { font-weight: 700; }
.nav__status { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.lang { margin-left: auto; display: flex; gap: 4px; }
.lang button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; cursor: pointer;
  color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 11px; transition: color .15s, border-color .15s;
}
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--ink); border-color: var(--line-2); }

/* =====================================================================
   Layout
   ===================================================================== */
main { position: relative; }
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 9vw, 116px) clamp(18px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 22px;
}

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.section h2 { font-size: clamp(25px, 3.8vw, 38px); margin-bottom: 22px; max-width: var(--read); }
.section > p.lead { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); max-width: var(--read); margin: 0 0 18px; line-height: 1.7; }

.section p.body { color: var(--muted); font-size: 15.5px; max-width: var(--read); margin: 0 0 18px; line-height: 1.75; }
.section p.body strong { color: var(--ink-2); font-weight: 600; }
.pull {
  max-width: var(--read); margin: 26px 0; padding: 14px 18px;
  border-left: 2px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(167,139,250,.07), transparent);
  font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--ink-2);
}
.flag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--faint); display: inline-flex; gap: 7px; align-items: center; margin: 8px 0 0; }
.flag::before { content: "▸"; color: var(--accent); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 11vw, 132px) clamp(18px, 5vw, 48px) clamp(48px, 7vw, 80px);
}
.hero h1 { font-size: clamp(40px, 8vw, 84px); letter-spacing: -.035em; font-weight: 600; margin: 14px 0 0; }
.hero h1 .sub { display: block; font-family: var(--sans); color: var(--muted); font-weight: 400; font-size: clamp(17px, 2.4vw, 24px); margin-top: 20px; letter-spacing: -.01em; line-height: 1.35; max-width: 24ch; }
.hero .signature { font-family: var(--mono); color: var(--accent-2); font-size: 13px; letter-spacing: .06em; margin-top: 30px; }
.hero p.intro { color: var(--muted); max-width: 56ch; font-size: clamp(15px, 1.6vw, 17px); margin: 22px 0 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }

/* =====================================================================
   Badges — chip style, state shown by the dot
   ===================================================================== */
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--confirmed { color: var(--accent-2); }
.badge--draft     { color: var(--muted); }
.badge--toadd     { color: var(--faint); }
.badge--toadd::before { background: transparent; border: 1px solid currentColor; }
.badge--wip       { color: var(--faint); }

/* =====================================================================
   Grids & cards — chunky, tactile, springy
   ===================================================================== */
.grid { display: grid; gap: 14px; margin-top: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; transition: border-color .2s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 9px; }
.card .role { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card .meta { color: var(--faint); font-size: 12px; margin-top: 12px; }
.card--head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* per-product colour dot */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot--pulsed { background: var(--t-pulsed); color: var(--t-pulsed); }
.dot--spaced { background: var(--t-spaced); color: var(--t-spaced); }
.dot--scaled { background: var(--t-scaled); color: var(--t-scaled); }
.dot--tailed { background: var(--t-tailed); color: var(--t-tailed); }
.dot--wrapped{ background: var(--t-wrapped); color: var(--t-wrapped); }
.dot--utility{ background: var(--t-utility); color: var(--t-utility); }

/* is / is not */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.cols .card h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 16px; }

/* clean bullet list */
.list { list-style: none; margin: 16px 0 0; padding: 0; }
.list li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 2px; background: var(--faint); }
.list--yes li::before { background: var(--accent); }
.list li strong { font-weight: 600; color: var(--ink); }

/* =====================================================================
   Asset placeholders — "insert" slots
   ===================================================================== */
.assetgrid { display: grid; gap: 12px; margin-top: 26px; }
.ph {
  position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  background: var(--bg-2);
  min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--faint); text-align: center; padding: 20px;
  transition: border-color .2s, color .2s, background .2s;
}
.ph:hover { border-color: var(--accent); color: var(--muted); background: rgba(167,139,250,.04); }
.ph__kind { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ph__hint { font-size: 12px; max-width: 30ch; color: var(--faint); }
.ph__add  { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-top: 2px; color: var(--faint); transition: color .15s, border-color .15s; }
.ph:hover .ph__add { border-color: var(--line-2); color: var(--muted); }
.ph--tall { min-height: 200px; }

/* =====================================================================
   Reference cards
   ===================================================================== */
.ref .ph { min-height: 120px; margin-bottom: 16px; }
.ref dl { margin: 14px 0 0; display: grid; gap: 9px; }
.ref dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ref dd { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.ref .link { font-family: var(--mono); font-size: 11px; color: var(--accent-2); }

/* =====================================================================
   Déroulement — numbered phases, like levels
   ===================================================================== */
.phases { max-width: var(--read); margin: 30px 0 0; counter-reset: ph; }
.phase { position: relative; padding: 20px 0 22px 52px; border-top: 1px solid var(--line); counter-increment: ph; }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase::before {
  content: counter(ph, decimal-leading-zero); position: absolute; left: 0; top: 19px;
  font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .06em;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 4px 7px;
}
.phase h3 { font-size: 16px; margin-bottom: 6px; }
.phase .when { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; display: block; }
.phase p { color: var(--muted); font-size: 14px; margin: 0; }

/* =====================================================================
   Checklist
   ===================================================================== */
.check { display: grid; gap: 8px; margin-top: 30px; }
.check__item {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity .2s, border-color .2s;
}
.check__item:hover { border-color: var(--line-2); }
.check__box { width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 5px; flex: 0 0 auto; transition: background .15s; }
.check__label { font-size: 14px; color: var(--ink-2); }
.check__label small { display: block; color: var(--faint); font-size: 11.5px; font-family: var(--mono); margin-top: 3px; }
.check__pri { margin-left: auto; }

.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* =====================================================================
   Footer
   ===================================================================== */
.foot {
  max-width: var(--maxw); margin: 0 auto; padding: 44px clamp(18px,5vw,48px) 80px;
  border-top: 1px solid var(--line); color: var(--faint);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 760px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid--2, .grid--3, .cols { grid-template-columns: 1fr; }
  .nav__status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .lang button, .ph__add { transition: none; }
  .card:hover { transform: none; }
  .pulse span { animation: none; height: 12px; }
}
