/* vue.css — la Vue Analyse de Marché v0.1 : lisible au téléphone, au clavier, en clair et en sombre. Aucune dépendance. */
:root {
  --fond: #fbfaf7; --encre: #1d1c1a; --encre-2: #55524c; --trait: #d8d4cc; --carte: #ffffff;
  --accent: #1f5f8b; --accent-encre: #ffffff; --alerte: #8a2f1c; --ok: #2c6e49; --tiede: #8a6d1c;
  --p1: #1f5f8b; --p2: #6b4c9a; --p3: #2c6e49; --focus: #e0a100;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #161615; --encre: #ece9e2; --encre-2: #b3ada2; --trait: #3a3936; --carte: #1f1f1d;
    --accent: #7cb4dd; --accent-encre: #101010; --alerte: #e39a86; --ok: #8ccba4; --tiede: #d9bb62;
    --p1: #7cb4dd; --p2: #b9a0e0; --p3: #8ccba4; --focus: #ffcc33;
  }
}
:root[data-theme="dark"] {
  --fond: #161615; --encre: #ece9e2; --encre-2: #b3ada2; --trait: #3a3936; --carte: #1f1f1d;
  --accent: #7cb4dd; --accent-encre: #101010; --alerte: #e39a86; --ok: #8ccba4; --tiede: #d9bb62;
  --p1: #7cb4dd; --p2: #b9a0e0; --p3: #8ccba4; --focus: #ffcc33;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: Georgia, "Times New Roman", serif; line-height: 1.45; }
main, header, footer { padding: 0 16px; max-width: 1100px; margin: 0 auto; }
h1 { font-size: 1.5rem; margin: 1rem 0 .25rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; border-bottom: 1px solid var(--trait); padding-bottom: .25rem; }
h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
p, li { max-width: 72ch; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button, input, select { font: inherit; color: var(--encre); background: var(--carte); border: 1px solid var(--trait); border-radius: 4px; padding: .45rem .7rem; }
button.primaire { background: var(--accent); color: var(--accent-encre); border-color: var(--accent); cursor: pointer; }
button { cursor: pointer; }
button[disabled] { opacity: .5; cursor: default; }
label { display: block; margin: .75rem 0 .25rem; }
input { width: 100%; max-width: 28rem; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 6px; padding: 1rem; margin: .75rem 0; }
.discret { color: var(--encre-2); font-size: .9rem; }
.alerte { color: var(--alerte); }
.ok { color: var(--ok); }
.tiede { color: var(--tiede); }
/* le bandeau permanent (⑦) */
#bandeau { position: sticky; top: 0; z-index: 5; background: var(--carte); border-bottom: 2px solid var(--accent); padding: .4rem 16px; font-size: .85rem; }
#bandeau .ligne { display: flex; flex-wrap: wrap; gap: .25rem 1rem; max-width: 1100px; margin: 0 auto; }
#bandeau .rappel { font-weight: bold; }
/* les tables */
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .5rem 0; }
th, td { text-align: left; vertical-align: top; padding: .35rem .5rem; border-bottom: 1px solid var(--trait); }
th { font-weight: bold; color: var(--encre-2); font-family: system-ui, sans-serif; font-size: .8rem; }
.defile { overflow-x: auto; }
tr.choix:hover, tr.choix:focus-within { background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* les trois populations, jamais côte à côte comme un total */
.populations { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.population { border-left: 4px solid var(--trait); padding: .5rem .75rem; background: var(--carte); border-radius: 4px; }
.population.P1 { border-left-color: var(--p1); } .population.P2 { border-left-color: var(--p2); } .population.P3 { border-left-color: var(--p3); }
.population .n { font-size: 1.6rem; font-family: system-ui, sans-serif; }
/* étiquettes */
.etiquette { display: inline-block; font-family: system-ui, sans-serif; font-size: .75rem; padding: .05rem .4rem; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre-2); }
.etiquette.propose { border-color: var(--tiede); color: var(--tiede); }
abbr[title], .terme { text-decoration: underline dotted; cursor: help; }
/* les rosaces (④) */
.rosaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.rosace svg { width: 100%; height: auto; display: block; }
.rosace .axe-lib { font-family: system-ui, sans-serif; font-size: 11px; fill: var(--encre-2); }
.rosace .rayon { stroke: var(--trait); stroke-width: 1; }
.rosace .anneau { fill: none; stroke: var(--trait); stroke-width: .75; }
.rosace .point { fill: var(--accent); }
.rosace .point.ferme { fill: var(--alerte); }
.rosace .point.nonresolu { fill: var(--tiede); }
.rosace .point.fonction { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.rosace .sansobjet { stroke-dasharray: 2 3; }
.rosace ol { font-size: .85rem; padding-left: 1.2rem; }
/* pagination */
.pagination { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0; }
/* navigation entre écrans */
nav.ecrans { display: flex; flex-wrap: wrap; gap: .25rem; margin: .75rem 0; }
nav.ecrans a { font-family: system-ui, sans-serif; font-size: .85rem; padding: .3rem .6rem; border: 1px solid var(--trait); border-radius: 4px; text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 480px) { h1 { font-size: 1.25rem; } th, td { padding: .3rem .35rem; } }
