/* Home V5 · Impulsion — prototype statique
   Base commune : tokens, typo Geist (variante D retenue le 01.10.2026), composants partagés. */

:root {
  --ink: #0c0c0d;
  --ink-2: #14110f;          /* fonds sombres chauds */
  --surface: #ffffff;
  --paper: #f2f2f2;          /* fond clair des sections */
  --muted: rgba(12, 12, 13, 0.62);
  --line: rgba(12, 12, 13, 0.1);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #e8a33d;         /* ambre (lueurs, puces) — ajuster selon Figma */
  --radius-button: 10px;
  --radius-card: 16px;
  --gutter: 64px;
  --maxw: 1440px;

  /* ---- Typo · Geist (seul système du site) ---- */
  --f-sans: 'Geist', system-ui, sans-serif;
  --f-display: var(--f-sans);
  --f-label: 'Geist Mono', ui-monospace, monospace;
  --w-display: 500; --w-title: 500; --w-ui: 500; --w-label: 400;

  --display-size: 56px; --display-lh: 1.02; --display-ls: -0.03em;
  --h2-size: 40px;      --h2-lh: 1.08;     --h2-ls: -0.025em;
  --h3-size: 24px;      --h3-lh: 1.25;     --h3-ls: -0.015em;
  --ui-size: 15px;      --ui-lh: 1.5;      --ui-ls: -0.005em;
  --lead-size: 17px;    --lead-lh: 1.55;   --lead-ls: -0.005em;
  --body-size: 15px;    --body-lh: 1.55;   --body-ls: -0.005em;
  --small-size: 13px;   --small-lh: 1.5;   --small-ls: 0;
  --label-size: 12px;   --label-lh: 1.4;   --label-ls: 0.06em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  /* pas d'overflow-x:hidden sur body (casse le sticky) */
}
img, video, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---- Rôles typographiques : les 8 seuls styles de la page ---- */
.t-display { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--display-size); line-height: var(--display-lh); letter-spacing: var(--display-ls); }
.t-h2      { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); }
.t-h3      { font-family: var(--f-sans); font-weight: var(--w-title); font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
.t-ui      { font-family: var(--f-sans); font-weight: var(--w-ui); font-size: var(--ui-size); line-height: var(--ui-lh); letter-spacing: var(--ui-ls); }
.t-lead    { font-family: var(--f-sans); font-weight: 400; font-size: var(--lead-size); line-height: var(--lead-lh); letter-spacing: var(--lead-ls); }
.t-body    { font-family: var(--f-sans); font-weight: 400; font-size: var(--body-size); line-height: var(--body-lh); letter-spacing: var(--body-ls); }
.t-small   { font-family: var(--f-sans); font-weight: 400; font-size: var(--small-size); line-height: var(--small-lh); letter-spacing: var(--small-ls); }
.t-label   { font-family: var(--f-label); font-weight: var(--w-label); font-size: var(--label-size); line-height: var(--label-lh); letter-spacing: var(--label-ls); text-transform: uppercase; }
/* Retour à la ligne : titres et textes courts équilibrés, paragraphes longs sans mot orphelin */
h1, h2, h3, h4, blockquote, figcaption, .t-display, .t-h2, .t-h3, .t-lead, .t-label, .t-ui { text-wrap: balance; }
p, li, .t-body, .t-small { text-wrap: pretty; }
p.t-lead, p.t-label, p.t-ui { text-wrap: balance; }
.u-keep { display: inline-block; }   /* courte phrase d'un titre : coupée entre les phrases, jamais au milieu */
.muted { color: var(--muted); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 120px; }
.section--dark { background: var(--ink-2); color: var(--on-dark); }
.section--dark .muted { color: var(--on-dark-muted); }
.section--white { background: var(--surface); }

/* Eyebrow : puce carrée + label */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: none; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 22px;
  border-radius: var(--radius-button);
  font-family: var(--f-sans); font-weight: var(--w-ui); font-size: var(--ui-size); line-height: 1.2; letter-spacing: var(--ui-ls);
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn::after { content: "↗"; }
.btn--noarrow::after { content: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--outline { border: 1px solid rgba(12,12,13,.22); color: var(--ink); }
.section--dark .btn--outline { border-color: rgba(255,255,255,.28); color: #fff; }
/* Survol : la teinte change, le bouton ne bouge pas */
@media (hover: hover) {
  .btn--light:hover { background: #ecebe8; }
  .btn--dark:hover { background: #2a2a2c; }
  .btn--glass:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.4); }
  .btn--outline:hover { background: rgba(12,12,13,.04); border-color: rgba(12,12,13,.45); }
  .section--dark .btn--outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Responsive de base ---- */
@media (max-width: 1024px) {
  :root { --gutter: 32px; --display-size: 44px; --h2-size: 34px; }
  .section { padding-block: 88px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --display-size: 36px; --h2-size: 28px; --h3-size: 20px; --lead-size: 16px; }
  .section { padding-block: 64px; }
}
