:root {
  /* Charte EUROS (identique aux applis BI) */
  --rouge: #C8102E; --rouge-fonce: #a50d26; --texte: #1C262D; --gris: #3B4752; --bleu: #A6B4CF;
  --fond: #F5F6F8; --carte: #ffffff; --bord: #E2E5EA; --ok: #1d7a3a; --alerte: #fff4e5; --alerte-bord: #f0a030;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 Bahnschrift, "Segoe UI", Inter, Helvetica, Arial, sans-serif; color: var(--texte); background: var(--fond); }
a { color: var(--rouge-fonce); }
.bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .5rem 1.5rem; background: #fff; color: var(--texte); border-bottom: 3px solid var(--rouge); }
.bandeau a { color: var(--gris); text-decoration: none; }
.marque { display: flex; align-items: center; gap: .75rem; font-size: 1.1rem; }
.bandeau a.marque { color: var(--texte); }
.marque img { height: 34px; }
.langues a { display: inline-block; padding: .2rem .4rem; font-size: .85rem; border-radius: 6px; }
.langues a[aria-current], .langues a:hover { background: var(--fond); color: var(--rouge); }
.menu a { padding: .35rem .7rem; border-radius: 6px; }
.menu a:hover, .menu a[aria-current] { background: var(--fond); color: var(--rouge); }
.menu { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.contenu { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.contenu.large { max-width: 1200px; }
.pied { text-align: center; color: var(--gris); font-size: .85rem; padding: 1.5rem 1rem; }
.pied a { color: var(--gris); }
h1 { font-size: 1.5rem; font-weight: 500; margin: .3rem 0 .6rem; }
h2 { font-size: 1.15rem; font-weight: 500; margin: 0 0 .6rem; }
.carte { background: var(--carte); border: 0; border-radius: 8px; padding: 1rem 1.2rem; margin: 1rem 0; }
.carte.etroit { max-width: 420px; margin: 2rem auto; }
.code { color: var(--gris); margin: 0; }
.meta { color: var(--gris); font-size: .95rem; }
.pastille { display: inline-block; background: var(--ok); color: #fff; border-radius: 999px; padding: 0 .6rem; font-size: .8rem; }
.alerte { background: var(--alerte); border: 1px solid var(--alerte-bord); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.alerte .bouton { display: block; width: fit-content; margin-top: .5rem; }
.bouton, button { display: inline-block; background: var(--rouge); color: #fff; border: 0; border-radius: 6px;
  padding: .6rem 1.1rem; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.bouton:hover, button:hover { background: var(--rouge-fonce); }
.bouton.principal { font-size: 1.1rem; padding: .9rem 1.4rem; }
button.secondaire { background: #fff; color: var(--texte); border: 1px solid var(--bord); font-weight: 500; padding: .35rem .7rem; }
button.danger { background: #fff; color: var(--rouge); border: 1px solid var(--rouge); }
button.lien { background: none; padding: 0; color: var(--rouge-fonce); font-weight: 400; text-decoration: underline; }
button.lien:hover { background: none; }
input, select, textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--bord); border-radius: 6px; width: 100%; background: #fff; }
input[type=checkbox] { width: auto; }
label { display: block; margin-bottom: .7rem; font-size: .95rem; }
label.case { display: flex; gap: .5rem; align-items: center; }
.abo { display: flex; gap: .5rem; flex-wrap: wrap; }
.abo input[type=email] { flex: 1 1 220px; }
.cache { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ok { color: var(--ok); font-weight: 600; }
.erreur { color: var(--rouge); font-weight: 600; }
.petit { font-size: .85rem; color: var(--gris); }
.centre { text-align: center; }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li a { display: block; background: var(--carte); border: 0; border-left: 4px solid var(--bleu); border-radius: 8px; padding: .7rem 1rem;
  margin-bottom: .5rem; color: var(--texte); text-decoration: none; }
.liste li a:hover { border-left-color: var(--rouge); }
.liste small { display: block; color: var(--gris); }
.recherche { margin-bottom: 1rem; }
/* Admin */
table { width: 100%; border-collapse: collapse; background: var(--carte); font-size: .92rem; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-size: .85rem; background: var(--texte); color: #fff; font-weight: 500; }
tr:hover td { background: #FBF3F4; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.date { white-space: nowrap; }
tr.retiree td { color: var(--gris); background: #f7f7f8; }
.flash { padding: .7rem 1rem; border-radius: 6px; background: #e8f4ec; border: 1px solid #a9d5b6; }
.flash.erreur { background: #fdeceb; border-color: #f0a9a2; color: var(--texte); font-weight: 400; }
.flash.secret { background: #fff4e5; border-color: var(--alerte-bord); font-weight: 600; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.tuile { background: var(--carte); border: 0; border-left: 4px solid var(--rouge); border-radius: 8px; padding: .8rem 1rem; color: var(--gris); font-size: .9rem; }
.tuile b { display: block; font-size: 1.8rem; color: var(--texte); }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 1rem; }
.ligne { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.ligne label { margin: 0; }
.ligne label.grand { flex: 1 1 300px; }
.ligne input[type=search] { width: auto; flex: 1 1 220px; }
.ligne select { width: auto; }
.enligne { display: inline; }
.enligne select { width: auto; padding: .3rem; }
.actions form { margin: 0 .2rem .2rem 0; }
details summary { cursor: pointer; color: var(--rouge); }
details[open] summary { margin-bottom: .6rem; }
.onglets { display: flex; gap: .5rem; margin-bottom: .5rem; }
.onglets a { padding: .3rem .8rem; border: 1px solid var(--bord); border-radius: 999px; background: #fff; text-decoration: none; color: var(--texte); }
.onglets a[aria-current] { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.barres td:first-child { width: 30%; }
.barres meter { width: 100%; height: 1rem; }
.empreinte { font-family: ui-monospace, monospace; color: var(--gris); }
@media (max-width: 700px) {
  table { font-size: .85rem; }
  .bandeau { padding: .5rem .8rem; }
  .marque img { height: 28px; }
}
