/* Lya Courtage — feuille de styles des composants (anciennement colors_and_type.css).
   Les valeurs reprises dans tokens.json (espacements, rayons, ombres, hauteurs, polices) en ont été retirées : elles viennent de tokens.css. */
/* ────────────────────────────────────────────────────────────
   Lya Courtage — Design System: colors & type
   Source of truth: Figma "DS Courtage"
   ──────────────────────────────────────────────────────────── */

:root {
  /* ── Brand (white-labelable) primary ── */
  --lya-primary:            #1C345F;   /* Principal */
  --lya-primary-dark:       #061C44;   /* Principal sombre */
  --lya-primary-600:        #1C345F;   /* alias */
  --lya-primary-400:        #4855A5;
  --lya-primary-200:        #B4CBF5;   /* Principal clair */
  --lya-primary-50:         #EDF4FF;   /* Principal très clair */

  /* ── Brand secondary (white-labelable) ── */
  --lya-secondary:          #1C63A2;   /* Secondaire sombre */
  --lya-secondary-300:      #A8D3F9;   /* Secondaire */
  --lya-secondary-200:      #D4E7F7;   /* Secondaire clair */
  --lya-secondary-50:       #EDF7FF;   /* Secondaire très clair */

  /* Gradient used on dashboard hero */
  --lya-gradient-dashboard: linear-gradient(180deg, #1C345F 0%, #D4E7F7 100%); /* @kind color */

  /* ── Accent ── */
  --lya-accent:             #EC9A5F;

  /* ── Text / "Faux noir" + neutrals ── */
  --lya-ink:                #1B2A37;   /* Faux noir — titres + body */
  --lya-ink-2:              #181822;
  --lya-fg-1:               #637686;   /* Gris 1 sombre */
  --lya-fg-2:               #686F82;
  --lya-disable:            #B0C4D4;   /* Gris 2 — disable */
  --lya-border-strong:      #B0C4D4;
  --lya-border:             #E3EAF0;   /* Gris 5 — liserets */
  --lya-border-soft:        #E2E5EA;
  --lya-surface:            #FFFFFF;
  --lya-surface-page:       #F1F5F8;   /* Gris 3 — fond page / cta */
  --lya-surface-light:      #F7F9FB;   /* Gris 4 — fond clair */
  --lya-surface-1:          #FAFAFA;
  --lya-surface-2:          #F7F9FB;
  --lya-surface-3:          #F1F5F8;
  --lya-surface-4:          #F1F5F8;   /* app bg (aligné Figma) */
  --lya-surface-5:          #F7F9FB;
  --lya-muted-fg:           #4B4B4B;   /* labels / captions */
  --lya-muted-fg-2:         #8E8E8E;   /* "Style guide" eyebrow */
  --lya-footer-fg:          #D1D7D9;

  /* ── Système (system / semantic) ── */
  --lya-warning:            #EAB607;
  --lya-warning-bg:         #FBF4DA;
  --lya-success:            #468149;
  --lya-success-bg:         #DFF4D8;
  --lya-info:               #53A7CB;
  --lya-info-bg:            #DFF3FB;
  --lya-error:              #E96863;
  --lya-error-bg:           #FCE8E8;
  --lya-error-bg-strong:    #FFE4E3;
  --lya-error-bg-xlight:    #F9F2F2; /* Error bg pale */

  /* ── Tags (couleurs sombres = texte, claires = fond, -mid = intermédiaire cohérent) ── */
  --lya-tag-yellow:         #8C6C00;  --lya-tag-yellow-bg:   #FFF6D6;  --lya-tag-yellow-mid:  #C5B16B;
  --lya-tag-orange:         #A15B30;  --lya-tag-orange-bg:   #FFEDE2;  --lya-tag-orange-mid:  #D0A489;
  --lya-tag-red:            #B7423B;  --lya-tag-red-bg:      #FFE4E3;  --lya-tag-red-mid:     #DB938F;
  --lya-tag-pink:           #B63A9A;  --lya-tag-pink-bg:     #FFEBFA;  --lya-tag-pink-mid:    #DA92CA;
  --lya-tag-purple:         #735BC5;  --lya-tag-purple-bg:   #F1EDFC;  --lya-tag-purple-mid:  #B2A4E0;
  --lya-tag-blue:           #3863D9;  --lya-tag-blue-bg:     #E7EDFF;  --lya-tag-blue-mid:    #8FA8EC;
  --lya-tag-teal:           #006F9F;  --lya-tag-teal-bg:     #DAEBF3;  --lya-tag-teal-mid:    #6DADC9;
  --lya-tag-green:          #347F19;  --lya-tag-green-bg:    #E8F9E2;  --lya-tag-green-mid:   #8EBC7D;
  --lya-tag-grey:           #6C7075;  --lya-tag-grey-bg:     #F1F5FA;  --lya-tag-grey-mid:    #AEB2B7;
  /* alias rétro */
  --lya-tag-brown:          #A15B30;  --lya-tag-brown-bg:    #FFEDE2;  --lya-tag-brown-mid:   #D0A489;
  --lya-tag-magenta:        #B63A9A;  --lya-tag-magenta-bg:  #FFEBFA;  --lya-tag-magenta-mid: #DA92CA;
  --lya-tag-cyan:           #006F9F;  --lya-tag-cyan-bg:     #DAEBF3;  --lya-tag-cyan-mid:    #6DADC9;

  /* ── Elevation / shadow system ──────────────────────────────
     Règle : une SEULE ombre dans toute l'app (--lya-shadow-card).
     Alias sémantiques (modal/popper) pointent tous vers elle.
     Deux ombres "spéciales" hors règle :
       - shadow-ai : halo bleu pour highlight IA uniquement
       - shadow-focus : anneau de focus accessibilité
  */

  /* ── Rayon + border ── */

  /* ── Espacement — échelle figée ─────────────────────────────
     Valeurs autorisées : 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96
     Jamais de 5, 10, 18, 20, 40, 80…
  */

  /* Paddings sémantiques figés (cf. page Figma "Spacing") */

  /* Gaps sémantiques */

  /* Hauteurs de contrôle figées */

  /* ── Typography — Font families ── */
  --font-brand:      'Alkia', 'Quicksand', cursive;                     /* Logo + message de bienvenue uniquement */
  --font-ui:         'Poppins', system-ui, sans-serif;                  /* Police par défaut / body / UI */
  --font-card-title: 'Comfortaa', system-ui, sans-serif;                /* titres de cards */

  /* Type scale (depuis la page /Typographie Figma) */
  --t-brandtitle: 700 30px/36px var(--font-brand);
  --t-h1:         700 30px/36px var(--font-title);
  --t-h2:         700 22px/28px var(--font-title);
  --t-h3:         700 16px/22px var(--font-title);
  --t-h4:         700 12px/16px var(--font-title);
  --t-body:       400 14px/20px var(--font-ui);
  --t-body-bold:  500 14px/20px var(--font-ui);  /* Body emphasis — Figma : weight 500 (pas 700) */
  --t-body-14:    400 12px/16px var(--font-ui);
  --t-small:      400 12px/16px var(--font-ui);
  --t-small-bold: 500 12px/16px var(--font-ui);  /* Small emphasis — weight 500 */
  --t-medium-small:400 10px/12px var(--font-ui);
  --t-body-sm:    400 10px/12px var(--font-ui);
  --t-very-small: 500 9px/13px var(--font-ui);
  --t-body-xs:    500 9px/13px var(--font-ui);
  --t-display:    700 62px/1.5 var(--font-ui);   /* page-title hero */
  --t-section:    500 28px/36px var(--font-ui);  /* section headers on style guide */
  --t-eyebrow:    500 14px/22px var(--font-ui);
}

/* ── Semantic elements ── */
html, body { font: var(--t-body); color: var(--lya-ink); background: var(--lya-surface); }
body { margin: 0; -webkit-font-smoothing: antialiased; }

h1 { font: var(--t-h1); color: var(--lya-ink); margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font: var(--t-h2); color: var(--lya-ink-2); margin: 0 0 12px; }
h3 { font: var(--t-h3); color: var(--lya-ink-2); margin: 0 0 8px; }
h4 { font: var(--t-h4); color: var(--lya-ink);   margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
p  { font: var(--t-body); color: var(--lya-ink); margin: 0 0 12px; }
small, .t-small { font: var(--t-body-sm); color: var(--lya-fg-1); }
.eyebrow { font: var(--t-eyebrow); color: var(--lya-muted-fg-2); }
.display { font: var(--t-display); color: var(--lya-ink); letter-spacing: -.02em; }
.brandtitle { font: var(--t-brandtitle); color: var(--lya-primary); }

a { color: var(--lya-secondary); text-decoration: none; }
a:hover { color: var(--lya-primary); text-decoration: underline; }

hr { border: 0; border-top: 1px solid #E1E1E1; margin: 32px 0; }

/* tiny utility for the design-system cards */
.swatch { border-radius: 16px; width: 100%; aspect-ratio: 5/4; }
