:root {
  --vert: #83b81a; --vert-fonce: #5f8a0c; --bleu: #0371b9; --marine: #1b2135;
  --fond: #f4f6f8; --carte: #fff; --trait: #dfe4ea; --texte: #1b2135; --discret: #667085;
  --rouge: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte); background: var(--fond); }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: 0; }
h2 { font-size: 1.02rem; margin: 1.4rem 0 .6rem; }
h2:first-child { margin-top: 0; }
p { margin: .4rem 0; }

.bandeau { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .7rem 1.25rem; background: var(--marine); color: #fff; }
.bandeau a { color: #cfd6e4; }
.marque { font-weight: 700; color: #fff !important; display: flex; align-items: center; gap: .5rem; }
.pastille { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--vert); }
.bandeau nav { display: flex; gap: 1.1rem; flex: 1; flex-wrap: wrap; }
.bandeau nav a.actif { color: #fff; border-bottom: 2px solid var(--vert); }
.compte { display: flex; gap: .8rem; align-items: center; font-size: .9rem; color: #cfd6e4; }
.compte .lien { color: #fff; }

main { max-width: 1400px; margin: 0 auto; padding: 1.25rem 16px 3rem; }
main.centre { max-width: 400px; padding-top: 12vh; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.discret { color: var(--discret); font-size: .88rem; }
.barre { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.flash { padding: .65rem 1rem; border-radius: 8px; background: #eef7dc; border: 1px solid var(--vert); }
.flash.erreur { background: #fdecea; border-color: var(--rouge); color: var(--rouge); }

.deux-colonnes { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .deux-colonnes, .grille { grid-template-columns: minmax(0, 1fr); } }

label { display: block; font-size: .88rem; font-weight: 600; }
input, select, textarea { font: inherit; padding: .42rem .55rem; border: 1px solid #c3cad5; border-radius: 6px; background: #fff; color: inherit; max-width: 100%; }
label > input:not([type=checkbox]), label > select, label > textarea { display: block; width: 100%; margin-top: .2rem; font-weight: 400; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .88rem; font-weight: 600; padding: 0; margin-bottom: .2rem; }
.filtres form, .pile { display: flex; flex-direction: column; gap: .8rem; }
.ligne { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
.ligne > input, .ligne > select { flex: 1; min-width: 120px; }
.case { display: flex; align-items: center; gap: .45rem; font-weight: 400; padding: .12rem 0; }
.case .nb { margin-left: auto; color: var(--discret); font-size: .82rem; }

.bouton { display: inline-block; padding: .45rem .9rem; border: 1px solid #c3cad5; border-radius: 6px; background: #fff; color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.bouton:hover { background: #f0f3f6; text-decoration: none; }
.bouton.principal { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton.principal:hover { background: #025e9b; }
.bouton[disabled] { opacity: .5; cursor: default; }
.bouton.large { width: 100%; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--bleu); cursor: pointer; }
.lien:hover { text-decoration: underline; }

.table-defilante { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); background: #fafbfc; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
tr.attente { background: #fffaf0; }
.nom { font-weight: 600; }

.tag { display: inline-block; padding: .08rem .55rem; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; margin: 0 .2rem .2rem 0; }
.t0 { background: #e4f1fb; color: #02568d; } .t1 { background: #eaf4d3; color: #47680a; }
.t2 { background: #fdeed8; color: #8a4b00; } .t3 { background: #efe6fb; color: #5b2d9c; }
.t4 { background: #fbe4ec; color: #9c1c4b; } .t5 { background: #dff3f0; color: #0b5f56; }
.tag.obsolete { text-decoration: line-through; opacity: .6; }
.statut { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.s-a_contacter, .s-en_attente { color: var(--discret); } .s-contacte { color: var(--bleu); }
.s-en_cours { color: #8a4b00; } .s-sans_suite, .s-erreur { color: var(--rouge); } .s-termine { color: var(--vert-fonce); }
.libre { color: var(--vert-fonce); font-weight: 600; }
.alerte { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--rouge); border: 1px solid currentColor; border-radius: 4px; padding: 0 .35rem; }
.vide { text-align: center; color: var(--discret); padding: 2.5rem 1rem; }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; }

.attribution { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
dl { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem .8rem; margin: 0; }
dt { color: var(--discret); font-size: .88rem; } dd { margin: 0; }
.liste-tags, .historique { list-style: none; padding: 0; margin: 0 0 .8rem; }
.liste-tags li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; padding: .2rem 0; }
.historique li { padding: .25rem 0; border-bottom: 1px solid var(--trait); font-size: .9rem; }
.contact { padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.contact.desinscrit a { color: var(--discret); }
.contact .ligne { gap: 1rem; font-size: .85rem; margin-top: .2rem; }
.notes { white-space: normal; }
details { margin-top: .8rem; } summary { cursor: pointer; color: var(--bleu); font-weight: 600; margin-bottom: .6rem; }

.connexion h1 { display: flex; align-items: center; gap: .5rem; }
.connexion { display: flex; flex-direction: column; gap: .8rem; }
.separateur { text-align: center; color: var(--discret); margin: 0; }
.source .barre { align-items: flex-start; margin-bottom: .4rem; }
.encours { color: #8a4b00; font-weight: 600; }
.reglages, .import { border-top: 1px solid var(--trait); padding-top: .8rem; margin-top: .4rem; }
.reglages label, .import .ligne label { flex: 0 1 auto; }
.utilisateurs td { vertical-align: middle; }
.pile > .bouton:not(.large) { align-self: flex-start; }
.cases-en-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
.cases-en-ligne .case { white-space: nowrap; gap: .3rem; }
.cases-en-ligne .nb { margin-left: auto; }
