/* TyKaoz — polices et jetons communs à toutes les pages.

   Charte graphique v1.0 (Alexandre, octobre 2026) : le clair domine, le
   marine ancre, le turquoise signale le mouvement. Titres en Noto Serif
   Display, interface et lecture en Inter ; JetBrains Mono pour les clés et
   le code. Polices hébergées ici (fonts/, licences OFL à côté) : aucune
   requête vers Google. Liée en relatif, la feuille marche aussi en file://. */

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-Roman-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-Roman-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: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/NotoSerifDisplay-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/NotoSerifDisplay-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: 'Noto Serif Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/NotoSerifDisplay-Roman-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/NotoSerifDisplay-Roman-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Regular-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-Regular-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;
}

:root {
  /* Palette de production */
  --tk-marine: #0D2440;
  --tk-bleu: #15274D;
  --tk-petrole: #1D738D;
  --tk-turquoise: #2C9FB3;
  --tk-creme: #FDFBF7;
  /* Tons de support */
  --tk-brume: #EAF3F4;
  --tk-ardoise: #64748B;
  /* États, hors charte : contrastés sur crème (≥ 4,5:1) */
  --tk-erreur: #B42318;
  --tk-succes: #1D738D;
  --tk-radius: 1rem;

  /* Les noms que les pages emploient, sur la palette de la charte. Le
     turquoise ne sert qu'aux icônes et aux signaux, jamais au texte. */
  --ink: var(--tk-marine);
  --ink-soft: var(--tk-bleu);
  --slate: var(--tk-ardoise);
  --paper: var(--tk-creme);
  --paper-warm: var(--tk-brume);
  --line: rgba(13, 36, 64, 0.1);
  --line-soft: rgba(13, 36, 64, 0.06);
  --tide: var(--tk-turquoise);
  --tide-deep: var(--tk-petrole);
  --foam: var(--tk-brume);
  /* Le cœur de « made with ♥ by Haruni » : la couleur de la marque mère. */
  --ember: #E85D3A;
  /* Les accents en italique reprennent le dégradé du lettrage du logo. */
  --grad-accent: linear-gradient(135deg, var(--tk-marine) 0%, var(--tk-petrole) 100%);

  --font-display: 'Noto Serif Display', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* Une animation se termine ; demander moins de mouvement l'arrête. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
