/* =========================================================
   Appli correction — feuille de style unique (app + admin)
   Mobile d'abord — 390px de référence
   ========================================================= */

:root {
  --brand: #5B4CFF;
  --brand-dark: #3F35C9;
  --brand-deep: #2B2390;
  --brand-soft: #EEECFF;
  --brand-soft-2: #F6F5FF;
  --accent: #00D4A0;
  --accent-dark: #04A87F;
  --warn: #F59E0B;
  --danger: #E5484D;
  --ink: #131A2B;
  --ink-2: #2C3550;
  --muted: #6B7590;
  --line: #E4E7F0;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 4px 16px rgba(19, 26, 43, .06);
  --shadow-lg: 0 10px 30px rgba(19, 26, 43, .10);
  --nav-h: 68px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 26px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 10px; }

/* ---------- Écran d'ouverture ---------- */
#app-splash,
#admin-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
#app-splash { background: #3F35C9; }
#admin-splash { background: #07594F; }
#app-splash.show,
#admin-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
#app-splash img,
#admin-splash img { width: 96px; height: 96px; border-radius: 22px; }
#app-splash span,
#admin-splash span { color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.brand-name { font-family: Georgia, serif; font-weight: 700; font-size: 1rem; line-height: 1.1; }
.brand-sub { display: block; font-family: Inter, sans-serif; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-md);
  cursor: pointer; color: var(--ink);
}
.menu-toggle:active { transform: scale(.97); }

.nav-desktop { display: none; }
.nav-desktop a {
  color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: 8px 10px; border-radius: var(--radius-sm);
}
.nav-desktop a:hover { background: var(--brand-soft); text-decoration: none; }
.nav-desktop a.active { color: var(--brand); background: var(--brand-soft); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(19, 26, 43, .45);
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(86vw, 330px);
  background: #fff;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px 20px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: var(--radius-md);
  color: var(--ink-2); font-weight: 500;
}
.mobile-menu-panel a:hover, .mobile-menu-panel a.active { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.mobile-menu-close { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); }

/* ---------- Barre de navigation basse ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a.active { background: var(--brand); color: #fff; }
.bottom-nav a:active { transform: scale(.97); }
.bottom-nav svg { width: 22px; height: 22px; display: block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  text-decoration: none;
  min-height: 46px;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(91, 76, 255, .25); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-lg { padding: 17px 24px; font-size: 1.05rem; min-height: 58px; border-radius: var(--radius-xl); }
.btn-xl { padding: 22px 26px; font-size: 1.12rem; min-height: 76px; border-radius: var(--radius-xl); }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft-2); box-shadow: none; }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-soft:hover { background: #E4E1FF; box-shadow: none; }
.btn-accent { background: var(--accent); color: #05352A; }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(0, 212, 160, .28); }
.btn-danger { background: #fff; color: var(--danger); border-color: #F6C9CA; }
.btn-danger:hover { background: #FEF2F2; box-shadow: none; }
.btn-sm { padding: 9px 14px; font-size: .86rem; min-height: 38px; border-radius: var(--radius-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 2px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Cartes ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card + .card { margin-top: 14px; }
.card-flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; margin: 0; }
.grid { display: grid; gap: 14px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* ---------- Statistiques ---------- */
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 15px 16px;
}
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.stat-value { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.stat-hint { font-size: .78rem; color: var(--muted); }
.stat-value.pos { color: var(--accent-dark); }
.stat-value.neg { color: var(--danger); }

/* ---------- Badges / puces ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-dark);
}
.badge svg { width: 13px; height: 13px; }
.badge.ok { background: #E4FBF3; color: #04795C; }
.badge.warn { background: #FEF3E2; color: #A45C05; }
.badge.danger { background: #FDECEC; color: #B42318; }
.badge.neutral { background: #EEF1F7; color: #48546F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:active { transform: scale(.97); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip svg { width: 15px; height: 15px; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; }
.label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 76, 255, .14);
}
.hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }

.segmented {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--brand-soft-2);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.segmented button {
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: 11px 12px; border-radius: var(--radius-md);
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
}
.segmented button.active { background: #fff; color: var(--brand-dark); border-color: var(--line); box-shadow: var(--shadow); }
.segmented button:active { transform: scale(.97); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
table.data th, table.data td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: var(--brand-soft-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--brand-soft-2); }

/* ---------- Listes ---------- */
.list { display: grid; gap: 12px; }
.list-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.list-item:hover { border-color: #D9D6FF; }
.list-main { min-width: 0; flex: 1 1 200px; }
.list-title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.list-meta { font-size: .8rem; color: var(--muted); }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Barre de progression ---------- */
.progress {
  height: 10px; border-radius: 999px; background: var(--brand-soft); overflow: hidden;
}
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .3s ease; }
.steps { display: grid; gap: 10px; }
.step { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.step-ico { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #EEF1F7; color: var(--muted); flex: none; font-size: .78rem; font-weight: 700; }
.step.done .step-ico { background: #E4FBF3; color: #04795C; }
.step.active { border-color: #D9D6FF; box-shadow: 0 0 0 3px rgba(91, 76, 255, .08); }
.step.active .step-ico { background: var(--brand); color: #fff; }

/* ---------- Viewer 3D ---------- */
.viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(120% 90% at 50% 0%, #232B47 0%, #131A2B 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #232B47;
}
.viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.viewer-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #A6B0CC; text-align: center; padding: 22px;
}
.viewer-empty svg { width: 46px; height: 46px; opacity: .8; }
.viewer-tools {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.viewer-tools .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); color: #EDEFFF; font-size: .78rem; padding: 7px 11px; }
.viewer-tools .chip:active { transform: scale(.97); }
.viewer-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(19, 26, 43, .65); color: #EDEFFF;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 5px 11px; font-size: .74rem; font-weight: 600;
}
.viewer-dims {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.viewer-dims span {
  background: rgba(19, 26, 43, .65); border: 1px solid rgba(255, 255, 255, .16);
  color: #EDEFFF; border-radius: var(--radius-sm); padding: 3px 9px; font-size: .72rem; font-weight: 600;
}
.dropzone {
  border: 2px dashed #C9C4FF;
  border-radius: var(--radius-xl);
  background: var(--brand-soft-2);
  padding: 22px 16px;
  text-align: center;
}
.dropzone.over { background: var(--brand-soft); border-color: var(--brand); }

/* ---------- Anomalies ---------- */
.anomaly { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.anomaly:last-child { border-bottom: 0; }
.anomaly-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--warn); }
.anomaly-dot.haute { background: var(--danger); }
.anomaly-dot.basse { background: var(--accent); }
.anomaly-body { flex: 1 1 auto; min-width: 0; }
.anomaly-title { font-weight: 600; font-size: .94rem; }
.anomaly-detail { font-size: .81rem; color: var(--muted); }
.anomaly-count { font-family: Georgia, serif; font-weight: 700; font-size: 1rem; color: var(--ink-2); flex: none; }

/* ---------- Jauges (score) ---------- */
.gauge { display: flex; align-items: center; gap: 12px; }
.gauge-ring {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem;
  color: var(--brand-dark);
  background: conic-gradient(var(--brand) var(--val, 0%), var(--brand-soft) 0);
  flex: none;
}
.gauge-ring > span {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--radius-md); padding: 12px 15px;
  font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .22s ease;
}
.toast.ok { background: #0B7C61; }
.toast.err { background: #B42318; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.open { display: flex; align-items: flex-end; }
.modal-bg { position: absolute; inset: 0; background: rgba(19, 26, 43, .5); }
.modal-panel {
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
}
.modal-title { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 700; margin: 0 0 6px; }

/* ---------- Divers ---------- */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, #7C6BFF);
  color: #fff;
  padding: 26px 18px;
}
.hero h1 { color: #fff; }
.hero p { color: #E5E2FF; margin-bottom: 0; }
.hero-3d {
  position: absolute; right: -60px; top: -40px;
  width: 260px; height: 260px; opacity: .18; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 5px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 12px;
}
.kpi-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.chart-box { position: relative; height: 260px; width: 100%; }
.empty-state { text-align: center; padding: 30px 18px; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; opacity: .5; margin-bottom: 10px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--brand-soft); flex: none; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skeleton { background: linear-gradient(90deg, #EEF1F7, #F7F9FC, #EEF1F7); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--radius-md); height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.footer { padding: 26px 0 10px; color: var(--muted); font-size: .84rem; }
.footer a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }

.alert { border-radius: var(--radius-lg); padding: 13px 15px; font-size: .9rem; border: 1px solid; }
.alert-info { background: var(--brand-soft-2); border-color: #DCD8FF; color: var(--brand-deep); }
.alert-warn { background: #FFF8EC; border-color: #FBE0B5; color: #8A5106; }
.alert-danger { background: #FEF3F2; border-color: #FBD5D3; color: #912018; }
.alert-ok { background: #EAFBF5; border-color: #BFEEDE; color: #05604A; }

/* =========================================================
   Tablette / bureau
   ========================================================= */
@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .segmented { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-row .btn { flex: 0 1 auto; }
}

@media (min-width: 768px) {
  .wrap { padding: 0 22px; }
  .section { padding: 38px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 4px; }
  .hero { padding: 46px 40px; }
  .hero-3d { width: 380px; height: 380px; right: -40px; top: -60px; }
  .modal.open { align-items: center; justify-content: center; }
  .modal-panel { max-width: 620px; border-radius: var(--radius-xl); padding-bottom: 22px; }
  .card { padding: 22px; }
  .viewer { aspect-ratio: 16 / 10; }
}

@media (min-width: 1024px) {
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); }
  .layout-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .sticky-col { position: sticky; top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Administration : teinte dédiée ---------- */
body.admin {
  --brand: #0D9488;
  --brand-dark: #0B7C72;
  --brand-deep: #07594F;
  --brand-soft: #E3F7F4;
  --brand-soft-2: #F1FBFA;
}
body.admin .btn:hover { box-shadow: 0 6px 18px rgba(13, 148, 136, .25); }
body.admin .gauge-ring { color: var(--brand-deep); }
