/* ══════════════════════════════════════════════════════════════════════════
   BATICLIM — styles des pages annexes (404.html, confidentialite.html, mentions-legales.html)
   S'ajoute APRÈS css/style.css : il réutilise ses couleurs, polices et boutons.
   Ne modifie aucun style du site principal.
   ══════════════════════════════════════════════════════════════════════════ */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page__top { padding: 1.1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--maxw); width: 100%; margin-inline: auto; }
.page__top .brand { min-height: 44px; }
.page__back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgb(245 248 254 / .3); color: var(--paper); font-weight: 600; font-size: .95rem; transition: background-color .3s var(--ease); }
.page__back:hover, .page__back:focus-visible { background: rgb(245 248 254 / .12); }
.page__foot { padding: 1.4rem var(--gutter) 1.8rem; text-align: center; font-size: .9rem; color: var(--fg-muted, #aebddd); }
.page__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ── 404 ── */
.nf { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 3rem var(--gutter) 4rem; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.nf::before { content: ''; position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; background: radial-gradient(60% 60% at 50% 0%, rgb(92 200 255 / .18), transparent 70%); }
.nf__code { font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .85; font-size: clamp(6rem, 26vw, 15rem); color: transparent; -webkit-text-stroke: 2px var(--accent); }
.nf__title { font-size: clamp(1.7rem, 4.5vw, 3rem); }
.nf__text { max-width: 46ch; color: var(--fg-muted); margin: 0; }
.nf__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .6rem; }

/* ── Pages légales ── */
.doc { flex: 1; padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 6rem); }
.legal-doc { max-width: 760px; margin-inline: auto; display: grid; gap: .9rem; --focus: var(--accent-deep); }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.legal-doc h2 { font-size: 1.15rem; margin-top: 1.1rem; }
.legal-doc p, .legal-doc dd, .legal-doc dt { font-size: 1rem; margin: 0; }
.legal-doc dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 0; }
.legal-doc dt { color: var(--mineral-600); } .legal-doc dd { margin: 0; }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc__warn { max-width: 760px; margin: 0 auto 1.4rem; }
@media (max-width: 520px) { .legal-doc dl { grid-template-columns: 1fr; gap: .1rem; } .legal-doc dd { margin-bottom: .6rem; } }
@media (prefers-reduced-motion: reduce) { .page__back { transition: none; } }
