/* ============================================================
   Octolumen — Design Tokens
   Source: charte graphique "Livre Blanc Digital Learning, 2026"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=ADLaM+Display&display=swap');

:root {
  /* ---- Brand — Dark backgrounds (cover / section) ---- */
  --color-bg-dark:        #381850; /* Aubergine profond — fond cover principal */
  --color-bg-dark-alt:    #2F2547; /* Prune — variante */
  --color-bg-dark-deep:   #261F39; /* Nuit — variante plus profonde */

  /* ---- Brand — Warm accents ---- */
  --color-accent-amber:   #FFC000; /* Numéros section, chiffres-clés, CTA */
  --color-accent-orange:  #F79320; /* Icônes, badges secondaires */

  /* ---- Brand — Light backgrounds ---- */
  --color-bg-light:       #EDEAF2; /* Lavande très pâle — fond slide contenu */
  --color-bg-light-blue:  #E7F0F9; /* Bleu brume — fond alternatif */
  --color-bg-neutral:     #E8E8E8; /* Gris clair — cartes, séparateurs */

  /* ---- Brand — Cool accents ---- */
  --color-teal:           #7FC9CB; /* Teal clair — badges, icônes froids */
  --color-teal-light:     #D6EDEE; /* Teal pâle — arrière-plan icônes */

  /* ---- Text ---- */
  --color-text-dark:      #2E2547; /* Corps de texte sur fond clair */
  --color-text-mid:       #4A5563; /* Descriptions, légendes */
  --color-text-light:     #FFFFFF; /* Texte sur fond sombre */
  --color-text-purple:    #473A6B; /* Titres de cartes, sous-titres */
  --color-text-muted:     #735981; /* Décor, séparateurs */
  --color-lavender:       #C2B9D9; /* Fond badges pastel */
  --color-link:           #AEC0F4; /* Liens */

  /* ---- Semantic shortcuts ---- */
  --fg1: var(--color-text-dark);
  --fg2: var(--color-text-mid);
  --fg-on-dark: var(--color-text-light);
  --fg-accent: var(--color-accent-amber);
  --bg1: #FFFFFF;
  --bg2: var(--color-bg-light);
  --bg-section: var(--color-bg-dark);
  --separator: var(--color-lavender);

  /* ---- Typography — families ---- */
  --font-title:    'Dosis', 'Trebuchet MS', sans-serif;
  --font-display:  'ADLaM Display', Georgia, serif;
  --font-body:     'Manrope', Arial, system-ui, sans-serif;
  --font-system:   Arial, system-ui, sans-serif;

  /* ---- Typography — sizes (slide-scale, 1280×720 reference) ---- */
  --text-display:  72px;
  --text-h0:       60px;
  --text-h1:       44px;
  --text-h2:       42px;
  --text-h3:       28px;
  --text-h4:       21px;
  --text-body:     16px;
  --text-small:    14px;
  --text-caption:  10px;

  /* ---- Spacing ---- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;   /* card padding */
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  56px;
  --space-10: 80px;
  --space-margin-slide: 56px; /* 1.5 cm @ 96 dpi */
  --space-gutter:       18px; /* gouttière entre colonnes */

  /* ---- Radii ---- */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-card:  12px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  /* ---- Elevation ---- */
  --shadow-sm:    0 1px 2px rgba(38, 31, 57, 0.06), 0 1px 1px rgba(38, 31, 57, 0.04);
  --shadow-card:  0 2px 8px rgba(38, 31, 57, 0.08), 0 1px 2px rgba(38, 31, 57, 0.05);
  --shadow-lg:    0 12px 32px rgba(38, 31, 57, 0.15), 0 4px 8px rgba(38, 31, 57, 0.08);
  --shadow-amber: 0 4px 16px rgba(255, 192, 0, 0.25);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasis: cubic-bezier(0.3, 0, 0, 1);
  --dur-fast:    120ms;
  --dur-base:    180ms;
  --dur-slow:    280ms;
}

/* ============================================================
   Semantic text styles — apply directly or via class
   ============================================================ */

.t-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 1.05;
  color: var(--color-accent-amber);
  letter-spacing: -0.01em;
}

.t-h0 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--text-h0);
  line-height: 1.1;
  color: var(--color-accent-amber);
}

.t-h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--text-h1);
  line-height: 1.1;
  color: var(--color-text-light);
  letter-spacing: 0.005em;
}

.t-h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.15;
  color: var(--color-text-dark);
  letter-spacing: -0.005em;
}

.t-h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-h3);
  line-height: 1.2;
  color: var(--color-text-purple);
}

.t-h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-h4);
  line-height: 1.25;
  color: var(--color-text-purple);
}

.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-text-dark);
}

.t-body-arial {
  font-family: var(--font-system);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-text-dark);
}

.t-small {
  font-family: var(--font-system);
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--color-text-mid);
}

.t-caption {
  font-family: var(--font-system);
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.t-eyebrow {
  font-family: var(--font-system);
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--color-text-purple);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ============================================================
   Primitives
   ============================================================ */

.separator {
  height: 1px;
  background: var(--color-lavender);
  width: 28%;
}

.card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.card--neutral {
  background: var(--color-bg-neutral);
  box-shadow: none;
}

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
              background-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--color-accent-amber);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-amber);
}
.btn--primary:hover { background: #FFCB2E; }

.btn--secondary {
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid var(--color-text-light);
}
.btn--secondary:hover { background: rgba(255,255,255,0.08); }

.btn--ghost {
  background: transparent;
  color: var(--color-text-purple);
  padding: 10px 16px;
}
.btn--ghost:hover { background: rgba(71, 58, 107, 0.08); }
