/* ============================================
   DOAKEN — DESIGN TOKENS (source unique)
   Utilisés par : landing, fonctionnalités, blog,
   pages support, money keyword, internationales.
   ============================================ */

:root {
  /* Couleurs — palette officielle */
  --bg: #FFFFFF;
  --bg-section: #EAF1F8;       /* bleu glacé pâle, fond section alterné */
  --bg-dark: #001A3D;          /* bleu nuit, sections foncées */
  --bg-dark-deep: #000B1F;     /* navy footer */

  --text-h1: #001A3D;
  --text-h2: #001A3D;
  --text-body: #1F2937;
  --text-sub: #4A5A7A;
  --text-muted: #6B7280;

  --accent: #FF6B35;           /* orange chaud, accent unique */
  --accent-soft: #FFF5F0;
  --accent-shadow: rgba(255, 107, 53, 0.30);

  --marine: #003D7A;
  --ciel: #5DA4D4;
  --beige: #F4DCB8;
  --glace: #DCE9F7;

  --border: rgba(0, 26, 61, 0.06);
  --border-soft: rgba(0, 26, 61, 0.05);
  --border-strong: rgba(0, 26, 61, 0.08);

  /* Typographies — Sentient titres, Geist corps */
  --font-display: 'Sentient', 'Geist', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Échelle typographique */
  --fs-h1: clamp(44px, 5.8vw, 72px);
  --fs-h2: clamp(36px, 4.2vw, 52px);
  --fs-h3: clamp(24px, 2.4vw, 32px);
  --fs-h4: 19px;
  --fs-lead: 18px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 13px;
  --fs-eyebrow: 11px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.45;
  --lh-relaxed: 1.7;

  --tracking-tight: -0.028em;
  --tracking-snug: -0.018em;
  --tracking-normal: -0.005em;
  --tracking-wide: 0.08em;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 20px;
  --r-xxl: 24px;
  --r-pill: 100px;

  /* Ombres */
  --sh-sm: 0 4px 12px -2px rgba(0, 26, 61, 0.06);
  --sh-md: 0 14px 32px -8px rgba(0, 26, 61, 0.14);
  --sh-lg: 0 20px 42px -10px rgba(0, 26, 61, 0.18);
  --sh-xl: 0 30px 60px -20px rgba(0, 26, 61, 0.25);
  --sh-accent: 0 6px 14px rgba(255, 107, 53, 0.40);

  /* Espacements (rythme vertical) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --maxw-content: 720px;       /* article blog lisible */
  --maxw-narrow: 960px;
  --maxw-wide: 1280px;
  --maxw-full: 1440px;
  --pad-x: 64px;
  --pad-x-mobile: 24px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --fs-h1: clamp(34px, 8vw, 44px);
    --fs-h2: clamp(28px, 6.5vw, 38px);
  }
}

/* Reset minimal — n'override pas les sites qui ont déjà leur reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-h1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: var(--tracking-normal);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ============================================
   MOKOTO @font-face (wordmark logo unique)
   Chargé partout via doaken-tokens.css.
   ============================================ */
@font-face {
  font-family: 'Mokoto';
  src: url('/mokoto.regular.woff2') format('woff2'),
       url('/mokoto.regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   HARMONISATION LOGO HEADER PARTOUT
   Force "DOAKEN" Mokoto MAJUSCULES sur toutes
   les variantes legacy (.nav-logo-iso, .logo-text
   avec SVG+span minuscules). Le SVG est caché,
   le span est transformé en wordmark Mokoto.
   ============================================ */
.nav-logo-iso,
.logo-text {
  display: inline-flex !important;
  align-items: center;
  text-decoration: none;
  color: var(--text-h1);
}
.nav-logo-iso svg,
.logo-text svg {
  display: none !important;
}
.nav-logo-iso span,
.logo-text span {
  font-family: 'Mokoto', 'Sentient', sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-h1) !important;
}
/* Variante : si le <a class="nav-logo"> contient ALSO un SVG + span (cas mixte) */
a.nav-logo > svg { display: none !important; }
a.nav-logo > span {
  font-family: 'Mokoto', 'Sentient', sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
