/* =========================================================
   J-todolist — Design system (inspiré de la charte Holcim)
   Bleu nuit · Bleu vif · Vert · Capitales grasses · Boutons pilule
   ========================================================= */
:root {
  --navy: #04153c;
  --navy-2: #0a2058;
  --navy-3: #10306f;
  --blue: #1f7ee8;
  --blue-600: #1668c7;
  --blue-50: #eaf3fe;
  --green: #7dc242;
  --green-600: #5fa02c;
  --green-50: #eef8e4;
  --magenta: #c2185b;
  --magenta-50: #fbe8f0;
  --orange: #f59e0b;
  --orange-50: #fef3dc;
  --red: #d92d20;
  --red-50: #fdeceb;
  --teal: #0ea5a4;
  --gray-25: #f8f9fb;
  --gray-50: #f3f5f8;
  --gray-100: #e8ecf2;
  --gray-200: #dde3ec;
  --gray-300: #c5cdd9;
  --gray-500: #8a94a6;
  --gray-600: #667085;
  --gray-700: #444e60;
  --text: #0f1b33;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(4, 21, 60, .06), 0 1px 3px rgba(4, 21, 60, .05);
  --shadow: 0 4px 14px rgba(4, 21, 60, .07), 0 1px 3px rgba(4, 21, 60, .05);
  --shadow-lg: 0 18px 50px rgba(4, 21, 60, .22);
  --header-h: 68px;
  --surface: #ffffff;       /* fond des cartes, champs, fenêtres */
  --ink: #04153c;           /* titres et textes forts */
  --on-blue: #ffffff;       /* texte sur la couleur principale */
  --on-green: #0b2a05;      /* texte sur la couleur d'accent */
  --r-btn: 999px;           /* arrondi des boutons */
  --r-card: 14px;
  --r-field: 10px;
  color-scheme: light;
}
/* ---------- Mode sombre ---------- */
html[data-mode="dark"] {
  --surface: #151f33; --ink: #e8eefc; --text: #dbe3f3;
  --gray-25: #18233a; --gray-50: #0d1526; --gray-100: #223049; --gray-200: #2c3b57; --gray-300: #3d4d6b;
  --gray-500: #7f8aa3; --gray-600: #9aa6bd; --gray-700: #b7c1d6;
  --blue-50: #14284a; --green-50: #17301a; --magenta-50: #3a1428; --orange-50: #3a2a0d; --red-50: #3a1714;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 4px 14px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--gray-50); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.i { flex: none; vertical-align: middle; }
.hidden { display: none !important; }
.muted { color: var(--gray-600); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-lg { gap: 22px; }
.upper { text-transform: uppercase; letter-spacing: .04em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  font-weight: 700; font-size: 13px; letter-spacing: .02em; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 6px 16px color-mix(in srgb, var(--blue) 32%, transparent); }
.btn-primary:hover { background: var(--blue-600); }
.btn-green { background: var(--green); color: var(--on-green); box-shadow: 0 6px 16px color-mix(in srgb, var(--green) 35%, transparent); }
.btn-green:hover { background: var(--green-600); color: var(--on-green); }
.btn-white { background: #fff; color: #04153c; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.btn-white:hover { background: var(--blue-50); }
.btn-outline { background: var(--surface); border-color: var(--gray-300); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b42318; }
.btn-danger-outline { background: var(--surface); border-color: #f3b8b3; color: var(--red); }
.btn-danger-outline:hover { background: var(--red-50); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 14px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: inline-grid; place-items: center; position: relative; transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .22); }
.icon-btn.dark { background: var(--gray-100); color: var(--gray-700); }
.icon-btn.dark:hover { background: var(--gray-200); }
.icon-btn .dot {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--magenta); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--navy);
}

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 12px; color: var(--gray-700); }
.field > span.lbl { text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--gray-600); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: var(--r-field); border: 1.5px solid var(--gray-200); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 14px; resize: vertical; min-height: 92px; line-height: 1.5; }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover { border-color: var(--gray-300); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.input[disabled], .input[readonly] { background: var(--gray-50); color: var(--gray-600); }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gray-500); pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.seg { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--gray-600); display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button:hover:not(.on) { color: var(--ink); }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--navy); color: #fff; display: flex; align-items: center; gap: 26px; padding: 0 32px;
  box-shadow: 0 2px 20px rgba(4, 21, 60, .25);
}
.app-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green) 60%, var(--magenta)); opacity: .9; }
.brand { flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none !important; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand .word { font-weight: 800; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
.brand .word b { color: var(--green); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: rgba(255, 255, 255, .82); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 -2px 0 var(--green); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; }
.search-box input {
  height: 40px; width: 240px; padding: 0 14px 0 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; transition: width .2s, background .2s;
}
.search-box input::placeholder { color: rgba(255, 255, 255, .6); }
.search-box input:focus { outline: none; width: 320px; background: rgba(255, 255, 255, .2); }
.search-box .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .75); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 0; color: #fff; }
.user-chip:hover { background: rgba(255, 255, 255, .2); }
.user-chip .who { text-align: left; line-height: 1.15; }
.user-chip .who b { display: block; font-size: 13px; }
.user-chip .who span { font-size: 11px; opacity: .7; }
.admin-pill { background: linear-gradient(135deg, var(--green), #b6e26b); color: #0b2a05; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none !important; box-shadow: 0 4px 14px rgba(125, 194, 66, .4); }
.admin-pill:hover { filter: brightness(1.05); }
.burger { display: none; }
.imp-bar { background: var(--magenta); color: #fff; padding: 8px 32px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 13px; }
.imp-bar .btn { height: 28px; font-size: 11px; }
.lic-bar { padding: 9px 32px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 13px; }
.lic-bar.warn { background: var(--orange-50); color: #8a5a00; border-bottom: 1px solid #f7deaa; }
.lic-bar.danger { background: var(--red-50); color: #a12118; border-bottom: 1px solid #f3b8b3; }

/* Menu déroulant */
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 80; border: 1px solid var(--gray-100); }
.menu .item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--text); border: 0; background: transparent; width: 100%; text-align: left; text-decoration: none !important; }
.menu .item:hover { background: var(--gray-50); }
.menu .item.danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--gray-100); margin: 6px 0; }
.menu .head { padding: 10px 12px 8px; }
.menu .head b { display: block; }
.rel { position: relative; }

/* Notifications */
.notif-panel { width: 400px; padding: 0; overflow: hidden; }
.notif-panel .top { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-100); }
.notif-list { max-height: 420px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--gray-50); cursor: pointer; }
.notif:hover { background: var(--gray-25); }
.notif.unread { background: var(--blue-50); }
.notif .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif b { font-size: 13px; display: block; }
.notif p { margin: 2px 0 0; font-size: 12px; color: var(--gray-600); }
.notif time { font-size: 11px; color: var(--gray-500); }

/* ---------- Pages ---------- */
main.page { max-width: 1440px; margin: 0 auto; padding: 28px 32px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.page-head p { margin: 6px 0 0; color: var(--gray-600); font-weight: 500; }
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 34px 40px; color: #fff; margin-bottom: 26px;
  background: radial-gradient(1200px 400px at 90% -20%, rgba(31, 126, 232, .55), transparent 60%), radial-gradient(600px 300px at 0% 120%, rgba(125, 194, 66, .35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow);
}
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero > * { position: relative; }
.hero h1 { font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; max-width: 720px; }
.hero p { margin: 10px 0 0; opacity: .85; font-weight: 500; font-size: 15px; max-width: 640px; }
.hero .hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .deco { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); opacity: .95; }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-head h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.card-head h3 .i { color: var(--blue); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-main2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

/* Tuiles KPI */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; text-align: left; border: 1px solid var(--gray-100); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
button.kpi { width: 100%; }
.kpi.click { cursor: pointer; }
.kpi.click:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi .kico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.kpi .val { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.kpi .val small { font-size: 16px; font-weight: 700; margin-left: 2px; color: var(--gray-600); }
.kpi .lbl { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em; }
.kpi .trend { position: absolute; top: 18px; right: 16px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { background: var(--green-50); color: #3f7a10; }
.trend.down { background: var(--red-50); color: var(--red); }
.trend.flat { background: var(--gray-100); color: var(--gray-600); }
.kpi.red { border-color: #f3b8b3; background: linear-gradient(180deg, var(--surface), var(--red-50)); }
.kpi.red .val { color: var(--red); }
.chart-box { position: relative; height: 290px; padding: 12px 18px 18px; }
.chart-box.sm { height: 250px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 22px 16px; font-size: 12px; font-weight: 600; color: var(--gray-700); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-todo { background: var(--gray-100); color: var(--gray-700); }
.b-in_progress { background: var(--blue-50); color: var(--blue-600); }
.b-blocked { background: var(--orange-50); color: #a86400; }
.b-to_validate { background: var(--magenta-50); color: var(--magenta); }
.b-done { background: var(--green-50); color: #3f7a10; }
.b-cancelled { background: #eceef2; color: #6b7280; text-decoration: line-through; }
.b-overdue { background: var(--red-50); color: var(--red); }
.prio { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.prio.low { color: var(--gray-500); } .prio.normal { color: var(--blue); } .prio.high { color: var(--orange); } .prio.urgent { color: var(--red); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 6px; background: var(--gray-100); color: var(--gray-700); }
.tag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; flex: none; letter-spacing: .02em; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--gray-200); }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; border-width: 1.5px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.user-chip .avatar { border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.avatars { display: inline-flex; }
.avatars .avatar { margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

/* Barre de progression */
.bar { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .35s; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input { height: 40px; width: auto; min-width: 150px; }
.toolbar .input-icon { min-width: 240px; flex: 1; max-width: 360px; }
.toolbar .input-icon .input { width: 100%; }
.chip-filter { display: inline-flex; gap: 6px; }

/* ---------- Liste ---------- */
.table-wrap { overflow: auto; border-radius: var(--r-card); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); }
.tbl th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); padding: 14px 16px; background: var(--gray-25); border-bottom: 1px solid var(--gray-100); white-space: nowrap; user-select: none; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: var(--blue-50); }
.tbl .title { font-weight: 700; color: var(--ink); }
.tbl .sub { font-size: 12px; color: var(--gray-600); display: flex; gap: 10px; align-items: center; margin-top: 3px; }
.due { font-weight: 700; font-size: 13px; }
.due.late { color: var(--red); }
.due.soon { color: #b76e00; }
.empty { text-align: center; padding: 56px 20px; color: var(--gray-600); }
.empty .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* Sections de « Mes tâches » */
.sect { margin-bottom: 26px; }
.sect-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sect-head h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); }
.sect-head .count { background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.sect-head.red h2 { color: var(--red); } .sect-head.red .count { background: var(--red); }
.task-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s; position: relative; }
.task-row:hover { transform: translateX(3px); box-shadow: var(--shadow); border-color: var(--blue); }
.task-row::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gray-300); }
.task-row.p-urgent::before { background: var(--red); } .task-row.p-high::before { background: var(--orange); } .task-row.p-normal::before { background: var(--blue); }
.task-row .tt { font-weight: 700; color: var(--ink); }
.task-row .ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--surface); display: grid; place-items: center; color: #fff; flex: none; transition: all .15s; }
.task-row .ck:hover { border-color: var(--green); background: var(--green-50); color: var(--green); }
.task-row.done .ck { background: var(--green); border-color: var(--green); }
.task-row.done .tt { text-decoration: line-through; color: var(--gray-500); }
.task-row .meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--gray-600); margin-top: 4px; font-weight: 600; }
.task-row .meta .m { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #e9edf4; border-radius: 16px; padding: 12px; min-height: 340px; transition: background .15s, outline .15s; }
.col.over { background: #dbe9fb; outline: 2px dashed var(--blue); outline-offset: -4px; }
.col-head { display: flex; align-items: center; gap: 9px; padding: 4px 6px 12px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.col-head .dotc { width: 10px; height: 10px; border-radius: 50%; }
.col-head .n { margin-left: auto; background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 11px; box-shadow: var(--shadow-sm); }
.kcard { background: var(--surface); border-radius: 12px; padding: 14px 14px 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); cursor: grab; position: relative; border: 1px solid transparent; transition: box-shadow .15s, transform .12s, border-color .15s; }
.kcard:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.kcard::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gray-300); }
.kcard.p-urgent::before { background: var(--red); } .kcard.p-high::before { background: var(--orange); } .kcard.p-normal::before { background: var(--blue); }
.kcard.dragging { opacity: .45; transform: rotate(2deg); }
.kcard .kt { font-weight: 700; color: var(--ink); font-size: 13.5px; line-height: 1.35; margin-bottom: 10px; }
.kcard .kf { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--gray-600); font-weight: 600; }
.kcard .cats { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }

/* ---------- Calendrier ---------- */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal-head h2 { font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); min-width: 220px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--gray-100); border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.cal .dow { padding: 11px; text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-600); background: var(--gray-25); border-bottom: 1px solid var(--gray-100); }
.cal .day { min-height: 116px; padding: 8px; border-right: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); display: flex; flex-direction: column; gap: 4px; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.other { background: var(--gray-25); }
.cal .day.other .dn { color: var(--gray-300); }
.cal .day .dn { font-weight: 700; font-size: 12px; color: var(--gray-700); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cal .day.today .dn { background: var(--blue); color: var(--on-blue); }
.cal .ev { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid; }
.cal .ev:hover { filter: brightness(.96); }
.cal .more { font-size: 11px; font-weight: 700; color: var(--blue); cursor: pointer; padding-left: 4px; }

/* ---------- Drawer & modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4, 21, 60, .5); backdrop-filter: blur(3px); z-index: 100; animation: fade .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); z-index: 101; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slidein .25s cubic-bezier(.2, .8, .2, 1); }
.drawer-head { padding: 18px 26px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 12px; }
.drawer-head .id { font-size: 12px; font-weight: 700; opacity: .7; letter-spacing: .06em; }
.drawer-body { flex: 1; overflow: auto; padding: 24px 26px 30px; }
.drawer-foot { padding: 14px 26px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; background: var(--gray-25); }
.modal-wrap { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; padding: 20px; overflow: auto; }
.modal { background: var(--surface); border-radius: 20px; width: min(640px, 100%); box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2, .8, .2, 1); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.lg { width: min(860px, 100%); }
.modal.sm { width: min(440px, 100%); }
.modal-head { padding: 22px 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 19px; font-weight: 800; text-transform: uppercase; color: var(--ink); }
.modal-body { padding: 20px 28px; overflow: auto; }
.modal-foot { padding: 16px 28px 24px; display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.status-select { display: flex; gap: 6px; flex-wrap: wrap; }
.status-select button { border: 1.5px solid var(--gray-200); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; color: var(--gray-700); }
.status-select button:hover { border-color: var(--blue); }
.status-select button.on { color: #fff; border-color: transparent; }
.sec-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-600); margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-title .i { color: var(--blue); }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--gray-100); }
.cl-item.done span { text-decoration: line-through; color: var(--gray-500); }
.cl-item input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--green); }
.comment { display: flex; gap: 12px; margin-bottom: 16px; }
.comment .bubble { background: var(--gray-50); border-radius: 4px 14px 14px 14px; padding: 10px 14px; flex: 1; }
.comment .bubble b { font-size: 13px; }
.comment .bubble time { font-size: 11px; color: var(--gray-500); margin-left: 8px; }
.comment .bubble p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.mention { color: var(--blue-600); font-weight: 700; }
.hist { position: relative; padding-left: 22px; }
.hist::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-100); }
.hist .h { position: relative; padding: 0 0 14px; font-size: 12.5px; }
.hist .h::before { content: ''; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--blue); }
.hist .h b { color: var(--ink); }
.hist .h time { display: block; font-size: 11px; color: var(--gray-500); }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gray-100); border-radius: 10px; margin-bottom: 8px; }
.file .fi { width: 36px; height: 36px; border-radius: 9px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.dropzone { border: 2px dashed var(--gray-300); border-radius: 12px; padding: 16px; text-align: center; color: var(--gray-600); font-weight: 600; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--gray-200); cursor: pointer; font-weight: 600; font-size: 12px; }
.pick label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.pick input { display: none; }

/* Toast */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--navy); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; display: flex; gap: 12px; align-items: center; animation: slidein .25s; max-width: 420px; border-left: 5px solid var(--blue); }
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--surface); }
.auth-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px; }
.auth-hero .scene { position: absolute; inset: 0; }
.auth-hero .scene svg { width: 100%; height: 100%; display: block; }
.auth-hero > * { position: relative; }
.auth-hero h1 { font-size: 42px; font-weight: 800; text-transform: uppercase; line-height: 1.08; letter-spacing: .005em; max-width: 560px; }
.auth-hero h1 em { font-style: normal; color: var(--green); }
.auth-hero .panel { background: rgba(4, 21, 60, .72); backdrop-filter: blur(6px); padding: 30px 34px; border-radius: 6px; max-width: 600px; border-left: 4px solid var(--green); }
.auth-hero .feat { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.auth-hero .feat span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; opacity: .92; }
.auth-hero .feat .i { color: var(--green); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.auth-card .lead { color: var(--gray-600); margin-bottom: 28px; font-weight: 500; }
.auth-card .err { background: var(--red-50); color: var(--red); border-radius: 10px; padding: 11px 14px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--gray-500); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.pw-wrap button:hover { background: var(--gray-100); }
.pw-wrap .input { padding-right: 46px; }
.fullscreen-msg { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.fullscreen-msg .card { max-width: 560px; width: 100%; padding: 40px; text-align: center; }
.fullscreen-msg .big-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }

/* ---------- Équipe / cartes ---------- */
.member-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.member-card.off { opacity: .55; }
.role-badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); }
.role-badge.admin { background: var(--navy); color: #fff; }
.role-badge.manager { background: var(--green-50); color: #3f7a10; }
.role-badge.viewer { background: var(--gray-100); color: var(--gray-700); }
.role-badge.superadmin { background: linear-gradient(135deg, var(--green), #b6e26b); color: #0b2a05; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-100); margin-bottom: 22px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 12px 18px; font-weight: 700; font-size: 13px; color: var(--gray-600); border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--green); }
.state { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.state.valid { background: var(--green-50); color: #3f7a10; } .state.expiring { background: var(--orange-50); color: #a86400; } .state.grace { background: var(--orange-50); color: #a86400; }
.state.expired, .state.suspended, .state.revoked { background: var(--red-50); color: var(--red); } .state.none, .state.unused { background: var(--gray-100); color: var(--gray-700); }
.state.active { background: var(--green-50); color: #3f7a10; } .state.scheduled { background: var(--blue-50); color: var(--blue-600); }
.key { white-space: nowrap; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; letter-spacing: .05em; background: var(--gray-100); padding: 4px 10px; border-radius: 8px; color: var(--ink); font-size: 12.5px; }
.lic-card { padding: 26px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 18px; position: relative; overflow: hidden; }
.lic-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(125, 194, 66, .5), transparent 70%); }
.lic-card .big { font-size: 40px; font-weight: 800; line-height: 1; }
.lic-card .bar { background: rgba(255, 255, 255, .18); }
.price { font-size: 26px; font-weight: 800; color: var(--ink); }
.plan-card { padding: 22px; border: 1.5px solid var(--gray-100); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan-card .pn { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 13px; align-items: flex-start; }
.alert.info { background: var(--blue-50); color: var(--blue-600); } .alert.warn { background: var(--orange-50); color: #8a5a00; } .alert.ok { background: var(--green-50); color: #3f7a10; } .alert.err { background: var(--red-50); color: var(--red); }
.copybox { display: flex; gap: 10px; align-items: center; background: var(--gray-50); border: 1.5px dashed var(--gray-300); border-radius: 12px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 15px; justify-content: space-between; }
.loader { display: grid; place-items: center; padding: 80px 0; color: var(--gray-500); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--gray-100), var(--gray-50), var(--gray-100)); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1640px) {
  .app-header { gap: 18px; padding: 0 24px; }
  .user-chip .who { display: none; } .user-chip { padding: 4px; }
  .search-box input { width: 190px; } .search-box input:focus { width: 260px; }
  .main-nav a { padding: 8px 11px; }
}
@media (max-width: 1420px) {
  .admin-pill span { display: none; } .admin-pill { padding: 0 11px; }
  .search-box input { width: 150px; } .search-box input:focus { width: 220px; }
}
@media (max-width: 1880px) and (min-width: 901px) {
  /* Navigation compacte : icônes seules (le libellé reste en info-bulle), l'onglet actif garde son libellé */
  .main-nav a:not(.active) { font-size: 0; gap: 0; padding: 10px 12px; }
}
@media (max-width: 1240px) {
  .main-nav a { font-size: 0; gap: 0; padding: 10px 12px; } .main-nav a .i { font-size: 16px; }
  .header-right .btn span { display: none; }
}
@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-main2 { grid-template-columns: 1fr; }
  .search-box input { width: 170px; } .search-box input:focus { width: 220px; }
  .user-chip .who { display: none; }
}
@media (max-width: 900px) {
  .app-header { padding: 0 16px; gap: 12px; }
  .burger { display: inline-grid; }
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; margin: 0; z-index: 60; box-shadow: 0 20px 30px rgba(0, 0, 0, .3); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
  .search-box { display: none; }
  .brand .word { font-size: 17px; }
  .auth { grid-template-columns: 1fr; } .auth-hero { display: none; } .auth-form { padding: 28px 20px; align-items: flex-start; }
  main.page { padding: 20px 16px 50px; }
  .hero { padding: 24px 22px; } .hero h1 { font-size: 23px; } .hero .deco { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .notif-panel { width: min(400px, calc(100vw - 24px)); position: fixed; right: 12px; top: calc(var(--header-h) + 8px); }
  .imp-bar, .lic-bar { padding: 8px 16px; flex-wrap: wrap; }
  .admin-pill span { display: none; } .admin-pill { padding: 0 11px; }
  .cal .day { min-height: 84px; padding: 4px; } .cal .ev { font-size: 10px; padding: 2px 4px; }
  .task-row { flex-wrap: wrap; row-gap: 8px; } .task-row .grow { flex: 1 1 calc(100% - 60px); min-width: 0; } .hidden-sm { display: none; }
}
@media (max-width: 560px) {
  .brand .word { display: none; }
  .kpi .val { font-size: 27px; } .header-right .btn span { display: none; }
  .modal-body, .modal-head, .modal-foot { padding-left: 18px; padding-right: 18px; }
}
@media print {
  .app-header, .imp-bar, .lic-bar, .toolbar, .no-print, .toasts { display: none !important; }
  body { background: var(--surface); }
  main.page { padding: 0; max-width: none; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .hero { color: #000; background: var(--surface) !important; border: 1px solid #ccc; } .hero::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Séparateur « ou » de la page de connexion */
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--gray-500); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ---------- Reports d'échéance, récurrence, import ---------- */
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; margin-left: 6px; }
.flag-req { background: var(--magenta-50); color: var(--magenta); }
.flag-post { background: var(--orange-50); color: #a86400; }
.flag-rec { background: var(--blue-50); color: var(--blue-600); padding: 2px 6px; }
.flags { margin-top: 4px; }
.flags .flag { margin-left: 0; margin-right: 4px; }
.kf .flag { margin-left: 0; }
.dr-card { border: 1.5px solid #f1c3d6; background: var(--magenta-50); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; color: var(--ink); }
.dr-card .i { color: var(--magenta); }
.dr-line { border-left: 3px solid var(--gray-200); padding: 6px 0 6px 12px; margin: 0 0 10px; }
.dr-list { padding: 4px 18px; }
.dr-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.dr-item:last-child { border-bottom: 0; }
.dr-title { font-weight: 800; color: var(--ink); text-decoration: none; }
.dr-title:hover { color: var(--blue); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.steps li { padding-left: 4px; }

/* ---------- Personnalisation (marque blanche) : styles de champs, boutons et arrondis ---------- */
[data-radius="round"] { --r-card: 22px; --r-field: 14px; }
[data-radius="sharp"] { --r-card: 6px; --r-field: 4px; }
[data-buttons="rounded"] { --r-btn: 10px; }
[data-buttons="square"] { --r-btn: 3px; }
[data-fields="filled"] .input, [data-fields="filled"] select.input, [data-fields="filled"] textarea.input { background-color: var(--gray-100); border-color: transparent; }
[data-fields="filled"] .input:hover { background-color: var(--gray-200); }
[data-fields="filled"] .input:focus { background-color: var(--surface); }
[data-fields="underline"] .input, [data-fields="underline"] select.input, [data-fields="underline"] textarea.input { border-width: 0 0 2px; border-radius: 0; background-color: transparent; padding-left: 4px; }
[data-fields="underline"] .input-icon .input { padding-left: 34px; }
[data-fields="underline"] .input-icon .i { left: 6px; }
[data-fields="underline"] .input:focus { box-shadow: none; }
[data-radius="round"] .badge, [data-radius="round"] .tag { border-radius: 999px; }
[data-radius="sharp"] .modal, [data-radius="sharp"] .kcard, [data-radius="sharp"] .task-row, [data-radius="sharp"] .menu { border-radius: 6px; }
[data-radius="sharp"] .badge { border-radius: 4px; }

/* ---------- Connexion : écran scindé, habillage client ---------- */
.auth-hero.themed { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-3) 100%); }
.auth-hero .scene.themed svg { width: 100%; height: 100%; display: block; }
.auth-hero.themed h1 em { color: var(--green); }
.auth-hero.themed .panel { border-left-color: var(--green); background: rgba(0, 0, 0, .22); }
.auth-hero .brand-name { font-weight: 800; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.auth-hero .logo-tile { background: #fff; border-radius: 14px; padding: 8px 10px; display: inline-grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.auth-hero .logo-tile img { display: block; max-height: 40px; }
.hero-foot { font-size: 12px; font-weight: 600; opacity: .7; letter-spacing: .04em; }
.org-logo { display: block; object-fit: contain; }
.brand .org-logo { height: 38px; width: auto; max-width: 150px; background: #fff; border-radius: 9px; padding: 3px 6px; }
.auth-mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--ink); font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.auth-mobile-brand .org-logo { max-height: 34px; }
.auth-tabs { display: flex; background: var(--gray-100); border-radius: var(--r-btn); padding: 4px; gap: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; border-radius: var(--r-btn); height: 38px; font-weight: 700; font-size: 12.5px; color: var(--gray-600); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.auth-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-tabs button:hover:not(.on) { color: var(--ink); }
.auth-card a { color: var(--blue); }

/* ---------- Apparence (administration) ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { border: 2px solid var(--gray-200); background: var(--surface); border-radius: 12px; padding: 8px 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; color: var(--ink); }
.swatch:hover { border-color: var(--blue); }
.swatch.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.swatch .dots { display: inline-flex; } .swatch .dots i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; border: 2px solid var(--surface); } .swatch .dots i:first-child { margin-left: 0; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 46px; height: 42px; padding: 3px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--surface); cursor: pointer; }
.color-field .input { font-family: ui-monospace, Consolas, monospace; text-transform: lowercase; }
.logo-drop { display: flex; align-items: center; gap: 16px; padding: 14px; border: 2px dashed var(--gray-300); border-radius: 14px; }
.logo-drop .prev { width: 120px; height: 64px; border-radius: 10px; background: repeating-conic-gradient(var(--gray-100) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-drop .prev img { max-width: 100%; max-height: 100%; }
.appear-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.preview-box { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--gray-200); border-radius: 18px; overflow: hidden; background: var(--gray-50); }
.preview-box .pv-head { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.preview-box .pv-body { padding: 16px; display: grid; gap: 12px; }
.preview-box .pv-card { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--r-card); padding: 14px; display: grid; gap: 10px; }
.preview-box .pv-login { height: 120px; border-radius: var(--r-card); color: #fff; padding: 14px 16px; background: linear-gradient(145deg, var(--navy), var(--navy-3)); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.preview-box .pv-login::before { content: ''; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--blue); opacity: .35; }
.preview-box .pv-login b { font-size: 16px; text-transform: uppercase; position: relative; }
.preview-box .pv-login span { font-size: 11px; opacity: .85; position: relative; }
@media (max-width: 900px) { .appear-grid { grid-template-columns: 1fr; } .preview-box { position: static; } }
.mode-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-weight: 600; font-size: 13px; color: var(--text); }
.mode-row > span { display: inline-flex; align-items: center; gap: 12px; }
.mode-row .seg button { padding: 4px 9px; font-size: 11px; }
@media (max-width: 900px) { .auth-mobile-brand { display: flex; } }
.auth-mobile-brand > svg, .auth-mobile-brand > img { flex: none; }
.notif p { white-space: pre-line; }

/* ---------- Projets, sous-tâches, dépendances ---------- */
.flag-wait { background: var(--orange-50); color: #a86400; }
.flag-sub { background: var(--gray-100); color: var(--gray-700); }
.tag.proj { background: transparent; border: 1.5px solid var(--gray-300); }
.tag.proj i.sq { border-radius: 3px; }
.tag.sub { background: transparent; color: var(--gray-600); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.proj-card { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 18px 20px 18px 24px; position: relative; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 10px; }
.proj-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pc, var(--blue)); }
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.proj-card h3 { font-size: 16px; font-weight: 800; color: var(--ink); }
.proj-card .stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--gray-600); }
.proj-card .stats .late { color: var(--red); }
.sub-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--gray-100); border-radius: 10px; margin-bottom: 6px; cursor: pointer; background: var(--surface); }
.sub-row:hover { border-color: var(--blue); }
.sub-row.done .st { text-decoration: line-through; color: var(--gray-500); }
.sub-row .st { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--gray-25); margin-bottom: 6px; font-weight: 600; }
.dep-row.open { background: var(--orange-50); }
tr.sub-line td:first-child { padding-left: 38px; }
/* Chronologie (Gantt) */
.tl { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.tl-bar-nav { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.tl-bar-nav h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); flex: 1; }
.tl-scroll { overflow-x: auto; position: relative; }
.tl-grid { min-width: 100%; position: relative; }
.tl-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--gray-100); min-height: 38px; }
.tl-label { flex: none; width: 270px; position: sticky; left: 0; z-index: 3; background: var(--surface); border-right: 1px solid var(--gray-100); padding: 6px 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tl-label:hover { background: var(--gray-25); }
.tl-label .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-label.sub { padding-left: 30px; font-weight: 500; color: var(--gray-700); }
.tl-label .dotc { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tl-track { position: relative; flex: none; }
.tl-head .tl-label { cursor: default; background: var(--gray-25); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); font-weight: 800; }
.tl-head .tl-track { background: var(--gray-25); }
.tl-month { position: absolute; top: 0; height: 22px; padding: 3px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); border-left: 1px solid var(--gray-200); white-space: nowrap; overflow: hidden; text-overflow: clip; box-sizing: border-box; }
.tl-day { position: absolute; top: 22px; height: 18px; text-align: center; font-size: 10px; font-weight: 700; color: var(--gray-500); line-height: 18px; }
.tl-day.we { color: var(--gray-300); }
.tl-day.today { color: #fff; background: var(--red); border-radius: 9px; }
.tl-bar { position: absolute; top: 8px; height: 22px; border-radius: 7px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); z-index: 1; }
.tl-bar .pg { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .22); }
.tl-bar span { position: relative; }
.tl-bar.late { outline: 2px solid var(--red); outline-offset: 1px; }
.tl-bar.done { opacity: .55; }
.tl-bar.parent { height: 14px; top: 12px; border-radius: 3px; }
.tl-ms { position: absolute; top: 11px; width: 16px; height: 16px; transform: rotate(45deg); background: var(--c); border-radius: 3px; cursor: pointer; z-index: 1; }
.tl-ms-lbl { position: absolute; top: 9px; font-size: 11px; font-weight: 700; color: var(--gray-700); white-space: nowrap; z-index: 1; cursor: pointer; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .55; z-index: 2; pointer-events: none; }
.tl-group { background: var(--gray-25); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); padding: 7px 12px; border-bottom: 1px solid var(--gray-100); position: sticky; left: 0; }
.tl-edge { position: absolute; top: 9px; font-size: 11px; font-weight: 700; color: var(--gray-500); z-index: 1; }
.tl-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; font-size: 11.5px; font-weight: 600; color: var(--gray-600); border-top: 1px solid var(--gray-100); }
.tl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
@media (max-width: 900px) { .tl-label { width: 160px; } }

/* Création : sélecteur de modèle */
#nt-tpl-info { margin: 6px 0 12px; line-height: 1.4; }

/* =========================================================
   v4 — Collaboration façon Trello & refonte visuelle
   ========================================================= */
:root { --col-bg: #ebeff5; --col-bg-over: #dbe9fb; --card-ring: rgba(4, 21, 60, .08); }
html[data-mode="dark"] { --col-bg: #0f1a2d; --col-bg-over: #14284a; --card-ring: rgba(255, 255, 255, .06); }

/* Avatars : photo, piles, « +N » */
.avatar.img { background: var(--gray-100); overflow: hidden; padding: 0; }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; border-width: 3px; }
.avatars { display: inline-flex; align-items: center; vertical-align: middle; }
.avatars .avatar { margin-left: -7px; transition: transform .12s; }
.avatars .avatar:first-child { margin-left: 0; }
.avatars:hover .avatar { margin-left: -2px; }
.avatars:hover .avatar:first-child { margin-left: 0; }
.avatar.more { background: var(--gray-200); color: var(--gray-700); font-size: 10px; }
.round-add { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--gray-300); background: transparent; color: var(--gray-600); display: inline-grid; place-items: center; transition: all .15s; flex: none; }
.round-add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* Étiquettes */
.lbls { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.lbl-chip { --lc: #1f7ee8; display: inline-flex; align-items: center; gap: 6px; min-height: 20px; padding: 1px 9px; border-radius: 5px; background: var(--lc); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
.lbl-chip.wide { min-width: 120px; padding: 4px 12px; font-size: 12px; }
.lbl-chip.big { font-size: 13px; padding: 7px 14px; text-decoration: none; gap: 10px; }
.lbl-chip.big b { background: rgba(255, 255, 255, .28); border-radius: 999px; padding: 0 8px; font-size: 11px; }
.lbl-chip.big:hover { text-decoration: none; filter: brightness(1.08); }
.lbls.compact .lbl-chip { min-height: 8px; height: 8px; width: 40px; padding: 0; border-radius: 4px; }
.kc-labels { margin-bottom: 7px; cursor: pointer; }
.lb-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.lb-row { display: flex; align-items: center; gap: 8px; }
.lb-pick { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.lb-pick input { width: 18px; height: 18px; accent-color: var(--blue); }
.lb-pick .lbl-chip { flex: 1; max-width: none; min-height: 30px; font-size: 12.5px; }
.lb-pick.manage { cursor: default; }
.lbl-preview { margin-top: 14px; padding: 14px; background: var(--gray-50); border-radius: 10px; text-align: center; }
.icon-btn.sm { width: 30px; height: 30px; }

/* Nuanciers (étiquettes, couverture) */
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch-grid.big .sw { height: 40px; }
.swatch-grid.inline { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch-grid.inline .sw { width: 34px; height: 26px; }
.sw { height: 32px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .1s; display: grid; place-items: center; color: var(--gray-600); }
.sw:hover { transform: scale(1.06); }
.sw.on { border-color: var(--surface); box-shadow: 0 0 0 2px var(--blue); }
.sw.none { background: var(--gray-100); }
.cover-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cover-imgs .ci { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; height: 64px; background: var(--gray-100); cursor: pointer; }
.cover-imgs .ci.on { border-color: var(--blue); }
.cover-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Couverture des cartes */
.cover { height: 34px; border-radius: 11px 11px 0 0; }
.cover.img { height: 130px; background: var(--gray-100); overflow: hidden; }
.cover.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer-cover:empty { display: none; }
.drawer-cover .cover { border-radius: 0; height: 64px; }
.drawer-cover .cover.img { height: 180px; }

/* Kanban — cartes */
.kanban { gap: 14px; }
.col { background: var(--col-bg); border-radius: 16px; padding: 10px 10px 8px; min-height: 260px; display: flex; flex-direction: column; }
.col.over { background: var(--col-bg-over); outline: 2px dashed var(--blue); outline-offset: -4px; }
.col-head { padding: 6px 6px 10px; gap: 8px; }
.col-head .avatar { width: 22px; height: 22px; font-size: 9px; }
.col-head i.sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.col-cards { min-height: 12px; display: flex; flex-direction: column; gap: 8px; }
.col-empty { font-size: 12px; color: var(--gray-500); text-align: center; padding: 22px 8px; border: 2px dashed var(--gray-300); border-radius: 12px; margin-top: 2px; }
.kcard { padding: 0; margin: 0; border-radius: 12px; border: 1px solid var(--card-ring); box-shadow: 0 1px 0 var(--card-ring), var(--shadow-sm); overflow: hidden; cursor: pointer; }
.kcard[draggable] { cursor: grab; }
.kcard:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.kcard::before { top: 0; bottom: 0; left: 0; width: 3px; border-radius: 0; }
.kcard.has-cover::before { display: none; }
.kcard .kc-body { padding: 10px 12px 10px 14px; }
.kcard .kt { margin-bottom: 6px; font-size: 13.5px; word-break: break-word; }
.kcard.is-done .kt { color: var(--gray-500); }
.kcard .lock, .tbl .lock, .task-row .lock { color: var(--gray-500); margin-right: 5px; display: inline-flex; vertical-align: -1px; }
.kc-block { font-size: 12px; color: #a86400; font-weight: 600; margin-bottom: 6px; }
.kc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11.5px; color: var(--gray-600); font-weight: 600; }
.kc-badges .flag { margin-left: 0; }
.kb { display: inline-flex; align-items: center; gap: 3px; }
.kb.ok { background: var(--green); color: #fff; border-radius: 5px; padding: 1px 6px; }
.due-badge { border-radius: 5px; padding: 1px 6px; }
.due-badge.late { background: var(--red); color: #fff; }
.due-badge.soon, .due-badge.today { background: #f5b301; color: #2b1d00; }
.due-badge.done { background: var(--green); color: #fff; }
.kc-people { margin-left: auto; }
.bar.thin { height: 5px; }
.kcard.dragging { opacity: .35; transform: rotate(2.5deg); }
.drop-ph { border-radius: 12px; background: rgba(31, 126, 232, .12); border: 2px dashed var(--blue); flex: none; }
.quick-add { margin-top: 8px; }
.qa-btn { width: 100%; text-align: left; border: 0; background: transparent; color: var(--gray-600); font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; }
.qa-btn:hover { background: rgba(4, 21, 60, .07); color: var(--ink); }
.qa-input { min-height: 64px; font-size: 13px; resize: vertical; }

/* Barre de filtres : puces */
.chip-toggle { border: 1.5px solid var(--gray-200); background: var(--surface); color: var(--gray-700); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip-toggle:hover { border-color: var(--blue); }
.chip-toggle.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.flag-priv { background: var(--gray-100); color: var(--gray-700); }
.flag-watch { background: var(--blue-50); color: var(--blue-600); }

/* Fiche tâche — mise en page deux colonnes */
.drawer { width: min(1020px, 100vw); }
.drawer-body { padding: 0; }
.cd-head { padding: 22px 28px 6px; }
.cd-title { resize: none !important; overflow: hidden; display: block; font-family: inherit; font-size: 21px !important; font-weight: 800 !important; min-height: 0 !important; padding: 6px 8px !important; margin-left: -8px; border-color: transparent !important; color: var(--ink); background: transparent; width: calc(100% + 8px); line-height: 1.3; }
.cd-title:hover:not(.ro) { background: var(--gray-50); }
.cd-title:focus { background: var(--surface); border-color: var(--blue) !important; }
.cd-title.ro { margin: 0; padding: 0 !important; }
.cd-meta { gap: 8px; margin: 8px 0 4px; }
.cd-meta .flag { margin-left: 0; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 26px; padding: 10px 28px 34px; }
.cd-main { min-width: 0; }
.cd-side { position: sticky; top: 10px; align-self: start; display: flex; flex-direction: column; gap: 6px; }
.side-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-600); margin: 12px 0 2px; }
.side-title:first-child { margin-top: 4px; }
.side-btn { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: var(--gray-50); color: var(--ink); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 9px; transition: background .12s; }
.side-btn:hover { background: var(--gray-100); }
.side-btn .i { color: var(--gray-600); }
.side-btn.danger { color: var(--red); }
.side-btn.danger .i { color: var(--red); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 26px; padding: 14px 16px; border: 1px solid var(--gray-100); border-radius: 14px; background: var(--gray-25); margin-bottom: 4px; }
.fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact .fl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); }
.due-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--gray-100); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.due-chip.late { background: var(--red-50); color: var(--red); }
.due-chip.soon, .due-chip.today { background: var(--orange-50); color: #a86400; }
.desc-input { min-height: 110px; }
.desc-ro { white-space: pre-wrap; font-weight: 500; line-height: 1.6; }

/* Pièces jointes */
.att-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.att { display: flex; gap: 12px; align-items: flex-start; }
.att-thumb { width: 96px; height: 66px; border-radius: 9px; overflow: hidden; background: var(--gray-100); flex: none; display: grid; place-items: center; text-decoration: none; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-thumb.ico { color: var(--gray-600); font-weight: 800; font-size: 11px; grid-template-rows: auto auto; align-content: center; gap: 2px; justify-items: center; }
.att-name { font-weight: 700; color: var(--ink); word-break: break-all; }
.danger-link { color: var(--red); }

/* Commentaires et réactions */
.comment.new { margin-bottom: 20px; }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.react { border: 1px solid var(--gray-200); background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.react b { font-size: 11px; color: var(--gray-700); }
.react.mine { border-color: var(--blue); background: var(--blue-50); }
.react.ghost { border-style: dashed; color: var(--gray-500); padding: 2px 7px; }
.react-add { position: relative; display: inline-flex; gap: 4px; }
.react-pick { display: inline-flex; gap: 2px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: 999px; padding: 2px 6px; box-shadow: var(--shadow); }
.react-pick button { border: 0; background: transparent; font-size: 16px; padding: 2px 4px; border-radius: 6px; }
.react-pick button:hover { background: var(--gray-100); }

/* Sélecteur de personnes */
.pp-list { max-height: 360px; overflow: auto; border: 1px solid var(--gray-100); border-radius: 12px; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.pp-row:last-child { border-bottom: 0; }
.pp-row:hover { background: var(--gray-25); }
.pp-row input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.pp-row .grow { display: flex; flex-direction: column; }
.pp-row:has(input:checked) { background: var(--blue-50); }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gray-50); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.sw-ui { width: 40px; height: 22px; border-radius: 999px; background: var(--gray-300); position: relative; flex: none; transition: background .15s; margin-top: 2px; }
.sw-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch-row input:checked + .sw-ui { background: var(--blue); }
.switch-row input:checked + .sw-ui::after { transform: translateX(18px); }
.switch-row input:focus-visible + .sw-ui { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Import d'e-mail */
.mail-drop { display: flex !important; align-items: center; justify-content: center; gap: 10px; padding: 22px; }
.mail-drop.has { border-style: solid; border-color: var(--green); background: var(--green-50); color: var(--ink); }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--gray-500); font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 14px 0; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.em-banner { margin-bottom: 16px; }
.em-notes { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }

/* Dashboard : total toutes catégories */
.total-band { display: flex; align-items: center; gap: 26px; padding: 18px 22px; margin-bottom: 18px; flex-wrap: wrap; }
.tb-total { display: flex; align-items: center; gap: 14px; text-decoration: none !important; color: var(--ink); }
.tb-total b { font-size: 40px; font-weight: 800; line-height: 1; display: block; letter-spacing: -.02em; }
.tb-total small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-600); margin-top: 4px; line-height: 1.35; }
.tb-ico { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; display: grid; place-items: center; }
.tb-right { flex: 1; min-width: 260px; }
.tb-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--gray-100); }
.tb-bar i { display: block; min-width: 4px; }
.tb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--gray-700); text-decoration: none !important; padding: 3px 8px; border-radius: 8px; }
.tb-item:hover { background: var(--gray-50); }
.tb-item b { color: var(--ink); }
.tb-item .dotc { width: 9px; height: 9px; border-radius: 50%; }

/* Raccourcis */
.kbd-list { display: flex; flex-direction: column; gap: 10px; }
kbd { font-family: inherit; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--gray-200); border-bottom-width: 3px; background: var(--gray-25); min-width: 28px; text-align: center; }

/* Finitions générales */
.card { transition: box-shadow .15s; }
.page-head h1 { letter-spacing: -.01em; }
.tbl td .lbls { margin-right: 4px; }
.profile-head .avatar.xl { box-shadow: 0 0 0 3px var(--blue-50); }

@media (max-width: 860px) {
  .cd-grid { grid-template-columns: 1fr; padding: 8px 18px 28px; }
  .cd-head { padding: 18px 18px 4px; }
  .cd-side { position: static; order: -1; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cd-side .side-title { display: none; }
  .cd-side .side-btn { width: auto; flex: none; padding: 6px 10px; font-size: 12px; border-radius: 999px; }
  .cd-side > .avatars { display: none; }
  .facts { gap: 12px 18px; }
}
@media print { .cd-side, .drawer-cover { display: none !important; } .cd-grid { grid-template-columns: 1fr; } }

/* Archives et extractions */
.arch-filters { margin-bottom: 16px; }
.arch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.arch-grid .arch-q { grid-column: span 2; }
.arch-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 12px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; border: 1px solid var(--blue); box-shadow: var(--shadow); }
.tbl tr.sel td { background: var(--blue-50); }
.tbl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); }
.menu hr { border: 0; border-top: 1px solid var(--gray-100); margin: 4px 0; }
@media (max-width: 860px) { .arch-grid { grid-template-columns: 1fr 1fr; } .arch-grid .arch-q { grid-column: span 2; } .arch-bar { position: static; } }

/* Circuit de validation */
.val-card { border: 1px solid var(--gray-200); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; background: var(--surface); }
.val-card.on { border-color: var(--magenta); background: linear-gradient(180deg, var(--surface), var(--magenta-50)); }
.val-card > .row .i { color: var(--magenta); }
.vstep { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--gray-200); }
.vstep:first-of-type { border-top: 0; }
.vico { flex: none; margin-top: 1px; }
.vtag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); margin-left: 4px; }
.vstep.approved .vtag { background: var(--green-50); color: var(--green-600); }
.vstep.pending .vtag { background: var(--orange-50); color: #a86400; }
.vstep.rejected .vtag { background: var(--red-50); color: var(--red); }
.vstep .avatars { margin-right: 4px; }
.lvl-table { border: 1px solid var(--gray-100); border-radius: 12px; overflow: hidden; margin-top: 4px; }
.lvl-row { display: grid; grid-template-columns: 92px 1fr 260px; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--gray-100); }
.lvl-row:first-child { border-top: 0; }
.lvl-row .lv { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.lvl-row .lv b { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
@media (max-width: 760px) { .lvl-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Paiement en ligne de la licence ---------- */
.bill-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.bill-plan { position: relative; border: 1.5px solid var(--gray-200); border-radius: var(--r-card); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.bill-plan.feat { border-color: var(--green); box-shadow: var(--shadow); }
.bill-badge { position: absolute; top: -10px; left: 16px; background: var(--green); color: var(--on-green); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 10px; border-radius: 999px; }
.bill-name { font-weight: 800; text-transform: uppercase; color: var(--ink); letter-spacing: .03em; }
.bill-price { font-size: 22px; font-weight: 800; color: var(--ink); }
.bill-price span { font-size: 12px; font-weight: 600; color: var(--gray-600); margin-left: 4px; }
.bill-plan ul { list-style: none; padding: 0; margin: 6px 0 8px; flex: 1; font-size: 12.5px; color: var(--gray-700); }
.bill-plan li { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 4px; }
.bill-plan li svg { color: var(--green-600); margin-top: 2px; flex: none; }
.bill-plan .btn { margin-top: 8px; }
.fullscreen-msg .card.fs-wide { max-width: 860px; }

/* =====================================================================
   MOTION DESIGN — application (/app)
   Actif uniquement sous html.motion (préférence « réduire les animations » respectée).
   Seuls opacity et transform sont animés.
   ===================================================================== */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }
@keyframes m-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes m-bar { from { transform: scaleX(0); } }
@keyframes m-ripple { from { transform: translate(-50%, -50%) scale(0); opacity: .35; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes m-out-r { to { transform: translateX(40px); opacity: 0; } }
@keyframes m-out-d { to { transform: translateY(10px) scale(.97); opacity: 0; } }
@keyframes m-fade-out { to { opacity: 0; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Entrée des pages : blocs décalés */
html.motion .m-in { animation: m-in .6s var(--ease) both; animation-delay: calc(var(--md, 0) * 45ms); }
html.motion #view.m-full .bar > i { transform-origin: 0 50%; animation: m-bar 1s var(--ease) .25s both; }
#view > .loader { animation: fade .3s .15s both; }

/* Boutons : légère élévation, pression, onde au clic */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .15s, border-color .15s, color .15s; }
html.motion .btn-primary:hover, html.motion .btn-green:hover { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--blue) 30%, transparent); }
html.motion .btn-green:hover { box-shadow: 0 10px 22px color-mix(in srgb, var(--green) 38%, transparent); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.m-ripple { position: absolute; border-radius: 50%; background: currentColor; pointer-events: none; z-index: -1; animation: m-ripple .6s var(--ease) forwards; }
.icon-btn { transition: background .2s, transform .25s var(--ease); }
.icon-btn:active { transform: scale(.92); }

/* Cartes et indicateurs */
html.motion .kpi { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
html.motion .kpi.click:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(4, 21, 60, .12); }
.kpi .kico { transition: transform .45s var(--ease); }
html.motion .kpi:hover .kico { transform: rotate(-8deg) scale(1.08); }
html.motion .kcard:hover:not(.dragging) { transform: translateY(-2px); }
html.motion .plan-card, html.motion .bill-plan { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
html.motion .plan-card:hover, html.motion .bill-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.main-nav a { transition: background .2s, color .2s, box-shadow .3s var(--ease); }

/* Fenêtres et volet : sortie animée */
.closing { pointer-events: none; }
.overlay.out { animation: m-fade-out .18s forwards; }
.closing .drawer { animation: m-out-r .19s ease-in forwards; }
.closing .modal { animation: m-out-d .17s ease-in forwards; }
.toast.out { animation: m-out-r .3s ease-in forwards; }

/* Page de connexion : entrée */
html.motion .auth-hero .panel { animation: m-rise .9s var(--ease) .15s both; }
html.motion .auth-hero .feat span { animation: m-rise .7s var(--ease) both; }
html.motion .auth-hero .feat span:nth-child(1) { animation-delay: .45s; } html.motion .auth-hero .feat span:nth-child(2) { animation-delay: .52s; }
html.motion .auth-hero .feat span:nth-child(3) { animation-delay: .59s; } html.motion .auth-hero .feat span:nth-child(4) { animation-delay: .66s; }
html.motion .auth-card > * { animation: m-rise .7s var(--ease) both; }
html.motion .auth-card > :nth-child(2) { animation-delay: .08s; } html.motion .auth-card > :nth-child(3) { animation-delay: .14s; }
html.motion .auth-card > :nth-child(4) { animation-delay: .2s; } html.motion .auth-card > :nth-child(5) { animation-delay: .26s; }
html.motion .auth-card > :nth-child(n+6) { animation-delay: .32s; }
html.motion .fullscreen-msg .card { animation: m-rise .7s var(--ease) both; }

/* ---------- MOTION v2 : survols et micro-interactions de l'application ---------- */
@keyframes m-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes m-ck { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes m-dot { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes m-over { 0%, 100% { outline-color: var(--blue); } 50% { outline-color: var(--green); } }
@keyframes m-underline { from { transform: scaleX(0); } }
.m-particle { position: fixed; z-index: 9999; pointer-events: none; }

/* Cloche et pastille */
html.motion .m-ring svg { animation: m-ring .9s var(--ease); transform-origin: 50% 10%; }
html.motion .icon-btn .dot:not(.hidden) { animation: m-dot .45s var(--ease); }

/* Coche « terminer » */
.task-row .ck { transition: background .2s, border-color .2s, transform .3s var(--ease); }
html.motion .task-row .ck:hover { transform: scale(1.12); border-color: var(--green); }
html.motion .task-row .ck:hover svg { color: var(--green); }
.task-row .ck.ck-pop { background: var(--green); border-color: var(--green); animation: m-ck .45s var(--ease); }
.task-row .ck.ck-pop svg { color: #fff; }

/* Lignes et cartes */
html.motion .task-row { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
html.motion .task-row:hover { transform: translateX(5px); }
.task-row::before { transition: width .3s var(--ease); }
html.motion .task-row:hover::before { width: 6px; }
.tbl tbody tr td:first-child { transition: box-shadow .25s; }
.tbl tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--blue-50) 55%, transparent); }
html.motion .kcard { transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .2s; }
html.motion .kcard:hover:not(.dragging) { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 14px 30px rgba(4, 21, 60, .14); }
.col.over { animation: m-over 1s ease-in-out infinite; }

/* Lumière qui suit la souris sur les indicateurs et cartes */
html.motion .kpi::after, html.motion .kcard::after, html.motion .bill-plan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--blue) 10%, transparent), transparent 60%); }
html.motion .kpi:hover::after, html.motion .kcard:hover::after, html.motion .bill-plan:hover::after { opacity: 1; }
html.motion .kpi:hover { box-shadow: 0 12px 28px rgba(4, 21, 60, .1); }

/* Avatars, navigation, onglets */
.avatar { transition: transform .3s var(--ease), box-shadow .3s; }
html.motion .avatars .avatar:hover, html.motion .avatar:hover { transform: translateY(-2px) scale(1.12); position: relative; z-index: 2; }
.main-nav a svg { transition: transform .35s var(--ease); }
html.motion .main-nav a:hover svg { transform: translateY(-2px) scale(1.1); }
.tabs button { transition: color .2s, border-color .3s var(--ease); }
.tabs button svg { transition: transform .35s var(--ease); }
html.motion .tabs button:hover svg { transform: rotate(-10deg) scale(1.12); }
.seg button { transition: background .25s var(--ease), color .2s, box-shadow .25s; }

/* Titre de page : trait d'accent dessiné à l'entrée */
.page-head h1 { position: relative; }
.page-head h1::after { content: ''; display: block; width: 44px; height: 4px; margin-top: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: 0 50%; }
html.motion #view.m-full .page-head h1::after { animation: m-underline .8s var(--ease) .2s both; }

/* Menus déroulants et notifications */
html.motion .menu:not(.hidden) { animation: pop .22s var(--ease); }
.notif-panel .item, .menu .item { transition: background .15s, padding-left .25s var(--ease); }
html.motion .menu .item:hover { padding-left: 20px; }
.switch-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.switch-line input { appearance: none; width: 44px; height: 24px; border-radius: 999px; background: var(--gray-300); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.switch-line input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease, ease); }
.switch-line input:checked { background: var(--green); }
.switch-line input:checked::after { transform: translateX(20px); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--gray-200); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 12.5px; color: var(--gray-700); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pay-methods button.on { border-color: var(--blue); background: var(--blue-50); color: var(--ink); }
.pm-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.pm-wave { background: #1dc8ff; } .pm-orange { background: #ff7900; }

/* ---- v7 : onglets-liens, modes de paiement ---- */
.tabs a.tab { padding: 12px 18px; font-weight: 700; font-size: 13px; color: var(--gray-600); border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.tabs a.tab:hover { color: var(--ink); }
.tabs a.tab.active { color: var(--ink); border-bottom-color: var(--green); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .pm-grid { grid-template-columns: 1fr; } }
.pm-card { display: flex; flex-direction: column; border-top: 4px solid var(--pm, var(--blue)); overflow: hidden; }
.pm-card.off { opacity: .62; }
.pm-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; font-size: 16px; }
.pm-head .state { margin-left: auto; }
.pm-body { display: flex; gap: 16px; padding: 10px 18px 14px; align-items: flex-start; }
.pm-qr { flex: none; width: 112px; height: 112px; border-radius: 12px; background: var(--gray-50, #f6f7fb); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--gray-100); }
.pm-qr img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pm-noqr { display: grid; justify-items: center; gap: 4px; color: var(--gray-400, #9aa3b5); font-size: 11.5px; font-weight: 700; }
.pm-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; min-width: 0; }
.pm-info dt { color: var(--gray-600); font-weight: 600; }
.pm-info dd { margin: 0; font-weight: 700; color: var(--ink); min-width: 0; }
.pm-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-foot { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--gray-100); margin-top: auto; }
.pm-foot .danger { color: var(--red); }

/* ---- v7 : console Assistance ---- */
.main-nav a { position: relative; }
.nav-badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--navy, #04153c); }
.nav-badge.hidden { display: none; }
.sup { display: grid; grid-template-columns: 340px 1fr; gap: 16px; height: calc(100vh - 290px); min-height: 460px; }
.sup-list { overflow-y: auto; padding: 6px; }
.sup-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 10px; border-radius: 12px; text-decoration: none; color: inherit; position: relative; transition: background .15s; }
.sup-item:hover { background: var(--gray-50, #f6f7fb); }
.sup-item.on { background: var(--blue-50); }
.sup-item .grow { min-width: 0; display: grid; gap: 2px; }
.sup-item b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-item time { font-size: 11px; color: var(--gray-500, #8a93a6); white-space: nowrap; margin-left: 8px; }
.sup-org { font-size: 11.5px; color: var(--gray-600); font-weight: 600; }
.sup-last { font-size: 12.5px; color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-item.unread b, .sup-item.unread .sup-last { color: var(--ink); font-weight: 800; }
.sup-badge { background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; border-radius: 10px; min-width: 20px; height: 20px; line-height: 20px; text-align: center; padding: 0 6px; align-self: center; }
.sup-conv { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.sup-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.sup-head .grow { min-width: 160px; }
.sup-back { display: none; }
.sup-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--gray-50, #f6f7fb); }
.sup-msg { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; background: var(--surface); box-shadow: 0 1px 2px rgba(4, 21, 60, .06); align-self: flex-start; border-bottom-left-radius: 5px; }
.sup-msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.sup-msg.me a { color: #fff; }
.sup-msg time { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; }
.sup-reply { display: flex; gap: 10px; padding: 12px 16px 6px; border-top: 1px solid var(--gray-100); align-items: flex-end; }
.sup-reply textarea { flex: 1; resize: vertical; min-height: 46px; max-height: 200px; }
.sup-hint { margin: 0; padding: 0 16px 12px; }
@media (max-width: 900px) {
  .sup { grid-template-columns: 1fr; height: auto; }
  .sup.has-sel .sup-list { display: none; }
  .sup:not(.has-sel) .sup-conv { display: none; }
  .sup-conv { height: calc(100vh - 220px); min-height: 420px; }
  .sup-back { display: inline-grid; }
}
