/* tokens.css — Doctrine Plasma-Liquid-Glass & Typographies Auto-Hébergées */

@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-garamond-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-garamond-600.ttf') format('truetype'),
       url('../fonts/Cormorant-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'B612';
  src: url('../fonts/B612-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'B612';
  src: url('../fonts/B612-Bold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'B612Mono';
  src: url('../fonts/B612Mono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Fond & Encre */
  --bg1: #0c0e14;
  --bg2: #151926;
  --bg-gradient: radial-gradient(120% 90% at 50% -10%, var(--bg2), var(--bg1) 65%);
  --ink: #eceae4;
  --soft: #9a9fb2;
  --muted: #656a7d;
  --line: rgba(255, 255, 255, 0.08);
  
  /* Verre & Bordures */
  --glass: rgba(255, 255, 255, 0.025);
  --glass-hover: rgba(255, 255, 255, 0.045);
  --glassborder: rgba(255, 255, 255, 0.09);
  --glassborder-glow: rgba(255, 255, 255, 0.22);
  
  /* SÉMANTIQUE STRICTE (Zéro vert décoratif) */
  --gold: #e0b56a;
  --gold-dark: #9c6a18;
  --gold-bg: rgba(224, 181, 106, 0.12);
  --gold-border: rgba(224, 181, 106, 0.45);
  --focus: rgba(224, 181, 106, 0.35);
  
  --ambre: #e0a55a;
  --ambre-bg: rgba(224, 165, 90, 0.08);
  --ambre-border: rgba(224, 165, 90, 0.55);
  
  --rouge: #d63a3a;
  --rouge-bg: rgba(214, 58, 58, 0.10);
  --rouge-border: rgba(214, 58, 58, 0.50);
  
  /* Rayons discrets */
  --ray-1: #c96a6a; --ray-2: #d9a05a; --ray-3: #cfc06a;
  --ray-4: #5aa87a; --ray-5: #5a7fd9; --ray-6: #8a6ad9;
  
  /* Rayons de courbure */
  --radius: 20px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  
  /* Typographie */
  --font-disp: 'Cormorant', Georgia, serif;
  --font-body: 'Plex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'B612Mono', 'B612', monospace;
  --font-num: 'B612', monospace;
}

:root[data-theme="light"] {
  --bg1: #f7f5f0;
  --bg2: #eae4d7;
  --bg-gradient: radial-gradient(120% 90% at 50% -10%, var(--bg2), var(--bg1) 65%);
  --ink: #1f222b;
  --soft: #5b6072;
  --muted: #858b9f;
  --line: rgba(0, 0, 0, 0.08);
  
  --glass: rgba(255, 255, 255, 0.70);
  --glass-hover: rgba(255, 255, 255, 0.90);
  --glassborder: rgba(0, 0, 0, 0.09);
  --glassborder-glow: rgba(0, 0, 0, 0.22);
  
  --gold: #b8863a;
  --gold-dark: #825a1b;
  --gold-bg: rgba(184, 134, 58, 0.14);
  --gold-border: rgba(184, 134, 58, 0.55);
  --focus: rgba(184, 134, 58, 0.30);
  
  --ambre: #b86e1f;
  --ambre-bg: rgba(184, 110, 31, 0.10);
  --ambre-border: rgba(184, 110, 31, 0.60);
  
  --rouge: #bd2828;
  --rouge-bg: rgba(189, 40, 40, 0.10);
  --rouge-border: rgba(189, 40, 40, 0.55);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg1: #f7f5f0;
    --bg2: #eae4d7;
    --bg-gradient: radial-gradient(120% 90% at 50% -10%, var(--bg2), var(--bg1) 65%);
    --ink: #1f222b;
    --soft: #5b6072;
    --muted: #858b9f;
    --line: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.70);
    --glass-hover: rgba(255, 255, 255, 0.90);
    --glassborder: rgba(0, 0, 0, 0.09);
    --glassborder-glow: rgba(0, 0, 0, 0.22);
    --gold: #b8863a;
    --gold-dark: #825a1b;
    --gold-bg: rgba(184, 134, 58, 0.14);
    --gold-border: rgba(184, 134, 58, 0.55);
    --focus: rgba(184, 134, 58, 0.30);
    --ambre: #b86e1f;
    --ambre-bg: rgba(184, 110, 31, 0.10);
    --ambre-border: rgba(184, 110, 31, 0.60);
    --rouge: #bd2828;
    --rouge-bg: rgba(189, 40, 40, 0.10);
    --rouge-border: rgba(189, 40, 40, 0.55);
  }
}
