/* Les pages légales (mentions, CGU, CGV, confidentialité, sous-traitance,
   rétractation) : statiques, lisibles sans être connecté, sans aucune
   ressource tierce (polices servies par l'application). */

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('/fonts/atkinson-hyperlegible-next-latin-wght-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-display: swap;
    font-weight: 200 800;
    src: url('/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Lexend';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/lexend-latin-wght-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: 'Lexend';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/lexend-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

/* Les couleurs de l'application (css/variables.css), recopiées : ces pages
   ne chargent rien d'autre qu'elles-mêmes. */
:root {
    --bg: #faf7f1;
    --bg-soft: #f2ede3;
    --text: #1b2550;
    --muted: #535d86;
    --border: #e3ddd0;
    --accent: #2a56d4;
    --todo-bg: #fdecd2;
    --todo-text: #4a3b00;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #131829;
        --bg-soft: #1b2238;
        --text: #edf0fa;
        --muted: #b3bbd6;
        --border: #2c3552;
        --accent: #9db8ff;
        --todo-bg: #5a4a00;
        --todo-text: #fff4c2;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

.lg-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.lg-header-inner,
main,
.lg-footer-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.lg-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.lg-brand {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

nav.lg-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 14px;
}

a { color: var(--accent); }
nav.lg-nav a { text-decoration: none; }
nav.lg-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; }

main { padding-top: 28px; padding-bottom: 48px; }

h1, h2, h3, .lg-brand { font-family: 'Lexend', 'Atkinson Hyperlegible Next', sans-serif; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--border); }
h3 { font-size: 17px; margin: 22px 0 6px; }

.lg-version { color: var(--muted); margin: 0 0 20px; }

.lg-draft {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--todo-bg);
    color: var(--todo-text);
    margin: 0 0 24px;
}

mark.a-confirmer {
    background: var(--todo-bg);
    color: var(--todo-text);
    padding: 0 3px;
    border-radius: 3px;
}

.lg-toc {
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 0 8px;
}

.lg-toc ol { margin: 6px 0; padding-left: 0; list-style: none; }
.lg-toc li { margin: 2px 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 15px;
    display: block;
    overflow-x: auto;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    border: 1px solid var(--border);
}

th { background: var(--bg-soft); }

.lg-form {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    background: var(--bg-soft);
}

.lg-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.lg-footer-inner { padding-top: 18px; padding-bottom: 28px; }

@media print {
    .lg-header, .lg-footer, .lg-draft { display: none; }
    mark.a-confirmer { background: none; }
}
