/**
 * Design system front APABA — tokens partagés (préfixe --apc-, APaba Carte/Commun).
 * Auto-suffisant : consomme les `--apaba-*` du thème agrikole-child (tokens.css,
 * SOURCE UNIQUE DE VÉRITÉ) avec repli si le thème change ou n'est pas chargé.
 * Cf docs/09_DESIGN_SYSTEM_FRONT.md.
 *
 * ⚠️ Préfixe --apc- obligatoire : redéclarer des noms --apaba-* ici masquerait les
 * globaux du thème dans tout le sous-arbre (piège déjà présent dans formations.css).
 * Toutes les tailles en px (root agrikole à 62.5%).
 */

:root {
    /* --- Structurels : repli sur le thème --- */
    --apc-radius:      var(--apaba-radius,      10px);
    --apc-radius-lg:   var(--apaba-radius-lg,   16px);
    --apc-radius-pill: var(--apaba-radius-pill, 999px);
    --apc-shadow:      var(--apaba-shadow,      0 3px 12px rgba(43, 49, 40, .10));
    --apc-shadow-lg:   var(--apaba-shadow-lg,   0 14px 34px rgba(28, 33, 25, .20));
    --apc-space-2: 8px;
    --apc-space-3: 12px;
    --apc-space-4: 16px;
    --apc-space-5: 24px;

    /* --- Marque --- */
    --apc-brand:       #2e7d32;
    --apc-brand-dark:  #1b5e20;
    --apc-brand-tint:  #e8f1e9;

    /* --- Palette de filière : 5 familles + 1 neutre (validée ΔE OKLab + CVD Machado 2009,
       cf docs/09_DESIGN_SYSTEM_FRONT.md §Palette). Chaque famille porte sa teinte plein
       (marqueur/médaillon) et sa teinte "tint" (fond de pastille/pill). --- */
    --apc-fil-vegetal:       #2c7a3f;
    --apc-fil-vegetal-tint:  #e7f0e9;
    --apc-fil-cereale:       #b0851a;
    --apc-fil-cereale-tint:  #f6efdc;
    --apc-fil-viande:        #c4327a;
    --apc-fil-viande-tint:   #f9e6f0;
    --apc-fil-cremerie:      #3e8fd0;
    --apc-fil-cremerie-tint: #e4eff9;
    --apc-fil-cave:          #563f8c;
    --apc-fil-cave-tint:     #ebe7f4;
    --apc-fil-autre:         #6e6a60;
    --apc-fil-autre-tint:    #edece8;

    /* --- Surfaces carte (objet clair par nature) --- */
    --apc-map-bg:  #eeeee9;
    --apc-surface: #ffffff;
    --apc-ink:     #22271f;
    --apc-ink-2:   #454c41;
    --apc-muted:   #6e756a;
    --apc-line:    #e4e7df;
}
