﻿/* ═══════════════════════════════════════════════════════════════
   NAJM DESIGN SYSTEM — Couvreur 06
   Hallmark · macrostructure: Marquee Hero · genre: editorial-fashion
   custom theme: NAJM (warm near-black · gold accent · Cormorant + Be Vietnam)
   paper-band: dark · display-style: high-contrast-serif · accent-hue: warm
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── NAJM Palette — OKLCH ─────────────────────────────────── */
  /* ── Thème CLAIR (blanc cassé chaleureux + doré) ───────────── */
  --color-paper:          oklch(99% 0.004 80);   /* blanc cassé chaud ~#FDFCFA */
  --color-paper-2:        oklch(97% 0.005 80);   /* surface carte     ~#F6F3EF */
  --color-paper-3:        oklch(94.5% 0.006 80); /* surface élevée    ~#EDE8E2 */
  --color-ink:            oklch(22% 0.015 50);   /* texte presque noir chaud ~#231A12 */
  --color-ink-2:          oklch(42% 0.012 50);   /* texte secondaire  ~#6B5E50 */
  --color-ink-3:          oklch(54% 0.010 50);   /* texte faible      ~#8C7E6E */
  --color-rule:           oklch(89% 0.006 80);   /* bordure/filet     ~#E3DDD5 */
  --color-rule-light:     oklch(92% 0.005 80);   /* bordure claire    ~#ECE7E0 */
  --color-accent:         oklch(66% 0.13 86);    /* brand doré       ~#BF9B30 */
  --color-accent-dark:    oklch(58% 0.12 85);    /* doré foncé       ~#A38328 */
  --color-accent-light:   oklch(66% 0.13 86 / 0.12); /* doré tint */
  --color-focus:          oklch(66% 0.13 86);    /* focus ring = accent */

  /* ── Compatibilité legacy (ancien code qui référence ces tokens) */
  --color-dark:           var(--color-paper);
  --color-dark-80:        oklch(10% 0.012 35 / 0.80);
  --color-surface:        var(--color-paper-2);
  --color-white:          var(--color-ink);
  --color-text:           var(--color-ink);
  --color-text-muted:     var(--color-ink-2);
  --color-text-light:     var(--color-ink-3);
  --color-border:         var(--color-rule);
  --color-border-dark:    var(--color-rule);
  --color-overlay-hero:   oklch(10% 0.012 35 / 0.55);
  --color-overlay-grad:   linear-gradient(270deg, oklch(10% 0.012 35 / 0.50) 0%, transparent 100%);

  /* ── NAJM Typography ─────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', 'Georgia', ui-serif, serif;
  --font-body:    'Be Vietnam Pro', system-ui, sans-serif;

  /* Échelle — perfect fourth 1.333 */
  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.8125rem;   /* 13px */
  --text-base:  1rem;        /* 16px */
  --text-lg:    1.125rem;    /* 18px */
  --text-xl:    1.25rem;     /* 20px */
  --text-2xl:   1.5rem;      /* 24px */
  --text-3xl:   2rem;        /* 32px */
  --text-4xl:   2.5rem;      /* 40px */
  --text-5xl:   3.25rem;     /* 52px */
  --text-hero:  clamp(3rem, 7vw, 5.5rem);
  --text-display: clamp(2.25rem, 5vw, 4rem);

  --leading-tight:   1.05;
  --leading-snug:    1.25;
  --leading-body:    1.7;

  --tracking-display: -0.025em;
  --tracking-label:    0.1em;

  /* ── NAJM Spacing — 4pt scale ────────────────────────────── */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;

  /* Sémantiques */
  --space-xs:  var(--sp-2);
  --space-sm:  var(--sp-4);
  --space-md:  var(--sp-8);
  --space-lg:  var(--sp-16);
  --space-xl:  var(--sp-24);

  /* ── NAJM Radii — fashion (proche du rectangle) ─────────── */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   6px;
  --radius-xl:   8px;
  --radius-pill: 9999px;
  --radius-btn:  3px;   /* fashion = rectangular CTAs */
  --radius-card: 2px;

  /* ── Ombres — légères, directionnelles ──────────────────── */
  --shadow-sm:   0 1px 2px oklch(10% 0.012 35 / 0.12);
  --shadow-md:   0 4px 16px oklch(10% 0.012 35 / 0.20);
  --shadow-lg:   0 8px 32px oklch(10% 0.012 35 / 0.30);
  --shadow-card: 0 2px 8px  oklch(10% 0.012 35 / 0.15);

  /* ── Easings NAJM (cubic-bezier crafted) ────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --dur-fast:   150ms;
  --dur-base:   250ms;
  --dur-slow:   450ms;

  /* Legacy compat */
  --transition-fast:  var(--dur-fast) var(--ease-out);
  --transition-base:  var(--dur-base) var(--ease-out);
  --transition-slow:  var(--dur-slow) var(--ease-out);

  /* ── Layout ─────────────────────────────────────────────── */
  --container-max: 1220px;
  --container-pad: clamp(1.25rem, 5vw, 5rem);
  --nav-height:    88px;
  --nav-h:         88px;   /* alias court pour main.css — agrandi pour le logo */

  /* ── Z-index ────────────────────────────────────────────── */
  --z-nav:    100;
  --z-modal:  200;
  --z-toast:  300;

  /* ── Section padding sémantique ─────────────────────────── */
  --section-pad:      clamp(4rem, 8vw, 8rem);
  --section-pad-sm:   clamp(2rem, 4vw, 4rem);
}
