/*
 * Traavi — jetons de design
 *
 * Valeurs relevées dans /style/guide/Traavi-Redesign.dc.html.
 * Source unique de vérité : aucune couleur ni aucun rayon ne doit être écrit
 * en dur ailleurs. Si une valeur manque ici, c'est qu'elle n'est pas dans le
 * système — il faut l'y ajouter plutôt que de l'improviser dans une page.
 *
 * Ce fichier surcharge aussi les variables de Bootstrap 5.3, et doit donc être
 * chargé APRÈS bootstrap.min.css.
 */

:root {
  /* ---- Fonds ---------------------------------------------------- */
  --t-bg:            #F7F4EE;   /* fond de page, un sable très clair */
  --t-surface:       #FFFFFF;   /* cartes, champs */
  --t-surface-alt:   #F2EEE5;   /* pied de page, blocs secondaires */
  --t-surface-warm:  #FBEEDF;   /* encarts chauds */
  --t-hatch-a:       #EAE3D5;   /* hachures : visuel manquant */
  --t-hatch-b:       #E1D9C7;

  /* ---- Bordures ------------------------------------------------- */
  --t-border:        #E3DDD2;
  --t-border-strong: #D5CCBB;
  --t-rule:          #F0EBE1;   /* filet interne, plus discret */

  /* ---- Texte ---------------------------------------------------- */
  --t-ink:           #171A1D;
  --t-ink-2:         #4A4F56;
  --t-ink-3:         #5C6169;
  --t-muted:         #7C8188;
  --t-muted-2:       #9A9287;

  /* ---- Accents -------------------------------------------------- */
  --t-primary:       #0E7FA3;
  --t-primary-dark:  #0A6183;
  --t-primary-light: #B9E9F8;
  --t-primary-soft:  #E7F6FC;
  --t-warm:          #C4622D;
  --t-warm-dark:     #8E3F18;
  --t-green:         #2E6F4E;
  --t-green-light:   #DCE8E4;
  --t-danger:        #9B2C2C;
  --t-danger-light:  #F7E4E4;

  /* ---- Typographie ---------------------------------------------- */
  --t-font-titre: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-font-texte: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-font-logo:  'Caveat', 'Segoe Script', cursive;

  /* ---- Rayons --------------------------------------------------- */
  --t-r-pill: 999px;
  --t-r-lg:   16px;   /* cartes, visuels du hero */
  --t-r-md:   14px;   /* cartes compactes, champs */
  --t-r-sm:   12px;   /* boutons pleins */
  --t-r-xs:   10px;   /* vignettes, onglets */

  /* ---- Ombres --------------------------------------------------- */
  --t-shadow-carte:  0 18px 40px rgba(23, 26, 29, .16);
  --t-shadow-douce:  0 2px 8px rgba(23, 26, 29, .05);
  --t-shadow-survol: 0 8px 24px rgba(23, 26, 29, .10);

  /* ---- Rythme --------------------------------------------------- */
  --t-gap:        18px;
  --t-gap-mobile: 12px;
  --t-pad-page:   40px;
  --t-pad-mobile: 16px;
}

/* ------------------------------------------------------------------ */
/* Raccordement à Bootstrap 5.3                                       */
/* ------------------------------------------------------------------ */
/*
 * Bootstrap 5.3 expose ses réglages sous forme de variables CSS, ce qui permet
 * de le réaccorder sans recompiler de Sass. Les composants qui ont leurs propres
 * variables locales (les boutons notamment) sont repris plus bas, dans traavi.css.
 */

:root {
  --bs-body-bg:           var(--t-bg);
  --bs-body-color:        var(--t-ink);
  --bs-body-font-family:  var(--t-font-texte);
  --bs-body-font-size:    1rem;
  --bs-body-line-height:  1.55;

  --bs-primary:           #0E7FA3;
  --bs-primary-rgb:       14, 127, 163;
  --bs-link-color:        #0E7FA3;
  --bs-link-color-rgb:    14, 127, 163;
  --bs-link-hover-color:  #0A6183;

  --bs-border-color:      #E3DDD2;
  --bs-border-radius:     12px;
  --bs-border-radius-sm:  10px;
  --bs-border-radius-lg:  14px;
  --bs-border-radius-xl:  16px;
  --bs-border-radius-pill: 999px;

  --bs-secondary-color:   #5C6169;
  --bs-tertiary-color:    #7C8188;
  --bs-tertiary-bg:       #F2EEE5;

  --bs-heading-color:     #171A1D;
  --bs-emphasis-color:    #171A1D;

  --bs-focus-ring-color:  rgba(14, 127, 163, .28);
  --bs-focus-ring-width:  3px;
}
