/* Polices système uniquement : rien n'est chargé depuis un service tiers (pas d'adresse IP transmise à Google).
   Charte XEFI pour le web : Montserrat si elle est installée, sinon Segoe UI. */

:root {
  --rouge: #E10600; --rouge-sombre: #A80500; --rouge-voile: rgba(225, 6, 0, .12);
  --noir: #000; --g90: #111; --g85: #161616; --g80: #1F1F1F; --g70: #2A2A2A; --g60: #3A3A3A;
  --g50: #7F7F7F; --g30: #B2B2B2; --g20: #CCCCCC; --g10: #E5E5E5; --g05: #F4F4F4; --blanc: #fff;
  --ok: #fff; --titre: 'Montserrat', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --texte: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --rayon: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--noir); color: var(--blanc); font: 16px/1.5 var(--texte); min-height: 100vh; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.15; }
h2 { font-size: 1.2rem; }
h3 { font-size: .95rem; color: var(--rouge); }
a { color: var(--blanc); }
.rouge { color: var(--rouge); }
.discret { color: var(--g30); font-size: .9rem; }

.btn { display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--rouge); color: #fff; font: 600 .95rem var(--titre); letter-spacing: .05em;
  text-transform: uppercase; padding: .85em 1.5em; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: var(--rouge-sombre); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--g60); color: var(--g30); cursor: not-allowed; }
.btn.secondaire { background: transparent; border: 1px solid var(--g50); color: var(--blanc); }
.btn.secondaire:hover { border-color: var(--blanc); background: var(--g80); }
.btn.petit { padding: .5em .9em; font-size: .8rem; }
.chevron::before { content: ''; display: inline-block; width: .55em; height: .55em; background: url(/static/chevron-rouge.svg) center/contain no-repeat; margin-right: .5em; }

input, select, textarea { font: inherit; color: var(--blanc); background: var(--g85); border: 1px solid var(--g60);
  border-radius: 6px; padding: .7em .9em; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
label { display: block; font-size: .85rem; color: var(--g20); margin: 1em 0 .35em; }

.carte { background: var(--g85); border: 1px solid var(--g70); border-radius: var(--rayon); padding: 1.5rem; }
.pied { text-align: center; color: var(--g50); font-size: .8rem; padding: 2rem 1rem 1.5rem; }
.logo { height: 34px; display: block; }
.barre { height: 6px; background: var(--g70); border-radius: 3px; overflow: hidden; }
.barre > i { display: block; height: 100%; background: var(--rouge); border-radius: 3px; transition: width .6s; }
.barre.claire > i { background: var(--blanc); }
@media print { body { background: #fff; color: #000; } }

/* Bouton clair / sombre (theme.js) */
.bascule-theme { display: inline-grid; place-items: center; grid-auto-flow: column; gap: .5rem; width: 38px; height: 38px; padding: 0; flex: none;
  border-radius: 10px; border: 1px solid rgba(127, 127, 127, .35); background: transparent; color: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.bascule-theme:hover { border-color: var(--rouge); }
.bascule-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
