/* Studio 2050 — design tokens (Charte Graphique) */
:root {
  /* Core palette — from Charte Graphique slide 5 */
  --navy: #06005A;            /* Primary. "Croissance et confiance" */
  --navy-2: #0b0975;          /* Slightly lifted navy for layering */
  --navy-3: #151270;
  --green: #57DA1B;           /* Innovation + écologie */
  --green-dim: #3fa818;
  --green-soft: #d6f5c4;
  --white: #ffffff;
  --paper: #faf9f5;           /* Warm off-white */
  --paper-2: #f1efe7;
  --ink: #0a0a12;
  --gray-1: #1c1b2c;
  --gray-2: #3a3a52;
  --gray-3: #6b6b82;
  --gray-4: #a5a5b8;
  --gray-5: #d9d9e2;
  --gray-6: #ebebf1;

  /* Mode tokens — default light/paper */
  --bg: var(--paper);
  --bg-1: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: #e6e4da;
  --fg: var(--navy);
  --fg-muted: rgba(6,0,90,0.70);
  --fg-dim: rgba(6,0,90,0.45);
  --hairline: rgba(6,0,90,0.14);
  --hairline-2: rgba(6,0,90,0.06);
  --accent: var(--green);

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* Scale */
  --fs-micro: 11px;
  --fs-label: 12px;
  --fs-body-sm: 14px;
  --fs-body: 16px;
  --fs-body-lg: 18px;
  --fs-h5: 20px;
  --fs-h4: 24px;
  --fs-h3: 32px;
  --fs-h2: clamp(32px, 4.2vw, 56px);
  --fs-h1: clamp(44px, 6.6vw, 92px);
  --fs-display: clamp(60px, 10vw, 148px);

  --lh-tight: 1.02;
  --lh-display: 1.04;
  --lh-heading: 1.08;
  --lh-body: 1.55;

  /* Spacing */
  --gutter: clamp(20px, 3vw, 40px);
  --section-y: clamp(80px, 10vw, 160px);
  --max-w: 1440px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Dark mode — navy */
[data-mode="dark"] {
  --bg: var(--navy);
  --bg-1: var(--navy);
  --bg-2: var(--navy-2);
  --bg-3: var(--navy-3);
  --fg: var(--white);
  --fg-muted: rgba(255,255,255,0.66);
  --fg-dim: rgba(255,255,255,0.42);
  --hairline: rgba(255,255,255,0.14);
  --hairline-2: rgba(255,255,255,0.08);
}

/* Accent intensity tweak */
[data-accent="calm"] { --accent: #7ac652; }
[data-accent="vibrant"] { --accent: #57DA1B; }
[data-accent="electric"] { --accent: #9cff47; }

/* Base */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Utility type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
p { text-wrap: pretty; }
.lead {
  font-size: var(--fs-body-lg);
  color: var(--fg-muted);
  max-width: 62ch;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--hairline);
}
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Hairlines */
.hairline { border-top: 1px solid var(--hairline); }

/* Section */
.section { padding: var(--section-y) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: end; }
}
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 50ch; }

/* Loader dot motif (the brand "O" as loading ring) */
.loader-o {
  display: inline-block;
  width: 1em; height: 1em;
  border-radius: 50%;
  border: 0.14em solid var(--accent);
  border-right-color: transparent;
  vertical-align: -0.08em;
}

/* Number pipe label (countdown style) */
.pipe-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.pipe-label::before, .pipe-label::after {
  content: ""; width: 1px; height: 12px; background: var(--hairline);
}
