/* Feuille de style des pages secondaires : mentions légales, confidentialité, CGU, 404 */
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/work-sans-latin.woff2') format('woff2'); }

:root, [data-theme="light"] {
  --bg: #F2E9DC; --surface: #F7F0E6; --soft: #EAE0D1; --border: #CDBEA9;
  --text: #33291F; --muted: #584630; --faint: #604D35;
  --ocre: #D2B48C; --ocre-hover: #C19B6B; --ocre-ink: #7a5a35; --accent: #F47B20;
}
[data-theme="dark"] {
  --bg: #17130e; --surface: #1e1912; --soft: #2e2519; --border: #4a3c2a;
  --text: #f1e9dc; --muted: #c9b89c; --faint: #9c8a6f;
  --ocre: #D2B48C; --ocre-hover: #ddc4a2; --ocre-ink: #D2B48C; --accent: #ff9a4d;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  font-family: 'Work Sans', 'Helvetica Neue', Arial, sans-serif; font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.65; color: var(--text); background: var(--bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-color: var(--ocre); text-underline-offset: 3px; }
a:hover { color: var(--ocre-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #33291F; color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 50; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: 1.25rem; }
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 90%, transparent); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; max-width: 1200px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 40px; object-fit: contain; }
.brand strong { display: block; font-size: .95rem; line-height: 1.2; }
.brand small { display: block; font-size: .78rem; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .7rem 1.2rem; border-radius: 8px; font-weight: 600; white-space: nowrap; font-size: .92rem; text-decoration: none;
  background: var(--ocre); color: #33291F; border: 1px solid var(--ocre);
}
.btn:hover { background: var(--ocre-hover); color: #211A13; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--soft); color: var(--text); }

main { flex: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ocre-ink); }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; margin: .5rem 0 1rem; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.updated { font-size: .85rem; color: var(--faint); margin-top: .75rem; }
.toc { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--soft); border-radius: 12px; border: 1px solid var(--border); }
.toc p { font-weight: 600; margin-bottom: .5rem; }
.toc ol { padding-left: 1.2rem; display: grid; gap: .25rem; font-size: .95rem; }
.legal section { padding-top: 2rem; }
.legal h2 { font-size: clamp(1.2rem, 1rem + .8vw, 1.45rem); margin-bottom: .75rem; letter-spacing: -.01em; }
.legal h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.legal p, .legal li { color: var(--muted); max-width: 72ch; }
.legal p + p { margin-top: .75rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin-top: .5rem; }
.legal strong { color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-top: .75rem; }
.card dl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: .4rem 1.25rem; font-size: .95rem; }
.card dt { font-weight: 600; color: var(--text); }
.card dd { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 560px) { .card dl { grid-template-columns: 1fr; } .card dd { margin-bottom: .5rem; } }
.table-wrap { overflow-x: auto; margin-top: .75rem; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
th { background: var(--soft); color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 1.75rem; font-size: .85rem; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; max-width: 1200px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a, .site-footer button { color: var(--faint); text-decoration: none; font-size: .85rem; padding: 0; }
.site-footer a:hover, .site-footer button:hover { color: var(--ocre-ink); text-decoration: underline; }

/* Bandeau cookies (identique à la page d'accueil) */
.cc-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 500; display: none; max-width: 980px; margin-inline: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-top: 4px solid var(--ocre); border-radius: 12px; box-shadow: 0 16px 40px rgba(40,30,20,.18); }
.cc-banner.open { display: block; }
.cc-inner { display: grid; gap: 1rem; padding: 1.25rem 1.5rem; }
@media (min-width: 860px) { .cc-inner { grid-template-columns: 1fr auto; align-items: end; } }
.cc-title { font-weight: 600; margin-bottom: .25rem; }
.cc-text p { font-size: .85rem; color: var(--muted); }
.cc-switch { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .85rem; font-weight: 500; cursor: pointer; }
.cc-switch input { width: 18px; height: 18px; accent-color: #33291F; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-btn { min-height: 44px; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); font-size: .85rem; font-weight: 600; }
.cc-btn:hover { background: var(--soft); }
.cc-btn-strong { background: var(--ocre); border-color: var(--ocre); color: #33291F; }
.cc-btn-strong:hover { background: var(--ocre-hover); }
@media (max-width: 520px) { .cc-actions .cc-btn { flex: 1 1 100%; } }

/* Page 404 */
.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.notfound .code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 700; line-height: 1; color: var(--ocre); letter-spacing: -.04em; }
.notfound .links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .5rem; }
.notfound ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; margin-top: 1.5rem; font-size: .95rem; }
.a-completer{background:#fbe2cd;color:#7a3a0c;padding:0 .35rem;border-radius:4px;font-weight:600;font-size:.85em}
