:root {
  --fond: #f4f5f7; --carte: #ffffff; --texte: #1d2430; --discret: #5b6472; --bord: #d5d9e0;
  --accent: #1f5fa8; --accent-fonce: #154579; --ok: #1d7a46; --attention: #b36b00; --erreur: #b3261e;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font-size: 15px; }
a { color: var(--accent); }
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #1d2430; color: #fff; padding: .5rem 1rem; }
.bandeau a { color: #fff; text-decoration: none; margin-right: 1rem; }
.bandeau .marque { font-weight: 600; }
.bandeau nav { display: flex; align-items: center; }
.page { max-width: 1250px; margin: 1rem auto; padding: 0 1rem; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.etroite { max-width: 520px; margin-left: auto; margin-right: auto; }
.centre { text-align: center; } .discret { color: var(--discret); }
h1 { font-size: 1.5rem; margin: .3rem 0 .8rem; } h2 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.formulaire label { display: block; font-weight: 600; margin: .6rem 0 .2rem; }
.formulaire input[type=text], .formulaire input[type=password], .formulaire input[type=number], .formulaire select, .formulaire input:not([type]) {
  width: 100%; padding: .45rem .55rem; border: 1px solid var(--bord); border-radius: 5px; font-size: 1rem; }
.formulaire .case { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .5rem; }
.formulaire .case label { font-weight: 400; margin: .3rem 0; }
.formulaire fieldset { border: 1px solid var(--bord); border-radius: 6px; margin: 0 0 .8rem; padding: .3rem .8rem .7rem; }
.formulaire legend { font-weight: 700; color: var(--accent-fonce); }
.grille { display: block; }
.aide { color: var(--discret); font-size: .85rem; margin: .15rem 0; }
.erreur { color: var(--erreur); font-weight: 600; }
.bouton { display: inline-block; padding: .45rem .9rem; border-radius: 6px; border: 1px solid var(--accent); background: #fff;
  color: var(--accent); cursor: pointer; font-size: .95rem; text-decoration: none; margin: .2rem 0; }
.bouton.principal { background: var(--accent); color: #fff; }
.bouton:hover { filter: brightness(.95); }
.lien { background: none; border: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.en-ligne { display: inline; }
.titre-ligne { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.colonnes { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .colonnes { grid-template-columns: 1fr; } }
.tableau { width: 100%; border-collapse: collapse; background: #fff; }
.tableau th, .tableau td { border-bottom: 1px solid var(--bord); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.tableau th { background: #eef1f5; }
.tableau.chiffres td, .tableau.chiffres th { text-align: right; font-variant-numeric: tabular-nums; }
.tableau.chiffres td:first-child, .tableau.chiffres th:first-child { text-align: left; }
.pastille { display: inline-block; padding: .05rem .45rem; border-radius: 10px; background: #e3e6eb; font-size: .8rem; }
.pastille.ok { background: #d8f0e1; color: var(--ok); } .pastille.attention { background: #fde9c9; color: var(--attention); }
.messages { list-style: none; margin: .6rem auto; padding: 0 1rem; max-width: 1250px; }
.messages li { background: #e5f0fb; border: 1px solid #b6d1ee; padding: .45rem .8rem; border-radius: 6px; margin-bottom: .3rem; }
.messages li.error { background: #fbe5e3; border-color: #eeb8b2; }
code { background: #eef1f5; padding: 0 .25rem; border-radius: 3px; }
