/* Pages outils chiffrons.fr — généré par scripts/outils/gabarit.mjs */
:root {
  --bg: #fafaf9; --surface: #fff; --fg: #0c0a09; --muted: #52525b;
  --border: #e4e4e7; --accent: #1e40af; --accent-doux: #eef2ff;
  --positif: #15803d; --negatif: #b91c1c; --alerte: #b45309;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg);
  font-family:'Geist',system-ui,sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family:'Geist Mono',ui-monospace,monospace; font-variant-numeric: tabular-nums; }

.site-header { border-bottom:1px solid var(--border); padding:1rem 1.5rem; background:var(--surface); }
.site-header nav { max-width:900px; margin:0 auto; display:flex; gap:1.25rem; align-items:center;
  font-family:'Geist Mono',monospace; font-size:.8rem; text-transform:uppercase;
  letter-spacing:.03em; flex-wrap:wrap; }
.site-header nav a { color: var(--muted); }
.site-header nav a.brand { color: var(--fg); font-weight:600; margin-right:auto; }
.site-header nav a[aria-current] { color: var(--fg); }

main { max-width:900px; margin:0 auto; padding:2rem 1.5rem 4rem; }
.fil { font-size:.8rem; color:var(--muted); margin:0 0 1rem; }
.fil a { color: var(--muted); }
h1 { font-size:clamp(1.6rem,3.6vw,2.25rem); line-height:1.2; margin:0 0 1rem; letter-spacing:-.02em; }
h2 { font-size:1.25rem; margin:2.5rem 0 .75rem; }
h3 { font-size:1rem; margin:1.5rem 0 .5rem; }
.chapo { font-size:1.1rem; color:var(--muted); margin:0 0 1.5rem; }

/* Le bloc réponse : ce que les moteurs et les assistants extraient. */
.reponse { background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--accent);
  border-radius:.5rem; padding:1.1rem 1.25rem; margin:0 0 1.5rem; }
.reponse .chiffre { font-family:'Geist Mono',monospace; font-size:clamp(1.6rem,4vw,2.1rem);
  font-weight:700; line-height:1.1; display:block; margin-bottom:.35rem; }
.reponse p { margin:0; }

.encadre { background:var(--surface); border:1px solid var(--border); border-radius:.5rem;
  padding:1rem 1.25rem; margin:1.25rem 0; }
.encadre.alerte { border-left:4px solid var(--alerte); }
.encadre.info { border-left:4px solid var(--accent); }

table { width:100%; border-collapse:collapse; font-size:.9rem; margin:1rem 0; }
.tableau { overflow-x:auto; }
th, td { text-align:left; padding:.5rem .6rem; border-bottom:1px solid var(--border); vertical-align:top; }
th { font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:600; }
td.num, th.num { text-align:right; font-family:'Geist Mono',monospace; font-variant-numeric:tabular-nums; white-space:nowrap; }

.cartes { display:grid; gap:.75rem; margin:1rem 0; }
@media (min-width:40rem){ .cartes { grid-template-columns:1fr 1fr; } }
.carte { border:1px solid var(--border); background:var(--surface); border-radius:.5rem; padding:.9rem 1rem; }
.carte a { font-weight:600; }
.carte p { margin:.25rem 0 0; font-size:.88rem; color:var(--muted); }
.carte .type { font-family:'Geist Mono',monospace; font-size:.72rem; text-transform:uppercase;
  letter-spacing:.05em; color:var(--muted); display:block; margin-bottom:.2rem; }

.telechargements { list-style:none; padding:0; margin:1rem 0; }
.telechargements li { border:1px solid var(--border); background:var(--surface); border-radius:.5rem;
  padding:.75rem 1rem; margin:.5rem 0; display:flex; gap:1rem; align-items:baseline; flex-wrap:wrap; }
.telechargements li a { font-weight:600; }
.telechargements .format { font-family:'Geist Mono',monospace; font-size:.75rem; color:var(--muted); }
.telechargements .desc { flex-basis:100%; font-size:.87rem; color:var(--muted); margin:0; }

.badge { display:inline-block; font-family:'Geist Mono',monospace; font-size:.72rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em; padding:.1rem .45rem; border-radius:.3rem;
  border:1px solid currentColor; white-space:nowrap; }
.badge.confirme { color: var(--negatif); }
.badge.revendique { color: var(--alerte); }
.badge.dementi { color: var(--muted); }

form .champ { margin:1rem 0; }
form label { display:block; font-weight:600; margin-bottom:.3rem; }
form .aide { font-size:.85rem; color:var(--muted); margin:.25rem 0 0; }
input[type=text], input[type=number], select { font:inherit; padding:.55rem .7rem; border:1px solid var(--border);
  border-radius:.4rem; background:var(--surface); width:100%; max-width:22rem; }
button, .bouton { font:inherit; font-weight:600; padding:.55rem 1rem; border-radius:.4rem; border:1px solid var(--accent);
  background:var(--accent); color:#fff; cursor:pointer; display:inline-block; }
.bouton.secondaire { background:var(--surface); color:var(--accent); }

.barres { margin:1rem 0; }
.barre { display:grid; grid-template-columns: minmax(9rem, 14rem) 1fr auto; gap:.75rem; align-items:center;
  padding:.35rem 0; border-bottom:1px solid var(--border); font-size:.92rem; }
.barre .piste { background:#f4f4f5; border-radius:.25rem; height:.85rem; overflow:hidden; }
.barre .remplissage { background:var(--accent); height:100%; }
.barre .valeur { font-family:'Geist Mono',monospace; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
@media (max-width:34rem){ .barre { grid-template-columns: 1fr auto; } .barre .piste { grid-column: 1 / -1; } }

.note { font-size:.87rem; color:var(--muted); border-top:1px solid var(--border);
  margin-top:2.5rem; padding-top:1.25rem; }
.note ul { padding-left:1.1rem; }
.cta { background:var(--surface); border:1px solid var(--border); border-radius:.5rem;
  padding:1.1rem 1.25rem; margin:2rem 0 0; }
.cta p { margin:.25rem 0 0; font-size:.9rem; color:var(--muted); }

footer.pied { max-width:900px; margin:0 auto; padding:1.5rem; font-size:.8rem; color:var(--muted);
  border-top:1px solid var(--border); }
footer.pied a { color: var(--muted); }

@media print {
  .site-header, footer.pied, .cta, form button { display:none; }
  body { background:#fff; }
}
