﻿/**
 * DESIGN TOKENS â€” Version Classique & Accueillante
 * Portfolio Ayoub Tehari â€” pour un public non-technique
 * ThÃ¨me unique, chaleureux, lisible, sans esthÃ©tique "terminal".
 */

:root {
  /* Palette chaleureuse */
  --bg-primary: #faf7f2;          /* crÃ¨me doux */
  --bg-secondary: #f3eee6;
  --bg-tertiary: #ebe4d8;
  --bg-card: #ffffff;
  --bg-card-hover: #fffaf3;
  --bg-terminal: #f3eee6;
  --header-bg: rgba(250, 247, 242, 0.92);
  --header-bg-scrolled: rgba(250, 247, 242, 0.98);

  /* Accents doux */
  --accent-primary: #143d26;      /* vert sauge foncÃ© */
  --accent-primary-glow: rgba(31, 90, 58, 0.18);
  --accent-cyan: #2a6490;         /* bleu acier doux */
  --accent-cyan-glow: rgba(58, 124, 165, 0.18);
  --accent-amber: #a06a2a;        /* ambre chaud */
  --accent-amber-glow: rgba(201, 137, 59, 0.18);
  --accent-purple: #7a5c99;
  --accent-red: #c25450;

  /* Texte */
  --text-heading: #2b2620;
  --text-primary: #3a342c;
  --text-secondary: #6b6258;
  --text-muted: #5a5248;
  --text-accent: #143d26;
  --text-code: #2a6490;

  /* Bordures */
  --border-subtle: rgba(43, 38, 32, 0.10);
  --border-focus: rgba(47, 111, 78, 0.4);
  --border-cyan: rgba(58, 124, 165, 0.35);

  /* Ombres douces */
  --shadow-subtle: 0 4px 16px rgba(43, 38, 32, 0.06);
  --shadow-card: 0 8px 28px rgba(43, 38, 32, 0.08);
  --shadow-glow: 0 0 20px rgba(47, 111, 78, 0.12);

  /* Boutons */
  --btn-secondary-bg: #ffffff;
  --btn-secondary-color: #2b2620;
  --grid-line-color: rgba(43, 38, 32, 0.04);
  --scanlines-opacity: 0;

  /* Typo */
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-max-width: 1100px;
  --nav-height: 68px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Standard theme follows browser preference */
@media (prefers-color-scheme: dark) {
  [data-theme="standard"] {
    --bg-primary: #0a0d14;
    --bg-secondary: #0f1420;
    --bg-tertiary: #161d2d;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(26, 35, 54, 0.85);
    --header-bg: rgba(10, 13, 20, 0.85);
    --header-bg-scrolled: rgba(7, 10, 15, 0.95);
    --accent-primary: #00ff9d;
    --accent-primary-glow: rgba(0, 255, 157, 0.25);
    --accent-cyan: #38bdf8;
    --accent-cyan-glow: rgba(56, 189, 248, 0.2);
    --accent-amber: #fbbf24;
    --accent-amber-glow: rgba(251, 191, 36, 0.2);
    --accent-purple: #a855f7;
    --accent-red: #f43f5e;
    --text-heading: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;
    --text-accent: #00ff9d;
    --text-code: #38bdf8;
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-focus: rgba(0, 255, 157, 0.45);
    --border-cyan: rgba(56, 189, 248, 0.35);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(0, 255, 157, 0.15);
    --btn-secondary-bg: rgba(255, 255, 255, 0.04);
    --btn-secondary-color: #ffffff;
    --grid-line-color: rgba(255, 255, 255, 0.015);
    --scanlines-opacity: 0.35;
  }
}
/* Standard theme */
[data-theme="standard"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #eeeeee;
  --bg-tertiary: #e0e0e0;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --header-bg: rgba(245, 245, 245, 0.92);
  --header-bg-scrolled: rgba(255, 255, 255, 0.98);
  --accent-primary: #1565c0;
  --accent-primary-glow: rgba(25, 118, 210, 0.18);
  --accent-cyan: #00695c;
  --accent-cyan-glow: rgba(0, 131, 143, 0.18);
  --accent-amber: #d96a00;
  --accent-amber-glow: rgba(245, 124, 0, 0.18);
  --accent-purple: #7b1fa2;
  --accent-red: #d32f2f;
  --text-heading: #212121;
  --text-primary: #333333;
  --text-secondary: #616161;
  --text-muted: #5a5248;
  --text-accent: #1976d2;
  --text-code: #00838f;
  --border-subtle: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(25, 118, 210, 0.4);
  --border-cyan: rgba(0, 131, 143, 0.35);
  --shadow-subtle: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-card: 0 8px 28px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 20px rgba(25, 118, 210, 0.12);
  --btn-secondary-bg: #ffffff;
  --btn-secondary-color: #212121;
  --grid-line-color: rgba(0,0,0,0.04);
  --scanlines-opacity: 0;
}

/* Custom theme */
[data-theme="custom"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --bg-card: #1f2847;
  --bg-card-hover: #253056;
  --header-bg: rgba(26, 26, 46, 0.92);
  --header-bg-scrolled: rgba(26, 26, 46, 0.98);
  --accent-primary: #e94560;
  --accent-primary-glow: rgba(233, 69, 96, 0.2);
  --accent-cyan: #0f3460;
  --accent-cyan-glow: rgba(15, 52, 96, 0.2);
  --accent-amber: #f5a623;
  --accent-amber-glow: rgba(245, 166, 35, 0.2);
  --accent-purple: #9d4edd;
  --accent-red: #ff006e;
  --text-heading: #ffffff;
  --text-primary: #eaeaea;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --text-accent: #e94560;
  --text-code: #0f3460;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(233, 69, 96, 0.4);
  --border-cyan: rgba(15, 52, 96, 0.35);
  --shadow-subtle: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-card: 0 8px 28px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(233, 69, 96, 0.15);
  --btn-secondary-bg: #16213e;
  --btn-secondary-color: #ffffff;
  --grid-line-color: rgba(255, 255, 255, 0.04);
  --scanlines-opacity: 0;
}
/* Dark theme (explicit) */
[data-theme="dark"] {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1420;
  --bg-tertiary: #161d2d;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --bg-terminal: #070a0f;
  --header-bg: rgba(10, 13, 20, 0.85);
  --header-bg-scrolled: rgba(7, 10, 15, 0.95);
  --accent-primary: #00ff9d;
  --accent-primary-glow: rgba(0, 255, 157, 0.25);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.2);
  --accent-amber: #fbbf24;
  --accent-amber-glow: rgba(251, 191, 36, 0.2);
  --accent-purple: #a855f7;
  --accent-red: #f43f5e;
  --text-heading: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00ff9d;
  --text-code: #38bdf8;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-focus: rgba(0, 255, 157, 0.45);
  --border-cyan: rgba(56, 189, 248, 0.35);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(0, 255, 157, 0.15);
  --shadow-cyan-glow: 0 0 25px rgba(56, 189, 248, 0.15);
  --btn-secondary-bg: rgba(255, 255, 255, 0.04);
  --btn-secondary-color: #ffffff;
  --grid-line-color: rgba(255, 255, 255, 0.015);
  --scanlines-opacity: 0.35;
}
