/* monitoring.croix-blanche02.fr — mêmes couleurs que le site de l'association */
:root {
  --navy-900: #061a3a; --navy: #0b2c63; --red: #d7141f; --red-600: #b50f18; --green: #1c7c45; --orange: #d08a00;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f6f8fc;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--navy); }
.conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.conteneur { padding-bottom: 56px; }
.haut { background: var(--navy-900); color: #fff; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--navy) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%) 1; }
.haut__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marque img { border-radius: 50%; background: #fff; }
.marque strong { display: block; font-size: 1.05rem; }
.marque small { display: block; color: rgb(255 255 255 / .7); font-size: .8rem; }
.menu { display: flex; gap: 18px; flex: 1; }
.menu a { color: #fff; text-decoration: none; font-weight: 600; opacity: .85; }
.menu a:hover { opacity: 1; text-decoration: underline; }
.moi { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.moi .lien { color: #fff; }
h1 { color: var(--ink); font-size: 1.7rem; margin: 32px 0 6px; }
h2 { color: var(--ink); font-size: 1.2rem; margin: 34px 0 12px; }
h2 small { color: var(--muted); font-weight: 500; font-size: .9rem; }
h3 { color: var(--ink); font-size: 1rem; margin: 0; }
.carte { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.carte + .carte { margin-top: 14px; }
.grille .carte { margin-top: 0; }
.carte--centre { max-width: 520px; margin: 64px auto 0; text-align: center; padding: 36px 28px; }
.carte--centre h1 { margin-top: 0; }
.discret { color: var(--muted); }
.petit { font-size: .85rem; margin: 10px 0 0; }
.mono { font-family: Consolas, "Courier New", monospace; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 2px solid var(--red); border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; margin-top: 16px; }
.bouton:hover { background: var(--red-600); border-color: var(--red-600); }
.bouton--clair { background: #fff; color: var(--navy); border-color: var(--line); margin-top: 0; min-height: 40px; }
.bouton--clair:hover { background: var(--bg); border-color: var(--line); }
.lien { background: none; border: 0; padding: 2px 4px; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.lien--danger { color: var(--red-600); }
form { margin: 0; }
.alerte { padding: 12px 16px; border-radius: 12px; margin: 20px 0 0; background: #fdecee; color: var(--red-600); }
.alerte--ok { background: #e8f7ee; color: #116b3a; }
.alerte--attention { background: #fff4d6; color: #7a4b00; }
.bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 18px 22px; border-radius: 16px; border-left: 6px solid; }
.bandeau strong { display: block; font-size: 1.2rem; }
.bandeau span { font-size: .9rem; }
.bandeau--ok { background: #e8f7ee; color: #116b3a; border-color: var(--green); }
.bandeau--ko { background: #fdecee; color: var(--red-600); border-color: var(--red); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.service__tete { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.url { color: var(--muted); font-size: .82rem; word-break: break-all; margin: 4px 0 12px; }
.barres { width: 100%; height: 28px; display: block; }
.b-ok { fill: #2fa565; } .b-moyen { fill: var(--orange); } .b-ko { fill: var(--red); } .b-vide { fill: #e2e8f0; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.chiffres dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chiffres dd { margin: 0; font-weight: 700; color: var(--ink); }
.chiffres dd.lent { color: var(--orange); }
.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef1f6; color: var(--muted); white-space: nowrap; }
.pastille--ok { background: #e8f7ee; color: #116b3a; }
.pastille--ko { background: #fdecee; color: var(--red-600); }
.pastille--attention { background: #fff4d6; color: #7a4b00; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tuile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tuile strong { display: block; font-size: 1.5rem; color: var(--ink); }
.tuile span { font-size: .86rem; color: var(--muted); }
.tuile--ko { border-color: var(--red); background: #fff7f7; }
.tuile--attention { border-color: var(--orange); background: #fffaf0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.url { margin: 0; }
tr.inactif td { opacity: .55; }
.actions { white-space: nowrap; text-align: right; }
.carte h3 { margin-bottom: 10px; }
.formulaire { display: grid; gap: 14px; max-width: 640px; }
.formulaire label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.formulaire small { color: var(--muted); font-weight: 400; }
.formulaire input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.formulaire .bouton { justify-self: start; margin-top: 4px; }
@media (max-width: 640px) {
  .carte { padding: 16px; overflow-x: auto; }
  .chiffres, .tuiles { grid-template-columns: repeat(2, 1fr); }
  .menu { order: 3; flex-basis: 100%; }
}
