/* ============================================================
   JETONS DE DESIGN (répertoire.finance)
   Seul endroit du site où une couleur est écrite en dur.
   Partout ailleurs : var(--jeton), ou color-mix() à partir d'un jeton.
============================================================ */
:root {
  /* Couleurs */
  --ink:        #13202f;  /* texte principal, fonds sombres */
  --ink-soft:   #46525f;  /* texte secondaire */
  --ink-mute:   #646c75;  /* légendes, métadonnées (#6f7882 du rapport assombri : 4,6:1 sur --paper-alt) */
  --paper:      #faf9f6;  /* fond de page */
  --paper-alt:  #f1efe9;  /* bandes alternées, encadrés */
  --rule:       #d9d5cc;  /* filets, bordures */
  --accent:     #82662c;  /* laiton sourd, usage rare (#8a6d2f du rapport assombri : 4,7:1 sur --paper-alt) */
  --link:       #1f4e79;  /* liens dans le texte */
  --alert:      #9b2c2c;  /* uniquement messages d'alerte */
  --on-ink:     #ffffff;  /* texte posé sur un fond --ink */
  --ok:         #2f6b3a;  /* messages de validation des formulaires */
  --sand:       #f8f0de;  /* fond sable, vignettes des DROM uniquement (texte --ink ou --ink-soft) */
  --lagoon:     #d9f0ed;  /* fond bleu turquoise, vignettes des DROM uniquement (texte --ink ou --ink-soft) */

  /* Typographie */
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans:  "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  /* Échelle (rem, base 16 px) */
  --fs-xs: .75rem;  --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: 1.375rem; --fs-xl: 1.75rem; --fs-2xl: 2.25rem; --fs-3xl: 3rem;

  /* Formes */
  --radius: 2px;      /* un seul rayon ; 0 pour les tableaux */
  --shadow: none;     /* pas d'ombre portée */
  --space: 8px;       /* espacements multiples de 8 */

  color-scheme: light;
}

/* ------------------------------------------------------------
   Polices auto-hébergées (licence SIL OFL 1.1, voir /fonts)
------------------------------------------------------------ */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }

/* ------------------------------------------------------------
   Base typographique commune à toutes les pages
------------------------------------------------------------ */
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55 !important;
}
button, input, select, textarea { font-family: var(--font-sans); }

/* Titres : serif, interlettrage normal ; H1 identique sur toutes les pages */
h1, h2, h3 {
  font-family: var(--font-serif) !important;
  letter-spacing: normal !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}
h1 { font-size: var(--fs-3xl) !important; font-weight: 400 !important; }
h2 { font-weight: 400; }
h3 { font-weight: 600; }
@media (max-width: 640px) {
  h1 { font-size: var(--fs-2xl) !important; }
}

/* Mouvement : aucune animation en boucle sur le site. Seules transitions admises :
   color, background-color, border-color en 150 ms au survol.
   Unique exception : le mot qui défile dans le titre d'accueil (fondu JS). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Texte réservé aux lecteurs d'écran et aux moteurs */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Exposants et indices : taille de l'échelle (sinon « smaller » crée une taille hors échelle) */
sup, sub { font-size: var(--fs-xs); line-height: 0; }

/* ------------------------------------------------------------
   Citations : un seul style sur tout le site, celui de l'interview
   de Christophe Auger (serif italique laiton, grand guillemet ouvrant
   à gauche). Sélecteurs préfixés par « html » pour l'emporter sur les
   anciens styles propres à chaque page (encadrés, guillemet en filigrane).
   Les marges restent celles de chaque page.
------------------------------------------------------------ */
html .interview-quote, html .conseil-slogan, html .itw-quote,
html .pullquote, html .af-quote, html .secteur-citation {
  position: relative; isolation: auto; overflow: visible;
  background: none; border: 0; border-radius: 0;
  padding: 0 0 0 54px; text-align: left;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: normal;
  font-size: var(--fs-xl); line-height: 1.4; color: var(--accent);
}
html .interview-quote::before, html .conseil-slogan::before, html .itw-quote::before,
html .pullquote::before, html .af-quote::before, html .secteur-citation::before {
  content: '\201C'; position: absolute; left: 0; top: -.32em; z-index: auto;
  font-family: var(--font-serif); font-style: normal; font-weight: 700;
  font-size: var(--fs-3xl); line-height: 1;
  color: var(--accent); -webkit-text-fill-color: currentColor;
  background: none; pointer-events: none; user-select: none;
}
/* Auteur ou source sous la citation */
html .af-quote cite, html .secteur-citation span {
  display: block; margin-top: 12px; font-family: var(--font-sans); font-style: normal;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
html .secteur-citation span em { font-style: italic; }
@media (max-width: 640px) {
  html .interview-quote, html .conseil-slogan, html .itw-quote,
  html .pullquote, html .af-quote, html .secteur-citation { padding-left: 40px; }
}
