/*
 * VIOLET — un menu en aplat violet, des cartes posées sur un fond très clair — ou très sombre —,
 * sans contour, et des pastilles de couleur franche pour les chiffres clés. Police Poppins.
 *
 * Le thème a ses deux modes : chaque alias y porte sa valeur claire et sa valeur sombre, et le
 * mode choisi décide laquelle s'affiche. Il ne redéfinit que des alias, et les polices qu'il
 * emploie ; aucun composant n'est repris ici.
 */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400-heQdAz3.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-500-AuPgurU.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600-RV1hfMj.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700-5ePuYxR.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Les chiffres de Poppins, chacun sur la même largeur : des nombres posés l'un sous l'autre
   s'alignent chiffre à chiffre. Déclarée pour les seuls chiffres et nommée en tête de la police
   du thème, cette famille remplace les chiffres de Poppins et lui laisse tout le reste. Ses
   fichiers sont produits par `tools/poppins_figures.py`, depuis les graisses ci-dessus. */
@font-face {
    font-family: "Poppins Figures";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-figures-400-j2n1m2s.woff2") format("woff2");
    unicode-range: U+0030-0039;
}
@font-face {
    font-family: "Poppins Figures";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-figures-500-PEhUvhc.woff2") format("woff2");
    unicode-range: U+0030-0039;
}
@font-face {
    font-family: "Poppins Figures";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-figures-600-fwllO_u.woff2") format("woff2");
    unicode-range: U+0030-0039;
}
@font-face {
    font-family: "Poppins Figures";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-figures-700-8opt21E.woff2") format("woff2");
    unicode-range: U+0030-0039;
}

[data-theme="violet"] {
    --app-font: "Poppins Figures", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --app-weight-medium: 500;
    --app-weight-semibold: 600;
    --app-weight-bold: 600;
    --app-weight-heavy: 700;
    --app-radius: 10px;
    --app-radius-ui: 8px;

    --app-bg: light-dark(#f3f4f9, #121020);
    --app-surface: light-dark(#ffffff, #1c1930);
    --app-raised: light-dark(#f4f5f9, #24203b);
    --app-hover: light-dark(#f1edfd, #2b2646);

    --app-ink: light-dark(#262a3b, #e8e6f3);
    --app-ink-soft: light-dark(#4b5068, #c9c5dd);
    --app-ink-muted: light-dark(#5f6480, #a9a4c4);
    --app-ink-inverse: light-dark(#ffffff, #121020);

    --app-line: light-dark(#e6e8f0, #2e2948);
    --app-line-strong: light-dark(#d5d8e4, #3d3760);
    --app-line-control: light-dark(#858aa1, #7d77a0);

    --app-neutral: light-dark(#5f6480, #a9a4c4);
    --app-neutral-hover: light-dark(#4b5068, #c9c5dd);
    --app-neutral-soft: light-dark(#f4f5f9, #24203b);
    --app-neutral-ink: light-dark(#4b5068, #c9c5dd);
    --app-on-neutral: light-dark(#ffffff, #121020);

    --app-accent: light-dark(#5b2ee6, #a48bff);
    --app-accent-hover: light-dark(#4a1fd0, #bfaeff);
    --app-accent-soft: light-dark(#efe9fe, #2a2150);
    --app-accent-ink: light-dark(#3d17a8, #e2d9ff);
    --app-on-accent: light-dark(#ffffff, #121020);

    --app-success: light-dark(#067a46, #34c98a);
    --app-success-hover: light-dark(#05603a, #5fd8a3);
    --app-success-soft: light-dark(#e3f8ee, #0f2e22);
    --app-success-ink: light-dark(#05603a, #b6f0d4);
    --app-on-success: light-dark(#ffffff, #121020);
    --app-warning: light-dark(#9a5200, #f0a63c);
    --app-warning-hover: light-dark(#7c4100, #f6bd68);
    --app-warning-soft: light-dark(#fff1dc, #3a2a0e);
    --app-warning-ink: light-dark(#6b3a00, #ffdca8);
    --app-on-warning: light-dark(#ffffff, #121020);
    --app-danger: light-dark(#c8261b, #ff7a6e);
    --app-danger-hover: light-dark(#a51e15, #ff9b91);
    --app-danger-soft: light-dark(#fdeceb, #3d1714);
    --app-danger-ink: light-dark(#8f1a12, #ffc9c3);
    --app-on-danger: light-dark(#ffffff, #121020);

    --app-info: light-dark(#1d5fd1, #6ea8ff);
    --app-info-hover: light-dark(#164bab, #93bfff);
    --app-info-soft: light-dark(#e6efff, #13254a);
    --app-info-ink: light-dark(#123c8a, #cfe0ff);
    --app-on-info: light-dark(#ffffff, #121020);

    /* Les pastilles : vert, mauve, orange, violet, bleu canard, framboise. */
    --app-hue-1: light-dark(#0b7f46, #4cd08a);
    --app-on-hue-1: light-dark(#ffffff, #121020);
    --app-hue-2: light-dark(#8b3fd9, #c08bff);
    --app-on-hue-2: light-dark(#ffffff, #121020);
    --app-hue-3: light-dark(#c2410c, #ff9a57);
    --app-on-hue-3: light-dark(#ffffff, #121020);
    --app-hue-4: light-dark(#5b2ee6, #a48bff);
    --app-on-hue-4: light-dark(#ffffff, #121020);
    --app-hue-5: light-dark(#0e7490, #4cc9e6);
    --app-on-hue-5: light-dark(#ffffff, #121020);
    --app-hue-6: light-dark(#c0267a, #ff7ab8);
    --app-on-hue-6: light-dark(#ffffff, #121020);

    /* Le menu est un aplat violet, plus profond en sombre ; la page en cours s'y marque d'un violet plus soutenu. */
    --app-sidebar-bg: light-dark(#5b2ee6, #2b1d72);
    --app-sidebar-ink: light-dark(#e9e3fe, #d9d0ff);
    --app-sidebar-ink-strong: #ffffff;
    --app-sidebar-ink-muted: light-dark(#dcd3fd, #a99ee0);
    --app-sidebar-hover: light-dark(#6a42ea, #382890);
    --app-sidebar-current: light-dark(#4318c4, #5b2ee6);
    --app-sidebar-current-ink: #ffffff;
    --app-sidebar-line: light-dark(#7652ec, #3a2c85);

    /* Les blocs se détachent du fond par leur teinte, et une ombre à peine marquée. */
    --app-card-line: transparent;
    --app-card-shadow: 0 1px 2px light-dark(rgb(38 42 59 / .04), rgb(0 0 0 / .3)), 0 4px 16px light-dark(rgb(38 42 59 / .04), rgb(0 0 0 / .25));
    --app-shadow-sm: 0 1px 2px light-dark(rgb(38 42 59 / .06), rgb(0 0 0 / .4));
}
