@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/atkinson-hyperlegible-next-latin-400-normal.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: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/atkinson-hyperlegible-next-latin-700-normal.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;
}

html[data-rp-navigation],
body.ui-reperes {
    --rp-bg: #fcfbf7;
    --rp-text: #16241d;
    --rp-muted: #57655e;
    --rp-border: #76847c;
    --rp-action: #16834f;
    --rp-action-text: #ffffff;
    --rp-touch: #d24f2c;
    --rp-correct: #22613d;
    --rp-wrong: #a1242e;
    --rp-panel: #e6f4ea;
    --rp-panel-text: #12402a;
    --rp-accent-vert: #16834f;
    --rp-accent-bleu: #2463b0;
    --rp-accent-corail: #c2462b;
    --rp-accent-violet: #7046b0;
    --rp-unit: 4px;
    --rp-space-2: 8px;
    --rp-space-3: 12px;
    --rp-space-4: 16px;
    --rp-space-6: 24px;
    --rp-space-8: 32px;
    --rp-small: 0.875rem;
    --rp-command: 1rem;
    --rp-example: 1.125rem;
    --rp-article: 1.25rem;
    --rp-section: 1.5rem;
    --rp-title: 2rem;
    /* ui-unit cancels the root scale; headings alone stop growing at 160%. */
    --rp-heading-unit: calc(var(--ui-unit) * min(var(--text-scale, 1), 1.6));
    --rp-heading-leading: 1.15;
    --rp-ui-leading: 1.45;
    --rp-article-leading: 1.60;
    --rp-header-h: calc(max(56px, 3.5rem) + env(safe-area-inset-top, 0px));
    --rp-nav-h: calc(max(56px, 3.5rem) + env(safe-area-inset-bottom, 0px));
    --font-body: 'Atkinson Hyperlegible Next';
    --font-display: 'Atkinson Hyperlegible Next';
    --bg: var(--rp-bg);
    --surface: var(--rp-bg);
    --text: var(--rp-text);
    --text-muted: var(--rp-muted);
    --border: var(--rp-border);
    --primary: var(--rp-action);
    --primary-hover: var(--rp-action);
    --primary-light: var(--rp-bg);
    --accent: var(--rp-text);
    --correct: var(--rp-correct);
    --wrong: var(--rp-wrong);
    --radius: 0;
    --shadow: none;
    --flash-error-bg: var(--rp-bg);
    --flash-error-border: var(--rp-wrong);
    --flash-error-text: var(--rp-wrong);
    --flash-success-bg: var(--rp-bg);
    --flash-success-border: var(--rp-correct);
    --flash-success-text: var(--rp-correct);
    --flash-info-bg: var(--rp-bg);
    --flash-info-border: var(--rp-border);
    --flash-info-text: var(--rp-text);
}

body.ui-reperes {
    background: var(--rp-bg);
    color: var(--rp-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-synthesis: none;
    line-height: var(--rp-ui-leading);
    overflow-wrap: anywhere;
    padding: 0;
}

html[data-accent="vert"] body.ui-reperes {
    --rp-action: #16834f;
    --rp-touch: #d24f2c;
}
html[data-accent="bleu"] body.ui-reperes {
    --rp-action: #2463b0;
    --rp-touch: #d24f2c;
}
html[data-accent="corail"] body.ui-reperes {
    --rp-action: #c2462b;
    --rp-touch: #16834f;
}
html[data-accent="violet"] body.ui-reperes {
    --rp-action: #7046b0;
    --rp-touch: #d24f2c;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"])[data-rp-navigation],
    html:not([data-theme="light"]) body.ui-reperes {
        --rp-bg: #10201a;
        --rp-text: #eef5f0;
        --rp-muted: #b3c4ba;
        --rp-border: #6f8a7c;
        --rp-action: #5fd08f;
        --rp-action-text: #10201a;
        --rp-touch: #ff9a80;
        --rp-correct: #89d5a3;
        --rp-wrong: #ffadb1;
        --rp-panel: #183a2a;
        --rp-panel-text: #eef5f0;
        --rp-accent-vert: #5fd08f;
        --rp-accent-bleu: #7fb0f0;
        --rp-accent-corail: #ff9a80;
        --rp-accent-violet: #b9a0f0;
    }
    html:not([data-theme="light"])[data-accent="vert"] body.ui-reperes {
        --rp-action: #5fd08f;
        --rp-touch: #ff9a80;
    }
    html:not([data-theme="light"])[data-accent="bleu"] body.ui-reperes {
        --rp-action: #7fb0f0;
        --rp-touch: #ff9a80;
    }
    html:not([data-theme="light"])[data-accent="corail"] body.ui-reperes {
        --rp-action: #ff9a80;
        --rp-touch: #5fd08f;
    }
    html:not([data-theme="light"])[data-accent="violet"] body.ui-reperes {
        --rp-action: #b9a0f0;
        --rp-touch: #ff9a80;
    }
}
html[data-theme="dark"][data-rp-navigation],
html[data-theme="dark"] body.ui-reperes {
    --rp-bg: #10201a;
    --rp-text: #eef5f0;
    --rp-muted: #b3c4ba;
    --rp-border: #6f8a7c;
    --rp-action: #5fd08f;
    --rp-action-text: #10201a;
    --rp-touch: #ff9a80;
    --rp-correct: #89d5a3;
    --rp-wrong: #ffadb1;
    --rp-panel: #183a2a;
    --rp-panel-text: #eef5f0;
    --rp-accent-vert: #5fd08f;
    --rp-accent-bleu: #7fb0f0;
    --rp-accent-corail: #ff9a80;
    --rp-accent-violet: #b9a0f0;
}
html[data-theme="dark"][data-accent="vert"] body.ui-reperes {
    --rp-action: #5fd08f;
    --rp-touch: #ff9a80;
}
html[data-theme="dark"][data-accent="bleu"] body.ui-reperes {
    --rp-action: #7fb0f0;
    --rp-touch: #ff9a80;
}
html[data-theme="dark"][data-accent="corail"] body.ui-reperes {
    --rp-action: #ff9a80;
    --rp-touch: #5fd08f;
}
html[data-theme="dark"][data-accent="violet"] body.ui-reperes {
    --rp-action: #b9a0f0;
    --rp-touch: #ff9a80;
}

/* Static 700 serves commands formerly requesting 600; no synthesized weights. */
body.ui-reperes *,
body.ui-reperes *::before,
body.ui-reperes *::after {
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-family: var(--font-body) !important;
}
body.ui-reperes :is(.card, .s-card, .pricing-card, input, select, textarea, dialog, .badge, progress, .progress-bar) {
    background: var(--rp-bg);
    color: var(--rp-text);
    border-color: var(--rp-border);
}
body.ui-reperes :is(h1, h2, h3) {
    font-weight: 700;
    line-height: var(--rp-heading-leading);
}
body.ui-reperes :is(h1, h2) { overflow-wrap: normal; }
body.ui-reperes h1 { font-size: calc(2 * var(--rp-heading-unit)); }
body.ui-reperes h2 { font-size: calc(1.5 * var(--rp-heading-unit)); }
body.ui-reperes :is(a, .btn-outline) { color: var(--rp-text); }
body.ui-reperes :is(p, article, .prose) a { text-decoration: underline; }
body.ui-reperes :is(button, .btn, input, select, textarea) {
    min-height: 44px;
    font-size: var(--rp-command);
}
body.ui-reperes :is(button, .btn, label, th) { font-weight: 700; }
body.ui-reperes :is(.btn-primary, .rp-primary),
body.ui-reperes :is(.btn-primary, .rp-primary):hover {
    min-height: 52px;
    background: var(--rp-action) !important;
    color: var(--rp-action-text) !important;
    border: 2px solid var(--rp-action);
    font-weight: 700;
}
body.ui-reperes :is(.btn-outline, .btn-secondary, .rp-secondary),
body.ui-reperes :is(.btn-outline, .btn-secondary, .rp-secondary):hover {
    background: transparent !important;
    color: var(--rp-text);
    border: 0;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
body.ui-reperes :focus-visible {
    outline: 3px solid var(--rp-text) !important;
    outline-offset: 3px;
}
body.ui-reperes :is(.main-content, .main-public) {
    margin: 0 auto;
    width: 100%;
    max-width: none;
    padding: calc(var(--rp-header-h) + 24px)
        max(calc(1 * var(--ui-unit)), env(safe-area-inset-right, 0px))
        calc(var(--rp-nav-h) + 24px)
        max(calc(1 * var(--ui-unit)), env(safe-area-inset-left, 0px));
}
body.ui-reperes:has(.main-public) { --rp-nav-h: 0px; }
body.ui-reperes .rp-header,
body.ui-reperes .rp-nav {
    position: fixed;
    inset-inline: 0;
    z-index: 200;
}
body.ui-reperes .rp-header {
    top: 0;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--rp-bg);
    color: var(--rp-text);
}
body.ui-reperes .rp-shell-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: max(56px, 3.5rem);
    margin-inline: auto;
    padding-inline: max(calc(1 * var(--ui-unit)), env(safe-area-inset-left, 0px)) max(calc(1 * var(--ui-unit)), env(safe-area-inset-right, 0px));
    gap: 8px;
}
body.ui-reperes .rp-header .rp-shell-inner {
    flex-wrap: wrap;
    min-width: 0;
}
body.ui-reperes .rp-header a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 0;
}
body.ui-reperes .rp-brand span { min-width: 0; }
body.ui-reperes .rp-brand {
    gap: 8px;
    font-size: var(--rp-section);
    font-weight: 700;
    line-height: var(--rp-heading-leading);
    text-decoration: none;
}
body.ui-reperes .rp-brand img { width: 28px; height: 28px; flex-shrink: 0; opacity: 1; }
body.ui-reperes .rp-picto {
    display: block;
    width: 96px;
    height: 96px;
    color: var(--rp-text);
    margin: 0 0 16px;
}
body.ui-reperes .rp-picto svg {
    display: block;
    width: 100%;
    height: 100%;
}
body.ui-reperes .rp-login { text-decoration: underline; }
body.ui-reperes .rp-nav {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--rp-border);
    background: var(--rp-panel);
    color: var(--rp-panel-text);
}
body.ui-reperes .rp-nav .rp-shell-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
}
body.ui-reperes .rp-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: max(56px, 3.5rem);
    min-width: 44px;
    padding: 8px 4px 4px;
    border-bottom: 4px solid transparent;
    color: var(--rp-panel-text);
    font-size: calc(0.875 * var(--ui-unit) * min(var(--text-scale, 1), 1.3));
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}
body.ui-reperes .rp-nav a[aria-current="page"] {
    border-bottom-color: var(--rp-touch);
    font-weight: 700;
}
body.ui-reperes .rp-nav :focus-visible {
    outline-color: var(--rp-action) !important;
    outline-offset: -3px;
}
@media (min-width: 900px) {
    body.ui-reperes :is(.main-content, .main-public, .rp-shell-inner) { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
    body.ui-reperes *, body.ui-reperes *::before, body.ui-reperes *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
