/* Shared base stylesheet. Brand colours are set in :root by each site. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #55524b;
  --border: #dcd8cf;
  --accent-soft: #eef2fb;
  --warn-bg: #fff6df;
  --warn-border: #c99a1a;
  --radius: 10px;
  --maxw: 46rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --surface: #1e1e1c;
    --text: #edebe6;
    --muted: #b7b3aa;
    --border: #3a3935;
    --accent-soft: #1f2636;
    --warn-bg: #2e2716;
    --warn-border: #b8901f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { font-weight: 750; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.brand span { color: var(--link); }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: .2rem 0; display: inline-block; }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--link); }
.site-header nav a:hover { color: var(--text); }
.lang { font-size: .9rem; border: 1px solid var(--border); border-radius: 999px; padding: .1rem .7rem; text-decoration: none; }
.banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-border); font-size: .92rem; padding: .55rem 16px; text-align: center; }

main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: .4rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .3rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 650; color: var(--muted); margin: 0; }
small, .small { font-size: .88rem; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; padding: .75rem 1.2rem; border-radius: var(--radius); line-height: 1.3; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--link); border: 1.5px solid var(--link); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0; }
.grid .card { margin: 0; }
.note { background: var(--warn-bg); border-left: 4px solid var(--warn-border); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; }
.note > :last-child { margin-bottom: 0; }
.soon { background: var(--accent-soft); border: 1px dashed var(--link); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.soon > :last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 650; border: 1px solid var(--border); border-radius: 999px; padding: 0 .55rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--accent-soft); }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; padding: .6rem .7rem; font-weight: 650; }

details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: .6rem 1rem; margin: .6rem 0; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .5rem; }

.list-links { list-style: none; padding: 0; }
.list-links li { border-bottom: 1px solid var(--border); padding: .55rem 0; margin: 0; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: .45rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--muted); padding: 1.2rem 0 2rem; }
.site-footer p { margin: .3rem 0; }

@media print {
  .site-header, .site-footer, .banner, .skip, .cta { display: none; }
  body { background: #fff; color: #000; }
}
/* brand */
:root { --accent: #b3261e; --link: #a3221b; }
@media (prefers-color-scheme: dark) { :root { --accent: #c62f26; --link: #ff9b8f; } }

/* Cross-site block « Autres outils READ FRANCE » (same markup on every outils.vread.fr site) */
.rf-network { margin: .3rem 0 .9rem; }
.rf-network-title { margin: 0 0 .3rem; font-weight: 600; color: var(--text, inherit); }
.rf-network ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.rf-network li { margin: 0; }
.rf-network a { display: inline-block; padding: .2rem 0; }
