/*
 * Tokens de style : valeurs de l'application, remplacées par /theme.css (profil d'instance, branding.tokens).
 * FICHIER GÉNÉRÉ depuis App\Domain\Design\TokenCatalogue : ne pas le modifier, lancer php artisan design:tokens.
 * Tailles du texte et espacements : voir fluid.css (généré, méthode Utopia).
 * Contraste WCAG AA : paires vérifiées par App\Domain\Instance\Theme::CONTRAST_PAIRS.
 */
@layer tokens, base, components, utilities;

@layer tokens {
  :root {
    /* Marque : couleurs principale et d'accent du profil (branding.primary_color, accent_color) et leurs dérivées */
    --color-primary: #1f4e79;
    --color-primary-hover: #1b4569;
    --color-on-primary: #ffffff;
    --color-primary-text: #1f4e79;
    --color-accent: #3a3a3a;
    --color-accent-text: #3a3a3a;

    /* Neutres */
    --color-bg: #ffffff;
    --color-surface: #f6f6f7;
    --color-text: #333333;
    --color-text-muted: #5c5f66;
    --color-border: #d4d4d5;
    --color-border-strong: #85878c;
    --color-button-bg: #e0e1e2;
    --color-button-bg-hover: #cacbcd;
    --color-backdrop: rgba(0, 0, 0, 0.45);

    /* Pied de page sombre (comme le legacy) : logos des partenaires en version claire */
    --color-footer-bg: #0c0f1a;
    --color-on-footer: #ffffff;
    --color-on-footer-muted: #b9bdc7;

    /* États (texte sur fond teinté) */
    --color-success-text: #1d6b3a;
    --color-success-bg: #e8f5ec;
    --color-success-border: #29b765;
    --color-warning-text: #7a4f00;
    --color-warning-bg: #fff4e0;
    --color-warning-border: #e0a100;
    --color-danger-text: #a4161a;
    --color-danger-bg: #fdecec;
    --color-danger-border: #d93025;
    --color-info-text: #1a5490;
    --color-info-bg: #e8f1fb;
    --color-info-border: #4a90d9;
    --color-neutral-text: #4a4d52;
    --color-neutral-bg: #eeeff1;

    /* Focus : couleur de marque lisible sur blanc */
    --color-focus: var(--color-primary-text);

    /* Typographie (polices système : pas de police téléchargée) */
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --line-height: 1.5;
    --line-height-tight: 1.25;
    --font-weight-bold: 700;

    /* Formes */
    --radius: 0.3rem;
    --radius-lg: 0.5rem;
    --radius-pill: 999px;
    --border-width: 1px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.22);

    /* Mise en page */
    --container-max: 72rem;
    --container-narrow: 40rem;
    --header-logo-height: 3.5rem;
    --footer-logo-height: 3rem;
    --footer-logo-max-width: 11rem;
  }
}
