/* ============================================================
   JOS DORE CORPORATE — VARIABLES GLOBALES
   ------------------------------------------------------------
   Toutes les couleurs, typographies, ombres et rayons du site.
   À charger EN PREMIER dans toutes les pages HTML.
   ============================================================ */

:root {
  /* ---------- COULEURS PRINCIPALES ---------- */
  --nuit:         #0A2540;
  --nuit-clair:   #1E3A5F;
  --bleu:         #2563EB;
  --bleu-fonce:   #1D4ED8;
  --or:           #F59E0B;
  --or-fonce:     #D97706;
  --vert:         #16A34A;
  --rouge:        #DC2626;
  --violet:       #7C3AED;

  /* ---------- NUANCES DE GRIS ---------- */
  --gris-900: #0F172A;
  --gris-800: #1E293B;
  --gris-700: #334155;
  --gris-600: #475569;
  --gris-500: #64748B;
  --gris-400: #94A3B8;
  --gris-300: #CBD5E1;
  --gris-200: #E2E8F0;
  --gris-100: #F1F5F9;
  --gris-50:  #F8FAFC;
  --blanc:    #FFFFFF;

  /* ---------- COULEURS SÉMANTIQUES ---------- */
  --succes:      var(--vert);
  --succes-bg:   #F0FDF4;
  --alerte:      var(--or);
  --alerte-bg:   #FEF3C7;
  --erreur:      var(--rouge);
  --erreur-bg:   #FEF2F2;
  --info:        var(--bleu);
  --info-bg:     #EFF6FF;

  /* ---------- DÉGRADÉS ---------- */
  --grad-nuit:   linear-gradient(135deg, #0A2540 0%, #143154 60%, #1E3A5F 100%);
  --grad-or:     linear-gradient(135deg, var(--or), var(--or-fonce));
  --grad-bleu:   linear-gradient(135deg, var(--bleu), var(--violet));
  --grad-hero:   linear-gradient(160deg, #0A2540 0%, #143154 60%, #1E3A5F 100%);

  /* ---------- TYPOGRAPHIE ---------- */
  --police-titre: 'Poppins', system-ui, -apple-system, sans-serif;
  --police-texte: 'Inter', system-ui, -apple-system, sans-serif;

  --taille-xs:   11px;
  --taille-sm:   13px;
  --taille-base: 15px;
  --taille-md:   16px;
  --taille-lg:   18px;
  --taille-xl:   22px;
  --taille-2xl:  28px;
  --taille-3xl:  36px;
  --taille-4xl:  48px;

  --poids-normal: 400;
  --poids-medium: 500;
  --poids-semi:   600;
  --poids-bold:   700;
  --poids-extra:  800;
  --poids-black:  900;

  --hauteur-titre: 1.15;
  --hauteur-texte: 1.6;

  /* ---------- OMBRES ---------- */
  --ombre-xs:   0 1px 2px rgba(10, 37, 64, 0.05);
  --ombre-sm:   0 1px 3px rgba(10, 37, 64, 0.08);
  --ombre-md:   0 4px 16px rgba(10, 37, 64, 0.10);
  --ombre-lg:   0 12px 32px rgba(10, 37, 64, 0.12);
  --ombre-xl:   0 30px 60px rgba(10, 37, 64, 0.20);
  --ombre-or:   0 8px 20px rgba(245, 158, 11, 0.35);
  --ombre-bleu: 0 8px 20px rgba(37, 99, 235, 0.30);

  /* ---------- RAYONS ---------- */
  --rayon-xs:   4px;
  --rayon-sm:   8px;
  --rayon-md:   14px;
  --rayon-lg:   20px;
  --rayon-xl:   28px;
  --rayon-full: 999px;

  /* ---------- ESPACEMENTS ---------- */
  --espace-1:  4px;
  --espace-2:  8px;
  --espace-3:  12px;
  --espace-4:  16px;
  --espace-5:  20px;
  --espace-6:  24px;
  --espace-8:  32px;
  --espace-10: 40px;
  --espace-12: 48px;
  --espace-16: 64px;
  --espace-20: 80px;

  /* ---------- LAYOUT ---------- */
  --contenu-max:   1200px;
  --contenu-large: 1400px;
  --header-h:      72px;

  /* ---------- TRANSITIONS ---------- */
  --transition-rapide: 0.15s ease;
  --transition:        0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-lente:  0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---------- Z-INDEX ---------- */
  --z-fond:     1;
  --z-contenu:  10;
  --z-overlay:  50;
  --z-header:   100;
  --z-modal:    150;
  --z-toast:    180;
  --z-cookies:  200;
  --z-loader:   999;
}

/* ============================================================
   RESET GLOBAL
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--police-texte);
  font-size: var(--taille-base);
  line-height: var(--hauteur-texte);
  color: var(--gris-700);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titre);
  color: var(--gris-900);
  line-height: var(--hauteur-titre);
  letter-spacing: -0.02em;
}

::selection {
  background: var(--or);
  color: var(--nuit);
}

/* Uicons — Flaticon */
[class*="fi fi-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   SCROLLBAR PERSONNALISÉE
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gris-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gris-300);
  border-radius: var(--rayon-full);
  border: 2px solid var(--gris-100);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gris-500);
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
  border-radius: var(--rayon-xs);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CONTENEURS UTILITAIRES
   ============================================================ */
.conteneur {
  max-width: var(--contenu-max);
  margin: 0 auto;
  padding: 0 var(--espace-6);
}

.conteneur-large {
  max-width: var(--contenu-large);
  margin: 0 auto;
  padding: 0 var(--espace-6);
}

/* ============================================================
   TYPOGRAPHIE UTILITAIRE
   ============================================================ */
.texte-muet { color: var(--gris-500); }
.texte-petit { font-size: var(--taille-sm); }
.texte-xs { font-size: var(--taille-xs); }
.texte-centre { text-align: center; }
.gras { font-weight: var(--poids-bold); }
.tres-gras { font-weight: var(--poids-extra); }
.black { font-weight: var(--poids-black); }

.texte-degrade {
  background: linear-gradient(135deg, var(--or), #FBBF24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}