/* ============================================================
   EQUINOXES HUB — Design System CLAIR
   Style aligné VINETICO / PROJET
   ============================================================ */

:root {
  --ink: var(--prusse);
  --ink-light: var(--prusse-2);
  --text: var(--prusse);
  --muted: var(--ardoise-fonce);
  --hint: var(--ardoise-claire);
  --border: rgba(0,0,0,.06);
  --border2: rgba(0,0,0,.10);
  --bg: var(--ardoise-brume);
  --bg-warm: var(--ardoise-brume);
  --surface: #ffffff;
  --surface-hover: #f9fafc;
  --surface-alt: var(--ardoise-pale);
  --green: var(--menthe);
  --green-deep: #16a34a;
  --green-bg: rgba(var(--menthe-rgb),.13);
  --red: #ef4444;
  --red-bg: #fef2f2;
  --orange: #f59e0b;
  --orange-bg: #fffbeb;
  --blue: #3b82f6;
  --blue-bg: #eff6ff;
  --violet: var(--prusse);
  --violet-bg: var(--ardoise-pale);
  --violet2: var(--menthe);
  --teal: #14b8a6;
  --teal-bg: #f0fdfa;
  --amber: #d97706;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --radius-l: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.03);
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --shadow-l: 0 8px 30px rgba(0,0,0,.07);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --topbar-h: 56px;
  --sidebar-w: 230px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

a { color: inherit; text-decoration: none; }
input, textarea, select {
  font-family: inherit; font-size: 13px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: var(--radius-xs); padding: 9px 12px;
  outline: none; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--menthe-rgb),.12);
  background: #fff;
}
textarea { resize: vertical; }
button { font-family: inherit; cursor: pointer; border: none; transition: all .15s; }
hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.w-full { width: 100%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover { background: var(--ink-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: .4; pointer-events: none; transform: none; }
.btn-outline {
  background: transparent; border: 1px solid var(--border2); color: var(--text);
}
.btn-outline:hover { background: var(--bg); border-color: var(--muted); }
.btn-ghost {
  background: transparent; border: none; color: var(--muted); padding: 6px 10px;
}
.btn-ghost:hover { background: rgba(0,0,0,.04); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-accent { background: var(--green); color: var(--ink); font-weight: 700; }
.btn-accent:hover { background: #2dd855; }

/* ============================================================
   TOPBAR — clair
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; z-index: 100;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
}
.topbar-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.topbar-name { font-size: 14px; color: var(--muted); }
.topbar-name b { color: var(--ink); font-weight: 700; }

.topbar-search {
  flex: 1; max-width: 400px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 8px 14px;
  transition: all .2s;
}
.topbar-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--menthe-rgb),.10);
  background: #fff;
}
.topbar-search svg { color: var(--hint); flex-shrink: 0; }
.topbar-search input {
  background: transparent; border: none; padding: 0; font-size: 13px;
}
.topbar-search input:focus { box-shadow: none; }

.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar-btn {
  width: 38px; height: 38px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); position: relative;
}
.topbar-btn:hover { background: var(--bg); color: var(--text); }
.topbar-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s;
}
.topbar-user:hover { background: var(--bg); }
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.topbar-user-name { font-size: 13px; font-weight: 500; }
.topbar-user svg { color: var(--hint); flex-shrink: 0; }

.mobile-menu-btn {
  display: none;
  width: 38px; height: 38px; border-radius: var(--radius-xs);
  background: transparent; color: var(--text);
  align-items: center; justify-content: center;
}
.mobile-page-title {
  display: none;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text);
}

/* ============================================================
   NOTIFICATIONS PANEL
   ============================================================ */
.notif-panel {
  position: fixed; top: var(--topbar-h); right: 16px; z-index: 200;
  width: 380px; max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  display: none; flex-direction: column;
  overflow: hidden;
}
.notif-panel.open { display: flex; animation: slideDown .2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.notif-head h3 { font-size: 15px; font-weight: 700; }
.notif-mark-all { font-size: 12px; color: var(--violet); background: none; font-weight: 600; }
.notif-list { overflow-y: auto; flex: 1; padding: 6px; }
.notif-item {
  display: flex; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); cursor: pointer; transition: background .15s;
  position: relative;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--violet-bg); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--violet);
  flex-shrink: 0; margin-top: 6px;
}
.notif-icon {
  width: 36px; height: 36px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.notif-sub { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.notif-time { font-size: 11px; color: var(--hint); }

/* ============================================================
   USER MENU
   ============================================================ */
.user-menu {
  position: fixed; top: var(--topbar-h); right: 16px; z-index: 200;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  display: none; flex-direction: column;
  overflow: hidden;
}
.user-menu.open { display: flex; animation: slideDown .2s ease; }
.user-menu-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.user-menu-name { font-weight: 600; font-size: 14px; }
.user-menu-email { font-size: 12px; color: var(--muted); }
.user-menu-items { padding: 6px; }
.user-menu-items a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-xs);
  font-size: 13px; color: var(--text); transition: background .12s;
}
.user-menu-items a:hover { background: var(--bg); }
.user-menu-items a.logout { color: var(--red); }

/* ============================================================
   SIDEBAR — clair, style VINETICO
   ============================================================ */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 110;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--ardoise-pale) 0%, #f0f4fb 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 8px; }
.sidebar-section {
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  color: var(--ardoise-claire); text-transform: uppercase;
  padding: 16px 10px 5px;
}
.sidebar-section:first-child { padding-top: 4px; }
.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--ardoise-fonce);
  cursor: pointer; transition: all .15s; position: relative;
  margin-bottom: 1px;
}
.sidebar-item:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.sidebar-item.active {
  background: #ffffff; color: var(--ink); font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.sidebar-item.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--green-deep); border-radius: 0 3px 3px 0;
}
.sidebar-item svg { flex-shrink: 0; color: var(--ardoise-claire); }
.sidebar-item:hover svg { color: var(--ink); }
.sidebar-item.active svg { color: var(--green-deep); }
.sidebar-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  background: rgba(var(--prusse-rgb),.08); color: var(--ink);
  padding: 2px 8px; border-radius: 10px;
}
.sidebar-item.active .sidebar-badge {
  background: var(--green-bg); color: var(--green-deep);
}

.sidebar-footer {
  padding: 14px; border-top: 1px solid var(--border);
  background: rgba(255,255,255,.4);
}
.sidebar-evo-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
  transition: box-shadow .15s; border: 1px solid var(--border);
}
.sidebar-evo-mini:hover { box-shadow: var(--shadow); }
.evo-mini-ring { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.evo-mini-ring svg { display: block; }
.evo-mini-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ink);
}
.evo-mini-label { font-size: 11px; color: var(--hint); display: block; }
.evo-mini-h { font-size: 12px; font-weight: 600; color: var(--text); }
.sidebar-version { font-size: 10px; color: var(--hint); text-align: center; margin-top: 8px; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 105;
  background: rgba(0,0,0,.25);
}

/* ============================================================
   PAGES
   ============================================================ */
.page {
  position: fixed; top: var(--topbar-h); left: var(--sidebar-w);
  right: 0; bottom: 0; overflow-y: auto;
  display: none; flex-direction: column;
  padding: 24px 28px 40px;
}
.page.active { display: flex; }

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 14px;
}
.page-head h1 {
  font-family: var(--font-display); 
  font-size: 24px; font-weight: 800; 
  letter-spacing: -.02em; color: var(--ink);
}
.page-head h1 .highlight { color: var(--green-deep); }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.page-head-actions { display: flex; gap: 8px; }

/* ============================================================
   BENTO GRID — DASHBOARD
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  flex: 1;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: all .2s ease;
  cursor: pointer;
}
.bento-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(var(--menthe-rgb),.25);
}
.bento-card-inner { padding: 20px; height: 100%; display: flex; flex-direction: column; }
.bento-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--hint); text-transform: uppercase; margin-bottom: 12px;
}
.bento-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.bento-card-head .bento-label { margin-bottom: 0; }

/* EVO card — large card, style clair */
.bento-evo {
  grid-row: 1 / 3;
  background: linear-gradient(160deg, var(--prusse) 0%, #14213d 60%, var(--prusse-2) 100%);
  color: #fff; border: none;
}
.bento-evo:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(var(--prusse-rgb),.25); }
.bento-evo .bento-label { color: rgba(255,255,255,.5); }
.bento-evo-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.bento-evo-hours { font-size: 40px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.bento-evo-hours span { font-size: 20px; font-weight: 500; color: rgba(255,255,255,.5); }
.bento-evo-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 10px;
  border-radius: 20px; margin-top: 8px;
}
.bento-evo-status.warning { background: rgba(245,158,11,.15); color: var(--orange); }
.bento-evo-status.good { background: rgba(var(--menthe-rgb),.15); color: var(--green); }
.bento-evo-ring-lg { position: relative; flex-shrink: 0; }
.evo-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
}
.bento-evo-bottom {
  display: flex; gap: 16px; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px;
}
.bento-evo-info { display: flex; flex-direction: column; gap: 2px; }
.bento-evo-info span { font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; }
.bento-evo-info strong { font-size: 13px; }
.bento-evo .btn-outline {
  margin-left: auto; align-self: flex-end;
  border-color: rgba(255,255,255,.25); color: #fff;
  font-size: 12px;
}
.bento-evo .btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* Tickets mini */
.ticket-mini-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ticket-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background .12s; cursor: pointer;
}
.ticket-mini:hover { background: var(--bg); }
.ticket-mini-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ticket-mini-status.open { background: var(--green-deep); box-shadow: 0 0 0 4px var(--green-bg); }
.ticket-mini-status.progress { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-bg); }
.ticket-mini-status.resolved { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
.ticket-mini-body { flex: 1; min-width: 0; }
.ticket-mini-id { font-size: 11px; font-weight: 700; color: var(--muted); }
.ticket-mini-title { font-size: 13px; font-weight: 600; margin: 1px 0; }
.ticket-mini-meta { font-size: 11px; color: var(--hint); }
.ticket-mini-time { font-size: 11px; font-weight: 600; color: var(--amber); flex-shrink: 0; }

/* Apps mini — plus grand, style clair */
.app-mini-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.app-mini {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 8px; border-radius: var(--radius-sm); cursor: pointer;
  transition: all .15s; text-align: center;
}
.app-mini:hover { background: var(--bg); transform: translateY(-2px); }
.app-mini-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.app-mini-name { font-size: 11px; font-weight: 600; }
.app-mini-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.app-mini-badge.active { background: var(--green-bg); color: var(--green-deep); }
.app-mini-badge:not(.active) { background: rgba(0,0,0,.04); color: var(--hint); }

/* Metrics */
.bento-metrics { grid-column: 2 / 4; }
.metrics-inline { display: flex; gap: 28px; flex-wrap: wrap; }
.metric-inline-val { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.metric-inline-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Docs mini */
.doc-mini-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doc-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: background .12s; cursor: pointer;
}
.doc-mini:hover { background: var(--bg); }
.doc-mini-icon {
  width: 34px; height: 34px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-mini-icon.invoice { background: var(--blue-bg); color: var(--blue); }
.doc-mini-icon.quote { background: var(--violet-bg); color: var(--violet); }
.doc-mini-body { flex: 1; min-width: 0; }
.doc-mini-name { font-size: 12px; font-weight: 600; }
.doc-mini-meta { font-size: 11px; color: var(--hint); }

/* Activity */
.activity-feed { display: flex; flex-direction: column; gap: 10px; }
.activity-item { display: flex; gap: 10px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.activity-body span { font-size: 13px; font-weight: 500; display: block; }
.activity-body small { font-size: 11px; color: var(--hint); }

/* ============================================================
   PAGE : DOCUMENTS
   ============================================================ */
.doc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 14px; flex-wrap: wrap;
}
.doc-tabs { display: flex; gap: 2px; background: var(--border); border-radius: var(--radius-xs); padding: 3px; }
.doc-tab {
  padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--muted); background: transparent; cursor: pointer;
}
.doc-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.doc-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 8px 12px; width: 260px;
}
.doc-search:focus-within { border-color: var(--green); }
.doc-search svg { color: var(--hint); flex-shrink: 0; }
.doc-search input { background: transparent; border: none; padding: 0; font-size: 12px; }
.doc-search input:focus { box-shadow: none; }

.doc-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden;
}
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--hint); padding: 12px 16px; text-align: left;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.doc-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: var(--surface-hover); }
.doc-id { font-weight: 600; font-family: monospace; font-size: 12px; }
.doc-type-badge { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.doc-type-badge.invoice { background: var(--blue-bg); color: var(--blue); }
.doc-type-badge.quote { background: var(--violet-bg); color: var(--violet); }
.doc-amount { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.doc-status { display: inline-flex; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.doc-status.paid { background: var(--green-bg); color: var(--green-deep); }
.doc-status.pending { background: var(--orange-bg); color: var(--orange); }
.doc-status.overdue { background: var(--red-bg); color: var(--red); }
.doc-status.accepted { background: var(--green-bg); color: var(--green-deep); }
.doc-status.refused { background: rgba(0,0,0,.05); color: var(--muted); }
.doc-actions { display: flex; gap: 6px; }

/* ============================================================
   PAGE : SUPPORT & TICKETS
   ============================================================ */
.support-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 16px; flex: 1;
  overflow: hidden;
}
.support-list {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column;
}
.support-filter-bar {
  display: flex; gap: 4px; padding: 12px; border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.support-filter {
  padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 600;
  color: var(--muted); background: transparent; white-space: nowrap;
}
.support-filter.active { background: var(--ink); color: #fff; }
.support-filter:hover:not(.active) { background: var(--bg); color: var(--text); }

.ticket-list { flex: 1; overflow-y: auto; padding: 6px; }
.ticket-card {
  padding: 14px; border-radius: var(--radius-sm); cursor: pointer;
  margin-bottom: 4px; transition: all .15s; border: 1px solid transparent;
}
.ticket-card:hover { background: var(--bg); }
.ticket-card.active { background: var(--green-bg); border-color: rgba(var(--menthe-rgb),.2); }
.ticket-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ticket-card-id { font-size: 11px; font-weight: 700; font-family: monospace; color: var(--muted); }
.ticket-card-status { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ticket-card-status.open { background: var(--green-bg); color: var(--green-deep); }
.ticket-card-status.progress { background: var(--orange-bg); color: var(--orange); }
.ticket-card-status.resolved { background: var(--blue-bg); color: var(--blue); }
.ticket-card-status.closed { background: rgba(0,0,0,.05); color: var(--hint); }
.ticket-card-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ticket-card-meta { font-size: 11px; color: var(--hint); display: flex; gap: 4px; }
.ticket-card-evo { font-size: 11px; font-weight: 600; color: var(--amber); margin-top: 6px; }

.support-detail {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column;
}
.ticket-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); padding: 40px; text-align: center;
}
.ticket-empty h3 { font-family: var(--font-display); font-size: 18px; }
.ticket-empty p { font-size: 13px; }

.ticket-detail-content { display: flex; flex-direction: column; height: 100%; }
.ticket-detail-head { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.ticket-detail-id { font-size: 12px; font-weight: 700; font-family: monospace; color: var(--muted); }
.ticket-detail-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 4px 0; }
.ticket-detail-meta { font-size: 12px; color: var(--hint); display: flex; gap: 6px; }
.ticket-detail-evo {
  margin-top: 12px; display: inline-flex; flex-direction: column;
  background: var(--orange-bg); padding: 8px 14px; border-radius: var(--radius-xs);
}
.ticket-detail-evo span { font-size: 10px; color: var(--amber); font-weight: 600; }
.ticket-detail-evo strong { font-size: 16px; font-family: var(--font-display); }

.ticket-thread { flex: 1; overflow-y: auto; padding: 20px 24px; }
.thread-msg { margin-bottom: 20px; }
.thread-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.thread-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.thread-msg-head strong { font-size: 13px; }
.thread-time { font-size: 11px; color: var(--hint); display: block; }
.thread-msg-body {
  background: var(--bg); padding: 14px 16px; border-radius: var(--radius);
  font-size: 13px; line-height: 1.6; margin-left: 42px;
}
.thread-msg.support .thread-msg-body { background: var(--violet-bg); }
.thread-msg-evo {
  margin-left: 42px; margin-top: 6px; font-size: 11px; font-weight: 600;
  color: var(--amber);
}

.ticket-reply { padding: 16px 24px; border-top: 1px solid var(--border); }
.ticket-reply textarea { width: 100%; margin-bottom: 10px; }
.ticket-reply-actions { display: flex; align-items: center; justify-content: space-between; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(var(--prusse-rgb),.35);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-l);
  width: 560px; max-height: 80vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-l);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-info {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--blue-bg); border-radius: var(--radius-xs);
  padding: 10px 14px; font-size: 12px; color: var(--blue); margin-bottom: 14px;
}
.form-info svg { flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   PAGE : CONTRAT EVO
   ============================================================ */
.evo-layout {
  display: grid; grid-template-columns: 380px 1fr; gap: 20px; flex: 1;
}
.evo-status-col { display: flex; flex-direction: column; gap: 16px; }
.evo-status-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 24px;
  display: flex; flex-direction: column; align-items: center;
}
.evo-status-type {
  font-size: 13px; font-weight: 700; color: var(--violet);
  background: var(--violet-bg); padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.evo-ring-wrap { position: relative; margin-bottom: 20px; }
.evo-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.evo-ring-big { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.evo-ring-unit { font-size: 14px; color: var(--muted); }
.evo-ring-pct-label { font-size: 11px; color: var(--hint); font-weight: 600; margin-top: 4px; }
.evo-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius); width: 100%;
}
.evo-alert.warning { background: var(--orange-bg); color: #92400e; }
.evo-alert.danger { background: var(--red-bg); color: #991b1b; }
.evo-alert.ok { background: var(--green-bg); color: var(--green-deep); }
.evo-alert strong { font-size: 13px; display: block; }
.evo-alert small { font-size: 11px; opacity: .8; }

.evo-info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 20px;
}
.evo-info-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.evo-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evo-info-label { font-size: 11px; color: var(--hint); font-weight: 600; display: block; }
.evo-info-val { font-size: 13px; font-weight: 600; color: var(--text); }
.evo-info-val.highlight { color: var(--amber); }

.evo-right-col { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }

.evo-buy-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 20px;
}
.evo-buy-head { margin-bottom: 16px; }
.evo-buy-head h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.evo-buy-head p { font-size: 13px; color: var(--muted); }
.evo-packs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.evo-pack {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid var(--border); cursor: pointer;
  transition: all .2s; position: relative;
}
.evo-pack:hover { border-color: var(--muted); }
.evo-pack.selected { border-color: var(--green); background: var(--green-bg); }
.evo-pack.recommended { border-color: var(--violet); }
.evo-pack-badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--violet); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 10px;
}
.evo-pack-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border2); flex-shrink: 0;
  transition: all .2s;
}
.evo-pack.selected .evo-pack-radio {
  border-color: var(--green); background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}
.evo-pack-content strong { font-size: 14px; display: block; }
.evo-pack-content span { font-size: 13px; font-weight: 600; color: var(--text); }
.evo-pack-content small { font-size: 11px; color: var(--hint); display: block; margin-top: 2px; }
.evo-buy-legal { font-size: 11px; color: var(--hint); margin-top: 10px; text-align: center; }

.evo-history-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 20px; flex: 1;
}
.evo-history-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.evo-history-table { width: 100%; border-collapse: collapse; }
.evo-history-table th {
  font-size: 11px; font-weight: 700; color: var(--hint);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.evo-history-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.evo-history-table a { color: var(--violet); font-weight: 500; }
.evo-history-table a:hover { text-decoration: underline; }
.evo-time-spent { font-weight: 700; color: var(--amber); font-family: var(--font-display); }

/* ============================================================
   PAGE : APP STORE — grille élargie
   ============================================================ */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.store-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden;
  transition: all .2s ease;
}
.store-card:hover { box-shadow: var(--shadow-l); transform: translateY(-3px); }
.store-card-hero {
  height: 130px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.store-card-icon { font-size: 38px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.15)); }
.store-card-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 8px;
}
.store-card-badge.subscribed { background: var(--green-bg); color: var(--green-deep); }
.store-card-badge.pending { background: var(--orange-bg); color: var(--orange); }
.store-card-badge:not(.subscribed):not(.coming):not(.pending) { background: rgba(0,0,0,.05); color: var(--muted); }
.store-card-badge.coming { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); }
.store-card-body { padding: 18px; }
.store-card-category {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--hint); text-transform: uppercase; margin-bottom: 6px;
}
.store-card-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.store-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.store-card-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 16px;
}
.store-card-features span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.store-card-features svg { color: var(--green-deep); flex-shrink: 0; }
.store-card-price { margin-bottom: 14px; }
.store-price { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.store-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.store-card-actions { display: flex; gap: 8px; }
.store-card-coming { opacity: .85; }
.store-card-coming .store-card-hero { height: 90px; }

/* ============================================================
   PAGE : MES APPS (ADMIN UNIFIÉE)
   ============================================================ */
.myapps-layout {
  display: grid; grid-template-columns: 250px 1fr; gap: 16px; flex: 1;
  overflow: hidden;
}
.myapps-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 8px; overflow-y: auto;
}
.myapps-app {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .12s; margin-bottom: 2px;
}
.myapps-app:hover { background: var(--bg); }
.myapps-app.active { background: var(--green-bg); }
.myapps-app-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.myapps-app-body { flex: 1; min-width: 0; }
.myapps-app-body strong { font-size: 12px; font-weight: 600; display: block; }
.myapps-app-body span { font-size: 11px; color: var(--hint); }
.myapps-app-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.myapps-app-status.active { background: var(--green-deep); }
.myapps-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column;
}
.myapps-admin { display: none; flex-direction: column; height: 100%; }
.myapps-admin.active { display: flex; }

.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.admin-app-brand { display: flex; align-items: center; gap: 12px; }
.admin-app-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.admin-head h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.admin-head span { font-size: 12px; color: var(--hint); }

.admin-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.admin-tab {
  padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted);
  background: none; border-bottom: 2px solid transparent; cursor: pointer;
}
.admin-tab.active { color: var(--text); border-bottom-color: var(--green); }
.admin-tab-content { display: none; padding: 20px 24px; overflow-y: auto; flex: 1; }
.admin-tab-content.active { display: block; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.admin-card-full { grid-column: 1 / -1; }
.admin-card h4 {
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-card-head h4 { margin-bottom: 0; }

.admin-status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.admin-status-row:last-child { border-bottom: none; }
.admin-status-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.admin-status-badge.active { background: var(--green-bg); color: var(--green-deep); }
.admin-status-badge.pending { background: var(--orange-bg); color: var(--orange); }

.admin-stat { margin-bottom: 12px; }
.admin-stat-val { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.admin-stat-label { font-size: 11px; color: var(--muted); }

.admin-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-toggle {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; cursor: pointer;
}
.admin-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  font-size: 11px; font-weight: 700; color: var(--hint);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.admin-user { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.admin-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; flex-shrink: 0;
}

.admin-data-actions { display: flex; flex-direction: column; gap: 10px; }
.admin-data-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.admin-data-item svg { color: var(--muted); flex-shrink: 0; }
.admin-data-item div { flex: 1; }
.admin-data-item strong { font-size: 13px; display: block; }
.admin-data-item small { font-size: 11px; color: var(--hint); }

.admin-billing-info { display: flex; align-items: center; justify-content: space-between; }
.admin-billing-plan strong { font-size: 14px; display: block; }
.admin-billing-plan span { font-size: 13px; color: var(--muted); }
.admin-billing-plan small { font-size: 11px; color: var(--hint); display: block; margin-top: 4px; }
.admin-billing-actions { display: flex; gap: 8px; }

/* ============================================================
   PAGE : FACTURATION UNIFIÉE
   ============================================================ */
.billing-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.billing-summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 20px;
}
.billing-summary-card .bs-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.billing-summary-card .bs-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.billing-summary-card .bs-label { font-size: 12px; color: var(--muted); margin-top: 3px; }

.billing-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); margin-bottom: 16px;
  overflow: hidden;
}
.billing-group-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s;
  font-weight: 600; font-size: 14px;
}
.billing-group-head:hover { background: var(--surface-hover); }
.billing-group-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.billing-group-amount { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.billing-group-renewal { font-size: 12px; color: var(--hint); font-weight: 400; }
.billing-group-table { width: 100%; border-collapse: collapse; }
.billing-group-table th {
  font-size: 11px; font-weight: 700; color: var(--hint);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 20px; text-align: left; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.billing-group-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 13px; }
.billing-group-table tr:last-child td { border-bottom: none; }
.billing-group-table tr:hover td { background: var(--surface-hover); }

/* ============================================================
   PAGE : SETTINGS
   ============================================================ */
.settings-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px;
}

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-l);
  animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { background: var(--green-deep); }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   UTILS
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-evo { grid-row: auto; }
  .bento-metrics { grid-column: auto; }
  .evo-layout { grid-template-columns: 1fr; }
  .support-layout { grid-template-columns: 1fr; }
  .support-list { max-height: 300px; }
  .myapps-layout { grid-template-columns: 1fr; }
  .myapps-sidebar { display: flex; flex-direction: row; overflow-x: auto; max-height: 80px; }
  .myapps-app { flex-shrink: 0; white-space: nowrap; }
  .billing-summary { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .topbar { left: 0; }
  .page { left: 0; }
  .mobile-menu-btn { display: flex; }
  .mobile-page-title { display: block; }
  .topbar-brand { display: none; }
  .topbar-search { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .app-mini-grid { grid-template-columns: 1fr 1fr; }
  .store-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .settings-content { grid-template-columns: 1fr; }
  .billing-summary { grid-template-columns: 1fr 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.2); }

/* Selection */
::selection { background: rgba(var(--menthe-rgb),.25); }

/* ============================================================
   AJOUTS v1.19 — familles de store, carte SEPA, palier d'hébergement,
   panneau générique "Mes Apps". Regroupés en fin de fichier pour ne
   pas perturber les règles existantes au-dessus.
   ============================================================ */

/* -- Store : sections par famille -- */
.store-family { margin-bottom: 8px; }
.store-family-head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin: 22px 0 14px; }
.store-family-head:first-of-type { margin-top: 4px; }
.store-family-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.store-family-head span { font-size: 12.5px; color: var(--hint); }

/* -- Facturation : carte moyen de paiement (mandat SEPA unique) -- */
.billing-sepa-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg,var(--prusse),var(--prusse-2)); color: #fff;
  border-radius: var(--radius-l); padding: 18px 22px; margin-bottom: 18px;
}
.billing-sepa-icon { font-size: 26px; flex: none; }
.billing-sepa-body { display:flex; flex-direction: column; gap: 3px; flex: 1; min-width: 220px; }
.billing-sepa-body strong { font-family: var(--font-display); font-size: 15px; }
.billing-sepa-body span { font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.5; }
.billing-sepa-amount { text-align: right; flex: none; }
.billing-sepa-amount span { display:block; font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .04em; }
.billing-sepa-amount strong { font-family: var(--font-display); font-size: 19px; }
.billing-sepa-amount small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); }

/* -- Hébergement : sélecteur de palier -- */
.tier-switch { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding: 12px 16px 16px; }
.tier-switch-label { font-size: 12px; color: var(--hint); font-weight: 600; margin-right: 4px; }
.tier-pill {
  border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  display:flex; align-items:center; gap:6px; transition: border-color .15s, background .15s;
}
.tier-pill small { font-weight: 500; color: var(--hint); }
.tier-pill:hover { border-color: var(--ink); }
.tier-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tier-pill.active small { color: rgba(255,255,255,.7); }

/* -- Mes Apps : panneau générique construit par JS -- */
.admin-empty { text-align:center; padding: 48px 20px; color: var(--hint); }
.admin-empty h3 { font-family: var(--font-display); font-size: 15px; color: var(--ink); margin-bottom: 6px; }


/* ============================================================
   ÉCRAN DE CONNEXION (v1.30) — email vérifié Axonaut + PIN 4 chiffres
   ============================================================ */
/* v1.212 — la connexion se fait DANS le portail : le menu de gauche, la barre du haut et la barre basse restent ; la carte prend la place
   de la page (avant : un écran plein, sombre, sans menu — l'invité venu de la Relecture ne pouvait plus y revenir). */
body.not-authed .page, body.not-authed .toast-container { display: none !important; }
/* personne de connu : ni recherche ni « À faire », il n'y a encore rien à chercher */
body.not-authed:not(.hub-invite) .topbar-search, body.not-authed:not(.hub-invite) #notif-btn { visibility: hidden; }

#login-screen { display: none; }
#login-screen.active {
  position: fixed; top: var(--topbar-h); left: var(--sidebar-w); right: 0; bottom: 0; overflow-y: auto;
  display: flex; padding: 40px 28px 56px;
}
#login-screen.active .login-card { margin: auto; }   /* centrée, et défile quand elle dépasse (formulaire « sans compte ») */
#login-screen .login-logo { display: none; }          /* la barre du haut porte déjà le nom du portail */
.login-card {
  width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--radius-l);
  border: 1px solid var(--border); box-shadow: var(--shadow-l); padding: 32px 32px 28px; position: relative;
}
@media (max-width: 860px) {
  #login-screen.active { left: 0; padding: 20px 14px 110px; }
  .login-card { padding: 26px 20px 22px; }
}
.login-logo { display:flex; align-items:center; gap:10px; margin-bottom: 22px; }
.login-logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-family: var(--font-display); font-size: 15px;
}
.login-logo-txt { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.login-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.login-step { display: flex; flex-direction: column; gap: 14px; }
.login-field label { display:block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.login-field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border2); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--bg-warm); transition: border-color .15s;
}
.login-field input:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.login-pin-input { text-align: center; font-family: var(--font-display); font-size: 26px; letter-spacing: .3em; font-weight: 700; }
.login-btn {
  width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm); background: var(--ink);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .15s, transform .1s;
  font-family: var(--font);
}
.login-btn:hover:not(:disabled) { opacity: .92; }
.login-btn:active:not(:disabled) { transform: scale(.98); }
.login-btn:disabled { opacity: .55; cursor: default; }
.login-error {
  background: var(--red-bg); color: #b91c1c; border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 12.5px; line-height: 1.5; display: none;
}
.login-error.show { display: block; }
.login-hint { font-size: 11.5px; color: var(--hint); margin-top: 2px; }
.login-back { background: none; border: none; color: var(--muted); font-size: 12.5px; cursor: pointer; text-align: left; padding: 0; }
.login-back:hover { color: var(--ink); text-decoration: underline; }
.login-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; }
.login-footer a { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.login-footer a:hover { color: var(--ink); text-decoration: underline; }
.login-pin-echo { font-size: 12.5px; color: var(--muted); }
.login-pin-echo strong { color: var(--ink); }
.login-noaccount-result { font-size: 13px; color: var(--green-deep); background: var(--green-bg); border-radius: var(--radius-sm); padding: 12px; line-height: 1.5; }
.login-company-list { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.login-company-item { padding: 9px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); cursor: pointer; font-size: 13px; }
.login-company-item:hover { border-color: var(--ink); }
.login-company-item.selected { border-color: var(--ink); background: var(--bg-warm); font-weight: 700; }

/* ── États vides / squelettes de chargement (v1.30) ── */
.hub-loading { text-align: center; padding: 40px 20px; color: var(--hint); font-size: 13px; }
.hub-empty { text-align: center; padding: 40px 20px; color: var(--hint); }
.hub-empty h3 { font-family: var(--font-display); font-size: 14px; color: var(--ink); margin-bottom: 4px; }

/* ============================================================
   v1.34 — REFONTE MOBILE DU PORTAIL CLIENT
   ------------------------------------------------------------
   Le portail n'avait qu'un tiroir latéral (hamburger) : sur mobile
   c'est le pire choix pour la navigation PRINCIPALE — options
   cachées, découvrabilité nulle, et le pouce doit remonter au coin
   supérieur gauche, la zone la plus difficile à atteindre.
   On applique le standard 2026 (Apple HIG / Material 3 / WCAG 2.2) :
   barre d'onglets basse à 4 entrées + hamburger conservé pour le
   secondaire. Aucune fonction n'est retirée.
   ============================================================ */

/* Barre d'onglets basse — masquée sur desktop */
.hub-tabbar { display: none; }

@media (max-width: 860px) {
  .hub-tabbar {
    display: flex; position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border2); border-radius: 22px; padding: 6px;
    box-shadow: 0 14px 34px -18px rgba(var(--prusse-rgb),.55);
  }
  .hub-tabbar button {
    flex: 1; border: 0; background: transparent; cursor: pointer;
    color: var(--muted); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    font-size: 10px; font-weight: 600; font-family: var(--font);
    min-height: 46px; border-radius: 16px; transition: .16s;
    padding: 5px 2px;
  }
  .hub-tabbar button svg { width: 19px; height: 19px; }
  /* Onglet actif : pastille pleine — repère de FORME et de
     LUMINOSITÉ, pas seulement de teinte (contrainte daltonisme). */
  .hub-tabbar button.active { background: var(--ink); color: #fff; }
  .hub-tabbar button .tab-badge {
    position: absolute; transform: translate(16px, -12px);
    background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
    min-width: 15px; height: 15px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
  }

  /* Réserve sous la barre, sinon le dernier bloc est inatteignable */
  .page { padding-bottom: 96px !important; }

  /* ── En-tête : le nom du client mangeait 3 lignes ── */
  .topbar { height: auto; min-height: var(--topbar-h); padding: 8px 12px !important; }
  .topbar-user-name {
    max-width: 120px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; font-size: 12.5px;
  }
  .mobile-page-title { font-size: 15px; }

  /* ── Aller droit à l'information ──
     Le sous-titre décoratif et le grand "Bonjour, <nom>" prenaient
     un tiers de l'écran avant la moindre donnée utile. ── */
  .page-head { padding: 12px 14px !important; margin-bottom: 10px !important; }
  .page-head h1 { font-size: 20px !important; line-height: 1.2 !important; }
  .page-sub { display: none !important; }
  .page-head-actions .btn { min-height: 44px; }

  /* ── Cartes bento : lisibilité ── */
  .bento-card-inner { padding: 14px !important; }
  .bento-evo-hours { font-size: 30px !important; }
  .bento-evo-top { gap: 10px !important; }
  .bento-evo-bottom { flex-wrap: wrap !important; gap: 8px !important; }
  .bento-evo-bottom .btn { width: 100%; min-height: 44px; }
  .metrics-inline { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .metric-inline-val { font-size: 22px !important; }
  .metric-inline-label { font-size: 10.5px !important; line-height: 1.2 !important; }

  /* ── Listes : texte jamais coupé au milieu d'un mot ── */
  .ticket-mini-title, .doc-mini-name, .doc-mini-meta,
  .ticket-card-title, .activity-body span {
    white-space: normal !important; overflow-wrap: anywhere; line-height: 1.3 !important;
  }
  .ticket-mini, .doc-mini, .ticket-card, .myapps-app { min-height: 52px; }

  /* ── Tableaux : défilement horizontal doux plutôt qu'écrasement ── */
  .doc-table, .admin-table, .billing-group-table, .evo-history-table { min-width: 520px; }
  .doc-table-wrap, .admin-card-full, .evo-history-card, .billing-group {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* ── Modales en plein écran ── */
  .modal { width: 100% !important; max-width: 100% !important;
    height: 100% !important; max-height: 100% !important;
    border-radius: 0 !important; margin: 0 !important; }
  .modal-body { max-height: none !important; padding-bottom: 40px !important; }

  /* ── Formulaires : 16px sinon iOS zoome au focus ── */
  input, textarea, select { font-size: 16px !important; }
  .form-row { flex-direction: column !important; }
  .btn { min-height: 44px; }

  /* ── Panneaux flottants : pleine largeur, jamais hors écran ──
     Le panneau de notifications sortait du cadre à gauche. ── */
  .notif-panel, .user-menu {
    left: 10px !important; right: 10px !important; width: auto !important;
    max-width: none !important; top: calc(var(--topbar-h) + 8px) !important;
  }
  .notif-item { min-height: 56px; }
  .notif-title, .notif-sub { overflow-wrap: anywhere; }
}

/* ============================================================
   ÉCRAN DE CONNEXION — mots coupés (signalé par Clément)
   Cause : le conteneur héritait d'une coupure de mot agressive.
   On coupe uniquement là où c'est nécessaire, jamais au milieu
   d'un mot court.
   ============================================================ */
.login-card, .login-card * { hyphens: none; -webkit-hyphens: none; }
.login-title, .login-sub, .login-field label, .login-error,
.login-hint, .login-footer a, .login-pin-echo {
  overflow-wrap: break-word; word-break: normal;
}
@media (max-width: 420px) {
  .login-card { padding: 26px 20px 24px !important; border-radius: 18px; }
  .login-title { font-size: 18px !important; }
  .login-sub { font-size: 12.5px !important; }
  .login-btn, .login-field input { min-height: 46px; }
  .login-field input { font-size: 16px !important; }
}

/* Écrans étroits */
@media (max-width: 380px) {
  .hub-tabbar button { font-size: 9px; }
  .metrics-inline { grid-template-columns: 1fr 1fr !important; }
  .topbar-user-name { max-width: 84px; }
}

/* ============================================================
   v1.44 — TABLEAU DE BORD : DIRECTION PASTEL
   ------------------------------------------------------------
   Le portail est la vitrine client. Son sujet n'est pas le contrat de
   maintenance mais les APPLICATIONS : il doit montrer que ce qu'Équinoxes
   fait tourner produit des résultats mesurables, et qu'il en existe d'autres.

   Parti pris :
   · Le navy de marque quitte les fonds et devient l'ENCRE. Il est partout,
     dans chaque mot, mais ne pèse plus. C'est ce qui laisse vivre les pastels
     sans effacer l'identité.
   · Le vert #3CE65F ne sert plus d'aplat : uniquement de pastille de vie sur
     les apps qui tournent. Un état se lit sans lire.
   · Chaque app a SA teinte, conservée partout dans le portail. C'est ce qui
     transforme une liste de produits en écosystème.
   · Fond lilas froid et non crème : le crème chaud aurait tiré la marque vers
     le beige et se voit partout en ce moment.
   ============================================================ */

:root {
  --hub-canvas: var(--ardoise-pale);
  --hub-rail: var(--ardoise-brume);
  --hub-encre: var(--prusse);
  --hub-encre-2: var(--ardoise-fonce);
  --hub-encre-3: var(--ardoise);
  --hub-vif: var(--menthe);
  --hub-r-xl: 24px;
  --hub-r-l: 20px;
  --hub-r-m: 18px;
  --hub-r-s: 12px;
  /* Les ombres portées font tout le moelleux de cette direction : très
     diffuses, très peu opaques, teintées navy plutôt que noires. */
  --hub-ombre: 0 1px 2px rgba(var(--prusse-rgb),.04), 0 12px 30px -14px rgba(var(--prusse-rgb),.16);
  --hub-ombre-l: 0 2px 4px rgba(var(--prusse-rgb),.05), 0 24px 48px -20px rgba(var(--prusse-rgb),.22);
}

/* Une teinte par app, tenue dans tout le portail. */
.ap-vinetico    { --ap-bg:#FBEAF0; --ap-tx:#993556; --ap-fort:#4B1528; --ap-bar:#F4C0D1; --ap-fill:#D4537E; }
.ap-atlasio     { --ap-bg:#E1F5EE; --ap-tx:#0F6E56; --ap-fort:#04342C; --ap-bar:#9FE1CB; --ap-fill:#1D9E75; }
.ap-kanalo      { --ap-bg:var(--ardoise-pale); --ap-tx:var(--ardoise-fonce); --ap-fort:var(--prusse); --ap-bar:var(--ardoise-ligne-2); --ap-fill:var(--ardoise); }
.ap-hebergement { --ap-bg:#E6F1FB; --ap-tx:#185FA5; --ap-fort:#042C53; --ap-bar:#B5D4F4; --ap-fill:#378ADD; }
.ap-ndd         { --ap-bg:#E1F5EE; --ap-tx:#0F6E56; --ap-fort:#04342C; --ap-bar:#9FE1CB; --ap-fill:#1D9E75; }
.ap-mail        { --ap-bg:var(--ardoise-pale); --ap-tx:var(--ardoise-fonce); --ap-fort:var(--prusse); --ap-bar:var(--ardoise-ligne-2); --ap-fill:var(--ardoise); }
.ap-affichage   { --ap-bg:#FAEEDA; --ap-tx:#854F0B; --ap-fort:#412402; --ap-bar:#FAC775; --ap-fill:#BA7517; }
.ap-evo         { --ap-bg:#FAEEDA; --ap-tx:#854F0B; --ap-fort:#412402; --ap-bar:#FAC775; --ap-fill:#BA7517; }
.ap-evo-ok      { --ap-bg:#EAF3DE; --ap-tx:#3B6D11; --ap-fort:#173404; --ap-bar:#C0DD97; --ap-fill:#639922; }

/* ── Le cadre flottant ──
   L'app ne touche plus les bords : elle repose sur un fond teinté. C'est le
   détail qui transforme une page web en objet posé, et il coûte trois lignes. */
body.hub-v2 { background: var(--hub-canvas); overflow: auto; height: auto; }
/* ⚠ v1.45 — CORRECTION MAJEURE. La v1.44 masquait la barre latérale d'origine
   et reconstruisait une navigation À L'INTÉRIEUR du rendu de l'accueil. Tous
   les autres écrans se retrouvaient donc sans aucun menu, et sans moyen de
   revenir : le portail devenait un cul-de-sac dès le premier clic.
   La barre latérale d'origine est PERSISTANTE — elle vit hors des pages et
   porte déjà la navigation, les badges et le mini-anneau EVO. On la restyle
   plutôt que de la masquer. Une seule coque, valable partout. */
/* v1.179 — la barre du haut revient, posée sur le cadre de la page. Masquée depuis la v1.45 dès l'accueil chargé, elle emportait la
   recherche, « À faire » et le menu du compte : sur ordinateur, ni « Paramètres » ni « Déconnexion » n'avaient plus d'accès. */
body.hub-v2 .topbar {
  position: fixed; left: 224px; right: 24px; top: 26px; height: 58px; z-index: 61;
  background: #fff; border-bottom: 1px solid rgba(var(--prusse-rgb),.07); border-radius: 0 var(--hub-r-xl) 0 0; padding: 0 22px 0 30px;
}
body.hub-v2 .topbar-brand { display: none; }
body.hub-v2 .topbar-search { flex: 1; max-width: 460px; }
body.hub-v2 .topbar-actions { margin-left: auto; }
body.hub-v2 .notif-panel, body.hub-v2 .user-menu { top: 88px; right: 34px; }

body.hub-v2 .sidebar {
  position: fixed; left: 24px; top: 26px; bottom: 44px; width: 200px;
  background: var(--hub-rail); border: 0; border-right: 0;
  border-radius: var(--hub-r-xl) 0 0 var(--hub-r-xl);
  box-shadow: none; padding: 22px 15px; z-index: 60;
  display: flex; flex-direction: column;
}
body.hub-v2 .sidebar-nav { padding: 0; }
body.hub-v2 .sidebar-section {
  font-size: 10.5px; letter-spacing: .1em; color: var(--hub-encre-3);
  padding: 16px 12px 6px;
}
body.hub-v2 .sidebar-item {
  border-radius: var(--hub-r-s); padding: 10px 12px; font-size: 13.5px;
  color: var(--hub-encre-2); margin-bottom: 4px; background: none; box-shadow: none;
}
body.hub-v2 .sidebar-item:hover { background: rgba(255,255,255,.75); color: var(--hub-encre); }
body.hub-v2 .sidebar-item.active {
  background: #fff; color: var(--hub-encre); font-weight: 600; box-shadow: var(--hub-ombre);
}
body.hub-v2 .sidebar-item.active::before { display: none; }
body.hub-v2 .sidebar-item svg { color: currentColor; }
body.hub-v2 .sidebar-badge { background: rgba(var(--prusse-rgb),.08); color: var(--hub-encre); }
body.hub-v2 .sidebar-footer { border-top: 1px solid rgba(var(--prusse-rgb),.07); background: none; }
body.hub-v2 .sidebar-evo-mini { border-radius: var(--hub-r-s); box-shadow: none; border-color: rgba(var(--prusse-rgb),.08); }

/* Le cadre blanc flottant est désormais la PAGE elle-même : chaque écran en
   hérite, donc l'accueil ne détonne plus avec les quatre autres. */
body.hub-v2 .page {
  position: fixed; left: 224px; top: 84px; right: 24px; bottom: 44px;
  overflow-y: auto; padding: 26px 30px 34px; background: #fff;
  border-radius: 0 0 var(--hub-r-xl) 0;
  box-shadow: var(--hub-ombre-l); display: none;
}
body.hub-v2 .page.active { display: block; }
body.hub-v2 .page-head { padding: 0; margin-bottom: 20px; }
body.hub-v2 .page-head h1 { font-size: 23px; letter-spacing: -.025em; color: var(--hub-encre); }
body.hub-v2 .page-sub { font-size: 12.5px; color: var(--hub-encre-3); }
/* L'accueil est un CONTENU de page, plus un cadre : le cadre est porté par
   .page, donc partagé par les cinq écrans. */
.hub2 { display: flex; gap: 20px; align-items: flex-start; }
.hub2-frame { flex: 1; min-width: 0; display: block; }

/* Le rail interne de la v1.44 est retiré : la navigation est la barre
   latérale persistante, restylée plus haut. */
.hub2-rail { display: none; }
.hub2-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.hub2-logo i { width: 26px; height: 26px; border-radius: 9px; background: var(--hub-encre);
  color: var(--hub-vif); display: grid; place-items: center; font-size: 11px; font-weight: 700;
  font-family: var(--font-display); font-style: normal; }
.hub2-logo span { font-size: 14.5px; color: var(--hub-encre); font-weight: 600; }

.hub2-ident-av { width: 44px; height: 44px; border-radius: 50%; background: #DCE3F5;
  color: #2A3A56; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.hub2-ident-nom { font-size: 13.5px; color: var(--hub-encre); line-height: 1.35; font-weight: 600; }
.hub2-ident-sous { font-size: 11.5px; color: var(--hub-encre-3); margin-bottom: 20px; }

.hub2-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--hub-r-s); font-size: 13.5px; color: var(--hub-encre-2);
  cursor: pointer; margin-bottom: 4px; transition: background .15s, color .15s; }
.hub2-nav a:hover { background: rgba(255,255,255,.75); color: var(--hub-encre); }
.hub2-nav a.on { background: #fff; color: var(--hub-encre); font-weight: 600; box-shadow: var(--hub-ombre); }
.hub2-nav a svg { flex: none; }
.hub2-nav-titre { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--hub-encre-3); padding: 16px 12px 6px; }

.hub2-corps { flex: 1; min-width: 0; padding: 0; }
.hub2-tete { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hub2-tete h1 { font-family: var(--font-display); font-size: 23px; font-weight: 800;
  letter-spacing: -.025em; color: var(--hub-encre); margin: 0; }
.hub2-tete p { font-size: 12.5px; color: var(--hub-encre-3); margin: 2px 0 0; }

/* ── Tuiles d'application ── */
.hub2-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px; margin-bottom: 20px; }
.hub2-app { background: var(--ap-bg); border-radius: var(--hub-r-m); padding: 16px 17px;
  cursor: pointer; transition: transform .16s, box-shadow .16s; text-align: left; border: 0; width: 100%;
  font-family: var(--font); }
.hub2-app:hover { transform: translateY(-2px); box-shadow: var(--hub-ombre); }
.hub2-app-tete { display: flex; align-items: center; gap: 7px; }
/* Pastille de vie : forme ET couleur, jamais la couleur seule (daltonisme). */
.hub2-pastille { width: 7px; height: 7px; border-radius: 50%; background: var(--hub-vif); flex: none; }
.hub2-pastille.alerte { background: var(--ap-fill); }
.hub2-app-nom { font-size: 12.5px; color: var(--ap-tx); font-weight: 600; }
.hub2-app-val { font-family: var(--font-display); font-size: 25px; font-weight: 800;
  letter-spacing: -.025em; color: var(--ap-fort); margin: 6px 0 2px;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Une formule (« Mailo Argent », « .fr / .org ») est un mot, pas un nombre :
   à 25 px elle déborderait de la tuile. On la descend d'un cran. */
.hub2-app-val.texte { font-size: 19px; line-height: 1.25; }
.hub2-app-lib { font-size: 11.5px; color: var(--ap-tx); margin-bottom: 11px; }
.hub2-app-bar { height: 5px; border-radius: 3px; background: var(--ap-bar); overflow: hidden; }
.hub2-app-bar > i { display: block; height: 5px; background: var(--ap-fill); border-radius: 3px; }

/* ── Bloc de découverte des apps ──
   Placé juste sous les apps actives : le client vient de constater que ça
   marche, c'est le seul bon moment pour lui montrer le reste. */
.hub2-decouvrir { background: #EAF3DE; border-radius: var(--hub-r-l); padding: 20px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hub2-decouvrir svg { flex: none; }
.hub2-decouvrir-txt { flex: 1 1 260px; min-width: 0; }
.hub2-decouvrir h2 { font-family: var(--font-display); font-size: 17px; font-weight: 800;
  color: #173404; margin: 0 0 5px; letter-spacing: -.02em; }
.hub2-decouvrir p { font-size: 13px; color: #3B6D11; line-height: 1.55; margin: 0 0 13px; }
.hub2-cta { background: var(--hub-encre); color: #fff; border: 0; border-radius: var(--hub-r-s);
  padding: 10px 18px; font-size: 13.5px; font-weight: 600; font-family: var(--font); cursor: pointer; }
.hub2-cta:hover { background: var(--prusse-2); }

.hub2-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 18px; }
.hub2-compteur { background: var(--hub-rail); border-radius: var(--hub-r-s); padding: 14px 16px;
  display: flex; align-items: baseline; gap: 9px; cursor: pointer; }
.hub2-compteur b { font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--hub-encre); font-variant-numeric: tabular-nums; }
.hub2-compteur.vide b { color: var(--ardoise-claire); }
.hub2-compteur span { font-size: 12.5px; color: var(--hub-encre-2); }

/* ── Colonne d'activité ── */
.hub2-aside { width: 280px; flex: none; background: var(--hub-rail);
  border-radius: var(--hub-r-l); padding: 18px 16px; }
.hub2-aside h2 { font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: var(--hub-encre); margin: 0 0 14px; }
.hub2-jour { font-size: 11px; color: var(--hub-encre-3); margin: 14px 0 8px; }
.hub2-jour:first-of-type { margin-top: 0; }
.hub2-ev { border-left: 2px solid var(--ap-fill, #B4B2A9); padding-left: 11px; margin-bottom: 13px; }
.hub2-ev-t { font-size: 12.5px; color: var(--hub-encre); line-height: 1.4; }
.hub2-ev-s { font-size: 11px; color: var(--hub-encre-3); }

.hub2-etat { font-size: 12.5px; color: var(--hub-encre-3); padding: 14px 0; }
.hub2-etat.souci { color: #854F0B; }

@media (max-width: 1080px) {
  .hub2 { flex-direction: column; }
  .hub2-aside { width: 100%; }
}
@media (max-width: 720px) {
  .hub2 { padding: 12px 10px 90px; gap: 12px; }
  .hub2-frame { flex-direction: column; border-radius: var(--hub-r-l); }
  .hub2-rail { width: 100%; padding: 16px; }
  .hub2-nav { display: flex; gap: 6px; overflow-x: auto; }
  .hub2-nav a { white-space: nowrap; margin-bottom: 0; }
  .hub2-nav-titre { display: none; }
  .hub2-corps { padding: 18px 16px 22px; }
  .hub2-tete h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub2-app, .hub2-nav a { transition: none; }
  .hub2-app:hover { transform: none; }
}

/* ── v1.45 — App Store aligné sur les teintes des apps ──
   Les dégradés saturés d'origine n'avaient aucun rapport avec la couleur que
   la même app porte sur le tableau de bord. Une app garde désormais sa teinte
   d'un bout à l'autre du portail. */
body.hub-v2 .store-card {
  border: 0; border-radius: var(--hub-r-l); box-shadow: var(--hub-ombre);
  background: #fff; overflow: hidden;
}
body.hub-v2 .store-card:hover { box-shadow: var(--hub-ombre-l); transform: translateY(-2px); }
body.hub-v2 .store-card-hero {
  height: 96px; background: var(--ap-bg, var(--hub-rail));
  display: grid; place-items: center;
}
body.hub-v2 .store-card-icon { font-size: 32px; filter: none; }
body.hub-v2 .store-card-category { color: var(--ap-tx, var(--hub-encre-3)); letter-spacing: .07em; }
body.hub-v2 .store-card-body h3 { color: var(--hub-encre); }
body.hub-v2 .store-card-badge.subscribed { background: #EAF3DE; color: #3B6D11; }
body.hub-v2 .btn-primary { background: var(--hub-encre); border-radius: var(--hub-r-s); }
body.hub-v2 .btn-primary:hover { background: var(--prusse-2); }

/* Les autres écrans héritent du cadre : on harmonise juste leurs surfaces. */
body.hub-v2 .doc-table-wrap, body.hub-v2 .billing-group,
body.hub-v2 .evo-status-card, body.hub-v2 .evo-info-card,
body.hub-v2 .evo-buy-card, body.hub-v2 .evo-history-card,
body.hub-v2 .support-list, body.hub-v2 .support-detail,
body.hub-v2 .myapps-sidebar, body.hub-v2 .myapps-panel,
body.hub-v2 .billing-summary-card {
  border: 0; border-radius: var(--hub-r-l); box-shadow: none; background: var(--hub-rail);
}
body.hub-v2 .doc-table th, body.hub-v2 .billing-group-table th,
body.hub-v2 .evo-history-table th, body.hub-v2 .admin-table th {
  background: transparent; color: var(--hub-encre-3); border-bottom-color: rgba(var(--prusse-rgb),.08);
}
body.hub-v2 .doc-table td, body.hub-v2 .billing-group-table td,
body.hub-v2 .evo-history-table td { border-bottom-color: rgba(var(--prusse-rgb),.06); }
body.hub-v2 .billing-sepa-card { border-radius: var(--hub-r-l); }

/* ============================================================
   v1.48 — DOSSIERS DE DOCUMENTS
   ------------------------------------------------------------
   Le titre n'existe que sur le devis dans Axonaut ; la facture s'y rattache
   par son contrat ou son projet. On présente donc un dossier par devis, ses
   factures rangées dessous et légèrement en retrait. Le retrait ET le filet
   portent l'information : jamais la couleur seule.
   ============================================================ */
body.hub-v2 .doc-dossier {
  background: var(--hub-rail); border-radius: var(--hub-r-l);
  padding: 6px 8px 8px; margin-bottom: 12px;
}
body.hub-v2 .doc-dossier-tete {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px 8px;
}
body.hub-v2 .doc-dossier-titre {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
  color: var(--hub-encre); letter-spacing: -.01em;
}
body.hub-v2 .doc-dossier-nb { font-size: 11.5px; color: var(--hub-encre-3); }

body.hub-v2 .doc-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 118px 76px 58px 1fr 96px auto;
  background: #fff; border-radius: var(--hub-r-s);
  padding: 11px 14px; margin-bottom: 4px; font-size: 13px;
}
/* Les factures d'un dossier sont en retrait : la hiérarchie se voit. */
body.hub-v2 .doc-row-fille { margin-left: 22px; position: relative; }
body.hub-v2 .doc-row-fille::before {
  content: ''; position: absolute; left: -13px; top: 50%; width: 9px; height: 1.5px;
  background: rgba(var(--prusse-rgb),.16);
}
body.hub-v2 .doc-row-num { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--hub-encre); }
body.hub-v2 .doc-row-date { color: var(--hub-encre-2); }
body.hub-v2 .doc-row-montant { font-weight: 600; color: var(--hub-encre); font-variant-numeric: tabular-nums; }
body.hub-v2 .doc-row-actions { display: flex; gap: 6px; justify-content: flex-end; }

body.hub-v2 .doc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hub-encre); color: #fff; border-radius: 9px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
body.hub-v2 .doc-btn:hover { background: var(--prusse-2); }
body.hub-v2 .doc-btn-2 { background: transparent; color: var(--hub-encre-2); border: 1px solid rgba(var(--prusse-rgb),.14); }
body.hub-v2 .doc-btn-2:hover { background: rgba(var(--prusse-rgb),.04); color: var(--hub-encre); }
body.hub-v2 .doc-btn-off { background: transparent; color: var(--hub-encre-3); cursor: default; }

@media (max-width: 860px) {
  body.hub-v2 .doc-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  body.hub-v2 .doc-row-date, body.hub-v2 .doc-row-num { grid-column: 1; }
  body.hub-v2 .doc-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  body.hub-v2 .doc-row-fille { margin-left: 12px; }
}

/* ── v1.48 — Sous-vues de la rubrique Assistance ──
   Support et Contrat EVO traitaient le même sujet : le temps de maintenance.
   Ils sont réunis sous deux onglets, pour que le client voie ce qu'il lui
   reste au moment où il ouvre une demande. */
body.hub-v2 .sv-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--hub-rail); border-radius: var(--hub-r-s); padding: 4px;
  width: fit-content; max-width: 100%; flex-wrap: wrap;
}
body.hub-v2 .sv-tab {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  padding: 9px 18px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--hub-encre-2); display: inline-flex; align-items: center; gap: 8px;
}
body.hub-v2 .sv-tab:hover { color: var(--hub-encre); }
/* L'onglet actif se signale par le fond plein ET le poids du texte, pas par la
   seule couleur — contrainte daltonisme déjà retenue pour la barre d'onglets. */
body.hub-v2 .sv-tab.active { background: #fff; color: var(--hub-encre); box-shadow: var(--hub-ombre); }
body.hub-v2 .sv-tab-note:empty { display: none; }
body.hub-v2 .sv-tab-note {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--ap-bg, #FAEEDA); color: var(--ap-tx, #854F0B);
}
body.hub-v2 .sv-vue.hidden { display: none; }

/* ============================================================
   v1.49 — ASSISTANCE : un seul écran
   ============================================================ */
body.hub-v2 .as-haut {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: 16px; margin-bottom: 22px;
}
body.hub-v2 .as-solde, body.hub-v2 .as-packs {
  background: var(--hub-rail); border-radius: var(--hub-r-l); padding: 20px 22px;
}
body.hub-v2 .as-solde-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
body.hub-v2 .as-ring { position: relative; flex: none; }
body.hub-v2 .as-ring-centre {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
body.hub-v2 .as-ring-val {
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
  letter-spacing: -.03em; color: var(--hub-encre); font-variant-numeric: tabular-nums;
}
body.hub-v2 .as-ring-unite { font-size: 12px; color: var(--hub-encre-3); }
body.hub-v2 .as-ring-note { font-size: 14px; color: #854F0B; font-weight: 600; }
body.hub-v2 .as-solde-txt { flex: 1 1 180px; min-width: 0; }
body.hub-v2 .as-solde-type { font-size: 12px; color: var(--hub-encre-3); margin-bottom: 8px; }
body.hub-v2 .as-etat { border-radius: var(--hub-r-s); padding: 12px 14px; }
body.hub-v2 .as-etat strong { display: block; font-size: 15px; margin-bottom: 3px; }
body.hub-v2 .as-etat span { font-size: 12.5px; line-height: 1.5; }
/* Chaque état se signale par sa teinte ET par son texte : jamais la couleur
   seule (contrainte daltonisme tenue dans tout le portail). */
body.hub-v2 .as-etat.ok        { background: #EAF3DE; color: #3B6D11; }
body.hub-v2 .as-etat.ok strong { color: #173404; }
body.hub-v2 .as-etat.attention        { background: #FAEEDA; color: #854F0B; }
body.hub-v2 .as-etat.attention strong { color: #412402; }
body.hub-v2 .as-etat.souci        { background: #FBEAF0; color: #993556; }
body.hub-v2 .as-etat.souci strong { color: #4B1528; }

body.hub-v2 .as-packs-titre {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: var(--hub-encre); margin: 0 0 12px;
}
body.hub-v2 .as-packs-liste { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
body.hub-v2 .as-pack {
  position: relative; background: #fff; border: 1.5px solid transparent;
  border-radius: var(--hub-r-m); padding: 16px 12px; cursor: pointer;
  font-family: var(--font); display: flex; flex-direction: column; gap: 2px;
  text-align: center; transition: border-color .15s, transform .15s;
}
body.hub-v2 .as-pack:hover { border-color: var(--hub-encre); transform: translateY(-2px); }
body.hub-v2 .as-pack:disabled { opacity: .6; pointer-events: none; }
body.hub-v2 .as-pack.reco { border-color: var(--prusse); }
body.hub-v2 .as-pack-reco {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--prusse); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
body.hub-v2 .as-pack-h { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--hub-encre); }
body.hub-v2 .as-pack-prix { font-size: 13px; font-weight: 600; color: var(--hub-encre); }
body.hub-v2 .as-pack-note { font-size: 11px; color: var(--hub-encre-3); }
body.hub-v2 .as-packs-legal { font-size: 11.5px; color: var(--hub-encre-3); margin: 12px 0 0; line-height: 1.5; }

body.hub-v2 .as-tickets-tete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
body.hub-v2 .as-tickets-tete h2 {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  color: var(--hub-encre); margin: 0;
}
body.hub-v2 .as-filtres { display: flex; gap: 3px; background: var(--hub-rail); border-radius: 10px; padding: 3px; }
body.hub-v2 .as-filtre {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--hub-encre-2);
}
body.hub-v2 .as-filtre.active { background: #fff; color: var(--hub-encre); box-shadow: var(--hub-ombre); }

body.hub-v2 .as-ticket { background: var(--hub-rail); border-radius: var(--hub-r-m); margin-bottom: 10px; overflow: hidden; }
body.hub-v2 .as-ticket-tete {
  width: 100%; border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  display: grid; grid-template-columns: 84px 1fr auto 18px; align-items: center;
  gap: 12px; padding: 14px 16px; text-align: left;
}
body.hub-v2 .as-ticket-statut {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-align: center;
}
body.hub-v2 .as-ticket-statut.recu    { background: #E6F1FB; color: #185FA5; }
body.hub-v2 .as-ticket-statut.encours { background: #FAEEDA; color: #854F0B; }
body.hub-v2 .as-ticket-statut.clos    { background: #EAF3DE; color: #3B6D11; }
body.hub-v2 .as-ticket-titre { font-size: 13.5px; font-weight: 600; color: var(--hub-encre); overflow-wrap: anywhere; }
body.hub-v2 .as-ticket-date { font-size: 12px; color: var(--hub-encre-3); }
body.hub-v2 .as-chev { color: var(--hub-encre-3); transition: transform .15s; }
body.hub-v2 .as-ticket.ouvert .as-chev { transform: rotate(180deg); }
body.hub-v2 .as-ticket-apercu {
  font-size: 12.5px; color: var(--hub-encre-2); padding: 0 16px 13px 112px; line-height: 1.5;
}
body.hub-v2 .as-ticket.ouvert .as-ticket-apercu { display: none; }
body.hub-v2 .as-ticket-fil { padding: 4px 16px 16px; }
body.hub-v2 .as-ticket-fil.hidden { display: none; }
body.hub-v2 .as-msg { background: #fff; border-radius: var(--hub-r-s); padding: 12px 14px; margin-bottom: 8px; }
body.hub-v2 .as-msg-tete { display: flex; gap: 10px; align-items: baseline; margin-bottom: 5px; }
body.hub-v2 .as-msg-tete b { font-size: 12.5px; color: var(--hub-encre); }
body.hub-v2 .as-msg-tete span { font-size: 11px; color: var(--hub-encre-3); }
body.hub-v2 .as-msg-txt { font-size: 13px; color: var(--hub-encre-2); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
body.hub-v2 .as-msg-vide { font-size: 12.5px; color: var(--hub-encre-3); padding: 6px 2px; }
body.hub-v2 .as-repondre { margin-top: 10px; }
body.hub-v2 .as-repondre textarea {
  width: 100%; border: 1px solid rgba(var(--prusse-rgb),.12); border-radius: var(--hub-r-s);
  padding: 11px 13px; font-size: 13.5px; background: #fff; resize: vertical;
}
body.hub-v2 .as-repondre-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
body.hub-v2 .as-repondre-err { font-size: 12.5px; color: #993556; }
body.hub-v2 .as-vide { text-align: center; padding: 34px 20px; }
body.hub-v2 .as-vide h3 { font-family: var(--font-display); font-size: 15px; color: var(--hub-encre); margin: 0 0 6px; }
body.hub-v2 .as-vide p { font-size: 13px; color: var(--hub-encre-2); margin: 0 0 14px; line-height: 1.55; }

@media (max-width: 900px) {
  body.hub-v2 .as-haut { grid-template-columns: 1fr; }
  body.hub-v2 .as-ticket-tete { grid-template-columns: 84px 1fr 18px; }
  body.hub-v2 .as-ticket-date { display: none; }
  body.hub-v2 .as-ticket-apercu { padding-left: 16px; }
}

/* ── v1.49 — barre de filtres des documents ── */
body.hub-v2 .doc-barre {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 16px;
}
body.hub-v2 .doc-tabs { display: flex; gap: 3px; background: var(--hub-rail); border-radius: 10px; padding: 3px; }
body.hub-v2 .doc-tab {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  padding: 7px 15px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--hub-encre-2);
}
body.hub-v2 .doc-tab.active { background: #fff; color: var(--hub-encre); box-shadow: var(--hub-ombre); }
body.hub-v2 .doc-barre input[type="text"] {
  flex: 1; min-width: 180px; border: 1px solid rgba(var(--prusse-rgb),.10);
  border-radius: 10px; padding: 9px 14px; font-size: 13px; background: #fff;
}
body.hub-v2 #doc-annee {
  border: 1px solid rgba(var(--prusse-rgb),.12); border-radius: 10px; padding: 8px 12px;
  font-size: 13px; font-weight: 600; background: #fff; width: auto; min-width: 140px;
}

/* ── v1.50 — Confirmation de commande EVO, façon petit devis ── */
body.hub-v2 #modal-evo-devis .modal { width: 460px; max-width: 100%; border-radius: var(--hub-r-l); }
.ev-devis-lignes { background: var(--hub-rail); border-radius: var(--hub-r-s); padding: 6px 14px; margin-bottom: 16px; }
.ev-l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.ev-l + .ev-l { border-top: 1px solid rgba(var(--prusse-rgb),.06); }
.ev-l span { color: var(--hub-encre-2); }
.ev-l b { color: var(--hub-encre); font-variant-numeric: tabular-nums; }
.ev-l-total b { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.ev-l-ttc { font-size: 12px; }
.ev-l-ttc span, .ev-l-ttc b { color: var(--hub-encre-3); font-weight: 500; }
.ev-devis-quoi { margin: 0 0 14px; padding-left: 18px; }
.ev-devis-quoi li { font-size: 13px; color: var(--hub-encre-2); line-height: 1.6; margin-bottom: 4px; }
.ev-devis-note { font-size: 12px; color: var(--hub-encre-3); line-height: 1.55; margin: 0 0 16px; }
.ev-devis-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ev-devis-err { font-size: 12.5px; color: #993556; margin-top: 10px; text-align: right; }

/* ============================================================
   v1.51 — APPS ÉQUINOXES : page de détail avant souscription
   ------------------------------------------------------------
   Le bouton « Souscrire » activait l'app sur-le-champ. On dit désormais trois
   choses avant le clic : ce que l'app fait, ce qui sera facturé et quand,
   comment revenir en arrière. Une activation en un clic sans période de
   retrait est un engagement déguisé.
   ============================================================ */
body.hub-v2 #modal-store .modal { width: 520px; max-width: 100%; border-radius: var(--hub-r-l); }
body.hub-v2 #modal-store .modal-head { background: var(--ap-bg, var(--hub-rail)); border-bottom: 0; }
body.hub-v2 #modal-store .modal-head h2 { color: var(--ap-fort, var(--hub-encre)); }
.st-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ap-tx, var(--hub-encre-3)); margin-bottom: 10px;
}
.st-quoi { font-size: 14px; line-height: 1.65; color: var(--hub-encre); margin: 0 0 16px; }
.st-points { margin: 0 0 18px; padding-left: 20px; }
.st-points li { font-size: 13px; color: var(--hub-encre-2); line-height: 1.6; margin-bottom: 5px; }

/* Les conditions ne sont pas une note de bas de page : elles portent
   l'engagement, donc elles ont le poids visuel d'un bloc. */
.st-cond { border-radius: var(--hub-r-s); padding: 14px 16px; background: var(--hub-rail); margin-bottom: 16px; }
.st-cond b { display: block; font-size: 14px; color: var(--hub-encre); margin-bottom: 5px; }
.st-cond span { display: block; font-size: 12.5px; color: var(--hub-encre-2); line-height: 1.6; }
.st-cond-offre       { background: #EAF3DE; }
.st-cond-offre b     { color: #173404; }
.st-cond-offre span  { color: #3B6D11; }
.st-cond-essai       { background: #FAEEDA; }
.st-cond-essai b     { color: #412402; }
.st-cond-essai span  { color: #854F0B; }
/* v1.67 — « votre mandat est déjà en place ». Bleuté, et non vert : le vert
   des conditions d'offre annonce ce que le client va OBTENIR, celui-ci
   rappelle ce qu'il a DÉJÀ. Deux messages voisins de même teinte se lisent
   comme un seul. */
.st-cond-sepa        { background: #E8ECFA; }
.st-cond-sepa b      { color: #1B2452; }
.st-cond-sepa span   { color: #4A548C; }
.st-cond-sepa .hub-link { color: #1B2452; font-weight: 600; }
.st-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.st-err { font-size: 12.5px; color: #993556; margin-bottom: 10px; text-align: right; }

body.hub-v2 .store-card-badge.essai { background: #FAEEDA; color: #854F0B; }
body.hub-v2 .store-card-badge.pending { background: #E6F1FB; color: #185FA5; }
/* Les icônes de « Mes Apps » reprennent la teinte de l'app plutôt qu'un
   dégradé sans rapport avec le reste du portail. */
body.hub-v2 .myapps-app-icon, body.hub-v2 .admin-app-logo, body.hub-v2 .admin-avatar {
  background: var(--ap-bg, var(--hub-rail)); color: var(--ap-fort, var(--hub-encre));
}

/* ============================================================
   v1.52 — VINETICO : admin complet dans le portail
   ============================================================ */
.vnt-intro { margin-bottom: 18px; }
.vnt-intro h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--hub-encre); margin: 0 0 6px; }
.vnt-intro p { font-size: 13.5px; color: var(--hub-encre-2); line-height: 1.6; margin: 0 0 6px; }
.vnt-ok { color: #3B6D11 !important; font-weight: 600; }
.vnt-p { font-size: 13px; color: var(--hub-encre-2); line-height: 1.6; margin: 0 0 14px; }

.vnt-etapes { list-style: none; margin: 0; padding: 0; }
.vnt-etape { display: flex; gap: 14px; padding: 15px 16px; background: var(--hub-rail);
  border-radius: var(--hub-r-m); margin-bottom: 10px; }
.vnt-num { flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--hub-encre); display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; font-family: var(--font-display); }
/* Une étape faite se signale par la coche ET par l'atténuation : jamais la
   couleur seule. */
.vnt-etape.fait .vnt-num { background: #C0DD97; color: #173404; }
.vnt-etape.fait .vnt-etape-txt b { color: var(--hub-encre-3); text-decoration: line-through; }
.vnt-etape-txt { flex: 1; min-width: 0; }
.vnt-etape-txt b { display: block; font-size: 13.5px; color: var(--hub-encre); margin-bottom: 3px; }
.vnt-etape-txt span { display: block; font-size: 12.5px; color: var(--hub-encre-2); line-height: 1.6; }
.vnt-etape-act { margin-top: 10px; }
.vnt-mini { margin: 0 0 16px; padding-left: 20px; }
.vnt-mini li { font-size: 13px; color: var(--hub-encre-2); line-height: 1.65; margin-bottom: 5px; }

.vnt-statut { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.vnt-statut.pub { background: #EAF3DE; color: #3B6D11; }
.vnt-statut.brouillon { background: var(--hub-rail); color: var(--hub-encre-2); }
.vnt-actions { display: flex; gap: 4px; }

.vnt-bars { display: flex; flex-direction: column; gap: 9px; }
.vnt-bar-l { display: grid; grid-template-columns: minmax(90px, 1.1fr) 3fr 52px;
  align-items: center; gap: 12px; }
.vnt-bar-nom { font-size: 12.5px; color: var(--hub-encre); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.vnt-bar-piste { height: 9px; border-radius: 5px; background: var(--hub-rail); overflow: hidden; }
.vnt-bar-piste > i { display: block; height: 9px; background: #D4537E; border-radius: 5px; }
.vnt-bar-val { font-size: 12.5px; color: var(--hub-encre-2); text-align: right;
  font-variant-numeric: tabular-nums; }

.vnt-jeton { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--hub-rail); border-radius: var(--hub-r-s); padding: 12px 14px; }
.vnt-jeton code { flex: 1; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; color: var(--hub-encre); }
body.hub-v2 #modal-jeton .modal { width: 480px; max-width: 100%; }

/* ── v1.55 — Argumentaire et choix de formule ── */
body.hub-v2 #modal-store .modal { width: 620px; max-width: 100%; }
body.hub-v2 #modal-store .modal-body { max-height: 72vh; }
.st-sec { margin-bottom: 16px; }
.st-sec h4 { font-family: var(--font-display); font-size: 13.5px; font-weight: 800;
  color: var(--hub-encre); margin: 0 0 7px; }
.st-sec ul { margin: 0; padding-left: 19px; }
.st-sec li { font-size: 12.5px; color: var(--hub-encre-2); line-height: 1.6; margin-bottom: 4px; }

.st-formules { margin: 20px 0 18px; }
.st-formules-t { font-family: var(--font-display); font-size: 14px; font-weight: 800;
  color: var(--hub-encre); margin: 0 0 11px; }
.st-formules-liste { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.st-formules.seule .st-formules-liste { grid-template-columns: 1fr; }
.st-f { position: relative; text-align: left; background: #fff; cursor: pointer;
  border: 1.5px solid var(--border, rgba(0,0,0,.10)); border-radius: var(--hub-r-m);
  padding: 15px 14px; font-family: var(--font); display: flex; flex-direction: column; gap: 3px; }
.st-f:hover { border-color: var(--hub-encre-2); }
/* La formule retenue se signale par la bordure ÉPAISSE et le fond, pas par la
   seule teinte : le choix doit rester lisible en niveaux de gris. */
.st-f.on { border-color: var(--hub-encre); border-width: 2px; background: var(--hub-rail); }
.st-f-reco { position: absolute; top: -9px; left: 12px; background: var(--prusse); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-f-nom { font-size: 13px; font-weight: 700; color: var(--hub-encre); }
.st-f-prix { font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--hub-encre); letter-spacing: -.02em; }
.st-f-prix small { font-size: 12px; font-weight: 500; color: var(--hub-encre-3); }
.st-f-unite { font-size: 11px; color: var(--hub-encre-3); }
.st-f-pts { margin: 8px 0 0; padding-left: 16px; }
.st-f-pts li { font-size: 11.5px; color: var(--hub-encre-2); line-height: 1.5; margin-bottom: 3px; }

@media (max-width: 620px) {
  .st-formules-liste { grid-template-columns: 1fr; }
}

/* ── v1.56 — Écran « Gérer » : le détail des lignes ── */
.st-gerer { margin: 18px 0; }
.st-l { background: var(--hub-rail); border-radius: var(--hub-r-s); padding: 12px 14px; margin-bottom: 8px; }
.st-l-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.st-l-nom { font-size: 13.5px; font-weight: 600; color: var(--hub-encre); overflow-wrap: anywhere; }
.st-l-f { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: #fff; color: var(--hub-encre-2); white-space: nowrap; }
.st-l-m { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.st-l-m span { font-size: 12px; color: var(--hub-encre-2); }
.st-l-m b { color: var(--hub-encre); }
/* L'état de la sonde se lit au mot ET à la teinte, jamais à la teinte seule. */
.st-l-sonde { font-weight: 600; }
.st-l-sonde.ok { color: #3B6D11; }
.st-l-sonde.hs { color: #993556; }
.st-l-sonde.pause { color: #854F0B; }
/* Deux boutons côte à côte sur les cartes d'apps commandables plusieurs fois */
body.hub-v2 .store-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── v1.58 — Widget « site internet » de la barre latérale ── */
body.hub-v2 .site-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--hub-r-s);
  background: #fff; border: 1px solid rgba(var(--prusse-rgb),.08);
  cursor: pointer; margin-bottom: 8px;
}
body.hub-v2 .site-mini:hover { box-shadow: var(--hub-ombre); }
body.hub-v2 .site-mini.hidden { display: none; }
.site-mini-pastille { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ardoise-claire); }
/* La teinte double l'information, elle ne la porte pas seule : l'état est
   toujours écrit à côté (« Site en ligne », « Site hors ligne »). */
body.hub-v2 .site-mini.ok    .site-mini-pastille { background: var(--menthe); }
body.hub-v2 .site-mini.hs    .site-mini-pastille { background: #D4537E; }
body.hub-v2 .site-mini.pause .site-mini-pastille { background: #BA7517; }
body.hub-v2 .site-mini.ok    { border-color: rgba(var(--menthe-rgb),.45); background: #F4FCF6; }
body.hub-v2 .site-mini.hs    { border-color: rgba(212,83,126,.35); background: #FDF5F8; }
.site-mini-txt { flex: 1; min-width: 0; }
.site-mini-etat { display: block; font-size: 12px; font-weight: 600; color: var(--hub-encre); }
.site-mini-url { display: block; font-size: 11px; color: var(--hub-encre-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-mini-ping { font-size: 11px; font-weight: 600; color: var(--hub-encre-2);
  font-variant-numeric: tabular-nums; flex: none; }
.site-mini-ping:empty { display: none; }

/* ── v1.59 — Rubrique Prélèvement SEPA ── */
.sp-etat { border-radius: var(--hub-r-l); padding: 18px 20px; }
.sp-etat-t { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.sp-etat p { font-size: 13px; line-height: 1.6; margin: 0; }
/* Les trois états se distinguent par leur intitulé autant que par la teinte. */
.sp-etat.actif        { background: #EAF3DE; }
.sp-etat.actif .sp-etat-t { color: #173404; }
.sp-etat.actif p      { color: #3B6D11; }
.sp-etat.attente        { background: #FAEEDA; }
.sp-etat.attente .sp-etat-t { color: #412402; }
.sp-etat.attente p      { color: #854F0B; }
.sp-etat.inactif        { background: var(--hub-rail); }
.sp-etat.inactif .sp-etat-t { color: var(--hub-encre); }
.sp-etat.inactif p      { color: var(--hub-encre-2); }
/* v1.67 — le repli « mon compte a changé » sous un mandat déjà constaté.
   Discret par construction : c'est une porte de sortie, pas une invitation à
   signer une seconde fois ce qui est déjà signé. */
.sp-repli { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(var(--prusse-rgb),.1); }
.sp-repli > .vnt-p { font-size: 12.5px; color: var(--hub-encre-2); }
body.hub-v2 #page-sepa .form-group label { font-size: 12px; font-weight: 600; color: var(--hub-encre-2); }
body.hub-v2 #page-sepa input {
  border: 1px solid rgba(var(--prusse-rgb),.12); border-radius: var(--hub-r-s);
  padding: 10px 13px; font-size: 13.5px; background: #fff;
}

/* ── v1.60 — Qui parle dans un fil de discussion ──
   Le client lisait sa propre demande signée du nom d'un membre d'Équinoxes.
   Les messages sont désormais distingués par leur POSITION et leur fond, pas
   seulement par un nom : le décalage se lit avant même de lire le texte. */
body.hub-v2 .as-msg.de-nous {
  background: #fff; border-left: 3px solid var(--menthe); margin-right: 28px;
}
body.hub-v2 .as-msg.de-vous {
  background: #EAF3DE; border-left: 3px solid #639922; margin-left: 28px;
}
body.hub-v2 .as-msg.de-vous .as-msg-tete b { color: #173404; }
body.hub-v2 .as-msg.de-nous .as-msg-tete b { color: var(--prusse); }
@media (max-width: 720px) {
  body.hub-v2 .as-msg.de-nous { margin-right: 0; }
  body.hub-v2 .as-msg.de-vous { margin-left: 12px; }
}

/* ============================================================
   v1.179 — Relecture, « À faire », erreurs visibles, accessibilité
   ============================================================ */
.topbar-user { border: 0; font: inherit; color: inherit; background: none; }
button.login-company-item { display: block; width: 100%; text-align: left; background: #fff; font: inherit; color: inherit; }
textarea#sc-description { width: 100%; resize: vertical; }
.user-menu-items a { display: flex; align-items: center; gap: 8px; }
.user-menu-items a .ti { font-size: 16px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.page h1:focus { outline: none; }

/* un bloc qui n'a pas pu se charger le dit, et propose de réessayer */
.hub-erreur { border: 1px solid #fecaca; background: var(--red-bg); color: #991b1b; border-radius: var(--radius-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; }
.hub-erreur p { margin: 0; }

/* « À faire » (la cloche) */
.notif-list .notif-item { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; align-items: center; }
.notif-item .notif-ic { width: 34px; height: 34px; border-radius: var(--radius-xs); background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; font-size: 17px; color: var(--ink); }
.notif-item b { display: block; font-size: 13px; }
.notif-item small { display: block; font-size: 12px; color: var(--muted); }
.notif-vide { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* tuile de l'accueil */
.ap-relecture { --ap-bg:#E6F1FB; --ap-tx:#185FA5; --ap-fort:#042C53; --ap-bar:#B5D4F4; --ap-fill:#D85A30; }

/* ---------- page Relecture ---------- */
#relecture-liste { display: flex; flex-direction: column; gap: 26px; max-width: 980px; }
.rl-groupe { display: flex; flex-direction: column; gap: 12px; }
.rl-groupe-titre { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rl-groupe-titre span { font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-alt); border-radius: 9px; padding: 0 7px; }
.rl-groupe-titre small { font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rl-carte { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.rl-carte.rl-a-relire { border-left: 4px solid #D85A30; }
.rl-carte.rl-corr { border-left: 4px solid var(--orange); }
.rl-carte.rl-ok { border-left: 4px solid var(--green-deep); }
.rl-tete { display: flex; align-items: center; gap: 12px; }
.rl-ic { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.rl-ic-print { background: var(--ardoise-pale); color: var(--prusse); }
.rl-ic-web { background: #E6F1FB; color: #185FA5; }
.rl-ic-video { background: #FBEAF0; color: #993556; }
.rl-ic-affichage { background: #FAEEDA; color: #854F0B; }
.rl-ic-autre { background: var(--surface-alt); color: var(--muted); }
.rl-titres { flex: 1; min-width: 0; }
.rl-titres h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rl-titres p { font-size: 12.5px; color: var(--muted); }
.rl-etat { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 10px; white-space: nowrap; }
.rl-etat.rl-a-relire { background: #FAECE7; color: #993C1D; }
.rl-etat.rl-corr { background: var(--orange-bg); color: #92400e; }
.rl-etat.rl-ok { background: var(--green-bg); color: #166534; }
.rl-etat.rl-prep { background: var(--surface-alt); color: var(--muted); }
.rl-mot { display: flex; gap: 8px; font-size: 13px; background: var(--bg-warm); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); }
.rl-mot .ti { color: var(--muted); font-size: 16px; margin-top: 1px; }
.rl-version { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.rl-vnum { font-weight: 700; color: var(--ink); }
.rl-vdate { color: var(--muted); }
.rl-choix { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rl-choix select { font: inherit; font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--border2); border-radius: var(--radius-xs); background: #fff; color: var(--text); }
.rl-vnote { font-size: 13px; color: var(--text); }
.rl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.rl-aide { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.rl-decision { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rl-decision span { margin-right: 4px; }
.btn-valider { background: var(--green-deep); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn-valider:hover { background: #15803d; }
.rl-decision .btn { display: inline-flex; align-items: center; gap: 6px; }
.rl-avis { display: flex; gap: 10px; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.rl-avis .ti { font-size: 18px; margin-top: 1px; }
.rl-avis p { margin: 4px 0; color: var(--text); }
.rl-avis-ok { background: var(--green-bg); color: #166534; }
.rl-avis-corr { background: var(--orange-bg); color: #92400e; }
.rl-avis .hub-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.rl-rem { border-top: 1px solid var(--border); padding-top: 10px; }
.rl-rem-tete { display: flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 2px 0; }
.rl-n { font-size: 11.5px; font-weight: 700; border-radius: 8px; padding: 1px 8px; }
.rl-n-ouv { background: #FAECE7; color: #993C1D; }
.rl-n-ok { background: var(--green-bg); color: #166534; }
.rl-liste { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.rl-liste li { border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.rl-liste li.rl-traitee { opacity: .75; }
.rl-li-tete { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rl-li-tete b { color: var(--ink); }
.rl-li-statut { margin-left: auto; font-weight: 700; color: var(--ink); }
.rl-traitee .rl-li-statut { color: var(--green-deep); }
.rl-liste p { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.rl-rep { margin: 8px 0 0 14px; padding: 8px 10px; border-left: 3px solid var(--ink); background: var(--bg-warm); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; font-size: 12.5px; }
.rl-temps { display: inline-block; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--surface-alt); border: 0; border-radius: 6px; padding: 0 6px; }
button.rl-temps { cursor: pointer; }
button.rl-temps:hover { background: var(--ink); color: #fff; }

/* lecteur (vidéo, image) avec les remarques de la version */
.rl-fond { position: fixed; inset: 0; background: rgba(var(--prusse-rgb),.72); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 20px; }
.rl-fond.open { display: flex; }
.rl-boite { background: #fff; border-radius: var(--radius-l); width: min(1280px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-l); }
.rl-boite-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.rl-boite-tete h2 { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.rl-boite-tete h2 span { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); }
.rl-boite-corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; flex: 1; }
.rl-scene { background: #0b0f1a; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.rl-media { max-width: 100%; max-height: calc(100vh - 140px); display: block; }
.rl-cote { border-left: 1px solid var(--border); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.rl-form { display: flex; flex-direction: column; gap: 8px; }
.rl-form label { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.rl-instant { font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 6px; padding: 1px 7px; }
.rl-form textarea, .rl-form input { width: 100%; border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; }
.rl-erreur { color: #b91c1c; font-size: 12.5px; }
.rl-erreur:empty { display: none; }
.rl-cote-titre { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.rl-cote .rl-liste { margin-top: 0; }
@media (max-width: 900px) {
  .rl-fond { padding: 0; }
  .rl-boite { border-radius: 0; max-height: 100vh; height: 100vh; }
  .rl-boite-corps, .rl-boite-corps.rl-perso, .rl-boite-corps:not(.rl-perso) { grid-template-columns: 1fr; overflow-y: auto; }
  .rl-sep { display: none; }
  .rl-cote { border-left: 0; border-top: 1px solid var(--border); overflow: visible; }
  .rl-media { max-height: 50vh; }
  .rl-choix { margin-left: 0; }
  .rl-carte { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rl-fond, .rl-carte { transition: none; } }

/* v1.179 — téléphone et tablette : le cadre flottant laisse la place à la barre du haut (menu, titre, « À faire », compte), la barre
   latérale redevient un tiroir et la page prend toute la largeur (la règle du cadre, plus précise, la laissait décalée de 224 px). */
@media (max-width: 860px) {
  body.hub-v2 .topbar { left: 0; right: 0; top: 0; height: var(--topbar-h); border-radius: 0; padding: 0 12px; }
  body.hub-v2 .topbar-search { display: none; }
  body.hub-v2 .sidebar { left: 0; top: 0; bottom: 0; width: 260px; border-radius: 0; transform: translateX(-100%); transition: transform .25s ease; z-index: 150; }
  body.hub-v2 .sidebar.open { transform: translateX(0); }
  body.hub-v2 .page { left: 0; right: 0; top: var(--topbar-h); bottom: 0; border-radius: 0; padding: 18px 14px 96px; box-shadow: none; }
  body.hub-v2 .notif-panel, body.hub-v2 .user-menu { top: var(--topbar-h); right: 8px; left: 8px; width: auto; }
}

/* v1.182 — planche d'images clés : commenter une image de la vidéo, à l'endroit voulu */
.rl-scene { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
#rl-vue { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; gap: 8px; }
.rl-planche-tete { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; color: #fff; font-size: 13px; padding: 0 2px; }
.rl-planche-tete span { color: #b9c2d8; font-size: 12px; }
.rl-planche { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.rl-vign { flex: none; width: 128px; border: 2px solid transparent; border-radius: 8px; padding: 0; background: var(--prusse-2); cursor: pointer; position: relative; scroll-snap-align: start; overflow: hidden; }
.rl-vign img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rl-vign span { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.65); border-radius: 4px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.rl-vign.actif { border-color: var(--menthe); }
.rl-vign:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rl-image-tete { display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 100%; color: #fff; font-size: 13px; }
.rl-image-tete .hub-link { color: #fff; }
.rl-image-cle { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; line-height: 0; }
.rl-image-cle img { max-width: 100%; max-height: calc(100vh - 300px); display: block; border-radius: 6px; }
.rl-pin { position: absolute; transform: translate(-50%, -100%); min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px 12px 12px 3px; background: #e11d48; color: #fff; font: 700 12px/24px system-ui, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); pointer-events: none; }
.rl-pin.ok { background: #16a34a; }
.rl-pin.nouveau { background: var(--menthe); color: var(--prusse); outline: 2px solid #fff; }
.rl-temps-img { display: inline-flex; gap: 4px; align-items: center; }
/* la bande de miniatures défile dans sa propre largeur : la scène ne s'élargit pas avec elle, et rien ne s'écrase en hauteur (téléphone) */
.rl-scene { min-width: 0; }
.rl-scene > * { flex-shrink: 0; min-width: 0; max-width: 100%; }
.rl-image-tete .hub-link { background: none; color: #fff; text-decoration: underline; padding: 0; font-weight: 600; }
@media (max-width: 768px) {
  .rl-image-cle img { max-height: 45vh; }
  .rl-vign { width: 104px; }
}
@media (max-width: 768px) {
  /* téléphone : la scène (vidéo ou image, puis les images clés) et le formulaire s'empilent ; c'est l'ensemble qui défile, rien ne se chevauche */
  .rl-boite-corps { display: flex; flex-direction: column; }
  .rl-scene, .rl-cote { flex: none; }
  .rl-scene { min-height: 0; }
}

/* v1.183 — mode invité (lien de relecture sans connexion) : tout le portail se voit, seule la Relecture s'ouvre ; un cadenas dit le reste */
body.hub-invite .sidebar-item:not([data-page="relecture"])::after { content: ""; width: 14px; height: 14px; margin-left: auto; flex: none; opacity: .55;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
body.hub-invite .sidebar-item[data-page="relecture"] { display: flex !important; }
.invite-bandeau { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border2); border-left: 4px solid var(--menthe); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; color: var(--text); }
.invite-bandeau > i { font-size: 22px; color: var(--ink); }
.invite-bandeau > div { flex: 1 1 280px; min-width: 0; }
.invite-login { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; font-size: 14px; color: var(--text); }
.invite-login p { margin: 0 0 8px; }
/* v1.201 — le prénom du relecteur, demandé une fois à l'arrivée par le bouton « Annoter » d'un site */
.invite-prenom { width: min(420px, 100%); padding: 26px 24px 22px; gap: 12px; }
.invite-prenom h2 { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 0; }
.invite-prenom p { margin: 0; font-size: 14px; color: var(--muted); }
.invite-prenom input { width: 100%; border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 11px 12px; font: inherit; font-size: 15px; }
.invite-prenom .btn { justify-content: center; }


/* v1.184 — écran de relecture du client : le même que celui de Studio (versions, page dans un cadre, colonne de remarques), sans les actions de l'agence.
   v1.185 — tout l'ancien panneau UXnote y est repris (filtre, type, destinataire, pièce jointe, réponses, retrait, voir l'endroit) ; passe graphique. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rl-boite-tete { flex-wrap: wrap; justify-content: flex-start; gap: 10px 12px; padding: 12px 16px; }
.rl-boite-tete .rl-ic { width: 34px; height: 34px; flex: none; }
.rl-boite-tete h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.rl-espace { flex: 1 1 0; }
.rl-tete-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-tete-actions .hub-link, .rl-repondre .hub-link, .rl-fichier-nom .hub-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.rl-versions, .rl-filtres { display: inline-flex; background: var(--surface-alt); border-radius: var(--radius-xs); padding: 3px; gap: 2px; }
.rl-versions button, .rl-filtres button { border: 0; background: transparent; padding: 4px 10px; border-radius: 5px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.rl-versions button[aria-pressed="true"], .rl-filtres button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(var(--prusse-rgb),.12); }
.rl-versions button:focus-visible, .rl-filtres button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rl-filtres { display: flex; margin-bottom: 10px; }
.rl-cote-liste > .rl-filtres { position: sticky; top: -14px; z-index: 1; box-shadow: 0 0 0 6px var(--bg-warm); }
.rl-filtres button { flex: 1; }
.rl-filtres button span { font-variant-numeric: tabular-nums; color: var(--hint); margin-left: 2px; }
.rl-filtres button[aria-pressed="true"] span { color: var(--muted); }
.rl-avis-pastille { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 700; border-radius: var(--radius-xs); padding: 4px 10px; }
.rl-avis-pastille.rl-avis-ok { background: var(--green-bg); color: #166534; }
.rl-avis-pastille.rl-avis-corr { background: var(--orange-bg); color: #92400e; }

/* la page (document, maquette) prend toute la hauteur ; la colonne : la liste défile, le formulaire reste en bas */
.rl-boite-plein { width: min(1760px, 100%); height: calc(100vh - 40px); }
.rl-boite-plein .rl-media { width: 100%; max-height: calc(100vh - 230px); object-fit: contain; }
.rl-boite-corps { grid-template-columns: minmax(0, 1fr) 380px; }
/* v1.201 — la barre entre la page et les remarques se déplace (largeur gardée dans ce navigateur) ; sans choix, la largeur d'avant */
.rl-boite-corps.rl-perso { grid-template-columns: minmax(0, 1fr) 10px var(--rel-cote, 380px); }
.rl-boite-corps:not(.rl-perso) { grid-template-columns: minmax(0, 1fr) 10px 380px; }
.rl-sep { position: relative; cursor: col-resize; touch-action: none; background: var(--border); outline: none; }
.rl-sep::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 44px; margin: -22px 0 0 -2px; border-radius: 2px; background: var(--muted); opacity: .45; transition: opacity .15s, background .15s; }
.rl-sep:hover::after, .rl-sep:focus-visible::after, .rl-sep.glisse::after { opacity: 1; background: var(--ink); }
.rl-sep:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.rl-cote { border-left: 0; }
body.rl-glisse { cursor: col-resize; user-select: none; }
body.rl-glisse iframe { pointer-events: none; }
.rl-boite-page .rl-scene { padding: 0; gap: 0; align-items: stretch; background: var(--ardoise-pale); }
.rl-boite-page #rl-vue { align-items: stretch; justify-content: stretch; min-height: 0; flex: 1; }
.rl-cadre { width: 100%; height: 100%; min-height: 60vh; border: 0; background: #fff; display: block; }
.rl-cote { padding: 0; gap: 0; overflow: hidden; background: var(--bg-warm); }
.rl-cote-liste { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; }
.rl-vide { font-size: 13px; color: var(--muted); text-align: center; padding: 18px 8px; }

/* une remarque : le numéro a la couleur de son épingle dans la page (en cours : encre ; traitée : vert) */
.rl-cote .rl-liste { margin: 0; gap: 8px; }
.rl-liste li.rl-rq { background: #fff; border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.rl-liste li.rl-rq.rl-traitee { opacity: 1; background: #fbfbfd; }
.rl-liste li.rl-rq.rl-traitee .rl-rq-texte { color: var(--muted); }
.rl-liste li.rl-rq.rl-actif { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--prusse-rgb),.08); }
.rl-rq-tete { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.rl-num { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px 11px 11px 3px; background: var(--prusse); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rl-traitee .rl-num { background: var(--green); color: var(--prusse); }
.rl-rq-auteur { color: var(--ink); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-vous { font-size: 11px; font-weight: 700; color: var(--violet); background: var(--violet-bg); border-radius: 5px; padding: 0 5px; }
.rl-rq-date { white-space: nowrap; }
.rl-rq .rl-li-statut { margin-left: auto; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 3px; align-items: center; }
.rl-traitee .rl-li-statut { color: var(--green-deep); }
.rl-puces { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rl-puce { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink); background: var(--surface-alt); border: 0; border-radius: 5px; padding: 2px 7px; line-height: 1.4; }
button.rl-puce { cursor: pointer; }
button.rl-puce:hover { background: var(--ink); color: #fff; }
.rl-type-urgent { background: var(--red-bg); color: #b91c1c; }
.rl-type-evolution { background: var(--blue-bg); color: #1d4ed8; }
.rl-type-bug { background: var(--orange-bg); color: #b45309; }
.rl-liste .rl-rq-texte { margin-top: 6px; color: var(--text); line-height: 1.45; }
.rl-pj { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--border2); border-radius: var(--radius-xs); padding: 4px 8px; background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.rl-pj:hover { border-color: var(--ink); }
.rl-reps { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.rl-liste .rl-rep { margin: 0; padding: 7px 10px; border-left: 3px solid var(--green); background: var(--bg-warm); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; font-size: 12.5px; }
.rl-liste .rl-rep.rl-rep-moi { border-left-color: var(--violet2); }
.rl-rep-tete { font-size: 11.5px; color: var(--muted); }
.rl-rep-tete b { color: var(--ink); }
.rl-liste .rl-rep p { margin-top: 2px; }
.rl-rq-actions { display: flex; gap: 2px; margin: 8px -6px -4px; }
.rl-act { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.rl-act:hover, .rl-act:focus-visible { background: var(--surface-alt); color: var(--ink); }
.rl-act-retirer { margin-left: auto; }
.rl-act-retirer:hover { background: var(--red-bg); color: #b91c1c; }
.rl-repondre { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.rl-repondre textarea { width: 100%; border: 1px solid var(--border2); border-radius: var(--radius-xs); padding: 7px 9px; font: inherit; font-size: 13px; resize: vertical; }
.rl-repondre-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }

/* le formulaire, en bas de la colonne */
.rl-compo { flex: none; border-top: 1px solid var(--border2); background: #fff; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -6px 16px rgba(var(--prusse-rgb),.04); }
.rl-compo[hidden] { display: none; }
/* v1.196 — version remplacée : les commentaires y sont fermés */
.rl-ferme p { margin: 0; font-size: 13.5px; color: var(--muted, var(--ardoise-fonce)); display: flex; gap: 8px; align-items: flex-start; }
.rl-ferme .btn { align-self: flex-start; }
.rl-pointer { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-xs); padding: 9px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rl-pointer:hover { background: var(--ink-light); }
.rl-pointer .ti { font-size: 17px; color: var(--green); }
.rl-pointer[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.rl-pointer[aria-pressed="true"] .ti { color: var(--ink); }
.rl-compo-titre { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.rl-compo textarea, .rl-compo select, .rl-compo input:not([type="file"]) { width: 100%; min-width: 0; border: 1px solid var(--border2); border-radius: var(--radius-xs); padding: 7px 9px; font: inherit; font-size: 13px; background: #fff; color: var(--text); }
.rl-compo select { padding: 6px 6px; font-size: 12.5px; height: 34px; }
.rl-compo textarea { resize: vertical; min-height: 54px; }
.rl-compo textarea:focus, .rl-compo select:focus, .rl-compo input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.rl-compo-options { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px; gap: 6px; }
.rl-joindre { display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid var(--border2); border-radius: var(--radius-xs); color: var(--ink); cursor: pointer; font-size: 17px; background: #fff; }
.rl-joindre:hover, .rl-joindre:focus-within { border-color: var(--ink); background: var(--surface-alt); }
.rl-fichier-nom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rl-fichier-nom:empty { display: none; }
.rl-fichier-nom .rl-pj { margin-top: 0; }
.rl-compo-pied { display: flex; align-items: center; gap: 8px; }
.rl-compo-pied { justify-content: flex-end; }
.rl-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rl-compo .btn-primary { flex: none; align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; }
.rl-cote .rl-aide { margin: 0; }
@media (max-width: 900px) {
  .rl-boite-plein { height: 100vh; }
  .rl-boite-plein .rl-media { max-height: 50vh; }
  .rl-boite-tete { position: relative; padding-right: 56px; }
  .rl-boite-tete .modal-close { position: absolute; top: 12px; right: 12px; }
  .rl-boite-tete h2 { max-width: 100%; flex: 1 1 60%; }
  .rl-cadre { height: 62vh; }
  .rl-tete-actions { width: calc(100% + 40px); flex-wrap: nowrap; }
  .rl-tete-actions .btn { flex: 1 1 auto; justify-content: center; padding: 8px 10px; font-size: 12.5px; white-space: nowrap; }
  .rl-cote { overflow: visible; }
  .rl-cote-liste { overflow: visible; }
}
.rl-rem-liste .rl-filtres { max-width: 420px; margin-top: 10px; }
.rl-decision .rl-aide { font-weight: 400; margin-left: 4px; }
.rl-pointer[hidden] { display: none; }
/* 15/10/2026 — côté client, l'essentiel seulement : carte réduite (titre, état, Relire, Valider, une ligne), options du formulaire repliées */
.rl-carte .rl-mot { display: block; font-size: 13px; color: var(--muted); background: none; padding: 0; margin: 0; }
.rl-carte .rl-actions { margin-top: 2px; }
.rl-valide { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-deep); padding: 0 6px; }
.rl-infos { font-size: 12.5px; color: var(--hint); margin: 0; }
.rl-plus { align-self: flex-start; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.rl-plus:hover, .rl-plus[aria-expanded="true"] { color: var(--ink); }
.rl-compo-options[hidden] { display: none; }

/* v1.203 — nom signé visible (et modifiable) ; état hors ligne discret dans la colonne des remarques */
.rl-signe{font-size:12.5px;color:var(--muted,var(--ardoise));display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap}
.rl-signe b{color:var(--text,var(--prusse));font-weight:600}
.rl-horsligne{display:flex;gap:6px;align-items:center;padding:6px 10px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:12.5px;margin:0 0 8px}

/* v1.214 — remarques des versions précédentes, à la demande (bouton « Versions précédentes ») : pastel, leur version dite */
.rl-filtres-ligne { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.rl-filtres-ligne .rl-filtres { margin-bottom: 0; flex: 1 1 220px; }
.rl-cote-liste > .rl-filtres-ligne { position: sticky; top: -14px; z-index: 1; background: var(--bg-warm); box-shadow: 0 0 0 6px var(--bg-warm); }
.rl-prec { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed var(--ardoise-ligne-2); background: #fff; color: var(--muted); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rl-prec span { color: var(--ink); font-weight: 700; }
.rl-prec[aria-pressed="true"] { background: var(--ardoise-pale); border-style: solid; color: var(--ink); }
.rl-prec:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.rl-prec-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 16px 0 8px; padding-top: 10px; border-top: 1px dashed var(--ardoise-ligne-2); font-size: 13px; font-weight: 700; color: var(--ardoise-fonce); }
.rl-prec-tete span { font-weight: 500; color: var(--muted); font-size: 12px; }
.rl-liste li.rl-rq.rl-ancienne { background: var(--ardoise-brume); border-color: var(--ardoise-ligne); }
.rl-liste li.rl-rq.rl-ancienne.rl-traitee { background: #eef8f1; }
.rl-liste li.rl-rq.rl-ancienne .rl-rq-texte { color: var(--ardoise-fonce); }
.rl-ancienne .rl-num { background: var(--ardoise-ligne-2); color: var(--prusse); }
.rl-ancienne.rl-traitee .rl-num { background: #bfeccb; }
.rl-puce.rl-puce-v { background: #fff; border: 1px solid var(--ardoise-ligne-2); color: var(--ardoise-fonce); font-weight: 700; }
.rl-pin.ancienne { background: var(--ardoise-ligne-2); color: var(--prusse); height: auto; line-height: 1.1; padding: 3px 6px 4px; }
.rl-pin.ancienne.ok { background: #bfeccb; }
.rl-pin small { display: block; font-size: 8px; font-weight: 600; }

/* v1.223 — charte Équinoxes : le globe à la place du pavé « EH » */
.login-logo-mark.logo-charte, .topbar-logo.logo-charte{ background:transparent !important; padding:0 !important; overflow:hidden; }
.logo-charte img{ width:100%; height:100%; display:block; object-fit:contain; }

/* v1.230 — validation définitive d'une relecture : action à part, bandeau « terminée », cadenas sur la pastille d'état */
.rl-def-btn { display: inline-flex; align-items: center; gap: 6px; }
.rl-def-lien { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.rl-def-lien:hover { color: var(--ink); }
.rl-etat-fige { display: inline-flex; align-items: center; gap: 4px; }
.rl-etat-fige .ti { font-size: 13px; }
.rl-avis-pastille.rl-avis-fige { background: var(--green-bg); color: #166534; }

.rl-fige { display: flex; align-items: flex-start; gap: 12px; background: var(--green-bg); color: #166534; border-radius: var(--radius-xs); padding: 12px 16px; }
.rl-fige > .ti { font-size: 20px; flex: none; margin-top: 1px; }
.rl-fige p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.rl-fige small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; opacity: .85; }
.rl-fige-carte { margin: 4px 0 2px; }
.rl-fige-haut { flex: none; border-radius: 0; border-bottom: 1px solid rgba(22,101,52,.12); padding: 10px 18px; }

.rl-def-boite { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.rl-def-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green-bg); color: #166534; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.rl-def-titre { margin: 0 0 4px; font-weight: 700; color: var(--ink); font-size: 15px; }
.rl-def-boite .rl-aide { margin: 0; font-size: 13.5px; line-height: 1.5; }
