/* =====================================================================
   BinsaWeb·Next — POC ILEX
   Identité : ilexascenseurs.com (rouge #C11722, Mulish, angles vifs)
            + intranet dashboard.ilexascenseurs.fr (sidebar à icônes, KPI, tuiles familles)
   ===================================================================== */
@font-face { font-family: "Mulish"; src: url(/static/fonts/mulish-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/static/fonts/opensans-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ilex-red: #C11722; --ilex-red-700: #9A121B; --ilex-red-50: #FCEBEC; --ilex-red-100: #F8D3D6;
  --ilex-ink: #1D1D1B; --ilex-ink-2: #3A3A3C; --ilex-navy: #32325D;
  --text: #333333; --text-2: #565656; --text-3: #8A8C90;
  --grey-400: #9A9B9D; --grey-300: #C9CBCF; --grey-200: #E8E8EA; --grey-100: #F1F2F5;
  --bg: #F8F9FE; --surface: #FFFFFF;
  --ok: #1E9E62; --ok-50: #E6F6EE; --warn: #E07B12; --warn-50: #FEF1E4; --info: #0EA5C9; --info-50: #E4F7FB;
  --danger: #E8365D; --danger-50: #FDEBEF; --muted: #8A8C90; --muted-50: #F1F2F4; --violet: #5E72E4;
  --shadow-side: 0 0 32px rgba(136, 152, 170, .15);
  --shadow-1: 0 1px 2px rgba(29, 29, 27, .05), 0 2px 8px rgba(50, 50, 93, .06);
  --shadow-pop: 0 14px 36px rgba(29, 29, 27, .16), 0 3px 8px rgba(29, 29, 27, .08);
  --r: 2px; --side-w: 236px; --top-h: 64px;
  --f-title: "Mulish", "Segoe UI", system-ui, sans-serif;
  --f-text: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--f-text); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
code, .mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.i { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ilex-red); outline-offset: 2px; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--grey-200);
  background: var(--surface); border-radius: var(--r); font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text);
  transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--grey-300); background: var(--grey-100); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ilex-red); border-color: var(--ilex-red); color: #fff; text-transform: uppercase; letter-spacing: .04em; font-family: var(--f-title); font-weight: 800; font-size: 12.5px; }
.btn--primary:hover { background: var(--ilex-red-700); border-color: var(--ilex-red-700); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--ilex-red); }
.btn--ghost:hover { background: var(--ilex-red-50); border-color: transparent; }
.btn--icon { width: 34px; padding: 0; justify-content: center; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn--xl { height: 52px; width: 100%; justify-content: center; font-size: 15px; letter-spacing: .08em; position: relative; }
.btn--glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.btn--locked { opacity: .55; cursor: not-allowed; }
.btn.is-off { opacity: .35; pointer-events: none; }

/* -------------------------------------------------------------------- pills */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .01em; white-space: nowrap; background: var(--muted-50); color: var(--muted); }
.pill--ok { background: var(--ok-50); color: var(--ok); } .pill--warn { background: var(--warn-50); color: var(--warn); }
.pill--info { background: var(--info-50); color: #0B7F9C; } .pill--danger { background: var(--danger-50); color: var(--danger); }
.pill--critical { background: var(--ilex-red); color: #fff; } .pill--muted { background: var(--muted-50); color: var(--muted); }
.pill--ok-solid { background: var(--ok); color: #fff; } .pill--warn-solid { background: var(--warn); color: #fff; }
.pill--info-solid { background: var(--info); color: #fff; } .pill--muted-solid { background: #6B6E73; color: #fff; }
.pill--danger-solid, .pill--critical-solid { background: #fff; color: var(--ilex-red); }
.pill--white { background: #fff; color: var(--ilex-red); } .pill--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.pill + .pill { margin-left: 4px; }
.pulse { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--grey-200);
  font-weight: 600; font-size: 13px; background: var(--surface); transition: .15s; }
.chip--hero { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.chip--hero:hover { background: rgba(255,255,255,.22); }
.chip--hero.is-on { background: #fff; color: var(--ilex-red); border-color: #fff; }
.chip--sm { height: 24px; padding: 0 10px; font-size: 12px; background: var(--ilex-red-50); border-color: var(--ilex-red-100); color: var(--ilex-red); }

/* ==================================================================== SHELL */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; transition: grid-template-columns .25s var(--ease); }
body.side-mini .shell { grid-template-columns: 72px 1fr; }
.side { position: sticky; top: 0; height: 100vh; background: var(--surface); box-shadow: var(--shadow-side); display: flex; flex-direction: column; z-index: 20; overflow: hidden; }
.side__brand { display: block; padding: 18px 20px 6px; }
.side__logo { width: 168px; display: block; }
.side__mark { width: 30px; display: none; margin: 0 auto; }
.side__product { padding: 0 22px 14px; font: 800 11px/1 var(--f-title); letter-spacing: .22em; text-transform: uppercase; color: var(--ilex-navy); border-bottom: 1px solid var(--grey-200); }
.side__product span { color: var(--ilex-red); }
.side__nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.side__item { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; margin: 2px 0; border-radius: var(--r);
  color: var(--text-2); font-size: 14px; transition: background .15s, color .15s; white-space: nowrap; }
.side__item .i { color: var(--c, var(--grey-400)); }
.side__item:hover { background: var(--bg); color: var(--ilex-navy); }
.side__item.is-active { background: var(--ilex-red-50); color: var(--ilex-red); font-weight: 700; }
.side__item.is-active::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 4px; background: var(--ilex-red); }
.side__item.is-active .i { color: var(--ilex-red); }
.side__item.is-locked { color: var(--grey-400); cursor: not-allowed; }
.side__item.is-locked .i { color: var(--grey-300); }
.side__lock { margin-left: auto; }
.side__badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ilex-red); color: #fff; font-size: 11px; display: grid; place-items: center; }
.side__sep { margin: 18px 12px 6px; font: 800 10px/1 var(--f-title); letter-spacing: .2em; text-transform: uppercase; color: var(--grey-400); }
.side__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--grey-200); }
.side__poc { font-size: 11px; color: var(--text-3); }
.side__collapse { border: 0; background: var(--bg); width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; border-radius: var(--r); transition: transform .25s; }
body.side-mini .side__logo, body.side-mini .side__product, body.side-mini .side__item > span, body.side-mini .side__sep, body.side-mini .side__poc, body.side-mini .side__lock { display: none; }
body.side-mini .side__mark { display: block; }
body.side-mini .side__item { justify-content: center; padding: 0; }
body.side-mini .side__collapse { transform: rotate(180deg); margin: 0 auto; }
body.side-mini .side__badge { position: absolute; top: 2px; right: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; height: var(--top-h); display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-200); }
.top__title { margin: 0; font: 800 15px/1 var(--f-title); letter-spacing: .08em; text-transform: uppercase; color: var(--ilex-red); white-space: nowrap; }
.top__search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--grey-200);
  background: var(--bg); border-radius: var(--r); color: var(--text-3); cursor: text; text-align: left; }
.top__search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__search kbd { font: 600 11px var(--f-text); padding: 2px 6px; border: 1px solid var(--grey-300); border-radius: 3px; background: #fff; color: var(--text-2); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top__company { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ilex-navy); }
.top__bell { position: relative; color: var(--ilex-navy); display: grid; place-items: center; }
.top__bell b { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ilex-red); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 800 11px/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-300); }
.live.is-on { color: var(--ok); }
.live.is-on i { background: var(--ok); animation: livepulse 2s infinite; }
.live--glass { color: rgba(255,255,255,.75); } .live--glass.is-on { color: #fff; } .live--glass.is-on i { background: #3EE08F; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(30,158,98,.55); } 70% { box-shadow: 0 0 0 9px rgba(30,158,98,0); } 100% { box-shadow: 0 0 0 0 rgba(30,158,98,0); } }
.user { position: relative; }
.user summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.user summary::-webkit-details-marker { display: none; }
.user__av { width: 34px; height: 34px; border-radius: 50%; background: var(--ilex-navy); color: #fff; display: grid; place-items: center; font: 800 12.5px var(--f-title); letter-spacing: .04em; }
.user__name { font: 800 12.5px var(--f-title); color: var(--ilex-red); text-transform: uppercase; letter-spacing: .04em; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user__menu { position: absolute; right: 0; top: 46px; width: 240px; background: #fff; box-shadow: var(--shadow-pop); padding: 8px; z-index: 30; }
.user__meta { padding: 8px 10px 10px; border-bottom: 1px solid var(--grey-200); font-weight: 700; }
.user__meta small { font-weight: 400; color: var(--text-3); }
.user__menu button { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 8px; padding: 10px; cursor: pointer; color: var(--ilex-red); font-weight: 600; }
.user__menu button:hover { background: var(--ilex-red-50); }

.wtabs { display: flex; gap: 2px; padding: 8px 28px 0; background: var(--bg); overflow-x: auto; min-height: 8px; }
.wtab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 12px; background: transparent; border: 1px solid transparent; border-bottom: 0;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); max-width: 240px; white-space: nowrap; cursor: pointer; position: relative; }
.wtab span { overflow: hidden; text-overflow: ellipsis; }
.wtab:hover { background: rgba(255,255,255,.7); }
.wtab.is-on { background: #fff; border-color: var(--grey-200); color: var(--ilex-navy); }
.wtab.is-on::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--ilex-red); }
.wtab__x { border: 0; background: none; width: 20px; height: 20px; display: grid; place-items: center; cursor: pointer; color: var(--text-3); border-radius: 2px; }
.wtab__x:hover { background: var(--grey-100); color: var(--ilex-red); }
.wtab__dot { width: 7px; height: 7px; background: var(--ilex-red); border-radius: 50%; }

.work { flex: 1; padding: 0 28px 40px; }
.page { animation: pagein .35s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===================================================================== HERO */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin: 0 -28px; padding: 30px 40px 28px; background: linear-gradient(105deg, var(--ilex-red) 0%, #A5121C 100%); color: #fff; min-height: 168px; }
.hero__bars, .cover__bars, .login__bars { position: absolute; inset: 0; display: flex; justify-content: flex-end; gap: 14px; padding-right: 8%; pointer-events: none; }
.hero__bars i, .cover__bars i, .login__bars i { display: block; width: 46px; background: rgba(255,255,255,.07); transform: skewX(-8deg); }
.hero__bars i:nth-child(1) { height: 70%; margin-top: auto; } .hero__bars i:nth-child(2) { height: 88%; margin-top: auto; }
.hero__bars i.r { background: rgba(0,0,0,.12); height: 100%; } .hero__bars i:nth-child(5) { height: 88%; margin-top: auto; } .hero__bars i:nth-child(6) { height: 70%; margin-top: auto; }
.hero__in { position: relative; min-width: 0; }
.hero__kicker { font: 800 11px/1 var(--f-title); letter-spacing: .22em; text-transform: uppercase; opacity: .78; margin-bottom: 10px; }
.hero__title { margin: 0 0 16px; font: 800 34px/1.05 var(--f-title); letter-spacing: -.01em; }
.hero__title small { font-size: 18px; font-weight: 600; opacity: .8; }
.hero__lead { margin: -6px 0 0; font-size: 15px; opacity: .92; max-width: 640px; }
.hero__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__count { position: relative; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.hero__count b { font: 800 64px/0.95 var(--f-title); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__count span { font: 700 12px var(--f-title); letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.hero__live { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font: 700 12px var(--f-text); font-style: normal; background: rgba(0,0,0,.18); padding: 4px 10px 4px 8px; border-radius: 999px; }
.hero__live i { width: 8px; height: 8px; border-radius: 50%; background: #3EE08F; animation: livepulse 2s infinite; }

/* =================================================================== FAMILLES */
.fams { display: flex; gap: 10px; margin: 20px 0 0; overflow-x: auto; padding: 2px 2px 8px; }
.fam { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; background: #fff;
  border: 1.5px solid var(--ilex-ink); box-shadow: 3px 3px 0 var(--ilex-ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; color: var(--ilex-ink); }
.fam:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ilex-ink); }
.fam.is-on { background: var(--ilex-red); border-color: var(--ilex-red); color: #fff; box-shadow: 3px 3px 0 var(--ilex-red-700); }
.fam__lab { font-size: 11.5px; text-align: center; line-height: 1.15; min-height: 26px; display: flex; align-items: center; }
.fam__n { font: 800 15px var(--f-title); color: var(--ilex-red); font-variant-numeric: tabular-nums; }
.fam.is-on .fam__n { color: #fff; }
.fams--card { margin: 4px 0 14px; flex-wrap: wrap; }
.fams--card .fam { width: 92px; padding: 10px 4px 8px; }

/* ======================================================================= KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.kpi { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #fff;
  box-shadow: var(--shadow-1); border: 1px solid var(--grey-200); border-top: 3px solid var(--tone); transition: transform .15s var(--ease), box-shadow .15s; --tone: var(--info); }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.kpi.is-on { outline: 2px solid var(--tone); outline-offset: -2px; }
.kpi__lab { display: block; font: 700 11px/1.2 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.kpi__val { font: 800 32px/1 var(--f-title); color: var(--ilex-navy); font-variant-numeric: tabular-nums; }
.kpi__ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--tone); box-shadow: 0 6px 14px -4px var(--tone); flex: none; }
.kpi--ok { --tone: var(--ok); } .kpi--warn { --tone: var(--warn); } .kpi--info { --tone: var(--info); } .kpi--danger { --tone: var(--danger); } .kpi--critical { --tone: var(--ilex-red); }
.kpi.is-alarm { background: var(--ilex-red); border-color: var(--ilex-red); color: #fff; overflow: hidden; }
.kpi.is-alarm .kpi__lab, .kpi.is-alarm .kpi__val { color: #fff; }
.kpi.is-alarm .kpi__ic { background: #fff; color: var(--ilex-red); animation: pulse 1.6s infinite; }
.kpi.is-alarm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); animation: sheen 2.6s infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.kpis--compact { grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 0; }
.kpis--compact .kpi { padding: 12px 14px; } .kpis--compact .kpi__val { font-size: 24px; } .kpis--compact .kpi__ic { width: 38px; height: 38px; }

/* =================================================================== FILTRES */
.filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: #fff; border: 1px solid var(--grey-200); box-shadow: var(--shadow-1); }
.filters__q { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1.5px solid var(--grey-200); background: var(--bg); transition: border-color .15s, background .15s; }
.filters__q:focus-within { border-color: var(--ilex-red); background: #fff; }
.filters__q input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; }
.filters__sel { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.filters__sel span { font: 700 12px var(--f-title); color: var(--ilex-navy); }
.filters__sel select, .pager__size select { height: 40px; border: 1.5px solid var(--grey-200); background: #fff; padding: 0 30px 0 10px; border-radius: var(--r); max-width: 220px;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2332325D' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.filters__sel select:focus { border-color: var(--ilex-red); outline: none; }
.filters__act { margin-left: auto; }

/* ===================================================================== TABLE */
.tablecard { margin-top: 18px; background: #fff; border: 1px solid var(--grey-200); box-shadow: var(--shadow-1); }
.tablecard__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--grey-200); flex-wrap: wrap; }
.tablecard__n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.tablecard__n b { font: 800 18px var(--f-title); color: var(--ilex-navy); }
.tablecard__n > span { color: var(--text-3); }
.tablecard__tools { display: flex; align-items: center; gap: 8px; }
.timing { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-50); padding: 3px 8px; border-radius: 999px; }
.timing--glass { background: rgba(255,255,255,.14); color: #fff; }
.tablewrap { overflow: auto; max-height: calc(100vh - 220px); }
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.grid thead th { position: sticky; top: 0; background: #fff; z-index: 2; text-align: left; font: 800 11px var(--f-title); letter-spacing: .08em; text-transform: uppercase; color: var(--ilex-navy);
  padding: 12px 10px 8px; border-bottom: 1px solid var(--grey-200); white-space: nowrap; }
.grid thead tr.grid__filters th { top: 37px; padding: 0 6px 8px; border-bottom: 2px solid var(--ilex-ink); }
.grid__filters input { width: 100%; min-width: 50px; height: 28px; border: 1px solid var(--grey-200); background: var(--bg); padding: 0 8px; font: 12.5px var(--f-text); text-transform: none; letter-spacing: 0; border-radius: var(--r); }
.grid__filters input:focus { outline: none; border-color: var(--ilex-red); background: #fff; }
.grid__filters input:not(:placeholder-shown) { border-color: var(--ilex-red); background: var(--ilex-red-50); }
.th { display: inline-flex; align-items: center; gap: 6px; }
.th:hover, .th.is-sorted { color: var(--ilex-red); }
.sort { width: 0; height: 0; border: 4px solid transparent; opacity: .25; }
.sort.asc { border-bottom-color: var(--ilex-red); border-top-width: 0; opacity: 1; }
.sort.desc { border-top-color: var(--ilex-red); border-bottom-width: 0; opacity: 1; }
.grid tbody td { padding: 0 10px; height: 44px; border-bottom: 1px solid var(--grey-100); white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.grid tbody tr { cursor: pointer; transition: background .12s; position: relative; }
.grid tbody tr:nth-child(even) td { background: #FCFCFE; }
.grid tbody tr:hover td { background: #F3F4FB; }
.grid tbody tr:focus { outline: none; }
.grid tbody tr:focus td, .grid tbody tr.is-sel td { background: var(--ilex-red-50); }
.grid tbody tr td:first-child { box-shadow: inset 4px 0 0 var(--lv, transparent); }
.grid tbody tr:focus td:first-child { box-shadow: inset 4px 0 0 var(--ilex-red); }
.c-primary { font-weight: 700; color: var(--ilex-navy); }
.c-go { width: 34px; color: var(--grey-300); text-align: center; }
tr:hover .c-go { color: var(--ilex-red); }
.c-stop { width: 34px; text-align: center; padding: 0 !important; }
.stopdot { color: var(--ilex-red); display: inline-grid; animation: pulse-red 1.8s infinite; border-radius: 50%; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(193,23,34,.45); } 50% { box-shadow: 0 0 0 5px rgba(193,23,34,0); } }
tr.is-stopped td { background: #FFF7F7 !important; }
.is-late { color: var(--warn); font-weight: 700; }
.delay { font-weight: 700; color: var(--text-2); } .delay.is-orange { color: var(--warn); } .delay.is-red { color: var(--ilex-red); }
tr.lv-critical { --lv: var(--ilex-red); } tr.lv-danger { --lv: var(--danger); } tr.lv-warn { --lv: var(--warn); } tr.lv-info { --lv: var(--info); }
tr.lv-ok { --lv: var(--ok); } tr.lv-muted { --lv: var(--grey-300); } tr.lv-muted td { color: var(--text-3); }
tr.lv-critical td { background: #FFF1F2 !important; }
tr.lv-critical td:first-child { box-shadow: inset 6px 0 0 var(--ilex-red); }
tr.is-fresh td { animation: fresh 3.2s var(--ease); }
@keyframes fresh { 0% { background: #FFE58F; transform: translateY(-6px); } 15% { transform: none; } 100% { background: transparent; } }
tr.is-updated td { animation: upd 2.4s var(--ease); }
@keyframes upd { 0% { background: #E4F7FB; } 100% { background: transparent; } }
tr.is-leaving { opacity: .3; transition: opacity .8s; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--grey-200); flex-wrap: wrap; }
.pager__txt { color: var(--text-2); font-size: 13px; }
.pager__nav { display: flex; align-items: center; gap: 4px; }
.pg { min-width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--text-2); border-radius: var(--r); }
.pg:hover { background: var(--grey-100); }
.pg.is-on { background: var(--ilex-red); color: #fff; }
.pg--gap { color: var(--text-3); }
.pager__size { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.pager__size select { height: 32px; }

.colpick { position: relative; }
.colpick summary { list-style: none; } .colpick summary::-webkit-details-marker { display: none; }
.colpick__menu { position: absolute; right: 0; top: 40px; width: 250px; max-height: 420px; overflow: auto; background: #fff; box-shadow: var(--shadow-pop); padding: 12px; z-index: 10; display: flex; flex-direction: column; gap: 6px; }
.colpick__t { font: 800 11px var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--ilex-navy); margin-bottom: 4px; }
.colpick__menu label { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.colpick__menu input { accent-color: var(--ilex-red); }

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.lg { width: 14px; height: 6px; } .lg--critical { background: var(--ilex-red); } .lg--danger { background: var(--danger); } .lg--warn { background: var(--warn); }
.lg--info { background: var(--info); } .lg--ok { background: var(--ok); } .lg--muted { background: var(--grey-300); }

.empty { padding: 56px 20px; text-align: center; color: var(--text-2); }
.empty__ic { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--ilex-red-50); color: var(--ilex-red); display: grid; place-items: center; }
.empty h4 { margin: 0 0 6px; font: 800 18px var(--f-title); color: var(--ilex-navy); }
.empty p { margin: 0 0 16px; }
.empty--sm { padding: 24px 10px; } .empty--sm .empty__ic { width: 52px; height: 52px; }
.empty--page { padding: 100px 20px; }

.note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13.5px; border-left: 4px solid; margin: 0 0 14px; }
.note--danger { background: var(--ilex-red-50); border-color: var(--ilex-red); color: var(--ilex-red-700); }
.note--warn { background: var(--warn-50); border-color: var(--warn); color: #8A4A07; }

/* ===================================================================== FICHE */
.cover { position: relative; overflow: hidden; margin: 0 -28px; padding: 18px 40px 74px; color: #fff;
  background: radial-gradient(1200px 300px at 85% -50%, rgba(193,23,34,.45), transparent 60%), linear-gradient(110deg, var(--ilex-ink) 0%, var(--ilex-ink-2) 100%); }
.cover--red { background: radial-gradient(1000px 300px at 85% -40%, rgba(0,0,0,.25), transparent 60%), linear-gradient(110deg, var(--ilex-red) 0%, #8E0F18 100%); }
.cover--closed { filter: saturate(.55); }
.cover__bars i { height: 100%; } .cover__bars i:nth-child(1), .cover__bars i:nth-child(6) { height: 65%; margin-top: auto; } .cover__bars i:nth-child(2), .cover__bars i:nth-child(5) { height: 85%; margin-top: auto; }
.cover__bars i.r { background: rgba(193,23,34,.35); } .cover--red .cover__bars i.r { background: rgba(0,0,0,.18); }
.cover__nav { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 22px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #fff; }
.crumb:hover { text-decoration: underline; }
.crumb__sep { opacity: .5; }
.cover__pos { display: inline-flex; align-items: center; gap: 8px; margin-left: 18px; }
.cover__pos .btn { height: 28px; width: 28px; }
.cover__tools { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.cover__main { position: relative; max-width: 960px; }
.cover__kicker { font: 800 11.5px/1 var(--f-title); letter-spacing: .24em; opacity: .75; margin-bottom: 10px; }
.cover__title { margin: 0 0 10px; font: 800 34px/1.05 var(--f-title); letter-spacing: -.01em; }
.cover__sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14.5px; opacity: .9; margin-bottom: 14px; }
.cover__sub .sep { opacity: .4; margin: 0 6px; }
.cover__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cover__badges .pill { height: 26px; font-size: 12px; padding: 0 12px; }
.cover__big { position: absolute; right: 40px; bottom: 76px; text-align: right; }
.cover__big span { display: block; font: 800 11px var(--f-title); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.cover__big b { font: 800 46px/1 var(--f-title); font-variant-numeric: tabular-nums; }

.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: -50px 12px 20px; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow-pop); border-top: 3px solid var(--ilex-red); min-width: 0;
  animation: rise .5s var(--ease) both; }
.fact:nth-child(2) { animation-delay: .05s; } .fact:nth-child(3) { animation-delay: .1s; } .fact:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fact > span { font: 800 10.5px var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.fact > b { font: 800 18px/1.25 var(--f-title); color: var(--ilex-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact > code, .fact > em { font-size: 12px; color: var(--text-3); font-style: normal; display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact--link { transition: transform .15s var(--ease); } .fact--link:hover { transform: translateY(-3px); } .fact--link em { color: var(--ilex-red); font-weight: 700; }
.fact--warn { border-top-color: var(--warn); } .fact--warn > b { color: var(--warn); }

.recgrid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.recmain { min-width: 0; }
.card { background: #fff; border: 1px solid var(--grey-200); box-shadow: var(--shadow-1); padding: 18px 20px; margin-bottom: 18px; }
.card--flat { padding: 4px 20px; }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card__h h3 { margin: 0; display: flex; align-items: center; gap: 8px; font: 800 13px var(--f-title); letter-spacing: .08em; text-transform: uppercase; color: var(--ilex-navy); }
.card__h h3 .i { color: var(--ilex-red); }
.card__h--sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grey-200); }
.lnk { color: var(--ilex-red); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.lnk:hover { text-decoration: underline; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--grey-200); margin-bottom: 0; overflow-x: auto; }
.tab { border: 0; background: none; padding: 14px 18px 12px; font: 800 12.5px var(--f-title); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--ilex-navy); }
.tab.is-on { color: var(--ilex-red); border-bottom-color: var(--ilex-red); }
.tab__n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--ilex-red); color: #fff; font-size: 10.5px; }
.tabpanel { display: none; background: #fff; border: 1px solid var(--grey-200); border-top: 0; box-shadow: var(--shadow-1); padding: 4px 22px 10px; animation: pagein .25s var(--ease); }
.tabpanel.is-on { display: block; }
.sect { padding: 16px 0 12px; border-bottom: 1px dashed var(--grey-200); }
.sect:last-child { border-bottom: 0; }
.sect__t { margin: 0 0 12px; font: 800 11px var(--f-title); letter-spacing: .16em; text-transform: uppercase; color: var(--ilex-red); display: flex; align-items: center; gap: 10px; }
.sect__t::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--ilex-red-100), transparent); }
.kvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; margin: 0; }
.kv { min-width: 0; }
.kv--wide { grid-column: 1 / -1; }
.kv dt { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; }
.kv__col { font-size: 10px; background: var(--ilex-ink); color: #FFD9DB; padding: 1px 5px; border-radius: 2px; }
.kv dd { margin: 0; font-size: 14px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.kv.is-empty dd { font-weight: 400; }
.dash { color: var(--grey-300); }
.yes { color: var(--ok); display: inline-flex; gap: 4px; align-items: center; } .no { color: var(--text-3); font-weight: 400; }
.ref { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.ref code { background: var(--grey-100); padding: 1px 6px; border-radius: 2px; font-size: 12px; color: var(--text-2); }
.ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ref span { color: var(--ilex-red); } a.ref:hover span { text-decoration: underline; }
.longtxt { white-space: pre-wrap; font-weight: 400; background: var(--bg); border-left: 3px solid var(--grey-300); padding: 10px 12px; font-size: 13.5px; line-height: 1.55; }
.secret { display: inline-flex; align-items: center; gap: 6px; }
.secret__btn { border: 0; background: var(--grey-100); width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; border-radius: 2px; color: var(--text-2); }

.links { position: sticky; top: calc(var(--top-h) + 16px); background: #fff; border: 1px solid var(--grey-200); box-shadow: var(--shadow-1); padding: 14px 10px; }
.links__t { font: 800 11px var(--f-title); letter-spacing: .16em; text-transform: uppercase; color: var(--ilex-navy); padding: 0 10px 10px; }
.link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 13.5px; font-weight: 600; color: var(--ilex-navy); border-radius: var(--r); transition: background .12s; }
.link > span { flex: 1; }
.link .i:first-child { color: var(--ilex-red); }
.link:hover { background: var(--ilex-red-50); }
.link.is-locked { color: var(--grey-400); cursor: not-allowed; font-weight: 400; } .link.is-locked .i { color: var(--grey-300) !important; }
.link.is-locked:hover { background: none; }
.links__note { margin: 12px 10px 0; padding-top: 12px; border-top: 1px solid var(--grey-200); font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.links__note a { color: var(--ilex-red); font-weight: 700; }

/* frise 12 mois */
.months__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.month i { display: block; width: 100%; height: 34px; background: var(--grey-100); border: 1px solid var(--grey-200); transform-origin: bottom; animation: grow .5s var(--ease) both; animation-delay: var(--d); }
.month.is-on i { background: linear-gradient(180deg, var(--ilex-red), var(--ilex-red-700)); border-color: var(--ilex-red); }
.month span { font: 800 11px var(--f-title); color: var(--text-3); }
.month.is-now span { color: #fff; background: var(--ilex-navy); padding: 1px 6px; border-radius: 999px; }
.month.is-now i { outline: 2px solid var(--ilex-navy); outline-offset: 2px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* mini timeline (historique) */
.mini-tl { list-style: none; margin: 0; padding: 0; }
.mini-tl li a { display: grid; grid-template-columns: 112px auto 1fr auto 16px; align-items: center; gap: 12px; padding: 10px 12px; border-left: 4px solid var(--lv, var(--grey-300)); border-bottom: 1px solid var(--grey-100); }
.mini-tl li a:hover { background: var(--bg); }
.mini-tl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ilex-navy); }
.mini-tl .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.mini-tl li.lv-critical { --lv: var(--ilex-red); } .mini-tl li.lv-danger { --lv: var(--danger); } .mini-tl li.lv-warn { --lv: var(--warn); }
.mini-tl li.lv-info { --lv: var(--info); } .mini-tl li.lv-ok { --lv: var(--ok); }

/* intervention */
.avgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.tl__list { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.tl__list::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 3px; background: var(--grey-200); }
.tl__list::after { content: ""; position: absolute; left: 13px; top: 10px; width: 3px; background: var(--ilex-red);
  height: calc((100% - 20px) * (var(--done) - 1) / (var(--n) - 1)); transform-origin: top; animation: fill 1.1s var(--ease) both .2s; }
@keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tl__step { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; z-index: 1; }
.tl__dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--grey-300); flex: none; transition: .3s; }
.tl__step.is-done .tl__dot { background: var(--ilex-red); border-color: var(--ilex-red); box-shadow: 0 0 0 4px var(--ilex-red-50); animation: pop .4s var(--ease) both; animation-delay: calc(var(--i) * .15s + .2s); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.tl__step.is-next .tl__dot { border-color: var(--ilex-red); animation: pulse-red 1.6s infinite; }
.tl__txt { display: flex; flex-direction: column; }
.tl__txt b { font-size: 14px; color: var(--ilex-navy); }
.tl__txt span { font-size: 12.5px; color: var(--text-3); }
.tl__step.is-done .tl__txt span { color: var(--text); font-weight: 600; }
.tl__gap { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ilex-red); background: var(--ilex-red-50); padding: 2px 8px; border-radius: 999px; }
.tl__app { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--grey-200); font-size: 13px; color: var(--text-2); }
.tl__app span { display: inline-flex; gap: 6px; align-items: center; }
.motif blockquote { margin: 0 0 16px; padding: 14px 16px; background: var(--bg); border-left: 4px solid var(--ilex-red); font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.motif blockquote.ok { border-left-color: var(--ok); }

/* accueil */
.homegrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.homegrid .mini-tl li a { grid-template-columns: 82px auto 1fr 16px; }
.homegrid .mini-tl .muted { display: none; }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--grey-100); }
.alerts b { min-width: 42px; height: 26px; display: grid; place-items: center; background: var(--ilex-red); color: #fff; font-size: 12.5px; }

/* palette & toasts */
.palette { border: 0; padding: 0; width: min(640px, 92vw); background: transparent; margin-top: 12vh; }
.palette::backdrop { background: rgba(29,29,27,.45); backdrop-filter: blur(3px); }
.palette__box { background: #fff; box-shadow: var(--shadow-pop); border-top: 4px solid var(--ilex-red); }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 64px; border-bottom: 1px solid var(--grey-200); color: var(--ilex-red); }
.palette__input input { flex: 1; border: 0; outline: none; font-size: 18px; color: var(--text); }
.palette__hint { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.palette__hint button { border: 1px solid var(--grey-200); background: var(--bg); padding: 4px 10px; cursor: pointer; font-weight: 700; color: var(--ilex-navy); }
.palette__hint button:hover { border-color: var(--ilex-red); color: var(--ilex-red); }
.palette__hint span { margin-left: auto; }
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; gap: 12px; align-items: flex-start; width: 360px; padding: 14px 16px; background: var(--ilex-ink); color: #fff; box-shadow: var(--shadow-pop); border-left: 5px solid var(--info);
  animation: toastin .35s var(--ease); cursor: pointer; }
.toast--critical, .toast--danger { border-left-color: var(--ilex-red); background: linear-gradient(100deg, #2A0B0D, var(--ilex-ink)); }
.toast b { display: block; font: 800 13px var(--f-title); letter-spacing: .06em; text-transform: uppercase; }
.toast span { font-size: 13px; opacity: .85; }
.toast .i { color: #FF6B74; margin-top: 2px; }
@keyframes toastin { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* =================================================================== LOGIN */
.is-login { background: var(--bg); }
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login__brand { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--ilex-red) 0%, #A3111B 60%, #7E0D15 100%); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; }
.login__bars { gap: 22px; padding-right: 10%; }
.login__bars i { width: 70px; height: 100%; background: rgba(255,255,255,.07); transform: none; animation: barin 1s var(--ease) both; }
.login__bars i:nth-child(1), .login__bars i:nth-child(6) { height: 62%; margin-top: auto; } .login__bars i:nth-child(2), .login__bars i:nth-child(5) { height: 82%; margin-top: auto; }
.login__bars i.r { background: rgba(0,0,0,.16); }
.login__bars i:nth-child(2) { animation-delay: .08s; } .login__bars i:nth-child(3) { animation-delay: .16s; } .login__bars i:nth-child(4) { animation-delay: .24s; } .login__bars i:nth-child(5) { animation-delay: .32s; } .login__bars i:nth-child(6) { animation-delay: .4s; }
@keyframes barin { from { transform: translateY(100%); } to { transform: none; } }
.login__brandin { position: relative; max-width: 560px; animation: pagein .7s var(--ease) both .2s; }
.login__kicker { font: 800 12px var(--f-title); letter-spacing: .3em; opacity: .8; margin-bottom: 22px; }
.login__claim { margin: 0 0 20px; font: 800 58px/1.02 var(--f-title); letter-spacing: -.02em; }
.login__sub { font-size: 17px; line-height: 1.55; opacity: .9; margin: 0 0 32px; }
.login__pts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.login__pts li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.login__pts .i { width: 34px; height: 34px; padding: 7px; background: rgba(255,255,255,.14); border-radius: 50%; }
.login__foot { position: absolute; left: 64px; bottom: 32px; font: 800 11px var(--f-title); letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.login__foot span { color: #FFC4C8; }
.login__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 26px; }
.login__logo { width: 280px; }
.login__card { width: min(440px, 100%); background: #fff; box-shadow: var(--shadow-pop); padding: 34px 36px 26px; border-top: 4px solid var(--ilex-red); display: flex; flex-direction: column; gap: 16px; animation: rise .6s var(--ease) both .15s; }
.login__step { font: 800 10.5px var(--f-title); letter-spacing: .24em; text-transform: uppercase; color: var(--ilex-red); }
.login__head h2 { margin: 6px 0 4px; font: 800 28px var(--f-title); color: var(--ilex-navy); }
.login__head p { margin: 0; color: var(--text-2); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld__lab { font: 700 12.5px var(--f-title); color: var(--ilex-navy); }
.fld__lab small { font-weight: 400; color: var(--text-3); }
.fld__box { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1.5px solid var(--grey-200); background: var(--bg); transition: border-color .15s, background .15s, box-shadow .15s; color: var(--grey-400); }
.fld__box:focus-within { border-color: var(--ilex-red); background: #fff; box-shadow: 0 0 0 4px var(--ilex-red-50); color: var(--ilex-red); }
.fld__box input, .fld__box select { flex: 1; border: 0; background: none; outline: none; height: 100%; font-size: 15px; color: var(--text); min-width: 0; }
.fld__box select { appearance: none; cursor: pointer; font-weight: 600; color: var(--ilex-navy); }
.fld__chev { position: absolute; right: 14px; pointer-events: none; }
.fld__eye { border: 0; background: none; cursor: pointer; color: var(--grey-400); display: grid; }
.fld__help { font-size: 11.5px; color: var(--text-3); }
.login__legal { margin: 0; display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11.5px; color: var(--text-3); }
.login__groups { display: flex; align-items: center; gap: 14px; font: 800 11px var(--f-title); letter-spacing: .2em; color: var(--grey-400); }
.login__groups i { width: 4px; height: 4px; background: var(--ilex-red); border-radius: 50%; }
.spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; position: absolute; right: 18px; }
.is-loading .spin { display: block; } .is-loading .btn__txt::after { content: "…"; } .is-loading > .i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================== responsive */
@media (max-width: 1280px) {
  .recgrid { grid-template-columns: 1fr; } .links { position: static; }
  .homegrid { grid-template-columns: 1fr 1fr; } .avgrid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .kpis, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; } .login__brand { display: none; }
  .top__company, .user__name { display: none; }
  .cover__big { position: static; margin-top: 12px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* correctifs */
.login__legal { display: block; text-align: center; line-height: 1.6; }
.login__legal .i { margin-right: 4px; vertical-align: -2px; }
.fld__box input:-webkit-autofill, .fld__box input:-webkit-autofill:hover, .fld__box input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--bg) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.fld__box:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
