/* ChasseGo back-office — design de la maquette (thème clair, menu latéral sarcelle) */
:root {
  --bg: #F3F6F5; --card: #FFFFFF; --line: #DCE5E3; --line-2: #E5ECEA; --input: #CFDCD9;
  --fg: #10272D; --muted: #56706D; --muted-2: #3D5753;
  --side: #0E5560; --side-fg: #D6E2DF; --lime: #D4F25C;
  --primary: #0E6B62; --primary-dark: #09504A; --buoy: #FF6B35; --danger: #B23F12;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; }
a { color: var(--primary); } a:hover { color: var(--primary-dark); }
h1, h2 { font-family: var(--font-head); margin: 0; }
h1 { font-size: 34px; } h2 { font-size: 22px; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }
.bo { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--side); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.side__brand strong { display: block; font-family: var(--font-head); font-size: 22px; }
.side__brand span { font-size: 12px; color: #CFE6EA; }
.side__nav { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.side__nav a { color: var(--side-fg); text-decoration: none; border-radius: 10px; padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; }
.side__nav a:hover { background: #ffffff1a; color: #fff; }
.side__nav a.is-active { background: var(--lime); color: #0B1E24; font-weight: 600; }
.side__me { margin-top: auto; font-size: 13px; color: #CFE6EA; padding: 0 8px; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.main__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.main__head .muted { display: block; margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card--flush { padding: 8px 12px 12px; overflow-x: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi strong { font-family: var(--font-head); font-size: 36px; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .wide { flex: 2 1 520px; min-width: 0; }
.cols > .narrow { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; font-weight: 600; }
td { padding: 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
td.r, th.r { text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill--ok { background: #DDF0EC; color: #0A4F48; }
.pill--warn { background: #FFF4E5; color: #6B3E06; }
.pill--danger { background: #FFE3D6; color: #8A2E0B; }
.pill--grey { background: #E7ECEB; color: #2E4441; }
.pill--buoy { background: var(--buoy); color: #0B1E24; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--input); background: #fff; color: var(--fg); font: 600 14px var(--font); cursor: pointer; text-decoration: none; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { color: #fff; background: var(--primary-dark); }
.btn--buoy { background: var(--buoy); border-color: var(--buoy); color: #0B1E24; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 6px 0; font: inherit; }
form.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input); background: #fff; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; }
.chip.is-on { background: var(--side); border-color: var(--side); color: #fff; font-weight: 600; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--input); padding: 8px 12px; font: 14px var(--font); color: var(--fg); background: #fff; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.flash { border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.flash--ok { background: #DDF0EC; color: #0A4F48; }
.flash--err { background: #FFE3D6; color: #8A2E0B; }
.note { background: #FFF4E5; border: 1px solid #F3C98B; border-radius: 14px; padding: 14px 16px; color: #6B3E06; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.item.is-on { border: 2px solid var(--primary); }
.map { display: block; width: 100%; height: auto; background: #A9DCEB; border-radius: 12px; }
.dot-live { animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--side); }
.login .card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { display: flex; align-items: center; gap: 10px; }
.timeline { display: flex; flex-direction: column; }
.timeline > div { display: flex; gap: 14px; padding-bottom: 16px; }
.timeline .tdot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--input); background: #fff; flex: none; margin-top: 3px; }
.timeline > div:first-child .tdot { border-color: #19B5AE; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 720px) { .main { padding: 20px 16px 40px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
