:root {
  /* ─── 1. Échelle de Conteneurs par Paliers Synchronisés (Toutes sections & pages) ─── */
  --container-max: 1200px;
  --container-pad: 32px;

  /* ─── 2. Palette Fondamentale Unifiée (Lin Organique + Encre + Espresso + Cobalt + Ambre) ─── */
  --canvas: #FAF7F2;
  --bg: #FAF7F2;
  --canvas-gradient: linear-gradient(165deg, #FCFBF8 0%, #FAF7F2 60%, #F4EFE6 100%);
  --surface: #FFFFFF;
  --surface-subtle: #F5F1E8;
  --surface-night: #14192D;
  --surface-code: #1A1E24;

  --ink: #0D141B;
  --fg: #0D141B;
  --ink-display: #2B1D12; /* Terre d'Ombre Espresso pour grands titres */
  --ink-slate: #102138;
  --ink-muted: #525866;
  --fg-2: #525866;
  --muted: #525866;

  --border: #E5DFD5;
  --border-linen: #DCD6C9;
  --border-slate: #D0D9E2;
  --border-strong: rgba(43, 29, 18, 0.14);
  --border-subtle: rgba(43, 29, 18, 0.08);

  /* ─── 3. Accents Fonctionnels (Bleu Cobalt Électrique, Ambre Signature & Statut En Ligne) ─── */
  --primary: #293DD8;
  --accent: #293DD8;
  --primary-hover: #2434BF;
  --accent-hover: #2434BF;
  --primary-on: #FFFFFF;
  --accent-on: #FFFFFF;
  --primary-tint: #E8ECFB;
  --accent-surface: #E8ECFB;
  --accent-subtle: #EEF2FD;
  --focus: #293DD8;

  --amber: #EB7A44;
  --photo-orange: #EB7A44;
  --work-amber: #EB7A44;
  --amber-tint: rgba(235, 122, 68, 0.14);
  --amber-border: rgba(235, 122, 68, 0.35);

  --status-online: #22C55E;
  --color-success: #22633F;

  /* ─── 4. Thèmes Chromatiques par Projet (WCAG AAA · Partagés Hero / Work / Referrals / Case Studies) ─── */
  /* Projet 01 : Desjardins (Corail Terracotta) */
  --theme-01-bg: #F1B0A7;
  --theme-01-grad: linear-gradient(150deg, #F8C5BF 0%, #F1B0A7 100%);
  --theme-01-grad-soft: linear-gradient(150deg, rgba(248, 197, 191, 0.36) 0%, rgba(241, 176, 167, 0.22) 100%);
  --theme-01-glass: linear-gradient(145deg, rgba(248, 197, 191, 0.94), rgba(241, 176, 167, 0.96));
  --theme-01-ink: #4A1B14;
  --theme-01-sub: #7A352B;
  --theme-01-border-solid: #E09489;
  --theme-01-border: rgba(74, 27, 20, 0.36);
  --theme-01-shadow: rgba(74, 27, 20, 0.15);
  --theme-01-tint: rgba(241, 176, 167, 0.22);
  --work-01-bg: #ECD9D2;
  --work-01-grad:
    radial-gradient(52% 58% at 72% 45%, rgba(241, 176, 167, 0.62), transparent 70%),
    radial-gradient(45% 50% at 18% 75%, rgba(235, 122, 68, 0.18), transparent 70%),
    linear-gradient(165deg, #F3E4DF 0%, #ECD9D2 58%, #E3C9C0 100%);
  --work-01-desc: #6B3229;

  /* Projet 02 : Bsit (Lavande Periwinkle) */
  --theme-02-bg: #DED5F5;
  --theme-02-grad: linear-gradient(150deg, #E6DCFA 0%, #DED5F5 100%);
  --theme-02-grad-soft: linear-gradient(150deg, rgba(230, 220, 250, 0.42) 0%, rgba(222, 213, 245, 0.26) 100%);
  --theme-02-glass: linear-gradient(145deg, rgba(230, 220, 250, 0.94), rgba(222, 213, 245, 0.96));
  --theme-02-ink: #241846;
  --theme-02-border: rgba(36, 24, 70, 0.34);
  --theme-02-shadow: rgba(36, 24, 70, 0.14);
  --theme-02-tint: rgba(222, 213, 245, 0.22);
  --work-02-bg: #E2DCF0;
  --work-02-grad:
    radial-gradient(52% 58% at 72% 45%, rgba(222, 213, 245, 0.75), transparent 70%),
    radial-gradient(45% 50% at 18% 75%, rgba(146, 122, 214, 0.20), transparent 70%),
    linear-gradient(165deg, #ECE7F7 0%, #E2DCF0 58%, #D5CCE8 100%);
  --work-02-desc: #43326E;

  /* Projet 03 : Golf Avenue (Cobalt Tint) */
  --theme-03-bg: #E8ECFB;
  --theme-03-grad: linear-gradient(150deg, #F0F4FD 0%, #E8ECFB 100%);
  --theme-03-grad-soft: linear-gradient(150deg, rgba(240, 244, 253, 0.55) 0%, rgba(232, 236, 251, 0.34) 100%);
  --theme-03-glass: linear-gradient(145deg, rgba(240, 244, 253, 0.94), rgba(232, 236, 251, 0.96));
  --theme-03-ink: #293DD8;
  --theme-03-ink-deep: #1D2D9E;
  --theme-03-border: rgba(41, 61, 216, 0.34);
  --theme-03-shadow: rgba(41, 61, 216, 0.14);
  --theme-03-tint: rgba(232, 236, 251, 0.22);
  --work-03-bg: #DAE2F4;
  --work-03-grad:
    radial-gradient(52% 58% at 72% 45%, rgba(213, 223, 250, 0.80), transparent 70%),
    radial-gradient(45% 50% at 18% 75%, rgba(41, 61, 216, 0.16), transparent 70%),
    linear-gradient(165deg, #E6ECFA 0%, #DAE2F4 58%, #CBD6EE 100%);
  --work-03-desc: #2E3F8F;

  /* Projet 04 : EHOPE 2026 (Sauge Écologique / Moss · WCAG AAA) */
  --theme-04-bg: #C7D7CA;
  --theme-04-grad: linear-gradient(150deg, #D5E3D8 0%, #C7D7CA 100%);
  --theme-04-grad-soft: linear-gradient(150deg, rgba(213, 227, 216, 0.42) 0%, rgba(199, 215, 202, 0.26) 100%);
  --theme-04-glass: linear-gradient(145deg, rgba(213, 227, 216, 0.94), rgba(199, 215, 202, 0.96));
  --theme-04-ink: #163826;
  --theme-04-border: rgba(22, 56, 38, 0.34);
  --theme-04-shadow: rgba(22, 56, 38, 0.14);
  --theme-04-tint: rgba(199, 215, 202, 0.25);
  --work-04-bg: #D5E1D7;
  --work-04-grad:
    radial-gradient(52% 58% at 72% 45%, rgba(199, 215, 202, 0.80), transparent 70%),
    radial-gradient(45% 50% at 18% 75%, rgba(34, 99, 63, 0.16), transparent 70%),
    linear-gradient(165deg, #E3ECE5 0%, #D5E1D7 58%, #C4D4C7 100%);
  --work-04-desc: #1E4631;

  /* ─── 5. Pastels Complémentaires (Cartes Referrals & Passions) ─── */
  --tone-sand-grad: linear-gradient(150deg, #F3ECE0 0%, #E5DAC6 100%);
  --tone-sand-ink: #2B1D12;
  --tone-amber-grad: linear-gradient(150deg, #FAD6C0 0%, #F3BFA1 100%);
  --tone-amber-ink: #4A1F0D;
  --tone-sage-grad: linear-gradient(150deg, #D5E3D8 0%, #C7D7CA 100%);
  --tone-sage-ink: #163826;
  --tone-powder-grad: linear-gradient(150deg, #D2DCE8 0%, #BAC9DC 100%);
  --tone-powder-ink: #102138;
  --tone-rose-grad: linear-gradient(150deg, #F9E2F0 0%, #EEC7DF 100%);
  --tone-rose-ink: #481535;
  --tone-moss-grad: linear-gradient(150deg, #CEE9DA 0%, #B6DBC6 100%);
  --tone-moss-ink: #123524;

  /* ─── 6. Alias de compatibilité Charte & Composants ─── */
  --color-canvas: var(--canvas);
  --color-surface: var(--surface);
  --color-surface-subtle: var(--surface-subtle);
  --color-ink: var(--ink);
  --color-ink-muted: var(--ink-muted);
  --color-border: var(--border);
  --color-primary: var(--primary);
  --color-cobalt-deep: var(--primary-hover);

  --color-sage: #C7D7CA;
  --color-powder: #ACBCD2;
  --color-coral: #F1B0A7;
  --color-linen: #F5EEE0;
  --color-slate: #E9EEF3;
  --color-cream: #FAF6ED;

  --tint-blue: var(--color-powder);
  --tint-slate: var(--color-slate);
  --tint-linen: var(--color-linen);
  --tint-green: var(--color-sage);
  --tint-sand: var(--color-cream);
  --tint-rose: #FBE4F5;

  /* ─── 7. Typographie (Gasoek One réservé à WORK + Geist Pixel + Plus Jakarta Sans) ─── */
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-gasoek: 'Gasoek One', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-card: 'Plus Jakarta Sans', sans-serif;
  --font-pixel: 'Geist Pixel', 'Plus Jakarta Sans', monospace;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Plus Jakarta Sans', monospace;

  /* ─── 8. Rayons & Squircles (Séparation stricte : Bouton Squircle 14px vs Tag Pilule 999px) ─── */
  --radius-sm: 8px;
  --radius-btn: 14px;
  --radius-btn-lg: 14px;
  --radius-md: 16px;
  --radius-card: 26px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* ─── 9. Espacements & Rythme Vertical Harmonisé des Sections (Ratio constant Haut / Bas) ─── */
  --space-4xs: 4px;
  --space-3xs: 8px;
  --space-2xs: 12px;
  --space-xs: 16px;
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 64px;
  --space-2xl: 96px;

  --section-pad-top: clamp(104px, 12.5vh, 156px);
  --section-pad-bottom: clamp(114px, 13.8vh, 172px);

  /* ─── 9b. Espacements Fluides (clamp) pour Cartes, Blocs & Grilles (Mobile → Grand Écran) ─── */
  --space-card-lg-y: clamp(24px, 1.2rem + 2.2vw, 56px);
  --space-card-lg-x: clamp(20px, 1rem + 2.8vw, 60px);
  --space-card-md-y: clamp(20px, 1rem + 1.4vw, 40px);
  --space-card-md-x: clamp(20px, 1rem + 1.8vw, 44px);
  --space-card-sm-y: clamp(16px, 0.85rem + 0.8vw, 28px);
  --space-card-sm-x: clamp(16px, 0.85rem + 1.1vw, 32px);
  --space-cell-y: clamp(20px, 1rem + 0.85vw, 34px);
  --space-cell-x: clamp(20px, 1rem + 1.1vw, 36px);
  --space-gap-grid: clamp(20px, 1rem + 1.2vw, 30px);
  --space-gap-stack: clamp(28px, 1.4rem + 1.8vw, 48px);

  /* ─── 10. Ombres Tactiles & Élévations ─── */
  --shadow-offset-sm: 0 2px 0 var(--border);
  --shadow-offset-md: 0 3px 0 var(--border);
  --shadow-subtle: 0 4px 12px rgba(13, 20, 27, 0.05);
  --shadow-card: 0 10px 30px rgba(13, 20, 27, 0.10), 0 24px 60px rgba(13, 20, 27, 0.12);
  --shadow-deep: 0 16px 40px rgba(13, 20, 27, 0.14);

  /* ─── 11. Courbes de Révélation au Scroll (Sémantique par type de contenu) ─── */
  --ease-reveal-move: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-reveal-fade: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-reveal-assertive: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ─── Adaptation Proportionnelle à la Hauteur d'Écran (Grands Écrans vs Laptops Compacts) ─── */
@media (min-width: 1025px) and (min-height: 960px) {
  :root {
    --section-pad-top: clamp(124px, 14vh, 176px);
    --section-pad-bottom: clamp(136px, 15.4vh, 192px);
  }
}

@media (min-width: 1025px) and (max-height: 820px) {
  :root {
    --section-pad-top: clamp(76px, 10vh, 98px);
    --section-pad-bottom: clamp(84px, 11vh, 108px);
  }
}

/* ─── Paliers Synchronisés de Conteneurs sur les 4 Breakpoints Unifiés ─── */
@media (max-width: 1280px) {
  :root {
    --container-max: 1024px;
    --container-pad: 28px;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-max: 760px;
    --container-pad: 24px;
    --section-pad-top: clamp(80px, 10vh, 116px);
    --section-pad-bottom: clamp(88px, 11vh, 124px);
  }
}

@media (max-width: 768px) {
  :root {
    --container-max: 520px;
    --container-pad: 20px;
    --section-pad-top: clamp(72px, 9.5vh, 96px);
    --section-pad-bottom: clamp(76px, 10.5vh, 104px);
  }
}

@media (max-width: 480px) {
  :root {
    --container-max: 100%;
    --container-pad: 16px;
    --section-pad-top: clamp(68px, 8.5vh, 84px);
    --section-pad-bottom: clamp(72px, 9.5vh, 92px);
  }
}
