/* Polices auto-hébergées (voir test/assets/fonts/) — même raisonnement
   que dans style.css : pas de requête vers un domaine tiers pour le texte.
   Dupliqué ici plutôt qu'importé depuis style.css pour que cette feuille
   reste autonome (pas de @import, qui serait bloquant). */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-300-latin-ext.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: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-300-latin.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: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400-latin-ext.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: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-400-latin.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: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-700-latin-ext.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: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-700-latin.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: 'Montserrat';
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url('../fonts/montserrat-500to900-latin-ext.woff2') format('woff2-variations');
    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: 'Montserrat';
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url('../fonts/montserrat-500to900-latin.woff2') format('woff2-variations');
    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;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0f172a;
    --ink-soft: #5b6577;
    --cream: #faf7f2;
    --orange: #e65c00;
    --orange-light: #ff8a3d;
}

html { overflow-x: clip; }

body {
    background: var(--cream);
    color: var(--ink-soft);
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

header { padding: 30px 28px; }
header a { display: flex; align-items: center; gap: 10px; text-decoration: none; width: fit-content; }
header img { height: 30px; width: auto; }
header span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--navy); }

main { flex: 1; max-width: 760px; margin: 0 auto; padding: 20px 28px 80px; width: 100%; }

.back-link { display: inline-block; margin-bottom: 30px; color: var(--orange); font-size: 14px; text-decoration: none; font-family: 'Lato', sans-serif; }
.back-link:hover { text-decoration: underline; }

h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 32px; color: var(--navy); margin-bottom: 10px; }
.updated { font-size: 13px; color: #9aa4b8; margin-bottom: 28px; }

.notice { background: rgba(230, 92, 0, 0.06); border: 1px solid rgba(230, 92, 0, 0.2); border-radius: 14px; padding: 18px 22px; margin-bottom: 34px; font-size: 13.5px; line-height: 1.6; color: var(--navy); }
.notice strong { color: var(--orange); }

/* Page 404 : contenu centré verticalement, gros numéro décoratif. */
.error-page main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(72px, 14vw, 140px);
    line-height: 1;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-page h1 { margin-top: 6px; }
.error-page p { max-width: 420px; margin: 0 auto 30px; }
.btn-home {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
}
.btn-home:hover { transform: translateY(-2px); }

h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); margin: 34px 0 12px; }
h2:first-of-type { margin-top: 0; }

p { line-height: 1.75; margin-bottom: 14px; font-size: 15px; }
ul { margin: 0 0 14px 20px; line-height: 1.8; font-size: 15px; }
strong { color: var(--navy); }
a.link { color: var(--orange); }

footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 32px 28px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
footer a:hover { color: var(--orange-light); }
footer p { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }
