/* ==========================================================================
   Jedha AI School — tokens
   Noms de couleurs repris de la palette jedha.co (CSS Webflow, 19/10/2026).
   N'ajoutez pas de couleur hors de cette palette.
   ========================================================================== */

/* --- Polices auto-hébergées (SIL Open Font License, voir assets/fonts/) --- */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/lexend-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/lexend-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/lexend-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  /* --- Bleu de marque --- */
  --royal-blue--050: #e8f3ff;
  --royal-blue--100: #d5e9ff;
  --royal-blue--200: #b3d5ff;
  --royal-blue--300: #86b8ff;
  --royal-blue--400: #578bff;
  --royal-blue--500: #345fff;
  --royal-blue--600: #102fff;
  --royal-blue--700: #152ffc;
  --royal-blue--800: #0a22ca;
  --royal-blue--900: #12289d;
  --royal-blue--950: #0b155b;

  /* --- Violet (thematic-data) --- */
  --thematic-data--100: #eae4ff;
  --thematic-data--500: #7d3bff;
  --thematic-data--600: #7214ff;
  --thematic-data--700: #6200ff;

  /* --- Cyan (accents ponctuels) --- */
  --cyan--100: #d0fdfc;
  --cyan--500: #0ecdd0;
  --cyan--600: #0fa4af;

  /* --- Neutres --- */
  --grey--050: #f9fafc;
  --grey--100: #f1f5f9;
  --grey--200: #e2e8f1;
  --grey--300: #cad5e2;
  --grey--400: #90a1b9;
  --grey--500: #62748e;
  --grey--600: #45556c;
  --grey--700: #324158;
  --grey--800: #1d283d;
  --grey--900: #0e172b;
  --grey--950: #020617;

  --white: #fff;

  /* --- Jaune clair des étoiles de notation : demandé par l'équipe, absent de la palette jedha.co extraite --- */
  --rating-yellow: #fee289;

  /* --- Rôles --- */
  --color-text: var(--grey--900);
  --color-text-muted: var(--grey--600);
  --color-bg: var(--white);
  /* Un peu plus soutenu que grey--050 (trop clair sur certains écrans), grey--100 étant trop foncé */
  --color-bg-soft: color-mix(in srgb, var(--grey--050) 75%, var(--grey--100));
  --color-bg-accent: var(--royal-blue--050);
  --color-border: var(--grey--200);
  --color-focus: var(--royal-blue--500);

  /* --- Dégradés --- */
  --gradient-signature: linear-gradient(90deg, var(--royal-blue--600), var(--thematic-data--500));
  /* Cartes formations : bleu nuit → marine (Bachelor) ; violet profond → violet #7214ff (Mastère).
     Le départ du Mastère est assombri pour garder le texte blanc lisible. */
  --gradient-bachelor: linear-gradient(120deg, var(--grey--900) 0%, var(--royal-blue--950) 55%, var(--royal-blue--900) 100%);
  --gradient-mastere: linear-gradient(120deg, color-mix(in srgb, var(--thematic-data--700) 45%, var(--grey--900)) 0%, color-mix(in srgb, var(--thematic-data--700) 75%, var(--grey--900)) 45%, var(--thematic-data--600) 100%);

  /* Fonds clairs des sections : base bleu très pâle → lavande, avec des halos (rayons fixes,
     pour ne pas s'étirer sur les sections hautes). Reste assez clair pour le texte gris et bleu. */
  --gradient-soft:
    radial-gradient(circle 38rem at 90% -8%, color-mix(in srgb, var(--royal-blue--300) 45%, transparent), transparent 70%),
    radial-gradient(circle 30rem at 4% 108%, color-mix(in srgb, var(--thematic-data--100) 95%, transparent), transparent 72%),
    radial-gradient(circle 24rem at 32% 12%, color-mix(in srgb, var(--royal-blue--100) 85%, transparent), transparent 70%),
    radial-gradient(circle 22rem at 70% 95%, color-mix(in srgb, var(--royal-blue--200) 35%, transparent), transparent 70%),
    linear-gradient(135deg, var(--royal-blue--050) 0%, var(--royal-blue--050) 40%, color-mix(in srgb, var(--thematic-data--100) 70%, var(--royal-blue--050)) 100%);

  /* --- Typographie --- */
  --font-heading: "Lexend", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Échelle fluide, du mobile (375 px) au desktop (≥ 1280 px) :
     H1 40 → 56, H2 30 → 36, H3 20 → 22, chapô de promesse 22 → 24, corps 16 → 17 */
  --text-h1: clamp(2.5rem, 2.086rem + 1.768vw, 3.5rem);
  --text-h2: clamp(1.875rem, 1.719rem + 0.663vw, 2.25rem);
  --text-h3: clamp(1.25rem, 1.198rem + 0.221vw, 1.375rem);
  --text-large: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --text-lead: clamp(1.375rem, 1.323rem + 0.221vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-xsmall: 0.8125rem;
  --text-eyebrow: 0.8125rem;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --tracking-heading: -0.02em;
  --tracking-eyebrow: 0.08em;

  /* --- Espacements --- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);

  /* --- Mise en page --- */
  --container-max: 1280px;
  --container-gutter: 24px;
  --header-height: 72px;

  /* --- Rayons --- */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  /* --- Ombres --- */
  --shadow-soft: 0 10px 30px rgba(16, 47, 255, 0.08);
  --shadow-raised: 0 20px 50px rgba(16, 47, 255, 0.12);
  /* Survol des cartes de carrousel : ombre resserrée pour tenir dans la piste défilante */
  --shadow-hover: 0 8px 18px -8px rgba(16, 47, 255, 0.28);

  /* --- Effets « verre » des cartes d'interface --- */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: 12px;

  /* --- Mouvements --- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 0.5s;
}

@media (max-width: 767px) {
  :root {
    --text-body: 1rem;
    --container-gutter: 16px;
    --header-height: 64px;
  }
}
