/* ==========================================================================
   NOVA UI — feuille de style SaaS complète
   Minimaliste / technologique · fond blanc · accent vert · Helvetica Neue
   Layout 100% flexbox (aucun display:grid) · prêt pour GSAP
   --------------------------------------------------------------------------
   Sommaire
   00. Polices (Helvetica Neue, assets/fonts/helvetica-neue/)
   01. Tokens
   02. Reset + éléments HTML natifs
   03. Typographie & prose
   04. Layout (container, stack, row, section, divider)
   05. Boutons
   06. Formulaires
   07. Navigation (topbar, sidebar, tabs, breadcrumb, pagination, menu)
   08. Données (table, badge, avatar, stat, progress, list, timeline)
   09. Feedback (alert, toast, modal, tooltip, skeleton, empty, spinner)
   10. Marketing (hero, features, logos, pricing, testimonial, faq, cta, footer)
   11. Blog & pages légales
   12. Dashboard & filtres
   13. Onboarding
   14. Hooks d'animation GSAP
   15. Utilitaires & responsive
   ========================================================================== */

/* ===== 00. POLICES : Helvetica Neue ======================================
   Fichiers à déposer dans assets/fonts/helvetica-neue/ (chemins relatifs à ce fichier, assets/css/) :
     HelveticaNeue-Thin.otf (100) · HelveticaNeue-Light.otf (300) · HelveticaNeue-Roman.otf (400)
     HelveticaNeue-Medium.otf (500) · HelveticaNeue-Bold.otf (700)
   local() d'abord : si la police est installée sur le poste, aucun téléchargement.
   ========================================================================== */
@font-face { font-family: "Helvetica Neue"; font-style: normal; font-weight: 100; font-display: swap;
  src: local("HelveticaNeue-Thin"), local("Helvetica Neue Thin"), url("../fonts/helvetica-neue/HelveticaNeue-Thin.otf") format("opentype"); }
@font-face { font-family: "Helvetica Neue"; font-style: normal; font-weight: 300; font-display: swap;
  src: local("HelveticaNeue-Light"), local("Helvetica Neue Light"), url("../fonts/helvetica-neue/HelveticaNeue-Light.otf") format("opentype"); }
@font-face { font-family: "Helvetica Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("HelveticaNeue"), local("Helvetica Neue"), url("../fonts/helvetica-neue/HelveticaNeue-Roman.otf") format("opentype"); }
@font-face { font-family: "Helvetica Neue"; font-style: normal; font-weight: 500; font-display: swap;
  src: local("HelveticaNeue-Medium"), local("Helvetica Neue Medium"), url("../fonts/helvetica-neue/HelveticaNeue-Medium.otf") format("opentype"); }
@font-face { font-family: "Helvetica Neue"; font-style: normal; font-weight: 700; font-display: swap;
  src: local("HelveticaNeue-Bold"), local("Helvetica Neue Bold"), url("../fonts/helvetica-neue/HelveticaNeue-Bold.otf") format("opentype"); }


/* ===== 01. TOKENS ======================================================== */
:root {
  /* Couleur de marque — vert */
  --green-50:  #edfbf4;
  --green-100: #d3f5e4;
  --green-200: #a6ebc9;
  --green-300: #6eddab;
  --green-400: #33c98a;
  --green-500: #0eae70;
  --green-600: #00925c;   /* base */
  --green-700: #00764c;
  --green-800: #075c3e;
  --green-900: #084a34;

  /* Neutres */
  --ink-950: #0a0d0c;
  --ink-900: #11171a;
  --ink-800: #1d2529;
  --ink-700: #2f3a40;
  --ink-600: #4a575e;
  --ink-500: #6b787f;
  --ink-400: #8f9aa1;
  --ink-300: #b9c2c7;
  --ink-200: #dde3e6;
  --ink-100: #eef1f3;
  --ink-50:  #f6f8f9;
  --white:   #ffffff;

  /* Sémantique */
  --brand:        var(--green-600);
  --brand-hover:  var(--green-700);
  --brand-active: var(--green-800);
  --brand-soft:   var(--green-50);
  --brand-ring:   rgba(0, 146, 92, .22);

  --bg:           var(--white);
  --bg-subtle:    var(--ink-50);
  --bg-inset:     var(--ink-100);
  --surface:      var(--white);

  --text:         var(--ink-900);
  --text-muted:   var(--ink-600);
  --text-faint:   var(--ink-400);
  --text-invert:  var(--white);

  --border:       var(--ink-200);
  --border-strong:var(--ink-300);

  --info:    #1f6feb;  --info-soft:    #eaf2ff;
  --success: var(--green-600); --success-soft: var(--green-50);
  --warning: #b45309;  --warning-soft: #fff5e6;
  --danger:  #c62f2f;  --danger-soft:  #fdeceb;

  /* Typographie */
  --font: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-15: 15px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-24: 24px; --fs-30: 30px; --fs-38: 38px; --fs-48: 48px; --fs-64: 64px;

  --lh-tight: 1.12;
  --lh-snug: 1.32;
  --lh-body: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Espacement (échelle 4) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;
  --s-11: 80px; --s-12: 112px;

  /* Rayons */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 18px; --r-full: 999px;

  /* Ombres */
  --sh-xs: 0 1px 1px rgba(10,13,12,.04);
  --sh-sm: 0 1px 2px rgba(10,13,12,.06), 0 1px 3px rgba(10,13,12,.05);
  --sh-md: 0 2px 4px rgba(10,13,12,.04), 0 8px 20px rgba(10,13,12,.07);
  --sh-lg: 0 4px 8px rgba(10,13,12,.04), 0 20px 44px rgba(10,13,12,.10);
  --sh-ring: 0 0 0 1px var(--border);

  /* Divers */
  --container: 1200px;
  --container-narrow: 720px;
  --header-h: 64px;
  --sidebar-w: 244px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .18s;
}

/* ===== 02. RESET + ÉLÉMENTS NATIFS ======================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-bold);
  letter-spacing: -.022em;
  line-height: var(--lh-tight);
  color: var(--text);
}
h1 { font-size: var(--fs-48); }
h2 { font-size: var(--fs-30); letter-spacing: -.02em; }
h3 { font-size: var(--fs-20); letter-spacing: -.014em; }
h4 { font-size: var(--fs-16); letter-spacing: -.01em; }
h5 { font-size: var(--fs-14); }
h6 { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

p { margin: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
a:active { color: var(--brand-active); }

strong, b { font-weight: var(--fw-bold); }
em, i, cite, var { font-style: italic; }
small { font-size: var(--fs-13); color: var(--text-muted); }
sub, sup { font-size: 74%; line-height: 0; position: relative; }
sup { top: -.5em; } sub { bottom: -.25em; }

mark { background: var(--green-100); color: var(--green-900); padding: 0 .18em; border-radius: var(--r-xs); }
del { color: var(--text-faint); text-decoration: line-through; }
ins { text-decoration: none; background: var(--green-50); border-bottom: 1px solid var(--green-300); }
s { color: var(--text-faint); }
u { text-underline-offset: 3px; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
q { quotes: "«\00a0" "\00a0»"; }
dfn { font-style: italic; font-weight: var(--fw-medium); }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--s-7) 0;
}

ul, ol { margin: 0; padding-left: 1.25em; }
li { margin: var(--s-1) 0; }
li::marker { color: var(--text-faint); }
dl { margin: 0; }
dt { font-weight: var(--fw-medium); }
dd { margin: 0 0 var(--s-3); color: var(--text-muted); }

blockquote {
  margin: 0;
  padding-left: var(--s-5);
  border-left: 2px solid var(--brand);
  color: var(--text);
  font-size: var(--fs-18);
  line-height: 1.5;
}
blockquote footer, blockquote cite {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--fs-13);
  font-style: normal;
  color: var(--text-muted);
}

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .89em; }
code {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: .12em .38em;
  color: var(--ink-800);
}
pre {
  margin: 0;
  padding: var(--s-5);
  background: var(--ink-950);
  color: #e6edea;
  border-radius: var(--r-lg);
  overflow: auto;
  font-size: var(--fs-13);
  line-height: 1.7;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }
kbd {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 2px 6px;
  font-size: var(--fs-12);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
}
samp { color: var(--text-muted); }

img, svg, video, canvas, iframe { max-width: 100%; display: block; }
img { height: auto; border-radius: var(--r-md); }
figure { margin: 0; }
figcaption { margin-top: var(--s-3); font-size: var(--fs-13); color: var(--text-muted); }

address { font-style: normal; color: var(--text-muted); }
time { font-variant-numeric: tabular-nums; }

::selection { background: var(--green-200); color: var(--green-900); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--r-full); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 03. TYPOGRAPHIE & PROSE =========================================== */
.display    { font-size: var(--fs-64); font-weight: var(--fw-bold); letter-spacing: -.035em; line-height: 1.03; }
.title-lg   { font-size: var(--fs-38); font-weight: var(--fw-bold); letter-spacing: -.026em; line-height: 1.1; }
.lead       { font-size: var(--fs-18); line-height: 1.55; color: var(--text-muted); }
.eyebrow    { font-size: var(--fs-12); font-weight: var(--fw-medium); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.muted      { color: var(--text-muted); }
.faint      { color: var(--text-faint); }
.mono       { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num        { font-variant-numeric: tabular-nums; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance    { text-wrap: balance; }

/* Bloc de contenu long : blog, docs, CGU */
.prose { max-width: 68ch; font-size: var(--fs-17, 17px); line-height: 1.72; color: var(--ink-800); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-9); font-size: var(--fs-24); }
.prose h3 { margin-top: var(--s-7); font-size: var(--fs-18); }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: var(--s-2); }
.prose img { border-radius: var(--r-lg); }
.prose pre { margin-top: var(--s-6); }
.prose blockquote { margin: var(--s-7) 0; }
.prose hr { margin: var(--s-9) 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green-300); }

/* ===== 04. LAYOUT ======================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--s-12) 0; }
.section-sm { padding: var(--s-9) 0; }
.section-subtle { background: var(--bg-subtle); }

.stack { display: flex; flex-direction: column; }
.stack-1 { gap: var(--s-1); } .stack-2 { gap: var(--s-2); } .stack-3 { gap: var(--s-3); }
.stack-4 { gap: var(--s-4); } .stack-5 { gap: var(--s-5); } .stack-6 { gap: var(--s-6); }
.stack-7 { gap: var(--s-7); } .stack-8 { gap: var(--s-8); } .stack-9 { gap: var(--s-9); }

.row { display: flex; flex-direction: row; align-items: center; gap: var(--s-3); }
.row-wrap { flex-wrap: wrap; }
.row-top { align-items: flex-start; }
.row-baseline { align-items: baseline; }
.row-between { justify-content: space-between; }
.row-center { justify-content: center; }
.row-end { justify-content: flex-end; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }
.spacer { flex: 1 1 auto; }

/* Colonnes flex : .cols > * partage la largeur, wrap sur mobile */
.cols { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.cols > * { flex: 1 1 0; min-width: 240px; }
.cols-2 > * { flex: 1 1 calc(50% - var(--s-6)); }
.cols-3 > * { flex: 1 1 calc(33.333% - var(--s-6) * 2 / 3); }
.cols-4 > * { flex: 1 1 calc(25% - var(--s-6) * 3 / 4); }
.col-grow { flex: 1 1 auto; min-width: 0; }
.col-fixed { flex: 0 0 auto; }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.divider-v { width: 1px; align-self: stretch; background: var(--border); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.card-flat { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg-subtle); }
.card-pad-sm { padding: var(--s-4); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); margin-bottom: var(--s-4); }
.card-footer { padding-top: var(--s-4); border-top: 1px solid var(--border); margin-top: var(--s-5); }
.card-title { font-size: var(--fs-16); font-weight: var(--fw-bold); letter-spacing: -.012em; }
.card-sub { font-size: var(--fs-13); color: var(--text-muted); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.panel-body { padding: var(--s-5); }
.panel-foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); background: var(--bg-subtle); }

/* ===== 05. BOUTONS ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  letter-spacing: -.006em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  background: none;
  color: var(--text);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .1s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn-primary { background: var(--brand); color: var(--text-invert); box-shadow: var(--sh-xs); }
.btn-primary:hover { background: var(--brand-hover); color: var(--text-invert); }
.btn-primary:active { background: var(--brand-active); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--sh-xs); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:active { background: var(--bg-inset); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-inset); color: var(--text); }

.btn-soft { background: var(--brand-soft); color: var(--green-800); }
.btn-soft:hover { background: var(--green-100); color: var(--green-900); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #a92727; color: var(--white); }

.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--ink-800); color: var(--white); }

.btn-link { height: auto; padding: 0; color: var(--brand); }
.btn-link:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }

.btn-sm { height: 32px; padding: 0 var(--s-3); font-size: var(--fs-13); border-radius: var(--r-sm); }
.btn-lg { height: 48px; padding: 0 var(--s-6); font-size: var(--fs-15); border-radius: var(--r-md); }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { display: flex; width: 100%; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* ===== 06. FORMULAIRES =================================================== */
form { margin: 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); margin: 0; }
legend { padding: 0 var(--s-2); font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-muted); }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field > label, .label {
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  color: var(--ink-800);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.label-optional { font-weight: var(--fw-regular); color: var(--text-faint); }
.hint { font-size: var(--fs-12); color: var(--text-muted); }
.error-text { font-size: var(--fs-12); color: var(--danger); }
.required { color: var(--danger); }

.input, .textarea, .select, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"],
input[type="week"], textarea, select {
  width: 100%;
  min-height: 40px;
  padding: 9px var(--s-3);
  font: inherit;
  font-size: var(--fs-14);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  appearance: none;
}
textarea, .textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
select, .select {
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b787f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
input:disabled, textarea:disabled, select:disabled { background: var(--bg-inset); color: var(--text-faint); cursor: not-allowed; }
input[readonly] { background: var(--bg-subtle); }
.input-error, input.is-error { border-color: var(--danger); }
.input-error:focus, input.is-error:focus { box-shadow: 0 0 0 3px rgba(198,47,47,.15); }
.input-success { border-color: var(--green-500); }

.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group > .btn { border-radius: 0 var(--r-md) var(--r-md) 0; height: auto; }
.input-affix {
  display: flex; align-items: center;
  padding: 0 var(--s-3);
  font-size: var(--fs-13);
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
}
.input-affix + .input { border-radius: 0 var(--r-md) var(--r-md) 0; }

.input-icon { position: relative; display: flex; align-items: center; width: 100%; }
.input-icon svg { position: absolute; left: var(--s-3); width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; }
.input-icon .input { padding-left: var(--s-8); }

/* Checkbox / radio / switch */
.check, .radio {
  display: flex; align-items: flex-start; gap: var(--s-3);
  cursor: pointer; font-size: var(--fs-14);
}
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
input[type="checkbox"] { border-radius: var(--r-xs); }
input[type="radio"] { border-radius: var(--r-full); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--brand); border-color: var(--brand); }
input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
input[type="radio"]:checked { box-shadow: inset 0 0 0 3.5px var(--surface); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; }
.switch input {
  appearance: none;
  width: 38px; height: 22px; min-height: 0; padding: 0; margin: 0;
  border-radius: var(--r-full);
  background: var(--ink-300);
  border: 0; box-shadow: none;
  position: relative;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.switch input::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }

input[type="range"] {
  appearance: none; width: 100%; height: 4px; min-height: 0; padding: 0;
  background: var(--ink-200); border: 0; border-radius: var(--r-full); box-shadow: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--border-strong); box-shadow: var(--sh-sm);
}
input[type="color"] { width: 44px; height: 40px; padding: 3px; cursor: pointer; }
input[type="file"] { padding: 7px var(--s-3); font-size: var(--fs-13); }
input[type="file"]::file-selector-button {
  font: inherit; font-size: var(--fs-13); font-weight: var(--fw-medium);
  margin-right: var(--s-3); padding: 5px var(--s-3);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); cursor: pointer;
}

/* Choix en cartes (plans, options d'onboarding) */
.choice {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.choice-title { font-size: var(--fs-14); font-weight: var(--fw-medium); }
.choice-desc { font-size: var(--fs-13); color: var(--text-muted); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-8);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-13);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }

output { font-variant-numeric: tabular-nums; font-weight: var(--fw-medium); }

/* ===== 07. NAVIGATION ==================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: var(--s-6); width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); min-width: 0; }
.topbar-inner > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-16); font-weight: var(--fw-bold); letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--white);
  font-size: var(--fs-13); font-weight: var(--fw-bold);
}
.nav { display: flex; align-items: center; gap: var(--s-1); min-width: 0; flex: 0 1 auto; overflow: hidden; }
.nav-link {
  display: flex; align-items: center; gap: var(--s-2);
  flex: 0 0 auto; white-space: nowrap;
  height: 32px; padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-14); font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-inset); text-decoration: none; }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--text); }

/* Sidebar applicative */
.sidebar {
  display: flex; flex-direction: column;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  padding: var(--s-4);
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
}
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label { padding: var(--s-4) var(--s-3) var(--s-2); font-size: var(--fs-11); font-weight: var(--fw-medium); letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); }
.side-link {
  display: flex; align-items: center; gap: var(--s-3);
  height: 34px; padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-14); color: var(--ink-700);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-link svg { width: 16px; height: 16px; opacity: .7; }
.side-link:hover { background: var(--ink-100); color: var(--text); text-decoration: none; }
.side-link.is-active { background: var(--white); color: var(--brand); font-weight: var(--fw-medium); box-shadow: var(--sh-xs), var(--sh-ring); }
.side-link.is-active svg { opacity: 1; }
.side-badge { margin-left: auto; }

/* Onglets */
.tabs { display: flex; align-items: center; gap: var(--s-5); border-bottom: 1px solid var(--border); }
.tab {
  position: relative;
  padding: var(--s-3) 0;
  font-size: var(--fs-14); font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
  transition: color var(--dur) var(--ease);
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background var(--dur) var(--ease); }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { color: var(--text); }
.tab.is-active::after { background: var(--brand); }

.segmented { display: inline-flex; padding: 3px; background: var(--bg-inset); border-radius: var(--r-md); }
.segmented button, .seg-opt {
  padding: 6px var(--s-4);
  font: inherit; font-size: var(--fs-13); font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented .is-active { background: var(--white); color: var(--text); box-shadow: var(--sh-sm); }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-13); color: var(--text-muted); list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current="page"] { color: var(--text); }

.pagination { display: flex; align-items: center; gap: var(--s-1); list-style: none; padding: 0; margin: 0; }
.pagination li { margin: 0; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 var(--s-2);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: var(--fs-13); color: var(--text-muted);
  background: none; cursor: pointer; font-family: inherit;
}
.page-btn:hover { background: var(--bg-inset); color: var(--text); text-decoration: none; }
.page-btn.is-active { background: var(--surface); border-color: var(--border); color: var(--text); font-weight: var(--fw-medium); box-shadow: var(--sh-xs); }

.menu {
  min-width: 200px; padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.menu-item {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; padding: var(--s-2) var(--s-3);
  border: 0; border-radius: var(--r-sm);
  font: inherit; font-size: var(--fs-14); color: var(--ink-800);
  background: none; cursor: pointer; text-align: left;
}
.menu-item:hover { background: var(--bg-inset); text-decoration: none; color: var(--text); }
.menu-item.is-danger { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: var(--s-2) 0; }
.menu-label { padding: var(--s-2) var(--s-3); font-size: var(--fs-11); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.kbd-hint { margin-left: auto; font-size: var(--fs-11); color: var(--text-faint); }

/* ===== 08. DONNÉES ======================================================= */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
caption { padding: var(--s-3) var(--s-4); text-align: left; font-size: var(--fs-13); color: var(--text-muted); }
thead th {
  position: sticky; top: 0;
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: var(--fs-12); font-weight: var(--fw-medium);
  letter-spacing: .02em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: var(--s-4); border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--bg-subtle); }
tfoot td { padding: var(--s-3) var(--s-4); font-size: var(--fs-13); color: var(--text-muted); background: var(--bg-subtle); border-top: 1px solid var(--border); }
.td-num, .th-num { text-align: right; font-variant-numeric: tabular-nums; }
.table-compact tbody td { padding: var(--s-2) var(--s-4); }
th[aria-sort] { cursor: pointer; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--text); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-12); font-weight: var(--fw-medium);
  line-height: 1; white-space: nowrap;
  background: var(--bg-inset); color: var(--ink-700);
}
.badge-success { background: var(--success-soft); color: var(--green-800); }
.badge-info    { background: var(--info-soft); color: #14539c; }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft); color: #9c2323; }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; }
.badge-pill { border-radius: var(--r-full); padding: 0 var(--s-3); }

.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 28px; padding: 0 var(--s-3);
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--fs-13); color: var(--ink-700);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.chip.is-active { background: var(--brand-soft); border-color: var(--green-300); color: var(--green-800); }
.chip-close { display: flex; color: var(--text-faint); }

.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: var(--r-full);
  background: var(--bg-inset); color: var(--ink-700);
  font-size: var(--fs-12); font-weight: var(--fw-medium);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-sm { width: 24px; height: 24px; font-size: var(--fs-11); }
.avatar-lg { width: 44px; height: 44px; font-size: var(--fs-14); }
.avatar-brand { background: var(--brand-soft); color: var(--green-800); }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }

.stat { display: flex; flex-direction: column; gap: var(--s-2); }
.stat-label { font-size: var(--fs-13); color: var(--text-muted); }
.stat-value { font-size: var(--fs-30); font-weight: var(--fw-bold); letter-spacing: -.028em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: var(--fw-medium); }
.stat-delta.is-up { color: var(--green-600); }
.stat-delta.is-down { color: var(--danger); }

progress { appearance: none; width: 100%; height: 6px; border: 0; background: var(--bg-inset); border-radius: var(--r-full); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--bg-inset); }
progress::-webkit-progress-value { background: var(--brand); }
progress::-moz-progress-bar { background: var(--brand); }
meter { width: 100%; height: 6px; }
.bar { height: 6px; width: 100%; background: var(--bg-inset); border-radius: var(--r-full); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .4s var(--ease); }

.list { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.list > li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; margin: 0; border-bottom: 1px solid var(--ink-100); }
.list > li:last-child { border-bottom: 0; }
.list-plain { list-style: none; padding: 0; }
.list-check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.list-check li { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0; font-size: var(--fs-14); }
.list-check svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }

.timeline { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.timeline > li { display: flex; gap: var(--s-4); padding-bottom: var(--s-6); margin: 0; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.timeline > li:last-child::before { display: none; }
.timeline-dot { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px; border-radius: var(--r-full); background: var(--white); border: 2px solid var(--border-strong); z-index: 1; }
.timeline-dot.is-done { background: var(--brand); border-color: var(--brand); }

/* ===== 09. FEEDBACK ====================================================== */
.alert {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  font-size: var(--fs-14);
}
.alert svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.alert-title { font-weight: var(--fw-medium); }
.alert-success { background: var(--success-soft); border-color: var(--green-200); color: var(--green-900); }
.alert-info    { background: var(--info-soft); border-color: #cfe0fb; color: #14539c; }
.alert-warning { background: var(--warning-soft); border-color: #fadfb0; color: var(--warning); }
.alert-danger  { background: var(--danger-soft); border-color: #f7cfcc; color: #9c2323; }

.toast {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--ink-900); color: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-14);
}
.toast .btn-ghost { color: rgba(255,255,255,.6); }
.toast .btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.toast-stack { position: fixed; right: var(--s-6); bottom: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); z-index: 90; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-6);
  background: rgba(10,13,12,.4);
  backdrop-filter: blur(3px);
}
.modal {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-6) var(--s-6) 0; }
.modal-body { padding: var(--s-4) var(--s-6) var(--s-6); font-size: var(--fs-14); color: var(--text-muted); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s-3); padding: var(--s-4) var(--s-6); background: var(--bg-subtle); border-top: 1px solid var(--border); }

dialog { border: 0; padding: 0; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
dialog::backdrop { background: rgba(10,13,12,.4); }

.tooltip { position: relative; display: inline-flex; }
.tooltip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px var(--s-2);
  background: var(--ink-900); color: var(--white);
  font-size: var(--fs-12); white-space: nowrap;
  border-radius: var(--r-sm);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.skeleton { background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-50) 37%, var(--ink-100) 63%); background-size: 400% 100%; border-radius: var(--r-sm); animation: skeleton 1.4s ease infinite; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.spinner {
  width: 16px; height: 16px; flex: 0 0 auto;
  border: 2px solid var(--ink-200);
  border-top-color: var(--brand);
  border-radius: var(--r-full);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3);
  padding: var(--s-10) var(--s-6);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
}
.empty-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-full); background: var(--white); border: 1px solid var(--border); color: var(--text-faint); }

details {
  border-bottom: 1px solid var(--border);
  padding: var(--s-4) 0;
}
summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  cursor: pointer; list-style: none;
  font-size: var(--fs-16); font-weight: var(--fw-medium);
  letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 1.6px solid var(--text-faint); border-bottom: 1.6px solid var(--text-faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease);
}
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details > *:not(summary) { margin-top: var(--s-3); color: var(--text-muted); font-size: var(--fs-14); max-width: 68ch; }

/* ===== 10. MARKETING ===================================================== */
.hero { padding: var(--s-12) 0 var(--s-11); }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); max-width: 760px; }
.hero h1 { font-size: var(--fs-64); letter-spacing: -.035em; line-height: 1.04; }
.hero .lead { font-size: var(--fs-20); max-width: 56ch; }

.announce {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 28px; padding: 0 var(--s-2) 0 var(--s-1);
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--fs-13); color: var(--text-muted);
  box-shadow: var(--sh-xs);
}
.announce .badge { background: var(--brand-soft); color: var(--green-800); }

.grad-text { background: linear-gradient(92deg, var(--green-600), var(--green-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); opacity: .55; }
.logo-row span { font-size: var(--fs-18); font-weight: var(--fw-bold); letter-spacing: -.02em; color: var(--ink-600); }

.feature { display: flex; flex-direction: column; gap: var(--s-3); }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--brand-soft); color: var(--brand);
}
.feature h3 { font-size: var(--fs-16); }
.feature p { font-size: var(--fs-14); color: var(--text-muted); }

.pricing-card { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-7); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.pricing-card.is-featured { border-color: var(--brand); box-shadow: var(--sh-md); }
.price { display: flex; align-items: baseline; gap: var(--s-2); }
.price-amount { font-size: var(--fs-48); font-weight: var(--fw-bold); letter-spacing: -.035em; line-height: 1; }
.price-period { font-size: var(--fs-14); color: var(--text-muted); }

.quote-card { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-7); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-subtle); }
.quote-card p { font-size: var(--fs-18); line-height: 1.5; letter-spacing: -.012em; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-9);
  border-radius: var(--r-xl);
  background: var(--ink-950);
  color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.66); }

.footer { padding: var(--s-10) 0 var(--s-8); border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer h6 { margin-bottom: var(--s-3); }
.footer a { display: block; padding: 5px 0; font-size: var(--fs-14); color: var(--text-muted); }
.footer a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border); font-size: var(--fs-13); color: var(--text-faint); }

/* ===== 11. BLOG & LÉGAL ================================================== */
.post-card { display: flex; flex-direction: column; gap: var(--s-3); }
.post-cover { aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--bg-inset); border: 1px solid var(--border); overflow: hidden; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-12); color: var(--text-faint); }
.post-meta .dot::before { content: "·"; }
.post-card h3 { font-size: var(--fs-18); letter-spacing: -.018em; }
.post-card p { font-size: var(--fs-14); color: var(--text-muted); }

.article-header { display: flex; flex-direction: column; gap: var(--s-4); padding-bottom: var(--s-7); border-bottom: 1px solid var(--border); }
.byline { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-13); color: var(--text-muted); }

.legal { display: flex; align-items: flex-start; gap: var(--s-10); }
.toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); flex: 0 0 220px; display: flex; flex-direction: column; gap: var(--s-1); }
.toc a { font-size: var(--fs-13); color: var(--text-muted); padding: 3px 0 3px var(--s-3); border-left: 2px solid var(--border); }
.toc a:hover { color: var(--text); text-decoration: none; border-color: var(--border-strong); }
.toc a.is-active { color: var(--brand); border-color: var(--brand); }
.legal-meta { font-size: var(--fs-13); color: var(--text-faint); }

/* ===== 12. DASHBOARD & FILTRES =========================================== */
.app { display: flex; align-items: stretch; min-height: 560px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.app-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.app-bar { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--border); }
.app-body { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-6); background: var(--bg-subtle); flex: 1 1 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.page-title { font-size: var(--fs-24); font-weight: var(--fw-bold); letter-spacing: -.022em; }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.filters .input, .filters .select { height: 32px; min-height: 32px; font-size: var(--fs-13); padding-top: 0; padding-bottom: 0; }
.filters .input-icon { width: auto; flex: 1 1 220px; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--brand); color: var(--white); font-size: var(--fs-11); font-weight: var(--fw-medium); }

.chart {
  display: flex; align-items: flex-end; gap: var(--s-2);
  height: 160px;
}
.chart-bar { flex: 1 1 0; background: var(--green-100); border-radius: var(--r-xs) var(--r-xs) 0 0; transition: background var(--dur) var(--ease); }
.chart-bar.is-peak { background: var(--brand); }
.chart-bar:hover { background: var(--green-400); }
.chart-axis { display: flex; justify-content: space-between; font-size: var(--fs-11); color: var(--text-faint); }

.kpi-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.kpi-row > .card { flex: 1 1 200px; }

/* ===== 13. ONBOARDING ==================================================== */
.onboard { display: flex; flex-direction: column; align-items: center; gap: var(--s-7); padding: var(--s-9) var(--s-6); }
.onboard-card { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-8); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-md); }
.steps { display: flex; align-items: center; gap: var(--s-2); }
.step { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); color: var(--text-faint); }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  font-size: var(--fs-12); font-weight: var(--fw-medium);
}
.step.is-current { color: var(--text); font-weight: var(--fw-medium); }
.step.is-current .step-num { border-color: var(--brand); background: var(--brand); color: var(--white); }
.step.is-done .step-num { border-color: var(--green-300); background: var(--brand-soft); color: var(--green-700); }
.step-line { width: 28px; height: 1px; background: var(--border); }

.checklist { display: flex; flex-direction: column; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); font-size: var(--fs-14); margin: 0; }
.checklist li.is-done { background: var(--bg-subtle); color: var(--text-muted); }
.checklist li.is-done .checklist-label { text-decoration: line-through; }

/* ===== 14. HOOKS GSAP ==================================================== */
/* Les états initiaux ne s'appliquent que si <html class="gsap"> est présent,
   pour que la page reste lisible sans JS.
   Cibles suggérées : [data-anim="fade"], [data-anim="up"], [data-anim="scale"],
   [data-stagger] pour les enfants, [data-parallax] pour le scroll. */
.gsap [data-anim] { opacity: 0; will-change: transform, opacity; }
.gsap [data-anim="up"] { transform: translateY(16px); }
.gsap [data-anim="down"] { transform: translateY(-16px); }
.gsap [data-anim="left"] { transform: translateX(20px); }
.gsap [data-anim="right"] { transform: translateX(-20px); }
.gsap [data-anim="scale"] { transform: scale(.97); }
.anim-ready { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .gsap [data-anim] { opacity: 1; transform: none; }
}

/* ===== 15. UTILITAIRES & RESPONSIVE ====================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide { display: none !important; }
.w-full { width: 100%; }
.center { text-align: center; }
.right { text-align: left; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.pad-6 { padding: var(--s-6); }
.bg-subtle { background: var(--bg-subtle); }
.bg-brand-soft { background: var(--brand-soft); }
.text-brand { color: var(--brand); }
.rounded { border-radius: var(--r-lg); }
.bordered { border: 1px solid var(--border); }
.elev-sm { box-shadow: var(--sh-sm); }
.elev-md { box-shadow: var(--sh-md); }
.elev-lg { box-shadow: var(--sh-lg); }
.max-narrow { max-width: var(--container-narrow); }

@media (max-width: 900px) {
  :root { --fs-64: 44px; --fs-48: 34px; --fs-38: 28px; --fs-30: 24px; }
  .section { padding: var(--s-9) 0; }
  .cols-2 > *, .cols-3 > *, .cols-4 > * { flex: 1 1 100%; }
  .legal { flex-direction: column; gap: var(--s-6); }
  .toc { position: static; flex: 1 1 auto; }
  .sidebar { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 var(--s-4); }
  .cta-band { padding: var(--s-6); }
  .onboard-card { padding: var(--s-5); }
  .toast-stack { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); }
}
