/* =========================================================================
   ClientWise — Site vitrine (Tech / SaaS edition)
   Statique pur · 4 palettes via [data-palette]
   ========================================================================= */

/* ---------- Tokens ----------
   Two axes: PALETTE (aurora/indigo/ember/sage) and THEME (light/dark).
   Composable : [data-palette="X"] picks accent colors,
   [data-theme="dark"] overrides bg/ink/surface for dark mode.
   --surface = "raised" surface (cards, chips, inputs on focus). Always
   slightly above --bg so cards stand out.
   --ink-on-accent = text color over accent-colored backgrounds (always #fff
   here because we keep accents saturated even in dark mode).
*/
:root,
[data-palette="aurora"] {
  --bg: #FBFBFD;
  --bg-soft: #F4F5FB;
  --surface: #FFFFFF;
  --ink: #0B1020;
  --ink-soft: #3A4256;
  --ink-mute: #7B8497;
  --ink-on-accent: #FFFFFF;
  --border: #E6E8F0;
  --border-soft: #EFF1F8;
  --accent: #5B6CFF;
  --accent-soft: #A4ADFF;
  --accent-bg: #EEF0FF;
  --grad-a: #5B6CFF;
  --grad-b: #FF6FB5;
  --grad-c: #F5B33C;
  --green: #1FB97A;
  --hero-glow-1: #EEF0FF;
  --hero-glow-2: #FFEAF4;
}

[data-palette="indigo"] {
  --bg: #FAFBFC;
  --bg-soft: #F0F4F7;
  --surface: #FFFFFF;
  --ink: #0F1A2A;
  --ink-soft: #384559;
  --ink-mute: #7A8699;
  --ink-on-accent: #FFFFFF;
  --border: #DCE3EB;
  --border-soft: #E9EFF5;
  --accent: #2563EB;
  --accent-soft: #93C5FD;
  --accent-bg: #EEF4FF;
  --grad-a: #2563EB;
  --grad-b: #06B6D4;
  --grad-c: #0EA5A0;
  --green: #10B981;
  --hero-glow-1: #EEF4FF;
  --hero-glow-2: #E0F7FA;
}

[data-palette="ember"] {
  --bg: #FDFAF6;
  --bg-soft: #FAF1E8;
  --surface: #FFFFFF;
  --ink: #1A0F08;
  --ink-soft: #4A372A;
  --ink-mute: #937B68;
  --ink-on-accent: #FFFFFF;
  --border: #EAD9C7;
  --border-soft: #F1E5D6;
  --accent: #EA580C;
  --accent-soft: #FDBA74;
  --accent-bg: #FFF1E6;
  --grad-a: #EA580C;
  --grad-b: #DC2626;
  --grad-c: #F59E0B;
  --green: #65A30D;
  --hero-glow-1: #FFF1E6;
  --hero-glow-2: #FFE4D6;
}

[data-palette="sage"] {
  --bg: #F8FAF6;
  --bg-soft: #ECF1E6;
  --surface: #FFFFFF;
  --ink: #102018;
  --ink-soft: #36473D;
  --ink-mute: #7A8A80;
  --ink-on-accent: #FFFFFF;
  --border: #D6E0CC;
  --border-soft: #E5EBDD;
  --accent: #2F8B5A;
  --accent-soft: #86C19E;
  --accent-bg: #E8F1EC;
  --grad-a: #2F8B5A;
  --grad-b: #65A30D;
  --grad-c: #CA8A04;
  --green: #15803D;
  --hero-glow-1: #E8F1EC;
  --hero-glow-2: #F0F5DC;
}

/* --cta-bg = "dark CTA" pattern background. In light mode it equals --ink so
   "var(--cta-bg) over light page" gives the original look. In dark mode we
   override it to --accent so primary buttons stay vivid on dark surface. */
:root, [data-palette="aurora"] { --cta-bg: #0B1020; --cta-fg: #FFFFFF; --cta-shadow: rgba(91, 108, 255, 0.20); }
[data-palette="indigo"]        { --cta-bg: #0F1A2A; --cta-fg: #FFFFFF; --cta-shadow: rgba(37, 99, 235, 0.20); }
[data-palette="ember"]         { --cta-bg: #1A0F08; --cta-fg: #FFFFFF; --cta-shadow: rgba(234, 88, 12, 0.20); }
[data-palette="sage"]          { --cta-bg: #102018; --cta-fg: #FFFFFF; --cta-shadow: rgba(47, 139, 90, 0.20); }

/* ---------- Dark theme ----------
   Only overrides background, text, border, and surface tokens — the chosen
   palette's accent stays vivid. Per-palette tints make each combination feel
   intentional (eg. Aurora-dark = blue/purple, Ember-dark = warm brown).
   Also flips --cta-bg from "dark ink" to "accent" so primary CTAs remain
   readable on dark surfaces.
*/
[data-theme="dark"] {
  --bg: #0B1020;
  --bg-soft: #11172A;
  --surface: #161D33;
  --ink: #F4F5FB;
  --ink-soft: #C5CAD7;
  --ink-mute: #8B95A7;
  --border: #2A3149;
  --border-soft: #1F2538;
  --accent-bg: #1B2240;
  --hero-glow-1: #1B2240;
  --hero-glow-2: #2A1B33;
  --cta-bg: var(--accent);
  --cta-fg: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"][data-palette="indigo"] {
  --bg: #07101F;
  --bg-soft: #0D182A;
  --surface: #14213A;
  --border: #243248;
  --border-soft: #182338;
  --accent-bg: #142042;
  --hero-glow-1: #142042;
  --hero-glow-2: #0A2A38;
}
[data-theme="dark"][data-palette="ember"] {
  --bg: #170C05;
  --bg-soft: #21140B;
  --surface: #2C1B0F;
  --border: #4A3322;
  --border-soft: #36231A;
  --accent-bg: #3A1E08;
  --hero-glow-1: #3A1E08;
  --hero-glow-2: #3A1810;
}
[data-theme="dark"][data-palette="sage"] {
  --bg: #0A1410;
  --bg-soft: #10211A;
  --surface: #182E24;
  --border: #2A4536;
  --border-soft: #1D3327;
  --accent-bg: #133023;
  --hero-glow-1: #133023;
  --hero-glow-2: #1B3525;
}

:root {
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1240px;
  --gutter: 60px;
  --header-h: 72px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.04);
  --shadow-md: 0 8px 30px -10px rgba(11, 16, 32, 0.08);
  --shadow-lg: 0 30px 80px -20px rgba(11, 16, 32, 0.18);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }

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

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.eyebrow::before { content: '// '; opacity: 0.6; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -0.022em; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.018em; }
.lead { font-size: 21px; line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.soft  { color: var(--ink-soft); }

.gradient-text {
  background: linear-gradient(110deg, var(--grad-a) 0%, var(--grad-b) 50%, var(--grad-c) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); box-shadow: 0 8px 20px var(--cta-shadow); }
.btn--primary:hover { box-shadow: 0 12px 28px var(--cta-shadow); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--small { padding: 10px 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--container); margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
/* Logo "Heard" : badge gradient (palette-aware via --grad-*) + glyphe blanc
   (guillemets + coche) overlay en SVG data URI. Le texte "cw" reste dans le
   HTML comme fallback SEO/screen-reader mais est masque visuellement. */
.nav__logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background:
    url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2044%2044'%3E%3Cpath%20d='M8%2022%20L8%2014%20C8%2011%2010%209%2013%209%20L17%209%20L17%2014%20C15%2014%2014%2015%2014%2017%20L17%2017%20L17%2022%20Z'%20fill='%23fff'/%3E%3Cpath%20d='M22%2022%20L22%2014%20C22%2011%2024%209%2027%209%20L31%209%20L31%2014%20C29%2014%2028%2015%2028%2017%20L31%2017%20L31%2022%20Z'%20fill='%23fff'/%3E%3Cpath%20d='M11%2028%20L19%2036%20L36%2018'%20fill='none'%20stroke='%23fff'%20stroke-width='3.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / 78% no-repeat,
    linear-gradient(135deg, var(--grad-a), var(--grad-b));
  font-size: 0;  /* cache le "cw" textuel, qui reste lisible par les screen readers */
  flex-shrink: 0;
}

/* ---------- Logo nav anime (injecte par main.js sur la 1re instance .nav__logo-mark) ----------
   Quand main.js a injecte le SVG inline, on ajoute la classe .nav__logo-mark--animated qui :
   - Retire le SVG en background (pour ne pas afficher 2 fois le glyphe)
   - Garde le gradient palette-aware
   - Permet d'animer les 3 paths du SVG individuellement
   La classe .is-animating est toggled par JS pour relancer l'animation (load + hover).
*/
.nav__logo-mark--animated {
  background-image: none;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: grid; place-items: center;
  overflow: hidden;
}
.nav__logo-mark--animated svg { width: 78%; height: 78%; display: block; }
.nav__logo-mark--animated .cw-quote-l,
.nav__logo-mark--animated .cw-quote-r {
  fill: #fff;
  transform-origin: 50% 50%;
}
.nav__logo-mark--animated .cw-check {
  fill: none; stroke: #fff;
  stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 0;  /* etat final par defaut (au cas ou la classe is-animating ne soit jamais ajoutee) */
}
/* Pendant l'animation : on cache puis on fait apparaitre les 2 quotes, puis on dessine la coche.
   Timing total : 2.5s -- quotes en cascade rapide, coche qui se dessine lentement. */
.nav__logo-mark--animated.is-animating .cw-quote-l { animation: cw-quote-in .6s .1s var(--ease) both; }
.nav__logo-mark--animated.is-animating .cw-quote-r { animation: cw-quote-in .6s .5s var(--ease) both; }
.nav__logo-mark--animated.is-animating .cw-check   { animation: cw-check-draw 1.4s 1.1s var(--ease) both; }

@keyframes cw-quote-in {
  from { opacity: 0; transform: translateY(-2px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
@keyframes cw-check-draw {
  from { stroke-dashoffset: 40; }
  to   { stroke-dashoffset: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  /* Respect des preferences accessibilite : pas d'animation */
  .nav__logo-mark--animated.is-animating .cw-quote-l,
  .nav__logo-mark--animated.is-animating .cw-quote-r,
  .nav__logo-mark--animated.is-animating .cw-check { animation: none; }
}
.nav__logo-text { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.nav__logo-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-full);
  background: var(--accent-bg); color: var(--accent);
  margin-left: 4px;
}
.nav__menu { display: flex; gap: 32px; align-items: center; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav__link:hover { color: var(--ink); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__toggle { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 100px;
  background:
    radial-gradient(1200px 600px at 80% 0%, var(--hero-glow-1) 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 100%, var(--hero-glow-2) 0%, transparent 55%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
}
.hero__inner { position: relative; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--surface); border-radius: var(--r-full);
  border: 1px solid var(--border);
  font-size: 13px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease);
}
.hero__chip:hover { transform: translateY(-1px); }
.hero__chip-tag {
  padding: 3px 10px; background: var(--accent); color: #fff;
  border-radius: var(--r-full); font-weight: 600; font-size: 11px; letter-spacing: 0.03em;
}
.hero__chip-text { color: var(--ink-soft); }
.hero__chip-arrow { color: var(--accent); }

.hero__title { max-width: 980px; margin: 0 0 28px; overflow-wrap: break-word; hyphens: auto; }
.hero__subtitle { max-width: 720px; margin: 0 0 36px; }
.hero__ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 70px; }
.hero__cta-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); margin-left: 4px; }

/* ---------- Product mock (dashboard preview) ---------- */
.mock {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.mock__dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock__dot--r { background: #FF6055; }
.mock__dot--y { background: #FFBD2C; }
.mock__dot--g { background: #28C940; }
.mock__url {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  margin-left: 12px;
}
.mock__body { display: grid; grid-template-columns: 220px 1fr; min-height: 460px; }
.mock__side {
  border-right: 1px solid var(--border-soft);
  padding: 18px; background: var(--bg-soft);
}
.mock__side-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin-bottom: 10px; }
.mock__side-item {
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  margin-bottom: 4px;
}
.mock__side-item--active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.mock__main { padding: 24px; }
.mock__main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mock__main-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.mock__main-sub { font-size: 12px; color: var(--ink-mute); margin-bottom: 4px; }
.mock__segctl { display: flex; gap: 8px; }
.mock__segctl button {
  padding: 6px 12px; font-size: 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface);
}
.mock__segctl button.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); font-weight: 600; }
.mock__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mock__kpi { padding: 14px; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--surface); }
.mock__kpi-l { font-size: 11px; color: var(--ink-mute); margin-bottom: 6px; }
.mock__kpi-v { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1; }
.mock__kpi-d { font-size: 11px; color: var(--green); font-weight: 600; margin-left: 6px; }
.mock__chart {
  padding: 18px; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--surface);
}
.mock__chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock__chart-title { font-weight: 600; font-size: 14px; }
.mock__chart-legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-soft); }
.mock__chart-legend .swatch { display: inline-block; width: 10px; height: 2px; margin-right: 4px; vertical-align: middle; }
/* SVG colors via CSS (les attributs SVG ne resolvent pas les var() CSS) */
.mock__chart-grid       { stroke: var(--border-soft); }
.mock__chart-line-after { stroke: var(--accent); }
.mock__chart-line-before{ stroke: var(--ink-mute); }
.mock__chart-stop-top   { stop-color: var(--accent); stop-opacity: 0.22; }
.mock__chart-stop-bot   { stop-color: var(--accent); stop-opacity: 0; }

/* ---------- Logos band ---------- */
.logos {
  margin-top: 70px; display: flex; align-items: center;
  gap: 12px 36px; flex-wrap: wrap;
}
.logos__label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.logos__chip {
  padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-soft);
}

/* ---------- Services ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.section-head--center { text-align: center; display: block; max-width: 720px; margin: 0 auto 60px; }
.section-head__intro { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin: 0; }
.section-head--center .section-head__intro { margin: 20px auto 0; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  padding: 36px; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(11, 16, 32, 0.02), var(--shadow-md);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(11, 16, 32, 0.02), 0 20px 40px -12px rgba(11, 16, 32, 0.12); }
.service-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
}
.service-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; position: relative; }
.service-card__icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: grid; place-items: center; color: #fff;
}
.service-card__tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; }
.service-card__title { margin: 0 0 12px; position: relative; }
.service-card__desc { color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; position: relative; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.service-card__tags span {
  font-size: 12px; padding: 5px 10px; border-radius: var(--r-full);
  background: var(--bg-soft); color: var(--ink-soft); font-weight: 500;
}
.service-card__foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; position: relative;
}
.service-card__foot a { font-size: 14px; font-weight: 600; color: var(--accent); }
.service-card__foot .mono { font-size: 11px; color: var(--ink-mute); }

/* ---------- Quiz / Diagnostic flash ---------- */
.section--quiz { background: var(--bg-soft); }
.quiz {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.quiz__intro h2 { margin: 0 0 22px; }
.quiz__bullets { display: grid; gap: 10px; margin: 0 0 32px; }
.quiz__bullets li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.quiz__check {
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-bg); color: var(--accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.quiz-card {
  padding: 32px; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.quiz-card__head { display: flex; justify-content: space-between; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; }
.quiz-card__head .step { color: var(--ink-mute); }
.quiz-card__hint { color: var(--accent); }
.quiz-card__progress {
  height: 6px; background: var(--bg-soft); border-radius: var(--r-full);
  margin-bottom: 32px; overflow: hidden;
}
.quiz-card__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border-radius: var(--r-full); transition: width .35s var(--ease);
}
.quiz-card__q { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 0 22px; }
.quiz-card__opts { display: grid; gap: 10px; }
.quiz-card__opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all .15s var(--ease);
  text-align: left; width: 100%;
}
.quiz-card__opt:hover { border-color: var(--accent-soft); }
.quiz-card__opt.is-selected { border-color: var(--accent); background: var(--accent-bg); }
.quiz-card__opt-key {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--bg-soft); color: var(--ink-soft);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.quiz-card__opt.is-selected .quiz-card__opt-key { background: var(--accent); color: #fff; }
.quiz-card__opt-text { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.quiz-card__opt.is-selected .quiz-card__opt-text { font-weight: 600; color: var(--ink); }
.quiz-card__opt-mark { margin-left: auto; color: var(--accent); opacity: 0; transition: opacity .15s; }
.quiz-card__opt.is-selected .quiz-card__opt-mark { opacity: 1; }
.quiz-card__foot { margin-top: 26px; display: flex; justify-content: space-between; }

/* ---------- Method ---------- */
.method { position: relative; }
.method__line {
  position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.method__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.method__step { text-align: center; }
.method__step-n {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  margin: 0 auto 18px;
  background: var(--surface); border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--accent);
  box-shadow: 0 6px 20px -4px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .2s var(--ease);
}
.method__step:hover .method__step-n { transform: scale(1.05) translateY(-2px); }
.method__step-dur { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin-bottom: 6px; }
.method__step-t { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.method__step-d { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------- Compare (Before/After) ---------- */
.section--compare { background: var(--bg-soft); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col {
  padding: 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.compare__col--after {
  background: linear-gradient(160deg, var(--cta-bg) 0%, color-mix(in srgb, var(--cta-bg) 88%, var(--accent)) 100%);
  color: var(--cta-fg); border-color: var(--cta-bg);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.compare__col--after::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent) 0%, transparent 70%);
}
.compare__head { display: flex; justify-content: space-between; margin-bottom: 24px; position: relative; }
.compare__title { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.compare__label { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }
.compare__row {
  display: flex; justify-content: space-between;
  padding: 14px 0; font-size: 15px; position: relative;
}
.compare__row + .compare__row { border-top: 1px solid var(--border-soft); }
.compare__col--after .compare__row + .compare__row { border-top-color: #ffffff15; }
.compare__dim { opacity: 0.8; }
.compare__val { font-family: var(--font-display); font-weight: 700; color: var(--ink-mute); }
.compare__col--after .compare__val { color: var(--accent-soft); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing__card {
  padding: 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.pricing__card--featured {
  background: linear-gradient(160deg, var(--cta-bg) 0%, color-mix(in srgb, var(--cta-bg) 88%, var(--accent)) 100%);
  color: var(--cta-fg); border-color: var(--cta-bg);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 50%, transparent);
}
.pricing__card--featured::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent) 0%, transparent 70%);
}
.pricing__badge {
  position: absolute; top: 20px; right: 20px;
  padding: 4px 10px; background: var(--accent); color: #fff;
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
}
.pricing__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 0 0 6px; position: relative; }
.pricing__tagline { font-size: 14px; opacity: 0.7; margin-bottom: 26px; }
.pricing__price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; position: relative; }
.pricing__price-from { font-size: 16px; opacity: 0.8; }
.pricing__price { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1; }
.pricing__price-currency {
  font-size: 0.5em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.12em;
  opacity: 0.85;
}
.pricing__meta { font-size: 13px; opacity: 0.7; margin-bottom: 28px; }
.pricing__features { list-style: none; padding: 0; margin: 0 0 28px; position: relative; flex: 1; }
.pricing__features li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; }
.pricing__features li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-top: 2px; }
.pricing__card--featured .pricing__features li::before { color: var(--accent-soft); }
.pricing__cta {
  display: block; text-align: center; padding: 13px 20px;
  background: var(--cta-bg); color: var(--cta-fg); border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; position: relative;
  transition: transform .15s var(--ease);
}
.pricing__card--featured .pricing__cta { background: var(--accent); }
.pricing__cta:hover { transform: translateY(-2px); }
.pricing__note { text-align: center; margin-top: 30px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; }
.pricing__toggle {
  margin: 24px auto 0; display: inline-flex; padding: 4px;
  background: var(--bg-soft); border-radius: var(--r-md);
}
.pricing__toggle button {
  padding: 8px 18px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-soft);
}
.pricing__toggle button.is-active { background: var(--surface); font-weight: 600; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
/* Toggle entre 2 sets de cards (Forfait / Sur-mesure) */
.pricing.is-hidden { display: none; }

/* ---------- Testimonials ---------- */
.section--testimonials { background: var(--bg-soft); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  padding: 30px; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  opacity: 0.92;
}
.testimonial__stars { display: flex; gap: 4px; margin-bottom: 18px; font-size: 16px; }
.testimonial:nth-child(1) .testimonial__stars { color: var(--grad-a); }
.testimonial:nth-child(2) .testimonial__stars { color: var(--grad-b); }
.testimonial:nth-child(3) .testimonial__stars { color: var(--grad-c); }
.testimonial__quote { font-size: 16px; line-height: 1.55; color: var(--ink); margin: 0 0 24px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 42px; height: 42px; border-radius: 50%; }
.testimonial:nth-child(1) .testimonial__avatar { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.testimonial:nth-child(2) .testimonial__avatar { background: linear-gradient(135deg, var(--grad-b), var(--grad-c)); }
.testimonial:nth-child(3) .testimonial__avatar { background: linear-gradient(135deg, var(--grad-c), var(--grad-a)); }
.testimonial__name { font-weight: 600; font-size: 14px; }
.testimonial__role { font-size: 12px; color: var(--ink-mute); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
.faq-layout__intro h2 { margin: 0; }
.faq-layout__intro p { margin: 22px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.faq-layout__intro a { color: var(--accent); font-weight: 600; }
.faq__item {
  padding: 24px 28px; margin-bottom: 12px;
  background: var(--surface); border-radius: 14px;
  border: 1px solid var(--border-soft);
  transition: box-shadow .2s var(--ease);
}
.faq__item:hover { box-shadow: var(--shadow-md); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-icon {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--accent-bg); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
  transition: transform .2s var(--ease);
  flex-shrink: 0; margin-left: 12px;
}
.faq__item[open] .faq__q-icon { transform: rotate(45deg); }
.faq__a { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ---------- Booking ---------- */
.section--booking { background: var(--bg-soft); }
/* Bloc de résultats du quiz, affiché en tête de la section booking */
.quiz-result {
  padding: 36px 40px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.quiz-result::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b), var(--grad-c));
}
.quiz-result.is-hidden { display: none; }
.quiz-result .eyebrow { margin-bottom: 8px; }
.quiz-result__title { margin: 0 0 26px; font-size: clamp(26px, 3.2vw, 40px); }
.quiz-result__score-row {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 26px; margin-bottom: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-bg), color-mix(in srgb, var(--accent-bg) 60%, var(--bg-soft)));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.quiz-result__score {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-weight: 800;
  flex-shrink: 0;
}
.quiz-result__score-value {
  font-size: clamp(48px, 7vw, 72px); line-height: 1;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.quiz-result__score-out { font-size: 22px; color: var(--ink-mute); font-weight: 600; }
.quiz-result__verdict {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}
.quiz-result__body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 20px; }
.quiz-result__body p { margin: 0 0 14px; }
.quiz-result__body p:last-child { margin: 0; }
.quiz-result__body strong { color: var(--ink); font-weight: 600; }
.quiz-result__body ul { list-style: none; padding: 0; margin: 12px 0; }
.quiz-result__body ul li {
  position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15px;
}
.quiz-result__body ul li::before {
  content: '→'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.quiz-result__cta-hint {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mute); border-top: 1px solid var(--border-soft);
  padding-top: 18px; margin: 0 0 18px;
}
.quiz-result__cta { display: inline-flex; }
@media (max-width: 860px) {
  .quiz-result { padding: 28px 22px; }
  .quiz-result__score-row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
}
.booking { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.booking__intro h2 { margin: 0 0 22px; }
.booking__intro p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
.booking__meta { display: grid; gap: 14px; }
.booking__meta-row {
  display: flex; justify-content: space-between;
  padding: 12px 16px; background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border-soft); font-size: 14px;
}
.booking__meta-row span:first-child { color: var(--ink-mute); font-weight: 500; }
.booking__meta-row span:last-child { font-weight: 600; }

.cal {
  padding: 28px; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
/* Variante "embed" : conteneur pour Calendly inline. On reduit le padding car
   l'iframe Calendly a deja ses propres marges, et on autorise plus de hauteur. */
.cal--embed {
  padding: 4px;
  overflow: hidden;
}
.calendly-inline-widget {
  border-radius: calc(var(--r-lg) - 4px);
  overflow: hidden;
}
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cal__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); }
.cal__nav button:hover { background: var(--bg-soft); }
.cal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.cal__weekday { text-align: center; font-size: 11px; color: var(--ink-mute); padding: 6px 0; font-family: var(--font-mono); }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 22px; }
.cal__day {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s var(--ease);
}
.cal__day.is-disabled { color: color-mix(in srgb, var(--ink-mute) 50%, transparent); cursor: default; }
.cal__day.is-available { background: var(--accent-bg); color: var(--accent); }
.cal__day.is-available:hover { background: color-mix(in srgb, var(--accent-bg) 80%, var(--accent)); }
.cal__day.is-selected { background: var(--accent); color: #fff; }
.cal__slots-label { font-size: 12px; font-family: var(--font-mono); color: var(--ink-mute); margin-bottom: 10px; }
.cal__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cal__slot {
  padding: 12px 0; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border);
  transition: all .15s var(--ease);
}
.cal__slot:hover { border-color: var(--accent-soft); }
.cal__slot.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal__confirm {
  width: 100%; margin-top: 22px; padding: 14px;
  background: var(--cta-bg); color: var(--cta-fg); border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
}
.cal__confirm:hover { background: color-mix(in srgb, var(--cta-bg) 88%, var(--accent)); }

/* ---------- Contact Form ---------- */
.section--contact { padding: 110px 0; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact__intro h2 { margin: 0 0 22px; }
.contact__intro p { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin-bottom: 30px; }
.contact__channels { display: grid; gap: 14px; }
.contact__channel { display: flex; flex-direction: column; gap: 4px; }
.contact__channel-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; }
.contact__channel a, .contact__channel span { font-size: 15px; font-weight: 500; color: var(--ink); }
.contact__channel a:hover { color: var(--accent); }

.contact-form {
  padding: 36px; background: var(--surface);
  border-radius: var(--r-lg); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-field--checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-field--checkbox input { margin-top: 2px; }
.form-field--checkbox label { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); letter-spacing: 0; font-weight: 400; line-height: 1.5; text-transform: none; }
.form-status { font-size: 13px; min-height: 18px; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: #DC2626; }

/* Bandeau "diagnostic flash joint" affiché si l'utilisateur a complété le quiz */
.form-quiz-attached {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--accent-bg), color-mix(in srgb, var(--accent-bg) 50%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r-md);
  color: var(--accent);
  font-size: 13px; line-height: 1.5;
}
.form-quiz-attached.is-hidden { display: none; }
.form-quiz-attached svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.form-quiz-attached strong { color: var(--ink); display: block; margin-bottom: 2px; font-weight: 600; }
.form-quiz-attached span { color: var(--ink-soft); }

/* ---------- Footer ----------
   Always dark, in both light and dark mode (acts as a visual base of the page).
   Uses --cta-bg which equals --ink in light mode and --accent in dark — so in
   dark mode the footer takes the accent tint, which works nicely.
*/
.footer {
  background: var(--cta-bg); color: #fff;
  padding: 70px 0 24px;
}
[data-theme="dark"] .footer {
  /* In dark mode, prefer a stable dark surface over the accent tint */
  background: #06091A;
  border-top: 1px solid var(--border);
}
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer__brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__brand-row .nav__logo-mark { width: 36px; height: 36px; border-radius: var(--r-md); }
.footer__brand-row .nav__logo-text { font-size: 22px; color: #fff; }
.footer__tagline { font-size: 14px; opacity: 0.6; max-width: 320px; line-height: 1.7; margin: 0 0 22px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: #ffffff10; display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  transition: background .15s var(--ease);
}
.footer__socials a:hover { background: #ffffff25; }
.footer__col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; opacity: 0.5; letter-spacing: 0.08em; margin: 0 0 16px; text-transform: uppercase; }
.footer__col ul li { font-size: 14px; padding: 5px 0; opacity: 0.85; }
.footer__col ul li a:hover { opacity: 1; color: var(--accent-soft); }
.footer__bottom {
  border-top: 1px solid #ffffff15;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; opacity: 0.5;
}

/* ---------- Palette + theme switcher (floating widget) ----------
   Compact pill : palette swatches on the left, vertical divider, sun/moon
   toggle on the right. The whole widget switches surface in dark mode via
   var(--surface) so it always remains readable.
*/
.palette-switcher {
  position: fixed; bottom: 20px; right: 20px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 10px 8px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.04em;
}
.palette-switcher__label { text-transform: uppercase; }
.palette-switcher__opts { display: flex; gap: 6px; }
.palette-switcher__opt {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; padding: 0;
  transition: transform .15s var(--ease), border-color .15s var(--ease);
  position: relative;
}
.palette-switcher__opt:hover { transform: scale(1.1); }
.palette-switcher__opt.is-active { border-color: var(--ink); }
.palette-switcher__opt[data-pal="aurora"] { background: linear-gradient(135deg, #5B6CFF 0%, #FF6FB5 60%, #F5B33C 100%); }
.palette-switcher__opt[data-pal="indigo"] { background: linear-gradient(135deg, #2563EB 0%, #06B6D4 60%, #0EA5A0 100%); }
.palette-switcher__opt[data-pal="ember"]  { background: linear-gradient(135deg, #EA580C 0%, #DC2626 60%, #F59E0B 100%); }
.palette-switcher__opt[data-pal="sage"]   { background: linear-gradient(135deg, #2F8B5A 0%, #65A30D 60%, #CA8A04 100%); }

/* Theme toggle (sun / moon) */
.palette-switcher__divider {
  width: 1px; height: 20px; background: var(--border);
}
.theme-toggle {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 16px; height: 16px; }
/* Show only the relevant icon based on current theme */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 20px; left: 20px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cta-bg); color: var(--cta-fg);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .h1 { font-size: 64px; }
  .h2 { font-size: 44px; }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__col:nth-child(5) { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .section { padding: 70px 0; }
  .h1 { font-size: 40px; line-height: 1.05; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 22px; }
  .lead { font-size: 17px; }
  .section-head, .quiz, .booking, .contact, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-grid, .compare, .pricing, .testimonials { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .method__line { display: none; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__kpis { grid-template-columns: repeat(2, 1fr); }
  .nav__menu { display: none; }
  .nav__menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open .nav__link {
    padding: 6px 0;
    font-size: 16px;
  }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav__actions { display: none; } /* CTA accessible via le menu hamburger */
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding: 50px 0 70px; }
  .hero__ctas { gap: 10px; }
  .cal__slots { grid-template-columns: repeat(3, 1fr); }
  .palette-switcher__label { display: none; }
}

@media (max-width: 480px) {
  .h1 { font-size: 32px; }
  .h2 { font-size: 26px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__cta-note { margin-left: 0; text-align: center; }
  .pricing__price { font-size: 42px; }
  .mock__kpis { grid-template-columns: 1fr 1fr; }
  .cal__slots { grid-template-columns: repeat(2, 1fr); }
  .legal { padding: 50px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
