:root {
  color-scheme: light dark;
  --background: #F8F6F2;
  --surface: #FFFFFF;
  --surface2: #F3F1ED;
  --border: #E8E4DE;
  --text: #1A1520;
  --text-muted: #6E6963;
  --primary: #6C3ED9;
  --secondary: #C8945A;
  --t-xs: 0.625rem;
  --t-sm: 0.75rem;
  --t-base: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.75rem;
  --t-3xl: 2.125rem;
  --t-4xl: 2.625rem;
  --e-xs: 0.25rem;
  --e-sm: 0.5rem;
  --e-base: 0.75rem;
  --e-md: 1rem;
  --e-lg: 1.25rem;
  --e-xl: 1.5rem;
  --e-2xl: 2rem;
  --e-3xl: 3rem;
  --r-sm: 8px;
  --r-base: 12px;
  --r-card: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 9999px;
  --mesure: 38rem;
  --affiche: "Playfair Display", Georgia, "Times New Roman", serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
  --background: #0B0712;
  --surface: #15101E;
  --surface2: #1D1728;
  --border: #2A2238;
  --text: #EDE8F5;
  --text-muted: #988EA8;
  --primary: #8B6CF6;
  --secondary: #D4A960;
}
}

* { box-sizing: border-box; }
/* Retour visuel du lien de langue (lot #467) : sans transition, donc la feuille légale peut le
   porter sans contredire sa sobriété — un survol n'est pas un mouvement. */
header nav a { text-decoration: none; }
header nav a:hover, header nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
main { max-width: var(--mesure); margin: 0 auto; padding: var(--e-xl) var(--e-base) var(--e-3xl); }
header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-md); }
.brand { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-sm); margin: 0; }
header nav a { color: var(--text-muted); font-size: var(--t-base); }
h1 { font-size: var(--t-xl); line-height: 1.2; margin: var(--e-xl) 0 var(--e-xs); }
h2 { font-size: var(--t-lg); line-height: 1.3; margin: var(--e-2xl) 0 var(--e-sm); }
h3 { font-size: var(--t-md); line-height: 1.4; margin: var(--e-lg) 0 var(--e-xs); }
p { margin: 0 0 var(--e-sm); }
ul { margin: 0 0 var(--e-sm); padding-left: var(--e-xl); }
li { margin: 0 0 var(--e-xs); }
a { color: var(--text); }
/* État de focus VISIBLE (lot #456, règle « focus-states » du banc UX) : sur des pages sans aucun
   JavaScript, le clavier est le seul autre mode d'entrée, et le soulignement par défaut du
   navigateur ne suffit pas sur un fond beige. « text » plutôt qu'un hex : la variable vient du thème.
   ⚠️ Aucun backtick dans un commentaire de feuille : ces lignes vivent DANS un template literal. */
a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* Lien d'évitement (lot #456) : hors écran tant qu'il n'a pas le focus clavier. « display: none » le
   retirerait de l'ordre de tabulation — un déplacement, non. */
.aller-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: var(--e-xs) var(--e-sm);
}
.aller-contenu:focus { position: static; }
.muted { color: var(--text-muted); font-size: var(--t-base); }
.contact { margin-top: var(--e-xl); }
footer { margin-top: var(--e-2xl); border-top: 1px solid var(--border); padding-top: var(--e-md); }

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Surcouche de tokens APRÈS le socle : même nom de variables, valeurs de l'identité studio. Un
   second bloc prefers-color-scheme n'est pas une divergence de projection (le reproche fait à
   cssVars) : il renverse la PALETTE studio, que cssVars ne connaît pas. */
:root {
  --bg: #FFFFFF;
  --text: #141414;
  --border: #141414;
  --text-muted: #5C5C5C;
  --secondary: #DC2626;
  --affiche: "Space Grotesk", "Archivo", -apple-system, system-ui, sans-serif;
  --texte: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mesure: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #FAFAF9;
    --border: #FAFAF9;
    --text-muted: #A8A29E;
    --secondary: #EF4444;
  }
}
body { font-family: var(--texte); background: var(--bg); }
main { max-width: 72rem; }
.entete-studio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-lg);
  padding: var(--e-lg) 0;
  border-bottom: 2px solid var(--border);
}
.brand { display: flex; align-items: center; gap: var(--e-sm); margin: 0; }
.brand .logotype { width: 26px; height: 26px; color: var(--text); }
.brand .logotype .plein { fill: var(--secondary); stroke: none; }
.brand .wordmark {
  font-family: var(--affiche);
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: -0.01em;
}
.hero-studio { margin-top: 0; padding: var(--e-3xl) 0 var(--e-2xl); }
.grille12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--e-md); }
.hero-studio .sur-titre {
  grid-column: 1 / 9;
  margin: 0 0 var(--e-md);
  font-family: var(--texte);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-studio .sur-titre::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: var(--e-sm);
  background: var(--secondary);
}
.hero-studio h1 {
  grid-column: 1 / 10;
  margin: 0 0 var(--e-lg);
  font-family: var(--affiche);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.2rem + 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero-studio .meta {
  grid-column: 9 / 13;
  align-self: end;
  justify-self: end;
  margin: 0;
  text-align: right;
  font-size: var(--t-sm);
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-studio .statement {
  grid-column: 1 / 8;
  margin: 0;
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--text);
}
section { margin-top: var(--e-3xl); }
section > h2 {
  margin: 0 0 var(--e-lg);
  font-family: var(--affiche);
  font-weight: 700;
  font-size: var(--t-xl);
  letter-spacing: -0.01em;
}
/* Sommaire éditorial numéroté : une ligne par application, filet plein dessus et dessous, numéro
   en accent. Le lien couvre TOUTE la ligne (titre + description) : deux liens juxtaposés pour un
   même objet feraient deux cibles de tap pour une destination. */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.index li { border-bottom: 1px solid var(--border); }
.index a {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--e-md);
  align-items: baseline;
  padding: var(--e-lg) 0;
  text-decoration: none;
  color: var(--text);
}
.index .num {
  grid-column: 1 / 3;
  font-family: var(--affiche);
  font-weight: 700;
  font-size: var(--t-md);
  color: var(--secondary);
}
.index .titre {
  grid-column: 3 / 11;
  font-family: var(--affiche);
  font-weight: 700;
  font-size: var(--t-2xl);
  letter-spacing: -0.015em;
}
.index .descrip {
  grid-column: 3 / 11;
  margin-top: var(--e-xs);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--text-muted);
}
.index .fleche { grid-column: 11 / 13; justify-self: end; font-size: var(--t-lg); color: var(--secondary); }
.index a:focus-visible { outline-offset: 4px; }
/* Pied LCEN en colonnes : les valeurs viennent de src/config/legal (une seule source), la mise en
   colonnes est propre au web. Une colonne par responsabilité légale, filet plein au-dessus. */
footer.colonnes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e-xl);
  margin-top: var(--e-3xl);
  padding: var(--e-xl) 0 var(--e-2xl);
  border-top: 2px solid var(--border);
}
footer.colonnes h2 {
  margin: 0 0 var(--e-sm);
  font-family: var(--texte);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
footer.colonnes p { margin: 0; font-size: var(--t-base); line-height: 1.6; }
@media (min-width: 48rem) {
  footer.colonnes { grid-template-columns: repeat(3, 1fr); }
}
.liens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.liens li { border-bottom: 1px solid var(--border); }
.liens a { display: block; padding: var(--e-md) 0; text-decoration: none; color: var(--text); font-weight: 600; }
/* Lot #467 — la couche motion, pendant studio de celle de site-css.ts (mêmes trois registres :
   entrée, révélation au scroll dans le @supports, micro-interactions). Le sweep du titre est un
   filet qui BALAIE la largeur du texte (background-size 0 à 100 %) : un span inline, donc le filet
   suit le mot, pas la ligne. */
@keyframes montee {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-studio .sur-titre { animation: montee 480ms ease-out both; }
.hero-studio h1 { animation: montee 480ms ease-out 60ms both; }
.hero-studio .statement { animation: montee 480ms ease-out 120ms both; }
.hero-studio .meta { animation: montee 480ms ease-out 180ms both; }
@supports (animation-timeline: view()) {
  .index li, section > h2 {
    animation: montee both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
.index .fleche { transition: transform 180ms ease; }
.index a:hover .fleche, .index a:focus-visible .fleche { transform: translateX(6px); }
.index .titre {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 180ms ease;
}
.index a:hover .titre, .index a:focus-visible .titre { background-size: 100% 2px; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
::selection { background: var(--secondary); color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .hero-studio .sur-titre, .hero-studio h1, .hero-studio .statement, .hero-studio .meta,
  .index li, section > h2 { animation: none; }
  .index .fleche, .index .titre { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.liens .descrip { display: block; margin-top: var(--e-xs); font-weight: 400; color: var(--text-muted); }
@media (max-width: 47.99rem) {
  .grille12, .index a { grid-template-columns: 1fr; }
  .hero-studio .sur-titre, .hero-studio h1, .hero-studio .statement, .hero-studio .meta,
  .index .num, .index .titre, .index .descrip, .index .fleche { grid-column: 1 / -1; }
  /* La méta rendue à droite en desktop revient à gauche en mobile : un bloc aligné à droite
     au-dessus du titre se lirait comme un reliquat de colonne, pas comme une signature. */
  .hero-studio .meta { justify-self: start; text-align: left; margin-top: var(--e-md); }
  .index .fleche { display: none; }
}
