/* =========================================================
   DESIGN TOKENS — basés sur Microsoft Fluent 2
   Sources :
   - https://fluent2.microsoft.design (principes, typo, layout, shapes, elevation)
   - Package officiel @fluentui/tokens (valeurs exactes : couleurs neutres,
     ombres, rayons, durées, courbes)
   Règle : ne jamais écrire une valeur "en dur" dans le CSS, toujours un token.
   ========================================================= */
:root {
  /* ---------- 1. Couleur de marque (brand ramp 10 → 160) ----------
     Fluent : rest = brand80, hover = brand70, pressed = brand40, selected = brand60.
     Rampe générée à partir du vert officiel de la société #007436 (mesuré sur le bon de livraison / logo).
     Historique : #1a8a50 → #008000 → #0f7a3d → #2D6A4F → #0f7a3d → #007436 (actuel). */
  --brand-10:  #001409;
  --brand-20:  #002411;
  --brand-30:  #003318;
  --brand-40:  #00421f;
  --brand-50:  #005226;
  --brand-60:  #00612d;
  --brand-70:  #00662f;
  --brand-80:  #007436;
  --brand-90:  #138649;
  --brand-100: #26975a;
  --brand-110: #38a86c;
  --brand-120: #55b984;
  --brand-130: #79c39c;
  --brand-140: #9ed1b6;
  --brand-150: #c1e2d0;
  --brand-160: #eaf6ef;

  /* ---------- 2. Alias couleur (thème clair Fluent) ---------- */
  --colorBrandBackground: var(--brand-80);
  --colorBrandBackgroundHover: var(--brand-70);
  --colorBrandBackgroundPressed: var(--brand-40);
  --colorBrandBackgroundSelected: var(--brand-60);
  --colorBrandBackground2: var(--brand-160);   /* fond de marque très léger */
  --colorBrandForeground1: var(--brand-80);
  --colorBrandForegroundLink: var(--brand-70);
  --colorBrandForegroundLinkHover: var(--brand-60);
  --colorBrandStroke1: var(--brand-80);

  --colorNeutralForeground1: #242424;   /* texte principal */
  --colorNeutralForeground2: #424242;   /* texte secondaire */
  --colorNeutralForeground3: #616161;   /* texte tertiaire / légendes */
  --colorNeutralForegroundOnBrand: #ffffff;

  --colorNeutralBackground1: #ffffff;
  --colorNeutralBackground1Hover: #f5f5f5;
  --colorNeutralBackground1Pressed: #e0e0e0;
  --colorNeutralBackground2: #fafafa;
  --colorNeutralBackground3: #f5f5f5;
  --colorNeutralBackground4: #f0f0f0;
  --colorNeutralBackground5: #ebebeb;
  --colorNeutralBackground6: #e6e6e6;

  --colorNeutralStroke1: #d1d1d1;
  --colorNeutralStroke2: #e0e0e0;
  --colorNeutralStrokeAccessible: #616161;
  --colorNeutralStroke1Hover: #c7c7c7;
  --colorNeutralStroke1Pressed: #b3b3b3;

  /* Couleurs de statut (palette partagée Fluent) — jamais pour décorer */
  --colorPaletteRedBorder2: #d13438;        /* erreur de champ */
  --colorPaletteGreenBackground1: #f1faf1;  /* message de succès */
  --colorPaletteGreenBorder1: #9fd89f;
  /* Surfaces sombres (thème clair Fluent : tokens "Inverted") */
  --colorNeutralBackgroundInverted: #292929;
  --colorNeutralForegroundInverted2: #ffffff;
  --colorBrandForegroundInverted: var(--brand-110); /* Fluent = brand100 ; brand110 avec notre rampe pour garder 4,5:1 sur #292929 */
  --colorStrokeFocus1: #ffffff;
  --colorStrokeFocus2: #000000;

  --colorNeutralShadowAmbient: rgba(0, 0, 0, .12);
  --colorNeutralShadowKey: rgba(0, 0, 0, .14);

  /* ---------- 3. Typographie ----------
     Segoe UI Variable (Windows 11) : version "Text" pour les textes, "Display" pour les grands titres.
     Repli prévu par Fluent : Segoe UI → San Francisco (Apple) → Roboto (Android). */
  --fontFamilyBase: 'Segoe UI Variable Text', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --fontFamilyDisplay: 'Segoe UI Variable Display', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --fontFamilyNumeric: Bahnschrift, 'Segoe UI Variable Display', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;

  /* ---------- Surfaces (principe Fluent des "couches") ---------- */
  --surfaceCanvas: var(--colorNeutralBackground2);   /* fond de page (#fafafa) */
  --surfaceCard: var(--colorNeutralBackground1);     /* cartes blanches posées dessus */
  --surfaceBrandSubtle: var(--colorBrandBackground2);/* surface teintée de vert */
  --surfaceHeader: var(--brand-80);                /* vert principal : barre de navigation + bandeau de titre */

  --fontSizeBase100: 10px;  --lineHeightBase100: 14px;
  --fontSizeBase200: 12px;  --lineHeightBase200: 16px;
  --fontSizeBase300: 14px;  --lineHeightBase300: 20px;
  --fontSizeBase400: 16px;  --lineHeightBase400: 22px;
  --fontSizeBase500: 20px;  --lineHeightBase500: 28px;
  --fontSizeBase600: 24px;  --lineHeightBase600: 32px;
  --fontSizeHero700: 28px;  --lineHeightHero700: 36px;
  --fontSizeHero800: 32px;  --lineHeightHero800: 40px;
  --fontSizeHero900: 40px;  --lineHeightHero900: 52px;
  --fontSizeHero1000: 68px; --lineHeightHero1000: 92px;

  --fontWeightRegular: 400;
  --fontWeightMedium: 500;
  --fontWeightSemibold: 600;
  --fontWeightBold: 700;

  /* ---------- 4. Espacements (grille de 4px) ---------- */
  --sizeNone: 0;
  --size20: 2px;   --size40: 4px;   --size60: 6px;   --size80: 8px;
  --size100: 10px; --size120: 12px; --size160: 16px; --size200: 20px;
  --size240: 24px; --size280: 28px; --size320: 32px; --size360: 36px;
  --size400: 40px; --size480: 48px; --size520: 52px; --size560: 56px;
  /* valeurs de mise en page (multiples de 4) */
  --size640: 64px; --size800: 80px; --size960: 96px;

  /* ---------- 5. Formes (rayons d'angle) ---------- */
  --borderRadiusNone: 0;       /* barres de navigation, barres d onglets */
  --borderRadiusSmall: 2px;    /* badges et éléments < 32px */
  --borderRadiusMedium: 4px;   /* défaut des rectangles : boutons, champs, cartes, images, menus */
  --borderRadiusLarge: 6px;
  --borderRadiusXLarge: 8px;   /* grands boutons (bouton WhatsApp flottant) */
  --borderRadiusCircular: 10000px;

  --strokeWidthThin: 1px;
  --strokeWidthThick: 2px;
  --strokeWidthThicker: 3px;
  --strokeWidthThickest: 4px;

  /* ---------- 6. Élévation (ombres officielles Fluent) ---------- */
  --shadow2:  0 0 2px var(--colorNeutralShadowAmbient), 0 1px 2px var(--colorNeutralShadowKey);
  --shadow4:  0 0 2px var(--colorNeutralShadowAmbient), 0 2px 4px var(--colorNeutralShadowKey);
  --shadow8:  0 0 2px var(--colorNeutralShadowAmbient), 0 4px 8px var(--colorNeutralShadowKey);
  --shadow16: 0 0 2px var(--colorNeutralShadowAmbient), 0 8px 16px var(--colorNeutralShadowKey);
  --shadow28: 0 0 8px var(--colorNeutralShadowAmbient), 0 14px 28px var(--colorNeutralShadowKey);
  --shadow64: 0 0 8px var(--colorNeutralShadowAmbient), 0 32px 64px var(--colorNeutralShadowKey);

  /* ---------- 7. Mouvement ---------- */
  --durationUltraFast: 50ms;
  --durationFaster: 100ms;
  --durationFast: 150ms;
  --durationNormal: 200ms;
  --durationGentle: 250ms;
  --durationSlow: 300ms;
  --durationSlower: 400ms;
  --durationUltraSlow: 500ms;

  --curveAccelerateMid: cubic-bezier(1, 0, 1, 1);
  --curveDecelerateMax: cubic-bezier(0.1, 0.9, 0.2, 1);
  --curveDecelerateMid: cubic-bezier(0, 0, 0, 1);
  --curveEasyEase: cubic-bezier(0.33, 0, 0.67, 1);
  --curveEasyEaseMax: cubic-bezier(0.8, 0, 0.2, 1);
  --curveLinear: cubic-bezier(0, 0, 1, 1);

  /* ---------- 8. Mise en page ---------- */
  --container: 1280px;
  --header-h: 80px;
  /* Points de rupture Fluent : 480 / 640 / 1024 / 1366 / 1920 (utilisés dans les @media) */
}
