/* Jetons de design « frais & gourmand » : couleurs, rayons, ombres, espacements, police. */
@font-face {
    font-family: "Nunito";
    src: url("../fonts/nunito-latin-var-q1S9nCV.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;

    --bg: #FBF7F0;
    --surface: #FFFFFF;
    --surface-2: #F3EDE2;
    --text: #2D3A2E;
    --muted: #5F6C60;
    --line: #E8E0D2;
    --primary: #437A3F;
    --primary-text: #3C7038;
    --primary-soft: #E3F0DF;
    --on-primary: #FFFFFF;
    --peach: #F4A261;
    --on-peach: #3A2410;
    --danger: #D1495B;
    --danger-text: #B3283B;
    --danger-soft: #FBE3E5;
    --warn: #E07A1F;
    --warn-text: #9A4E08;
    --warn-soft: #FDEBD8;
    --sun: #C99A06;
    --sun-text: #7A5C00;
    --sun-soft: #FBF2CF;
    --frost: #3D7EA6;
    --frost-text: #2D6384;
    --frost-soft: #E1EFF8;

    --radius: 1.1rem;
    --radius-sm: .7rem;
    --radius-pill: 999px;
    --shadow: 0 1px 2px rgb(45 58 46 / .06), 0 4px 14px rgb(45 58 46 / .07);
    --shadow-up: 0 -2px 18px rgb(45 58 46 / .14);

    --s1: .25rem;
    --s2: .5rem;
    --s3: .75rem;
    --s4: 1rem;
    --s5: 1.5rem;
    --s6: 2rem;
    --nav-height: 4.25rem;

    --font: "Nunito", ui-rounded, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1C211D;
        --surface: #262D27;
        --surface-2: #303830;
        --text: #EEF2EA;
        --muted: #A9B5A9;
        --line: #3A433B;
        --primary: #7DB878;
        --primary-text: #7DB878;
        --primary-soft: #2F4630;
        --on-primary: #10200F;
        --on-peach: #3A2410;
        --danger: #F07B8A;
        --danger-text: #F07B8A;
        --danger-soft: #4A2A2E;
        --warn: #F2A65A;
        --warn-text: #F2A65A;
        --warn-soft: #4A3622;
        --sun: #E9C46A;
        --sun-text: #E9C46A;
        --sun-soft: #463D1E;
        --frost: #8CC3E6;
        --frost-text: #8CC3E6;
        --frost-soft: #22384A;
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 14px rgb(0 0 0 / .25);
        --shadow-up: 0 -2px 18px rgb(0 0 0 / .5);
    }
}
