/* ============================================
   COLLECTIF WEB — DESIGN SYSTEM
   Direction "Brut éditorial" · v08 Vert modernisé
   Palette Vert 268B78 (D-027) · Alert C22D0A
   v07 (D-056) : mono retiré de l'interface — étiquettes en
   Archivo ; JetBrains Mono réservé aux extraits de code
   v08 (audits accueil) : polices auto-hébergées (Loi 25),
   :focus-visible global, bordures composants → var(--border),
   color-scheme, raturage lisible en clair, .link--mono → .link--label
   v09 (D-064, règle d'Alexandre) : PLANCHER 16 px sur tout texte
   visible du site. Exceptions : la ligne légale du pied de page
   (12 px accordé) et les éléments de documentation interne de la
   vitrine (type-scale, swatches, démos). Les étiquettes en capitales
   montées à 16 px compensent en graisse (700→600, 600→500) pour
   garder la hiérarchie. Mobile : navigation en menu plein écran.
   ============================================ */

/* ---------- POLICES AUTO-HÉBERGÉES ----------
   Loi 25 : aucune requête vers Google Fonts — fichiers servis depuis
   assets/fonts/ (latin + latin-ext pour œ, guillemets français).
   JetBrains Mono volontairement absent : la pile --font-mono retombe
   sur ui-monospace (usage limité aux extraits de code, D-056). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- TOKENS ---------- */
:root {
  color-scheme: light;

  /* Couleurs — palette Vert modernisé */
  --ink: #17211d;         /* encre — texte sur clair, fonds pleins */
  --noir: #0f1613;        /* fond du mode sombre */
  --coal: #16201c;        /* surface élevée du mode sombre */
  --paper: #f6f8f7;       /* fond du mode clair */
  --paper-soft: #e6eeea;  /* surface claire alternative */
  --brume: #edf1ef;       /* texte sur sombre */
  --vert: #268b78;        /* marque — aplats, gros accents, logo */
  --vert-deep: #1b5d50;   /* CTA, accents texte sur fond clair */
  --vert-bright: #46b39d; /* accents sur fond sombre */
  --vert-pale: #a7e3d4;   /* surlignage marqueur */
  --highlight: #cff0e7;   /* surlignage doux */
  --sauge: #66766e;       /* meta, placeholders (gris-vert) */
  --sauge-light: #5d6b64; /* texte raturé — foncé pour tenir 4,5:1 sur papier */
  --muted: #566059;       /* texte secondaire */
  --alert: #c22d0a;       /* raturage · erreur (brique recalibrée) */

  /* Filets */
  --rule: rgba(23, 33, 29, .14);
  --rule-strong: rgba(23, 33, 29, .5);
  --rule-dark: rgba(237, 241, 239, .2);
  --rule-dark-strong: rgba(237, 241, 239, .35);

  /* Surfaces sémantiques (light par défaut) */
  --bg: var(--paper);
  --bg-alt: var(--paper-soft);
  --fg: var(--ink);
  --fg-soft: #2e3833;
  --border: var(--ink);
  --border-soft: var(--rule);
  --signature: var(--vert);
  --accent: var(--vert-deep); /* accent texte — bascule en sombre */

  /* Surfaces & opacités d'encre — importé du DS v01 Open Design */
  --surface: #fcfdfc;
  --ink-soft: rgba(23, 33, 29, .72);
  --ink-mute: rgba(23, 33, 29, .65);
  --ink-faint: rgba(23, 33, 29, .16);
  --vert-tint: rgba(38, 139, 120, .16);
  --alert-tint: rgba(194, 45, 10, .12);

  /* Typographie */
  --font-display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-hand: "Kalam", "Caveat", cursive; /* wireframes only */

  /* Échelle typo — PLANCHER 16 px (D-064) : aucun texte visible du site
     sous 16 px. Seules exceptions : la ligne légale du pied de page et
     la documentation interne de la vitrine. */
  --fs-display-xl: clamp(48px, 6vw, 72px);
  --fs-display-l:  clamp(36px, 4.2vw, 48px);
  --fs-headline:   clamp(28px, 3vw, 36px);
  --fs-h2:         clamp(24px, 2.4vw, 28px);
  --fs-h3:         20px;
  --fs-body:       17px;
  --fs-body-l:     18px;
  --fs-small:      16px;  /* le plancher — étiquettes et textes d'appoint */
  --fs-meta:       16px;  /* aligné au plancher (D-064) */
  --fs-micro:      10px;  /* documentation interne de la vitrine SEULEMENT */

  /* Rythme */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 120px;

  /* Traits & ombres */
  --border-w: 2px;
  --border-w-thin: 1.5px;
  --shadow-hard: 3px 3px 0 var(--ink);

  /* Mouvement — importé du DS v01 Open Design */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Conteneurs */
  --container: 1440px;
  --container-narrow: 820px;
  --grid-unit: 32px;
}

/* ---------- DARK MODE ----------
   Sombre par défaut (D-053) : la classe .dark-mode est écrite dans le
   markup (<html class="dark-mode">) ; le script d'init la retire avant
   le premier rendu si l'utilisateur a mémorisé le clair dans
   localStorage `cw-ds-theme` ('1' = sombre, '0' = clair). */
.dark-mode {
  color-scheme: dark;
  --bg: var(--noir);
  --bg-alt: var(--coal);
  --fg: var(--brume);
  --fg-soft: #c4cec8;
  --border: var(--brume);
  --border-soft: var(--rule-dark);
  --surface: var(--coal);
  --muted: #9daba4;
  --sauge-light: #9daba4;
  --alert: #e85b33;
  --accent: var(--vert-bright);
  --alert-tint: rgba(232, 91, 51, .14);
  --ink-soft: rgba(237, 241, 239, .78);
  --ink-mute: rgba(237, 241, 239, .58);
  --ink-faint: rgba(237, 241, 239, .16);
  --shadow-hard: 3px 3px 0 var(--brume);
}

/* ---------- RESET LÉGER ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Focus clavier visible partout (P1 audit accueil) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg); /* fond uni — grille retirée (D-057) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) var(--space-9);
}

/* ---------- TYPOGRAPHIE ---------- */
.display-xl, .display-l, .headline, h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .95;
  margin: 0;
}

.display-xl { font-size: var(--fs-display-xl); letter-spacing: -.04em; line-height: .88; }
.display-l  { font-size: var(--fs-display-l);  letter-spacing: -.035em; }
.headline   {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-headline);
  line-height: 1;
}

h1 { font-size: var(--fs-display-l); }
h2 { font-size: var(--fs-h2); letter-spacing: -.02em; line-height: 1.1; }
h3 { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-h3); text-transform: none; letter-spacing: 0; line-height: 1.2; }
h4 { font-family: var(--font-sans); font-weight: 700; font-size: 16px; text-transform: none; letter-spacing: 0; }

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

p { margin: 0 0 var(--space-3); max-width: 65ch; }
.lead { font-size: var(--fs-body-l); line-height: 1.55; color: var(--fg-soft); }
.meta, .kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--bright { color: var(--accent); }

/* ---------- HIGHLIGHT & RATURAGE ---------- */
.hl,
mark {
  background: var(--vert-pale);
  color: var(--ink);
  padding: 0 .2em;
}
.hl--soft { background: var(--highlight); }

.strike,
s.strike {
  color: var(--sauge-light);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--alert);
}
.strike--thick {
  text-decoration-thickness: 6px;
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  background: transparent;
  color: var(--fg);
  border: var(--border-w-thin) solid var(--border);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-hard); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--border); }

.btn--primary { background: var(--vert-deep); color: var(--paper); border-color: var(--ink); }
.dark-mode .btn--primary { border-color: var(--vert-bright); }

.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark .arr { color: var(--vert-bright); }
.dark-mode .btn--dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark-mode .btn--dark .arr { color: var(--ink); }

.btn--ghost { background: transparent; }

.btn--large { padding: 16px 24px; font-size: 16px; }

.btn .arr { display: inline-block; transform: translateY(-1px); }

/* ---------- TAGS ---------- */
.tag-set { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 8px;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
}
.tag--vert { background: var(--vert-deep); color: var(--paper); border-color: var(--ink); }
.tag--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark-mode .tag--dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tag--dot::before { content: "● "; color: var(--vert-deep); }

/* ---------- META STRIP ---------- */
.meta-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: var(--border-w) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-meta);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.meta-strip .sep { opacity: .4; }
.meta-strip .dot { color: var(--vert-bright); }

/* ---------- HERO ---------- */
.hero {
  border: var(--border-w) solid var(--border);
  background: var(--ink);
  color: var(--paper);
  padding: 48px clamp(28px, 4vw, 56px);
  display: grid;
  gap: 28px;
  min-height: 420px;
  position: relative;
  grid-template-rows: auto 1fr auto;
}
.hero--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.hero__top,
.hero__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1.5px solid currentColor;
}
.hero__bot { padding-bottom: 0; padding-top: 12px; border-bottom: 0; border-top: 1.5px solid currentColor; }
.hero__top .dot { color: var(--vert-bright); }
.hero--light .hero__top .dot { color: var(--paper); background: var(--vert-deep); padding: 2px 6px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0;
  max-width: 18ch;
  align-self: center;
}
.hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

.hero__sub {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  max-width: 50ch;
  color: inherit;
  opacity: .9;
}

/* ---------- CARTES ---------- */
.card {
  border: var(--border-w) solid var(--border);
  background: var(--bg);
  padding: 24px;
  color: var(--fg);
}
.card--soft { background: var(--bg-alt); }
.card--dark { background: var(--ink); color: var(--brume); border-color: var(--ink); }
.dark-mode .card { background: var(--coal); }

.card__role {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card__role b { color: var(--fg); }

/* Project card */
.project-card {
  background: var(--ink);
  color: var(--paper);
  border: var(--border-w) solid var(--border);
  padding: 22px;
  font-family: var(--font-sans);
  display: grid;
  gap: 12px;
}
.project-card__cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--sauge) 49.5%, var(--sauge) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, var(--sauge) 49.5%, var(--sauge) 50.5%, transparent 50.5%),
    var(--coal);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--sauge);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.project-card__cover::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--sauge);
}
.project-card__meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--vert-bright);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.project-card__sub {
  font-size: 16px;
  line-height: 1.45;
  color: #c4cec8;
  max-width: 40ch;
}
/* `align-content` compte : la tuile est une grille, sa dernière rangée s'étire,
   et sans centrage les pastilles se collent en haut de la hauteur restante. */
.project-card__tags { display: flex; flex-wrap: wrap; align-content: center; gap: 6px; margin-top: 4px; }
.project-card__tags span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid var(--sauge);
  color: #c4cec8;
  padding: 3px 7px;
}

/* Testimonial card */
.testimonial {
  background: var(--vert-deep);
  color: var(--paper);
  border: var(--border-w) solid var(--border);
  padding: 24px;
}
.testimonial .card__role,
.testimonial .card__role b { color: var(--paper); }
/* La citation se lit droite depuis le 10 août (commentaire n° 37) : l'italique
   tenait sur trois mots de titre, il fatiguait sur trois lignes de témoignage.
   La serif reste — c'est elle qui distingue la parole du client du reste de la
   page — et l'interligne s'ouvre d'un cran maintenant que les lettres sont
   d'aplomb. L'italique garde les titres, où il est la signature de la maison. */
.testimonial blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 18px;
  letter-spacing: -.005em;
}
/* Espace insécable des deux côtés : sans elle, le guillemet fermant se retrouve
   seul sur une quatrième ligne dès que la citation tombe juste. */
.testimonial blockquote::before { content: "«\00A0"; }
.testimonial blockquote::after  { content: "\00A0»"; }
.testimonial__who {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .01em;
  text-transform: none;
  border-top: 1.5px solid rgba(237, 241, 239, .45);
  padding-top: 12px;
  line-height: 1.6;
}
.testimonial__who b { display: block; letter-spacing: .08em; font-size: 16px; }

/* Avis Google — la note publique du Collectif (D-061, remaniée D-131).
   Ce n'est pas la note de bas de page du témoignage : c'est une preuve
   chiffrée, avec sa marque, son cadre et son air autour. D'où l'écart de
   48 px qui la détache de la citation. Venu de l'accueil le 10 août : les
   pages OBNL et PME le portent aussi (commentaires nº 44 et nº 62). */
.avis-google {
  max-width: var(--container-narrow);
  margin: var(--space-7) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: var(--border-w-thin) solid var(--border-soft);
  background: var(--surface);
}
.avis-google__marque { flex: none; display: flex; }
.avis-google__marque svg { display: block; }
/* Centré : sur téléphone la ligne passe sur deux rangs, et un fer à gauche
   sous une marque centrée se lit de travers. */
.avis-google__ligne {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-align: center;
  color: var(--fg);
}
/* La note porte le poids : c'est le chiffre qu'on vient chercher ici. */
.avis-google__ligne strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -.01em;
}
/* Or Google, assombri sur papier pour rester lisible. Décoratif :
   la phrase dit déjà « 5 sur 5 ». */
.avis-google .etoiles { color: #b87400; letter-spacing: 3px; font-size: 18px; }
.dark-mode .avis-google .etoiles { color: #fbbc05; }
/* Le cadre d'attente garde son ancienne mise : une ligne centrée. */
.avis-google--attente { display: block; border: 0; background: none; padding: 0; margin-top: 14px; text-align: center; }

/* ---------- EXPERTISE LIST ---------- */
.expertise-list { display: grid; gap: 0; }
.expertise {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.expertise-list .expertise:last-child { border-bottom: 1px solid var(--border); }
/* Le composant se sert d'abord en lien : sommaire des expertises, portails PME
   et OBNL, portes de sortie de la 404. Sans cette ligne, le navigateur applique
   ses propres bleu et mauve, et souligne jusqu'à la flèche. */
.expertise-list a.expertise { text-decoration: none; color: var(--fg); }
.expertise__num {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
}
.expertise__title {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.expertise__arrow {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}
.expertise__arrow--vert { background: var(--vert); border-color: var(--ink); color: var(--ink); }

/* ---------- SWATCHES ---------- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.swatch {
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.swatch__color { flex: 1; }
.swatch__info {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 10px;
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--fg);
}
.swatch__info b {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
}
.swatch__info span { color: var(--muted); }

/* ---------- TYPE SCALE TABLE ---------- */
.type-scale {
  border: var(--border-w) solid var(--border);
  background: var(--bg);
}
.type-scale__row {
  display: grid;
  grid-template-columns: 160px 200px 1fr;
  gap: 24px;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--rule-strong);
  align-items: baseline;
}
.type-scale__row:last-child { border-bottom: 0; }
.type-scale__role,
.type-scale__size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.type-scale__sample { color: var(--fg); }
.dark-mode .type-scale__row { border-color: var(--rule-dark); }

/* ---------- SECTION HEADERS ---------- */
.section { margin-bottom: var(--space-8); }
.section__h {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
  border-top: var(--border-w) solid var(--border);
  padding-top: 22px;
}
.section__h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.section__n {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: .05em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.section__sub {
  font-size: var(--fs-body-l);
  max-width: 72ch;
  margin: 8px 0 var(--space-5);
  color: var(--fg-soft);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-hard);
  transition: transform .1s;
}
.theme-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--border); }
.theme-toggle:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--border); }
.theme-toggle__swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  background: var(--fg);
}

/* ---------- GRID HELPERS ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- UTILITIES ---------- */
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }

.text-center { text-align: center; }

/* Texte pour lecteurs d'écran seulement (double le raturage, D-054) */
.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;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .type-scale__row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page { padding: var(--space-6) var(--space-4) var(--space-8); }
  .expertise { grid-template-columns: auto 1fr; }
  .expertise__arrow { grid-column: 2; justify-self: end; }
}

/* ---------- EDITORIAL — ZÉRO NÉGATION / RULES ---------- */
.rule-card {
  border: var(--border-w) solid var(--border);
  background: var(--bg-alt);
  padding: 24px 28px;
}
.rule-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: var(--space-3);
}
.rule-card__grid > div {
  padding: 12px 14px;
  border: 1px dashed var(--rule-strong);
}
.rule-card__grid .avoid b { color: var(--alert); }
.rule-card__grid .use b { color: var(--muted); }

/* ============================================
   COMPOSANTS IMPORTÉS — Open Design DS v01
   (traduits dans le vocabulaire de tokens actuel ;
    n'ajoute que des classes neuves, sans collision)
   ============================================ */

/* ---------- LIENS ---------- */
.link {
  font-family: var(--font-sans);
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--alert);
  transition: text-decoration-thickness var(--dur-fast) var(--ease);
}
.link:hover { text-decoration-thickness: 3px; }
.link--inline {
  font-family: inherit;
  color: inherit;
  border-bottom: 1.5px solid var(--alert);
  text-decoration: none;
  padding-bottom: 1px;
  transition: background var(--dur-fast) var(--ease);
}
.link--inline:hover { background: var(--vert-tint); }
.link--label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--alert);
  padding-bottom: 2px;
}

/* ---------- FORMULAIRE ---------- */
.field { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.field label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--ink-mute);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--fg);
  background: var(--bg);
  border: var(--border-w) solid var(--border);
  padding: 12px 14px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus { background: var(--vert-tint); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-family: var(--font-sans); font-size: 16px; color: var(--ink-soft); }
.field .err {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--alert);
  background: var(--alert-tint);
  padding: 4px 8px;
}
.field--err input { border-color: var(--alert); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--alert);
  color: var(--paper);
}
.badge--vert { background: var(--vert-deep); color: var(--paper); }
.badge--ink { background: var(--ink); color: var(--paper); }
.dark-mode .badge--ink { background: var(--paper); color: var(--ink); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- CHECKBOX / RADIO ---------- */
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { margin-top: 4px; accent-color: var(--alert); width: 18px; height: 18px; }
.check-row span { font-family: var(--font-sans); font-size: var(--fs-small); line-height: 1.4; }

/* ---------- STAT ---------- */
.stat {
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  padding: var(--space-5);
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -.03em;
  margin-bottom: var(--space-2);
}
.stat .value .em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.6em;
  color: var(--alert);
}
.stat .label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
}

/* ---------- CITATION PULL ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  padding: var(--space-3) 0;
  max-width: 50ch;
  margin: 0;
}
.pull-quote::before { content: "⏤ "; font-style: normal; color: var(--alert); }
.pull-quote::after { content: " ⏤"; font-style: normal; color: var(--ink-mute); }

/* ---------- HEADER ASSEMBLÉ (démo/référence) ---------- */
.site-header-demo { border: var(--border-w) solid var(--border); background: var(--bg); }
.site-header-demo .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-bottom: var(--border-w) solid var(--border);
}
.site-header-demo .row:last-child { border-bottom: 0; }
.site-header-demo .brand {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1;
}
.site-header-demo .brand .dot { color: var(--alert); }
.site-header-demo nav { display: flex; gap: var(--space-5); }
.site-header-demo nav a {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.site-header-demo nav a:hover,
.site-header-demo nav a.current { border-bottom: 2px solid var(--alert); }
.site-header-demo .meta-bar {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 6px var(--space-5);
  display: flex; justify-content: space-between; align-items: center;
}
.dark-mode .site-header-demo .meta-bar { background: var(--coal); }
.site-header-demo .meta-bar .right { display: flex; gap: 16px; }

/* ---------- FOOTER ASSEMBLÉ (démo/référence) ---------- */
.site-footer-demo {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-7) var(--space-7) var(--space-5);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
}
.site-footer-demo h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--vert-bright);
  margin: 0 0 var(--space-3);
  border-bottom: 1px solid rgba(237, 241, 239,.18);
  padding-bottom: 6px;
}
.site-footer-demo .brand-block .brand {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.015em;
  margin-bottom: var(--space-3);
}
.site-footer-demo .brand-block .brand .dot { color: var(--alert); }
.site-footer-demo .brand-block p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
  color: rgba(237, 241, 239,.85);
}
.site-footer-demo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer-demo a { color: var(--paper); text-decoration: none; font-family: var(--font-sans); font-size: var(--fs-small); }
.site-footer-demo a:hover { color: var(--vert-bright); }
.site-footer-demo .sub {
  /* Ligne légale : exception au plancher 16 px, accordée par Alexandre (D-064) */
  grid-column: 1 / -1;
  border-top: 1px solid rgba(237, 241, 239,.18);
  padding-top: var(--space-4);
  margin-top: var(--space-3);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(237, 241, 239,.5);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--alert); }
.breadcrumb .sep { color: var(--ink-faint); }
.breadcrumb .current { color: var(--fg); }

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .02em;
}
.pagination button {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  display: grid; place-items: center;
}
.pagination button.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark-mode .pagination button.current { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pagination button:hover:not(.current) { border-color: var(--alert); color: var(--alert); }
.pagination .dots { color: var(--ink-mute); padding: 0 8px; }

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: var(--vert-deep);
  color: var(--paper);
  padding: var(--space-7) var(--space-7);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
  align-items: end;
  border: var(--border-w) solid var(--border);
}
.cta-block h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 0.95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0;
}
.cta-block h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper); /* vert-bright sur vert-deep plafonnait à 3,0:1 */
}
.cta-block .actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
/* La dalle est en vert profond dans les deux modes d'affichage : un bouton au
   trait y prend le papier. L'encre du reste de la page y tombait à 2,0:1. */
.cta-block .btn:not(.btn--dark) { color: var(--paper); border-color: var(--paper); }
.cta-block .meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .01em;
  text-transform: none;
  color: inherit; /* le gris --muted du .meta est illisible sur vert-deep en mode clair */
  opacity: .9;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1.5px solid var(--rule);
  padding: var(--space-4) 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1.5px solid var(--rule); }
.faq-item .q {
  display: flex; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 0;
}
.faq-item .q .toggle { font-family: var(--font-mono); color: var(--alert); flex-shrink: 0; }
/* La réponse s'arrêtait à 60 caractères, soit 44 % de la largeur, sous une
   question qui court d'un bord à l'autre : le déséquilibre sautait aux yeux
   (commentaires nº 45, nº 57 et nº 63 du 10 août). Elle occupe maintenant 72 %
   de la liste, sans jamais descendre sous sa mesure d'avant — sur téléphone,
   c'est le conteneur qui borne, pas la règle. */
.faq-item .a {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  margin: var(--space-3) 0 0;
  max-width: max(60ch, 72%);
  color: var(--ink-soft);
}
.faq-item.collapsed .a { display: none; }

/* ---------- MOUVEMENT RÉDUIT ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- RESPONSIVE (composants importés) ---------- */
@media (max-width: 900px) {
  .site-footer-demo { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header-demo .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-header-demo nav { flex-wrap: wrap; gap: var(--space-3); }
  .site-footer-demo { grid-template-columns: 1fr; gap: var(--space-5); }
}
