/* =============================================================
   Design system - A.Pilet SA
   Tokens uniquement (custom properties). Aucune règle de mise en
   forme ici : main.css consomme ces variables.
   Palette A - fidèle au logo.
   ============================================================= */

/* Inter Variable, self-hosted (privacy-by-default - pas de Google Fonts).
   Source : rsms.me/inter (OFL). Un seul fichier WOFF2 couvre tous les weights. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter/InterVariable.woff2') format('woff2');
}

:root {

  /* -----------------------------------------------------------
     Couleurs
     ----------------------------------------------------------- */
  --color-primary:        #1F8FC4;   /* bleu pro (texte/btn sur blanc, AA OK) */
  --color-primary-dark:   #13638B;   /* hover / état actif */
  --color-accent:         #62BFE6;   /* bleu logo, soulignement, badges, dégradés */

  --color-text:           #1A2630;   /* corps de texte */
  --color-text-muted:     #5B6B7A;   /* texte secondaire */
  --color-text-on-dark:   #FFFFFF;   /* texte sur fond primaire/sombre */

  --color-bg:             #FFFFFF;   /* fond principal */
  --color-bg-alt:         #F1F7FB;   /* fond de section alterné */
  --color-bg-dark:        #1A2630;   /* footer, blocs sombres */

  --color-border:         #DCE6EE;   /* bordures fines */
  --color-border-strong:  #B8CDDC;   /* bordures plus contrastées */

  /* États sémantiques */
  --color-success:        #1B7F4D;
  --color-warning:        #B8731B;
  --color-danger:         #B43030;

  /* Overlay sombre semi-transparent à poser sur une photo de hero
     pour garantir le contraste du texte blanc en surimpression. */
  --color-hero-overlay:   rgba(15, 30, 45, 0.55);


  /* -----------------------------------------------------------
     Typographie
     ----------------------------------------------------------- */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', monospace;

  /* Type scale (ratio 1.25) */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.563rem;   /* 25px */
  --text-3xl:  1.953rem;   /* 31px */
  --text-4xl:  2.441rem;   /* 39px */
  --text-5xl:  3.052rem;   /* 49px */

  --leading-tight: 1.25;
  --leading-base:  1.65;
  --leading-loose: 1.85;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;


  /* -----------------------------------------------------------
     Espacements (échelle 4px)
     ----------------------------------------------------------- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;


  /* -----------------------------------------------------------
     Composants
     ----------------------------------------------------------- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(20, 40, 60, .07), 0 1px 2px rgba(20, 40, 60, .04);
  --shadow-md: 0 6px 20px rgba(20, 40, 60, .10), 0 2px 6px rgba(20, 40, 60, .05);
  --shadow-lg: 0 20px 40px rgba(20, 40, 60, .12), 0 8px 16px rgba(20, 40, 60, .06);

  --transition:      200ms ease;
  --transition-slow: 350ms ease;

  /* Anneau de focus visible (accessibilité clavier) */
  --focus-ring: 0 0 0 3px var(--color-accent);


  /* -----------------------------------------------------------
     Layout
     ----------------------------------------------------------- */
  --container-max: 1200px;   /* largeur max du contenu */
  --content-max:   65ch;     /* largeur max d'un paragraphe (.prose) */
  --header-height: 84px;     /* hauteur du header sticky (mesure de référence) */

}
