/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* =====================================================================
   Vaulth — Design system
   Source : prototype dashboard.html validé par Alexis. NE PAS réinventer.
   Toute nouvelle couleur/taille passe par un token ici.
   ===================================================================== */

:root {
  /* Fonds & surfaces */
  --bg: #FBFBFD;
  --surface: #ffffff;
  --surface-alt: #fafaf9;

  /* Texte */
  --text: #0a0a0a;
  --text-2: #525252;
  --text-3: #a3a3a3;
  --ink: #1A1A1A;         /* encres fiche client (prototype) */
  --ink-2: #4A4A4A;
  --ink-3: #8A8A8A;
  --ink-4: #B8B8B8;
  --bg-card: #FFFFFF;
  --bg-subtle: #ECEEF1;
  --bg-hover: #E2E5EA;

  /* Traits */
  --line: #ececec;       /* bordures de cartes, séparations structurelles */
  --line-2: #d4d4d4;
  --line-soft: #F4F4F6;  /* séparateurs de lignes de données (norme validée) */

  /* Marque */
  --navy: #152A55;       /* accent principal, bandes de sections */
  --navy-card: #02133a;  /* sidebar, topbar */
  --accent: #152A55;
  --accent-light: #E8ECF4;
  --accent-soft: #eef2f9;
  --gold: #F2D286;
  --gold-soft: #F4E9CF;
  --gold-deep: #D3A85D;
  --gold-text: #8B6914;
  --beige-corner: #D3C5A8;

  /* Sémantique (éviter le rouge anxiogène hors erreurs réelles) */
  --positive: #459169;   /* vert validé, ne pas assombrir */
  --warn: #B85C2C;
  --red: #b91c1c;

  /* Rayons */
  --radius-card: 12px;
  --radius-inner: 7px;

  /* Halo de focus (prototype #view-contacts) */
  --accent-glow: rgba(34, 55, 106, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

/* Typo canonique (référence : page Synthèse du prototype) */
.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.data-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}
.data-value { font-size: 12.5px; }

/* Bande navy d'en-tête de carte : hauteur fixe 34px */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: visible; /* jamais hidden : coupe les popovers (piège prototype) */
}
.card-band {
  background: var(--navy);
  color: #fff;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Lignes denses (annuaire, tableaux) : norme validée */
.dense-row { padding: 6px 18px; border-top: 1px solid var(--line-soft); }

/* Nom de famille toujours en majuscules */
.nom-famille { text-transform: uppercase; }

.tabular { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* =====================================================================
   Coquille applicative (chrome) — portée du prototype lignes 1053-1238.
   Grille fixe sidebar 220px + topbar 52px, fond navy-card.
   ===================================================================== */
.vaulth-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 52px 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  height: 100vh;
}
.vaulth-sidebar {
  grid-area: sidebar;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  color: rgba(255, 255, 255, 0.85);
  overflow-y: auto;
}
.vaulth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px 22px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}
.vaulth-brand-logo {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-card);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.vaulth-brand-text { min-width: 0; line-height: 1.15; }
.vaulth-brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.015em;
}
.vaulth-brand-tenant {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaulth-nav-section { margin-bottom: 18px; }
.vaulth-nav-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 10px 8px 10px;
}
.vaulth-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: var(--radius-inner);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 450;
  transition: all 0.12s ease;
  position: relative;
  text-decoration: none;
}
.vaulth-nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.vaulth-nav-item.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.vaulth-nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.vaulth-nav-item svg { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.55); flex-shrink: 0; }
.vaulth-nav-item.active svg { color: var(--gold); }
.vaulth-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}
.vaulth-nav-item.active .vaulth-badge {
  background: rgba(242, 210, 134, 0.18);
  color: var(--gold);
}
.vaulth-nav-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.vaulth-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}
.vaulth-user-info { font-size: 12.5px; min-width: 0; }
.vaulth-user-name {
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vaulth-user-role { color: rgba(255, 255, 255, 0.55); font-size: 11px; }
/* Ajout SaaS (absent du prototype mono-utilisateur) : bouton de déconnexion discret */
.vaulth-user-logout {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
}
.vaulth-user-logout:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.vaulth-user-logout svg { width: 14px; height: 14px; }

.vaulth-topbar {
  grid-area: topbar;
  background: var(--navy-card);
  border-bottom: 1px solid var(--navy-card);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 20;
}
.vaulth-search {
  flex: 1 1;
  max-width: 480px;
  position: relative;
}
.vaulth-search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-size: 13px;
  color: #fff;
  transition: all 0.15s;
}
.vaulth-search input::placeholder { color: #8A8A8A; }
.vaulth-search input:hover { border-color: #B8B8B8; }
.vaulth-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: #152A55;
  box-shadow: 0 0 0 3px rgba(21, 42, 85, 0.08);
}
.vaulth-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.vaulth-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vaulth-topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-inner);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.12s;
}
.vaulth-topbar-icon:hover { background: #ECEEF1; color: #1A1A1A; }
.vaulth-topbar-icon svg { width: 16px; height: 16px; }

.vaulth-main {
  grid-area: main;
  overflow-y: auto;
  background: var(--bg);
  position: relative;
  scrollbar-gutter: stable;
}
.vaulth-main .container {
  max-width: none;
  padding: 10px 32px 60px;
}

/* Placeholder des vues pas encore portées */
.vue-a-venir {
  margin-top: 48px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.vue-a-venir h1 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* ===== Formulaires (auth) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.auth-card { width: 380px; }
.auth-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.champ label { display: block; margin-bottom: 4px; }
.champ input {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-inner);
  background: var(--surface);
  color: var(--text);
}
.champ input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.btn-primaire {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius-inner);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.btn-primaire:hover { background: #1d3a75; }
.btn-primaire:disabled { opacity: 0.5; cursor: default; }
.form-erreur { color: var(--red); font-size: 12px; }
.auth-lien { font-size: 12px; color: var(--text-2); text-align: center; }
.auth-lien a { color: var(--navy); font-weight: 500; }

/* ===== Équipe / invitations ===== */
.champ select {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-inner);
  background: var(--surface);
  color: var(--text);
}
.champ select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.btn-secondaire {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-inner);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondaire:hover { border-color: var(--navy); }
.invitation-lien {
  background: var(--gold-soft);
  border-radius: var(--radius-inner);
  padding: 10px 12px;
}
.invitation-lien code {
  font-size: 11px;
  word-break: break-all;
  flex: 1 1;
}

/* =====================================================================
   Annuaire contacts (ci-*) — porté du prototype tel quel.
   ===================================================================== */
.ci-count {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 20px;
  margin-left: 5px;
  white-space: nowrap;
}
.ci-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(21, 42, 85, 0.06), 0 5px 14px rgba(21, 42, 85, 0.05);
}
.ci-row {
  display: grid;
  grid-template-columns: 26px 1fr 1fr 150px minmax(0, 1.6fr) 150px 52px;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
  padding: 6px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.ci-row:last-child { border-bottom: none; }
.ci-row-head {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
  background: transparent;
  padding-top: 9px;
  padding-bottom: 9px;
}
.ci-row:not(.ci-row-head) { cursor: pointer; transition: background 0.12s; }
.ci-row:not(.ci-row-head):hover { background: var(--accent-soft); }
.ci-ico { color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.ci-ico svg { width: 17px; height: 17px; }
.ci-prenom, .ci-nom {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-tel, .ci-mail, .ci-cons {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ci-muted { color: var(--text-3); }
.ci-act { text-align: right; }
.ci-act-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.ci-act-btn:hover { background: var(--line); color: var(--text); }
.ci-empty { padding: 32px; text-align: center; color: var(--text-3); font-size: 13px; }

/* =====================================================================
   Fiche client — hero + onglets (client-hero, tabs du prototype).
   La fiche est pleine largeur dans .vaulth-main (compense le padding container).
   ===================================================================== */
.fiche-wrap,
.contacts-vue {
  --line: #E0E2E6;
  font-family: 'Geist', -apple-system, sans-serif;
  color: var(--ink);
}
.client-hero {
  padding: 16px 32px 14px;
  border-bottom: 1px solid var(--line);
}
.hero-min { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-identity { display: flex; align-items: center; gap: 16px; }
.hero-name-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.client-monogram {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #152A55;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
  box-shadow: 0 1px 3px rgba(2, 19, 58, 0.15);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--gold);
          text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.client-name {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.client-name .ln { font-weight: 600; color: var(--ink); text-transform: uppercase; }
.hero-meta-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hm-text { display: inline-flex; align-items: center; gap: 5px; font-size: inherit; color: inherit; }
.hm-text svg { width: 11px; height: 11px; color: var(--ink-4); }
.hm-text strong { color: var(--ink); font-weight: 500; }
.hm-sep { color: var(--ink-4); }
.advisor-sec-extra { color: var(--ink-3); font-weight: 500; }
.hero-right { display: flex; align-items: center; gap: 10px; flex: none; }
.hm-update {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 10.5px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}
.hm-update:hover { background: var(--bg-hover); }
.hm-update svg { width: 10px; height: 10px; color: var(--ink-3); }
.hm-update strong { color: var(--navy); font-weight: 500; }
.hero-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all 0.12s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; }
.fiche-colle { position: -webkit-sticky; position: sticky; top: 0; z-index: 9; background: var(--bg); }
.fiche-colle-nom {
  max-height: 0; opacity: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 28px; background: var(--bg);
  font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: 0.01em;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}
.fiche-colle.compact .fiche-colle-nom { max-height: 32px; opacity: 1; padding: 9px 28px 0; }
.fiche-colle.compact .tabs-wrap { padding-top: 8px; }
.tabs-wrap {
  padding: 14px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}
.tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.tab {
  flex: 1 1;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.12s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: #152A55;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.tab svg { width: 14px; height: 14px; }
.tab.active svg { color: var(--gold); }

/* =====================================================================
   Onglet Profil — layout KYC + moteur de registres (idr-*), du prototype.
   ===================================================================== */
.kyc-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-gap: 24px;
  gap: 24px;
  padding: 18px 32px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.kyc-nav { position: -webkit-sticky; position: sticky; top: 78px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.kyc-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.12s;
}
.kyc-nav-item:hover { background: var(--bg-subtle); color: var(--ink); }
.kyc-nav-item.active { background: #152A55; color: #fff; }
.kyc-nav-item svg { width: 13px; height: 13px; color: var(--ink-3); }
.kyc-nav-item.active svg { color: var(--gold); }
.kyc-content { display: flex; flex-direction: column; gap: 24px; }
.kyc-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  scroll-margin-top: 72px;
  box-shadow: 0 1px 3px rgba(21, 42, 85, 0.06), 0 5px 14px rgba(21, 42, 85, 0.05);
}
.kyc-block-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background: #152A55;
}
.kyc-block-h h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.kyc-block-h h2 svg, .kyc-block-icon { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.kyc-subblock { padding: 14px 16px 6px; border-bottom: 1px solid var(--line-soft); }
.kyc-subblock:last-child { border-bottom: none; padding-bottom: 14px; }
.gen-subhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.gen-subhead h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0;
}
.gen-subhead h3::before {
  content: attr(data-num);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #152A55;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Moteur de registres */
.idr { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 2px 34px; gap: 2px 34px; }
.idr-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 3px 4px;
  min-height: 27px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.idr-row:hover { background: var(--surface-alt); }
.idr-row-lecture { cursor: default; }
.idr-lbl {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.idr-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.idr-vtxt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idr-chev { width: 11px; height: 11px; color: #c0c0c0; flex-shrink: 0; }
.idr-empty { color: #c8c8c8; font-weight: 400; }
.idr-input {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
  outline: none;
  text-align: right;
  max-width: 210px;
  background: #fff;
}
.idr-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(21, 42, 85, 0.12);
  padding: 4px;
  min-width: 180px;
}
.idr-opt { font-size: 11.5px; padding: 6px 10px; border-radius: 6px; color: var(--text-2); cursor: pointer; }
.idr-opt:hover { background: var(--accent-soft); color: var(--accent); }
.idr-opt.is-on { background: var(--accent); color: #fff; }
.idr-menu-multi { min-width: 240px; }
.idr-copt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-2);
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}
.idr-copt:hover { background: var(--accent-soft); }
.idr-copt input { accent-color: var(--accent); margin: 0; }
.idr-copt-none { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 3px; padding-bottom: 7px; }
.idr-note {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  padding: 6px 8px;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.idr-note:focus { border-color: var(--accent); }

/* ===== Profil investisseur (jauges pi-*, du prototype) ===== */
.pi-head { display: flex; align-items: center; gap: 10px; }
.pi-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); grid-gap: 16px; gap: 16px; margin: 2px 0 6px; }
.pi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.pi-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pi-desc { font-size: 11.5px; color: var(--text-2); line-height: 1.5; margin-top: 11px; }
.pi-desc p { margin: 0 0 4px; }
.pi-bar { display: flex; height: 24px; border-radius: 4px; -moz-user-select: none; user-select: none; -webkit-user-select: none; }
.pi-seg { flex: 1 1; cursor: pointer; }
.pi-seg:last-child { border-radius: 0 4px 4px 0; }
.pi-seg.pi-nd {
  flex: 0 0 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #8a8a90;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 0 0 4px;
  white-space: nowrap;
  margin-right: 6px;
}
.pi-seg.is-c { box-shadow: 0 0 0 2px var(--accent); border-radius: 3px; position: relative; z-index: 1; }
.pi-wrap.pi-locked .pi-seg { cursor: default; }
.pi-lbl-row { display: flex; margin-top: 7px; }
.pi-lbl-row span {
  flex: 1 1;
  text-align: center;
  font-size: 10px;
  color: var(--text-2);
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-lbl-row span:first-child { flex: 0 0 42px; margin-right: 6px; padding: 0; }
.pi-lbl-row .pi-lbl-b { font-weight: 600; color: var(--accent); }
.pi-save {
  background: #A0D795;
  color: #24501B;
  border: none;
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}
.pi-save:hover { background: #8FCB82; }
.pi-mod { font-size: 10.5px; color: var(--text-3); }
.pi-lock {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  padding: 0;
}
.pi-lock svg { width: 14px; height: 14px; }
.pi-lock:hover { border-color: var(--accent); color: var(--accent); }
.pi-lock.is-open { background: var(--accent); border-color: var(--accent); color: #fff; }
.pi-lock.pi-shake { animation: piShake 0.4s ease; }
@keyframes piShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-8deg); }
  40% { transform: translateX(3px) rotate(8deg); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.pi-pref { grid-column: 1 / -1; }
.pi-env-in {
  width: 52px; padding: 2px 6px; border: 1.5px solid var(--accent); border-radius: 6px;
  font-family: inherit; font-size: 11.5px; color: var(--ink); text-align: right; outline: none;
}

/* =====================================================================
   Synthèse cabinet (view-dashboard du prototype) : période, KPI, top clients.
   ===================================================================== */
.period-selector {
  position: relative;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  align-items: center;
}
.year-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.year-btn:hover { background: var(--accent-soft); }
.year-btn svg { transition: transform 0.15s; color: var(--text-2); }
.year-btn.open svg { transform: rotate(180deg); }
.year-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 4px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
  min-width: 100px;
  overflow: hidden;
}
.year-menu.open { display: block; }
.year-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}
.year-menu button:hover { background: var(--accent-soft); }
.year-menu button.active { background: var(--accent); color: white; }
.period-divider { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
.month-tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1 1; scrollbar-width: thin; }
.month-btn {
  flex: none;
  padding: 7px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.month-btn:hover { background: var(--accent-soft); color: var(--text); }
.month-btn.active { background: var(--accent); color: white; }
.custom-range-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}
.custom-range-btn:hover { background: var(--accent-soft); color: var(--text); }
.custom-range-btn.active { background: var(--accent); color: white; }
.custom-range-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  align-items: end;
  gap: 14px;
  display: flex;
}
.range-group { display: flex; flex-direction: column; gap: 4px; }
.range-label { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.range-input {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  width: 160px;
}
.range-input:focus { outline: none; border-color: var(--accent); }
.range-apply {
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.range-apply:hover { opacity: 0.9; }
.range-cancel { margin-left: auto; padding: 4px 10px; border: none; background: transparent; color: var(--text-3); font-size: 22px; cursor: pointer; line-height: 1; }
.range-cancel:hover { color: var(--text); }
.range-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }

.kpis {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  grid-gap: 1px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.kpis.cols-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.kpi { background: var(--surface); padding: 18px 20px; transition: background 0.15s; }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { background: var(--surface-alt); }
.kpi-label { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; font-weight: 500; }
.kpi-value { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; font-weight: 400; }
.kpi.highlight .kpi-value { color: var(--accent); font-size: 26px; }

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(21, 42, 85, 0.06), 0 5px 14px rgba(21, 42, 85, 0.05);
}
.section-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.section-meta { font-size: 12px; color: var(--text-3); font-weight: 400; }
.filters-bar { display: flex; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.search-wrap { flex: 1 1; position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
.search-input {
  width: 100%;
  padding: 8px 32px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-input::placeholder { color: var(--text-3); }
.search-clear { position: absolute; right: 8px; background: none; border: none; color: var(--text-3); font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; }
.search-clear:hover { color: var(--text); }
.toggle-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.toggle-filters:hover { border-color: var(--line-2); color: var(--text); }
.toggle-filters.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.toggle-filters.active svg { transform: rotate(180deg); }
.advanced-filters { padding: 14px 22px 16px; border-bottom: 1px solid var(--line); background: var(--surface-alt); gap: 16px; flex-direction: column; display: flex; }
.filter-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.filter-input {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  width: 120px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.filter-input:focus { outline: none; border-color: var(--accent); }
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-pill {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.cat-pill:hover { border-color: var(--line-2); }
.cat-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
.filter-reset { margin-left: auto; padding: 6px 12px; border: none; background: transparent; color: var(--text-2); font-family: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.filter-reset:hover { color: var(--text); }

.synthese-section table { width: 100%; border-collapse: collapse; font-size: 13px; }
.synthese-section th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.synthese-section th.num, .synthese-section td.num { text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.synthese-section td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.synthese-section tbody tr:last-child td { border-bottom: none; }
.synthese-section tr.clickable { cursor: pointer; transition: background 0.1s; }
.synthese-section tr.clickable:hover { background: var(--accent-soft); }
.synthese-section .muted { color: var(--text-2); }
.synthese-section .strong { font-weight: 600; color: var(--text); }
.rank {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 22px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.client-row.expanded, .client-row.expanded:hover { background: var(--accent-soft); }
.contrat-row { background: #fafaf9; }
.contrat-row td { padding-top: 7px; padding-bottom: 7px; font-size: 12px; }
.contrat-label { color: var(--text-2); font-weight: 500; }
.contrat-arrow { color: var(--text-3); margin-right: 6px; }
.contrat-produit { color: var(--text-3); font-weight: 400; margin-left: 8px; font-size: 11px; }
.contract-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}

/* =====================================================================
   Flux & analyses (view-analyses du prototype) : cartes de graphiques.
   ===================================================================== */
.analyses-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-gap: 16px; gap: 16px; }
.analyse-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  grid-column: span 12;
  transition: border-color 0.15s;
}
.analyse-card:hover { border-color: var(--line-2); }
.analyse-wide { grid-column: span 12; }
.analyse-half { grid-column: span 6; }
@media (max-width: 980px) { .analyse-half { grid-column: span 12; } }
.analyse-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.analyse-head-text { flex: 1 1; min-width: 0; }
.analyse-title { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -0.005em; margin: 0; }
.analyse-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 400; }
.analyse-filter {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.analyse-filter:hover { border-color: var(--line-2); background: var(--surface-alt); }
.analyse-filter:focus { outline: none; border-color: var(--accent); }
.analyse-stat {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  margin: 8px 0 18px;
  line-height: 1.1;
}
.chart-wrap { position: relative; width: 100%; height: 280px; }
.chart-wrap-pie { height: 240px; }
.chart-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.chart-toggle {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.chart-toggle:hover { border-color: var(--text-3); color: var(--text); }
.chart-toggle.active { color: white; border-color: transparent; }
.chart-toggle.active:hover { opacity: 0.9; }
.range-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.range-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.range-btn:hover { background: #e5e7eb; color: var(--text); }
.range-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.05); }
.range-btn svg { transition: transform 0.15s; color: var(--text-3); }
.range-btn.open svg { transform: rotate(180deg); }
.range-dropdown-wrap { position: relative; }
.range-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 4px;
  z-index: 40;
}
.range-dropdown-custom { min-width: 200px; }

/* =====================================================================
   Sections du Profil : Relations / Revenus / Patrimoine / Charges.
   ===================================================================== */
.kyc-block-total { font-size: 13.5px; font-weight: 600; color: var(--gold); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.kyc-block-total-neg { color: #f4a6a6; }
.kyc-block-total-meta { color: rgba(255, 255, 255, 0.65); font-weight: 500; font-size: 11.5px; }
.kyc-block-total-sub { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.kyc-rows { display: flex; flex-direction: column; }
.kyc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas: "lbl val" "meta meta";
  grid-gap: 1px 12px;
  gap: 1px 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
}
.kyc-rows .kyc-row:first-child { border-top: none; }
.kyc-row-lbl { grid-area: lbl; font-size: 12.5px; color: var(--ink); font-weight: 500; }
.kyc-row-val { grid-area: val; font-size: 12.5px; color: var(--ink); font-weight: 500; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.kyc-row-meta { grid-area: meta; font-size: 11px; color: var(--ink-3); }
.rel-list { display: flex; flex-direction: column; }
.rel-row { display: flex; align-items: center; gap: 9px; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); transition: background 0.12s; }
.rel-row:hover { background: #fafaf9; }
.rel-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rel-row-name { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.rel-row-sep { color: var(--ink-4); }
.rel-row-meta { font-size: 12px; color: var(--ink-3); }
.rel-row-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rel-row-del {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--ink-4);
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.rel-row-del:hover { background: #fef2f2; color: #b91c1c; }
.rel-row-del svg { width: 12px; height: 12px; }
.rel-add { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; justify-content: center; }
.rel-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}
.rel-add-btn:hover { background: var(--bg-subtle); border-color: var(--ink-4); color: var(--ink); }
.rel-add-btn svg { width: 13px; height: 13px; }
.rel-add-btn-primary { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.rel-add-btn-primary:hover { background: var(--accent-light); }
.rev-years { display: flex; gap: 4px; padding: 0 16px; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.rev-year { padding: 9px 16px; border: none; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; position: relative; }
.rev-year:hover { color: var(--ink); }
.rev-year.active { color: var(--navy); font-weight: 700; }
.rev-year.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--navy); border-radius: 2px; }
.rev-main { display: flex; align-items: stretch; }
.rev-synth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-right: 1px solid var(--line-soft);
  flex-shrink: 0;
  width: 200px;
}
.rev-synth-head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rev-synth-total { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.rev-right { flex: 1 1; min-width: 0; display: flex; flex-direction: column; }
.rev-list { display: flex; flex-direction: column; min-width: 0; }
.rev-row { display: flex; align-items: center; gap: 7px; padding: 5px 16px; border-bottom: 1px solid var(--line-soft); transition: background 0.12s; }
.rev-row:hover { background: #fafaf9; }
.rev-row:last-child { border-bottom: none; }
.rev-row-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.rev-row-name { font-size: 12.5px; color: var(--ink); }
.rev-row-sep { color: var(--ink-4); margin: 0 -2px; }
.rev-row-meta { font-size: 12px; color: var(--ink-3); }
.rev-row-amt { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--navy); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.rev-empty { padding: 20px 16px; text-align: center; color: var(--ink-3); font-size: 12px; }
.rev-add { display: flex; flex-direction: column; align-items: center; padding: 10px 16px; gap: 4px; }
.rev-add-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.rev-add-line:hover { background: var(--accent-light); }
.rev-add-line svg { width: 13px; height: 13px; }
.rev-type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 4px;
  gap: 4px;
  align-self: stretch;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-subtle);
}
.rev-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}
.rev-type-btn:hover { background: var(--accent-light); border-color: var(--navy); color: var(--navy); }
.gen-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 7px 14px; gap: 7px 14px; }
.gen-field { display: flex; flex-direction: column; gap: 2px; }
.gen-input {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.gen-input:focus { border-color: var(--navy-card); }
.gen-input::placeholder { color: var(--ink-4); }
.section-form { padding: 12px 16px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.section-form-actions { display: flex; gap: 8px; }
.gen-lbl {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pastille de statut de contrat */
.statut-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.statut-pill.statut-actif { background: #e7f2ea; color: var(--positive); }
.synthese-section tfoot td { border-top: 1px solid var(--line); padding: 10px 14px; }

/* =====================================================================
   Opportunités — pipeline (prospect-*, pipe-*, stepper stp-*, du prototype).
   ===================================================================== */
.prospect-wrap { padding: 18px 32px 48px; max-width: 1180px; margin: 0 auto; }
.prospect-layout { display: grid; grid-template-columns: 200px 1fr; grid-gap: 24px; gap: 24px; align-items: start; }
.product-rail { position: -webkit-sticky; position: sticky; top: 78px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.product-rail-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 0 10px 8px; }
.product-rail-list { display: flex; flex-direction: column; gap: 2px; }
.product-rail-group { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 10px 10px 3px; }
.product-rail-solo { height: 10px; border-top: 1px solid var(--line-soft); margin-top: 10px; }
.product-rail-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  height: 23px; padding: 0 10px; border: none; background: transparent;
  border-radius: 6px; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; text-align: left; transition: all 0.12s;
}
.product-rail-item svg { width: 13px; height: 13px; color: var(--ink-3); flex-shrink: 0; }
.product-rail-item:hover { background: var(--bg-subtle); color: var(--ink); }
.product-rail-item:hover svg { color: var(--navy); }
.product-rail-parent .pri-chev { margin-left: auto; width: 11px; height: 11px; transition: transform 0.15s; color: var(--ink-4); }
.product-rail-parent.open .pri-chev { transform: rotate(180deg); }
.product-rail-parent.open { color: var(--navy); }
.product-rail-parent.open > svg:first-of-type { color: var(--navy); }
.product-rail-sub { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 3px; }
.product-rail-subitem {
  text-align: left; border: none; background: transparent; cursor: pointer;
  padding: 7px 10px 7px 32px; border-radius: 6px;
  font-family: inherit; font-size: 12px; font-weight: 500; color: var(--ink-2);
  transition: all 0.12s; position: relative;
}
.product-rail-subitem::before {
  content: ''; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4);
}
.product-rail-subitem:hover { background: var(--accent-light); color: var(--navy); }
.product-rail-subitem:hover::before { background: var(--navy); }
.prospect-right { min-width: 0; }
.pipe-stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 16px; }
.ps-cell { padding: 12px 14px; text-align: center; }
.ps-cell + .ps-cell { border-left: 1px solid var(--line-soft); }
.ps-v { font-size: 19px; font-weight: 700; color: var(--navy); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ps-v.g { color: var(--positive); }
.ps-v.r { color: var(--red); }
.ps-v.o { color: var(--gold-deep); }
.ps-l { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
.pipeline-list { display: flex; flex-direction: column; gap: 14px; }
.pipeline-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 0; transition: box-shadow 0.15s; }
.pipeline-card:hover { border-color: var(--ink-4); }
.pipeline-card.snoozed .pl-c-body { opacity: 0.4; pointer-events: none; transition: opacity 0.15s; }
.pl-c-band { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: var(--navy); color: #fff; border-radius: 12px 12px 0 0; }
.pl-c-icon { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.pl-c-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pl-c-meta { font-size: 10px; color: rgba(255, 255, 255, 0.55); }
.pl-c-relance { margin-left: auto; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); background: rgba(242, 210, 134, 0.14); padding: 2px 8px; border-radius: 10px; }
.pl-c-relance + .pl-c-right { margin-left: 8px; }
.pl-c-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pl-c-relance ~ .pl-c-right { margin-left: 8px; }
.pl-c-del { width: 22px; height: 22px; border: none; background: transparent; color: rgba(255, 255, 255, 0.7); cursor: pointer; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pl-c-del:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pl-c-del svg { width: 13px; height: 13px; }
.pl-actions-btn { width: 28px; height: 28px; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pl-actions-btn:hover { background: rgba(255, 255, 255, 0.16); }
.pl-actions-btn svg { width: 14px; height: 14px; }
.pl-c-body { padding: 14px 16px 12px; }
.pl-c-main { display: flex; align-items: center; gap: 22px; }
.pl-c-main .stepper { flex: 1 1; min-width: 0; }
.pl-c-amts2 { flex: 0 0 250px; display: flex; flex-direction: row; gap: 12px; }
.pl-c-amt2 { display: flex; flex-direction: column; gap: 2px; flex: 1 1; }
.stepper { position: relative; }
.stp-track { position: absolute; top: 9px; left: 31px; right: 31px; height: 6px; transform: translateY(-50%); background: var(--line); border-radius: 5px; overflow: hidden; z-index: 0; }
.stp-fill { height: 100%; background: var(--navy); border-radius: 5px; transition: width 0.3s ease; }
.stp-fill.win { background: var(--positive); }
.stp-fill.lost { background: var(--red); }
.stp-nodes { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.stp-node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; position: relative; }
.stp-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; transition: all 0.15s; cursor: pointer; }
.stp-dot:hover { border-color: var(--navy); }
.stp-dot svg { fill: none; width: 10px; height: 10px; stroke-width: 3; }
.stp-dot.done { background: var(--navy); border-color: var(--navy); }
.stp-dot.done svg { stroke: #fff; }
.stp-dot.current { border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-soft); }
.stp-dot.current svg { stroke: var(--navy); }
.stepper.win .stp-dot.current { background: var(--positive); border-color: var(--positive); box-shadow: none; }
.stepper.win .stp-dot.current svg { stroke: #fff; }
.stepper.lost .stp-dot.current { background: var(--red); border-color: var(--red); box-shadow: none; }
.stepper.lost .stp-dot.current svg { stroke: #fff; }
.stp-lbl { font-size: 8.5px; color: var(--ink-3); text-align: center; width: 62px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500; }
.stp-node.done .stp-lbl { color: var(--ink-2); }
.stp-node.current .stp-lbl { color: var(--navy); font-weight: 700; }
.stepper.win .stp-node.current .stp-lbl { color: var(--positive); }
.stepper.lost .stp-node.current .stp-lbl { color: var(--red); }
.stp-date { font-size: 9px; color: var(--ink-3); cursor: pointer; margin-top: 1px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; padding: 1px 3px; border-radius: 3px; }
.stp-date:hover { background: var(--bg-subtle); color: var(--navy); }
.stp-date.empty { color: var(--ink-4); }
.stp-date-input { font-family: inherit; font-size: 9px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 2px; color: var(--ink); width: 92px; margin-top: 1px; }
.pipe-choice { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); padding: 5px; width: 150px; }
.pipe-choice button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: none; border-radius: 6px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; background: transparent; text-align: left; transition: background 0.12s; }
.pipe-choice button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.pipe-choice-win { color: var(--positive); }
.pipe-choice-win:hover { background: #dcefe3; }
.pipe-choice-lost { color: var(--red); }
.pipe-choice-lost:hover { background: #fce4e4; }
.pipe-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16); padding: 5px; display: flex; flex-direction: column; gap: 1px; }
.pipe-menu-h { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 4px 8px 5px; }
.pipe-menu button { text-align: left; padding: 7px 9px; border: none; background: transparent; border-radius: 6px; font-family: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.pipe-menu button:hover { background: var(--accent-light); color: var(--navy); }
.pipe-menu-date { display: flex; flex-direction: column; gap: 3px; padding: 6px 9px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); border-top: 1px solid var(--line-soft); margin-top: 3px; }
.pipe-menu-date input { border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font-family: inherit; font-size: 12px; color: var(--ink); }
.pipe-menu-cancel { color: var(--red) !important; border-top: 1px solid var(--line-soft); margin-top: 3px; }
.pipe-menu-cancel:hover { background: #fce4e4 !important; }
.pipe-note { margin-top: 11px; display: flex; flex-direction: column; gap: 6px; }
.pipe-note-entry { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.pipe-note-entry-main { flex: 1 1; min-width: 0; display: block; }
.pipe-note-date { display: block; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 4px; }
.pipe-note-body { display: block; white-space: pre-wrap; font-size: 11.5px; color: var(--ink); line-height: 1.45; }
.pipe-note-del { width: 20px; height: 20px; border: none; background: transparent; color: var(--ink-4); cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pipe-note-del:hover { background: #fef2f2; color: #b91c1c; }
.pipe-note-del svg { width: 11px; height: 11px; }
.pipe-note-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 0; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); }
.pipe-note-toggle:hover { color: var(--navy-card); }
.pnt-chev { width: 11px; height: 11px; transition: transform 0.15s; }
.pnt-chev.open { transform: rotate(180deg); }
.pipe-note-edit { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.pipe-note-tb { display: flex; gap: 2px; padding: 4px 5px; border-bottom: 1px solid var(--line-soft); background: var(--bg-subtle); }
.pipe-note-tb button {
  width: 24px; height: 22px; border: none; background: transparent; border-radius: 4px;
  font-family: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; transition: all 0.12s;
  display: inline-flex; align-items: center; justify-content: center;
}
.pipe-note-tb button:hover { background: var(--accent-light); color: var(--navy); }
.pipe-note-input {
  min-height: 38px; padding: 8px 10px; outline: none;
  font-family: inherit; font-size: 11.5px; color: var(--ink); line-height: 1.45;
}
.pipe-note-input:empty:before { content: attr(data-ph); color: var(--ink-4); }
.pipe-note-body b, .pipe-note-body strong { font-weight: 700; }
.pipe-note-body i, .pipe-note-body em { font-style: italic; }
.pipe-note-body u { text-decoration: underline; }
.pipe-note-add { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 11.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; align-self: flex-start; transition: all 0.12s; }
.pipe-note-add:hover { background: var(--bg-subtle); border-color: var(--ink-4); color: var(--ink); }
.pipe-note-add svg { width: 11px; height: 11px; color: var(--ink-3); }
.pipe-note-edit { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.pipe-note-input { min-height: 38px; padding: 8px 10px; outline: none; font-family: inherit; font-size: 11.5px; color: var(--ink); line-height: 1.45; }

/* =====================================================================
   Onglet Synthèse de la fiche (fh-strip, ik-card, couverture, rappels).
   ===================================================================== */
.fh-strip { display: flex; gap: 10px; padding: 14px 28px 0; max-width: 1480px; box-sizing: border-box; }
.fh-one { flex: 1 1; background: #f1f2f6; border-radius: 10px; display: flex; align-items: center; padding: 8px 4px; }
.fh-col { flex: 1 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 2px 14px; min-width: 0; }
.fh-tl { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); white-space: nowrap; }
.fh-tv { font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.fh-sep { width: 1px; height: 26px; background: #d6d9e0; flex-shrink: 0; }
.fh-nak { display: flex; flex-shrink: 0; }
.fh-nak svg { width: 34px; height: 34px; display: block; opacity: 0.55; }
.content { padding: 14px 28px 40px; max-width: 1480px; box-sizing: border-box; display: grid; grid-template-columns: 1fr 380px; grid-gap: 14px; gap: 14px; align-items: start; }
.col-side { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1180px) { .content { grid-template-columns: 1fr; } }
.col-main { display: flex; flex-direction: column; gap: 10px; }
.ik-card { background: #fff; border: 1px solid #cdd1d9; border-radius: 7px; overflow: hidden; }
.card-h { padding: 9px 16px; background: #152A55; display: flex; align-items: center; gap: 8px; }
.card-h h3 { font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.card-h .card-icon, .side-section-h .card-icon { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.ik-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px 36px; gap: 12px 36px; padding: 12px 18px 14px; }
.ik-cell { min-width: 0; }
.ik-t { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.coords-list { padding: 2px 0 0; }
.coords-row { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 3px 4px; gap: 12px; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.coords-row:last-child { border-bottom: none; }
.coords-lbl { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; white-space: nowrap; }
.coords-val { color: var(--ink); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.side-mega-card { display: flex; flex-direction: column; gap: 8px; }
.side-section { background: #fff; border: 1px solid #cdd1d9; border-radius: 7px; overflow: hidden; }
.side-mega-card .side-section:not(:last-child) { border-bottom-color: var(--line-soft); }
.side-section-h { padding: 9px 16px; background: #152A55; display: flex; align-items: center; gap: 8px; }
.side-section-h h3 { font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.h-count { font-size: 10px; color: rgba(255, 255, 255, 0.85); padding: 1px 7px; background: rgba(255, 255, 255, 0.15); border-radius: 20px; font-weight: 600; }
.cov-tiles.cov-list { display: block; padding: 4px 14px 10px; }
.cov-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.cov-row:last-child { border-bottom: none; }
.cov-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cov-ico svg { width: 14px; height: 14px; fill: none; }
.cov-r-txt { flex: 1 1; min-width: 0; text-align: left; }
.cov-r-name { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.cov-r-ins { font-size: 10.5px; color: var(--ink-3); }
.cov-r-amt { text-align: right; font-size: 12.5px; font-weight: 600; color: var(--navy); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cov-r-sub { font-size: 9.5px; font-weight: 400; color: var(--ink-3); }
.reminder-add-btn { margin-left: auto; width: 20px; height: 20px; border: none; background: transparent; cursor: pointer; border-radius: 4px; color: rgba(255, 255, 255, 0.7); display: inline-flex; align-items: center; justify-content: center; }
.reminder-add-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.reminder-add-btn svg { width: 13px; height: 13px; }
.reminders-add { padding: 10px 14px 12px; background: var(--bg-subtle); border-bottom: 1px solid var(--line-soft); }
.reminder-input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-family: inherit; font-size: 12.5px; color: var(--ink); margin-bottom: 8px;
  transition: border-color 0.12s;
}
.reminder-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--accent-glow); }
.reminder-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.reminder-custom-date {
  padding: 4px 9px; background: #fff; border: 1px solid var(--line); border-radius: 5px;
  font-family: inherit; font-size: 11px; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.reminder-custom-date:hover { border-color: var(--navy); color: var(--navy); background: var(--accent-light); }
.reminder-custom-date svg { width: 11px; height: 11px; color: var(--ink-3); }
.reminder-custom-date input[type="date"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reminders-list { list-style: none; margin: 0; padding: 2px 0; }
.reminders-list:empty::before { content: "Aucune action en cours."; display: block; font-size: 12px; color: var(--ink-3); text-align: center; padding: 10px 0; }
.reminder-item { display: flex; align-items: center; gap: 9px; padding: 3px 14px; transition: background 0.12s; }
.reminder-item:hover { background: var(--bg-subtle); }
.reminder-dot {
  width: 14px; height: 14px; border-radius: 50%; background: transparent; border: 1.8px solid #15803d;
  margin-top: 3px; flex-shrink: 0; cursor: pointer; transition: all 0.18s;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; color: #fff;
}
.reminder-dot:hover { background: rgba(21, 128, 61, 0.12); }
.reminder-dot svg { width: 0; height: 0; stroke-width: 3; transition: all 0.18s; }
.reminder-dot.checked { background: #15803d; border-color: #15803d; }
.reminder-dot.checked svg { width: 9px; height: 9px; }
.reminder-item.animating-out { opacity: 0; transform: translateX(8px); transition: all 0.2s; }
.reminder-input-error { border-color: var(--warn) !important; animation: reminderShake 0.4s; }
@keyframes reminderShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.reminder-body { flex: 1 1; min-width: 0; line-height: 1.35; }
.reminder-body:not(.reminder-edit) { display: flex; align-items: baseline; gap: 10px; }
.reminder-body:not(.reminder-edit) .reminder-text { min-width: 0; margin-bottom: 0; }
.reminder-body:not(.reminder-edit) .reminder-when { white-space: nowrap; flex-shrink: 0; }
/* Projets d'actions en tuiles objectif (variante 5) */
.rap-obj { margin: 6px 14px 8px; border: 1px solid #E0E2E6; border-radius: 7px; padding: 9px 12px; background: #fff; }
.rap-obj-h { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rap-obj-h > svg:not(.rap-anneau) { width: 14px; height: 14px; color: var(--gold-deep); flex-shrink: 0; }
.rap-obj-nom { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--navy); }
.rap-obj-count { font-size: 12px; color: var(--navy); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.rap-anneau { flex-shrink: 0; }
.rap-obj-date { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.rap-cible { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); background: var(--accent-light); border-radius: 10px; padding: 2px 9px; display: inline-block; margin-bottom: 8px; }
.rap-obj-suppr { margin-top: 0; }
.rap-obj-h:hover .rap-obj-suppr { opacity: 1; }
.rap-obj-barre { height: 8px; background: var(--bg-subtle); border-radius: 4px; margin-top: 7px; overflow: hidden; }
.rap-obj-fill { height: 100%; border-radius: 4px; background: var(--gold-deep); transition: width 0.25s ease; }
.rap-obj-fill.complet { background: #5BBA49; }
.rap-obj-liste { margin-top: 4px; }
.rap-obj-liste:empty { padding: 0; }
.rap-obj-liste:empty::before { content: none; }
.rap-add-row { display: flex; gap: 6px; margin-top: 8px; }
.rap-suppr-confirm {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; padding: 7px 10px; border: 1px solid #EAD3C8; background: #FBF3EE;
  border-radius: 6px; font-size: 11.5px; color: var(--ink);
}
.rap-suppr-confirm span { flex: 1 1; min-width: 0; }
.rap-suppr-oui {
  border: none; background: var(--warn); color: #fff; border-radius: 5px;
  padding: 4px 12px; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.rap-suppr-oui:hover { background: #9d4c22; }
.rap-md { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-gap: 8px; gap: 8px; margin-top: 6px; }
.rap-md-nav { border-right: 1px solid var(--line-soft); padding-right: 8px; display: flex; flex-direction: column; gap: 2px; }
.rap-md-ligne { display: flex; align-items: center; gap: 2px; }
.rap-md-ligne .rap-md-item { flex: 1 1; min-width: 0; }
.rap-md-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; font-family: inherit; font-size: 11px; font-weight: 500;
  padding: 5px 8px; border-radius: 5px; border: none; background: transparent;
  color: var(--ink-2); cursor: pointer; transition: all 0.12s;
}
.rap-md-item:hover { background: var(--bg-subtle); }
.rap-md-item.actif { background: var(--navy); color: #fff; }
.rap-md-item span { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; font-size: 10.5px; opacity: 0.8; flex-shrink: 0; }
.rap-md-suppr { margin-top: 0; }
.rap-md-ligne:hover .rap-md-suppr { opacity: 1; }
.rap-md-liste { min-width: 0; }
.rap-add-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 11.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all 0.12s;
}
.rap-add-btn:hover { background: var(--bg-subtle); border-color: var(--ink-4); color: var(--ink); }
.rap-add-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--ink-3); }
.rap-add-form { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 6px; padding: 8px; margin-top: 8px; }
.rap-obj .reminder-item { padding-left: 2px; padding-right: 2px; }
.rap-obj-sous { margin: 6px 0 2px 12px; border-color: var(--line-soft); padding: 7px 10px; }
.rap-dossier-add { width: 18px; height: 18px; border: none; background: transparent; color: var(--ink-4); cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.rap-dossier-add:hover { background: var(--bg-subtle); color: var(--navy); }
.rap-dossier-add svg { width: 11px; height: 11px; }
.rap-fait .reminder-text { color: var(--ink-3); font-weight: 400; text-decoration: line-through; -webkit-text-decoration-color: #d4d4d4; text-decoration-color: #d4d4d4; }
.rap-fait .reminder-dot { background: #15803d; border-color: #15803d; cursor: pointer; }
.rap-fait .reminder-dot:hover { background: #196c38; border-color: #196c38; }
button.done-decoche { padding: 0; border-style: solid; cursor: pointer; font-family: inherit; }
.done-decoche:hover { background: #196c38; border-color: #196c38; }
.rap-fait .reminder-dot svg { width: 9px; height: 9px; }
/* Mini-glissière de validation des actions */
.rap-gliss {
  width: 26px; height: 14px; border-radius: 8px; background: #ECEEF1;
  border: none; padding: 0; position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 0.18s;
}
.rap-gliss:hover { background: #D9DDE3; }
.rap-gliss-pouce {
  position: absolute; left: 2px; top: 2px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  transition: left 0.18s;
}
.rap-gliss.on { background: #15803d; }
.rap-gliss.on .rap-gliss-pouce { left: 14px; }
.rap-gliss.on:hover { background: #196c38; }
.reminder-cliquable { cursor: pointer; }
.reminder-suppr {
  width: 20px; height: 20px; border: none; background: transparent; color: var(--ink-4);
  cursor: pointer; border-radius: 4px; opacity: 0; transition: all 0.15s; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.reminder-item:hover .reminder-suppr { opacity: 1; }
.reminder-suppr:hover { background: var(--bg-subtle); color: var(--warn); }
.reminder-suppr svg { width: 11px; height: 11px; }
.reminder-cliquable:hover .reminder-text { -webkit-text-decoration: underline dotted 1.2px; text-decoration: underline dotted 1.2px; -webkit-text-decoration-color: #b8b8c0; text-decoration-color: #b8b8c0; text-underline-offset: 3px; }
.reminder-edit .reminder-input { margin-bottom: 6px; }
.reminder-edit-row { display: flex; align-items: center; gap: 6px; }
.reminder-date-in { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 11px; color: var(--ink-2); background: #fff; }
.reminder-date-in:focus { outline: none; border-color: var(--navy); }
.reminder-text { font-size: 12.5px; color: var(--ink); font-weight: 500; margin-bottom: 1px; }
.reminder-when { font-size: 11px; color: var(--ink-3); }

/* Coordonnées multi-entrées (bloc 02 du Profil) */
.coord-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 8px 24px; gap: 8px 24px; padding: 2px 0 6px; }
.coord-ligne { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--line-soft); }
.coord-val { font-size: 12px; font-weight: 500; color: var(--ink); flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coord-libelle { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.coord-star { width: 18px; height: 18px; border: none; background: transparent; color: var(--ink-4); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coord-star svg { width: 12px; height: 12px; }
.coord-star.active { color: var(--gold-deep); cursor: default; }
.coord-star:not(.active):hover { color: var(--gold-deep); }
.coord-add { margin-top: 6px; border: none; background: transparent; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--navy); cursor: pointer; padding: 2px 0; }
.coord-add:hover { text-decoration: underline; }
@media (max-width: 900px) { .coord-cols { grid-template-columns: 1fr; } }

/* =====================================================================
   Accueil — Tableau de bord (view-home du prototype).
   ===================================================================== */
.home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.home-title { font-size: 11px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.home-scope { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 2px; gap: 1px; }
.scope-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: none; background: transparent; border-radius: 5px; font-family: inherit; font-size: 11.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.scope-btn svg { width: 12px; height: 12px; }
.scope-btn:hover { color: #02133a; }
.scope-btn.active { background: #02133a; color: #fff; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.home-card { background: var(--bg-card); border-radius: 7px; border: 1px solid var(--line); overflow: hidden; min-height: 280px; display: flex; flex-direction: column; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; min-height: 34px; padding: 0 16px; background: #152A55; color: #fff; }
.home-card-head-left { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.home-card-head-left svg { width: 12px; height: 12px; color: var(--gold); }
.home-badge { background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px; min-width: 20px; text-align: center; }
.home-add-btn { width: 22px; height: 22px; border-radius: 5px; border: none; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.home-add-btn:hover { background: rgba(255, 255, 255, 0.24); }
.home-add-btn svg { width: 11px; height: 11px; }
.home-add-form { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: #fafaf9; gap: 6px; flex-direction: column; display: flex; }
.home-add-form input[type="text"] { padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 12.5px; background: #fff; outline: none; }
.home-add-form input[type="text"]:focus { border-color: #02133a; }
.home-add-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.home-add-select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 11.5px; background: #fff; color: var(--ink-2); cursor: pointer; outline: none; max-width: 220px; }
.home-add-confirm { margin-left: auto; padding: 5px 12px; background: #02133a; color: #fff; border: none; border-radius: 5px; font-family: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; }
.home-list { list-style: none; padding: 4px 0; margin: 0; max-height: 540px; overflow-y: auto; }
.home-empty { padding: 60px 24px; text-align: center; color: #a3a3a3; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.home-empty svg { width: 32px; height: 32px; color: #d4d4d4; }
.home-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line-soft); transition: background 0.15s; }
.home-item:last-child { border-bottom: none; }
.home-item:hover { background: #fafaf9; }
.home-check {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid #d4d4d4;
  margin-top: 1px; flex-shrink: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; padding: 0; transition: all 0.18s;
}
.home-check svg { width: 0; height: 0; stroke-width: 3; transition: all 0.18s; }
.home-check:hover { border-color: #02133a; }
.home-item.done .home-check { background: #15803d; border-color: #15803d; cursor: default; }
.home-item.done .home-check svg { width: 9px; height: 9px; }
.home-item.animating-out { opacity: 0; transform: translateX(20px); transition: all 0.3s; }
.home-item-body { flex: 1 1; min-width: 0; }
.home-item-text { font-size: 12.5px; color: var(--ink); line-height: 1.35; margin-bottom: 2px; font-weight: 500; }
.home-list-done .home-item-text { color: #525252; text-decoration: line-through; -webkit-text-decoration-color: #d4d4d4; text-decoration-color: #d4d4d4; }
.home-list-done .home-check { background: #15803d; border-color: #15803d; cursor: default; }
.home-list-done .home-check svg { width: 12px; height: 12px; color: #fff; }
.home-list-done .home-check:hover { border-color: #15803d; }
.home-item-meta { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--ink-3); }
.home-item-client { color: #02133a; font-weight: 500; text-decoration: none; }
.home-item-client:hover { text-decoration: underline; }
.home-item-when.urgent { color: #c2410c; font-weight: 500; }
.home-item-advisor { margin-left: auto; font-size: 9.5px; color: var(--ink-3); background: var(--bg-subtle); padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.home-item-delete { width: 20px; height: 20px; border: none; background: transparent; color: var(--ink-4); cursor: pointer; border-radius: 4px; opacity: 0; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; }
.home-item:hover .home-item-delete { opacity: 1; }
.home-item-delete:hover { background: #f4f4f4; color: #b91c1c; }
.home-item-delete svg { width: 11px; height: 11px; }

/* ===== GED (vue GED du prototype : fil d'Ariane, toolbar, Finder 3 colonnes) ===== */
.ged-wrap {
  padding: 18px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.ged-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.ged-breadcrumb > svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.ged-crumb {
  color: var(--ink-2);
}
.ged-crumb-active {
  color: var(--ink);
  font-weight: 600;
}
.ged-crumb-sep {
  color: var(--ink-4);
  font-size: 11px;
}
.ged-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.ged-search {
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: border-color 0.15s;
}
.ged-search:focus-within { border-color: var(--navy-card); }
.ged-search svg { width: 13px; height: 13px; color: var(--ink-3); }
.ged-search input {
  flex: 1 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: transparent;
}
.ged-search input::placeholder { color: var(--ink-3); }
.ged-actions {
  display: flex;
  gap: 6px;
}
.ged-btn-ghost,
.ged-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.ged-btn-ghost svg,
.ged-btn-primary svg { width: 12px; height: 12px; }
.ged-btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.ged-btn-ghost:hover { background: var(--bg-subtle); }
.ged-btn-primary {
  background: #02133a;
  border: 1px solid #02133a;
  color: #fff;
}
.ged-btn-primary:hover { background: #152A55; border-color: #152A55; }

/* Layout Finder Mac : 3 colonnes (dossiers / fichiers / aperçu) */
.ged-finder {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  grid-gap: 0;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 520px;
}
.ged-col {
  overflow-y: auto;
  padding: 8px 6px;
}
.ged-col-folders {
  border-right: 1px solid var(--line);
  background: #fafaf9;
}
.ged-col-files {
  border-right: 1px solid var(--line);
  background: #fff;
}
.ged-col-preview {
  background: #fff;
  padding: 16px;
}
.ged-empty {
  color: var(--ink-4);
  font-size: 12px;
  text-align: center;
  padding: 40px 16px;
}

/* Lignes dossiers : compactes, type Finder */
.ged-folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ged-folder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.08s;
}
.ged-folder-row:hover { background: rgba(0,0,0,0.04); }
.ged-folder-row.active {
  background: rgba(0,0,0,0.08);
}
.ged-folder-svg {
  width: 24px;
  height: 18px;
  flex-shrink: 0;
}
.ged-folder-label {
  flex: 1 1;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ged-folder-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ged-folder-status svg { width: 9px; height: 9px; }
.ged-folder-status.ok { background: #15803d; }
.ged-folder-status.pending { background: #d97706; }
.ged-folder-status.ko { background: #b91c1c; }
.ged-folder-chevron {
  width: 10px;
  height: 10px;
  color: var(--ink-4);
  flex-shrink: 0;
}

/* Lignes fichiers (colonne 2) */
.ged-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.08s;
}
.ged-file-row:hover { background: rgba(0,0,0,0.04); }
.ged-file-row.active {
  background: #1f6feb;
  color: #fff;
}
.ged-file-row.active .ged-file-row-status {
  background: rgba(255,255,255,0.25);
}
.ged-file-row-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ged-file-row-icon svg { width: 22px; height: 22px; }
.ged-file-row-label {
  flex: 1 1;
  font-size: 13px;
  font-weight: 400;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ged-file-row-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ged-file-row-status svg { width: 9px; height: 9px; }

/* Aperçu fichier (colonne 3) */
.ged-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  background: #000;
  border-radius: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ged-preview-thumb svg {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.4);
}
.ged-preview-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  word-break: break-word;
}
.ged-preview-type {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.ged-preview-section {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.ged-preview-info {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-gap: 4px 12px;
  gap: 4px 12px;
  font-size: 12px;
}
.ged-preview-info .lbl {
  color: var(--ink-3);
}
.ged-preview-info .val {
  color: var(--ink);
}
.ged-preview-info .row {
  display: contents;
}
.ged-preview-divider {
  border-top: 1px solid var(--line-soft);
  margin: 4px 0;
  grid-column: 1 / -1;
}

/* ===== Réglementaire (vue Réglementaire du prototype, calée sur Synthèse) ===== */
.reg-wrap {
  padding: 4px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reg-head h2 {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reg-head p {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.reg-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.reg-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 500;
  border: 1px solid;
}
.reg-summary-pill .reg-summary-n { font-weight: 700; }
.reg-summary-ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.reg-summary-wait { background: #fef3c7; border-color: #fde68a; color: #92590f; }
.reg-summary-ko { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.reg-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.reg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.12s;
}
.reg-item:last-child { border-bottom: none; }
.reg-item:hover { background: #fafaf9; }
.reg-status {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.reg-status svg { width: 10px; height: 10px; }
.reg-status-ok { background: #15803d; }
.reg-status-wait { background: #d97706; }
.reg-status-ko { background: #b91c1c; }
.reg-body { flex: 1 1; min-width: 0; }
.reg-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.reg-meta {
  font-size: 10.5px;
  color: var(--ink-3);
}
.reg-meta strong {
  color: var(--ink-2);
  font-weight: 500;
}
.reg-warn { color: #d97706; font-weight: 500; }
.reg-renew { color: var(--ink-3); font-style: italic; }
.reg-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.reg-btn-ghost {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.reg-btn-ghost:hover { background: #f4f4f4; color: var(--ink); }
.reg-btn-ghost svg { width: 11px; height: 11px; }
.reg-btn-primary {
  padding: 4px 10px;
  background: #02133a;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.reg-btn-primary:hover { background: #152A55; }


/* ===== GED / Réglementaire : compléments Vaulth (pas dans le prototype) ===== */
.ged-crumb-total { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.ged-folder-count { min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--bg-subtle); color: var(--ink-2); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.ged-file-row-dossier { display: block; font-size: 10px; color: var(--ink-3); }
.ged-file-row.active .ged-file-row-dossier { color: rgba(255,255,255,0.75); }
.ged-preview-thumb.ged-preview-live { background: #f4f4f6; border: 1px solid var(--line); }
.ged-preview-thumb iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ged-preview-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ged-preview-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ged-preview-actions .ged-btn-ghost { text-decoration: none; }
.ged-btn-ghost:disabled, .ged-btn-primary:disabled { opacity: 0.5; cursor: default; }
.ged-btn-danger:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.ged-note { margin: 12px 2px 0; font-size: 11.5px; color: var(--ink-3); }

/* Dépôt (panneau modal) */
.ged-modal-fond { position: fixed; inset: 0; background: rgba(2,19,58,0.35); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ged-modal { width: 100%; max-width: 520px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(2,19,58,0.25); }
.ged-modal-bande { height: 34px; background: var(--navy-card); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ged-modal-fermer { width: 24px; height: 24px; border: none; background: transparent; color: rgba(255,255,255,0.8); cursor: pointer; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; }
.ged-modal-fermer:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ged-modal-fermer svg { width: 13px; height: 13px; }
.ged-modal-corps { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ged-modal-type-impose { font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 8px 12px; background: var(--gold-soft); border-radius: 7px; }
.ged-drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 26px 16px; text-align: center; cursor: pointer; color: var(--ink-3); transition: all 0.15s; background: #fafaf9; }
.ged-drop:hover, .ged-drop.survol { border-color: var(--navy-card); background: #fff; }
.ged-drop.plein { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; }
.ged-drop svg { width: 26px; height: 26px; margin-bottom: 8px; color: var(--ink-4); }
.ged-drop.plein svg { color: #15803d; }
.ged-drop-nom { font-size: 12.5px; font-weight: 500; color: var(--ink); word-break: break-word; }
.ged-drop-aide { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.ged-modal-champs { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.ged-modal-champ { display: flex; flex-direction: column; gap: 4px; }
.ged-modal-champ > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.ged-modal-champ > span em { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: normal; }
.ged-modal-champ select, .ged-modal-champ input { font-family: inherit; font-size: 12.5px; color: var(--ink); padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; outline: none; }
.ged-modal-champ select:focus, .ged-modal-champ input:focus { border-color: var(--navy-card); }
.ged-modal-champ select:disabled { color: var(--ink-3); background: #fafaf9; }
.ged-modal-erreur { font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px; padding: 7px 10px; }
.ged-modal-actions { display: flex; justify-content: flex-end; gap: 6px; }

/* Réglementaire : édition inline de la validité */
.reg-meta-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.reg-meta-edit input[type="date"] { font-family: inherit; font-size: 11.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.reg-btn-lien { border: none; background: transparent; color: var(--ink-3); font-family: inherit; font-size: 10.5px; cursor: pointer; padding: 2px 4px; }
.reg-btn-lien:hover { color: var(--ink); text-decoration: underline; }
.reg-actions .reg-btn-ghost { text-decoration: none; }
@media (max-width: 1100px) { .ged-finder { grid-template-columns: 220px 1fr; } .ged-col-preview { grid-column: 1 / -1; border-top: 1px solid var(--line); } }

/* ===== Imports de commissions (phase 4 : assistant fichier → colonnes → vérification) ===== */
.imp-page { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 48px; }
.imp-page .section-head { align-items: center; gap: 16px; }
.imp-etapes { display: flex; gap: 4px; flex-shrink: 0; }
.imp-etape { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 20px; font-size: 11px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line); background: #fff; }
.imp-etape-n { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-subtle); color: var(--ink-2); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.imp-etape.active { color: #fff; background: var(--navy-card); border-color: var(--navy-card); }
.imp-etape.active .imp-etape-n { background: rgba(255,255,255,0.2); color: #fff; }
.imp-etape.faite { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.imp-etape.faite .imp-etape-n { background: #15803d; color: #fff; }
.imp-corps { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.imp-erreur { margin: 14px 22px 0; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px; padding: 8px 12px; }
.imp-drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 44px 16px; text-align: center; cursor: pointer; color: var(--ink-3); background: #fafaf9; transition: all 0.15s; }
.imp-drop:hover, .imp-drop.survol { border-color: var(--navy-card); background: #fff; }
.imp-drop svg { width: 30px; height: 30px; margin-bottom: 10px; color: var(--ink-4); }
.imp-drop-titre { font-size: 13px; font-weight: 500; color: var(--ink); }
.imp-drop-aide { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.imp-fichier-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.imp-fichier-info strong { color: var(--ink); }
.imp-fichier-info.imp-succes { color: #15803d; }
.imp-deja { font-size: 11.5px; color: #92590f; background: #fef3c7; border: 1px solid #fde68a; border-radius: 6px; padding: 3px 8px; }
.imp-lien { border: none; background: transparent; color: var(--navy); font-family: inherit; font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.imp-lien:hover { color: var(--navy-card); }
.imp-lien:disabled { opacity: 0.5; cursor: default; }
.imp-lien-danger { color: var(--ink-3); }
.imp-lien-danger:hover { color: #b91c1c; }
.imp-options { display: flex; gap: 14px; flex-wrap: wrap; }
.imp-champ { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.imp-champ > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.imp-champ > span em { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: normal; }
.imp-champ select, .imp-champ input { font-family: inherit; font-size: 12.5px; color: var(--ink); padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; outline: none; }
.imp-champ select:focus, .imp-champ input:focus { border-color: var(--navy-card); }
.imp-mapping-titre { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 8px; }
.imp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.imp-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafaf9; }
.imp-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink); vertical-align: top; }
.imp-table tr:last-child td { border-bottom: none; }
.imp-table .num, .imp-table th.num { text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; white-space: nowrap; }
.imp-table-mapping td select { width: 100%; font-family: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.imp-table-mapping tr.imp-manquant td:first-child { border-left: 3px solid #d97706; }
.imp-champ-nom { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.imp-requis { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #92590f; background: #fef3c7; border-radius: 4px; padding: 1px 5px; font-weight: 600; }
.imp-champ-aide { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.imp-exemple { color: var(--ink-2); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-apercu-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.imp-apercu-scroll .imp-table td, .imp-apercu-scroll .imp-table th { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.imp-apercu-scroll th.imp-col-utilisee { color: var(--navy); background: var(--gold-soft); }
.imp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.imp-actions-note { margin-right: auto; font-size: 11.5px; color: #92590f; }
.imp-rapport { display: flex; flex-direction: column; gap: 14px; }
.imp-kpis { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 1px; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.imp-kpi { background: #fff; padding: 14px 16px; }
.imp-kpi .kpi-value { font-size: 22px; }
.imp-kpi-ok .kpi-value { color: #15803d; }
.imp-kpi-ko .kpi-value { color: #b91c1c; }
.imp-kpi-warn .kpi-value { color: #d97706; }
.imp-rapport-detail { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); }
.imp-detail-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; margin-right: 4px; }
.imp-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.imp-cat-pill { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--bg-subtle); color: var(--ink-2); }
.imp-cat-pill strong { color: var(--navy); font-weight: 600; margin-right: 4px; }
.imp-erreurs { border: 1px solid #fecaca; border-radius: 7px; overflow: hidden; }
.imp-erreurs-titre { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #b91c1c; padding: 8px 12px; background: #fef2f2; }
.imp-extrait { color: var(--ink-3); font-size: 11px; }
.imp-note { font-size: 11px; color: var(--ink-3); padding: 6px 12px; }
.imp-historique td.imp-date { white-space: nowrap; color: var(--ink-2); }
.imp-historique tr.imp-ouvert td { background: #fafaf9; }
.imp-rapport-row td { padding: 14px 18px 18px; background: #fafaf9; }
.imp-td-action { text-align: right; white-space: nowrap; }
.imp-statut-ko { color: #b91c1c; }
.imp-statut-wait { color: #d97706; }
@media (max-width: 1000px) { .imp-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ===== Phase 5 : zone Réglementaire de l'accueil (home-reg du prototype) ===== */
.home-badge-warn { background: rgba(217, 119, 6, 0.3); }
.home-reg .home-card-head { flex-wrap: wrap; gap: 10px; }
.home-reg-completude { font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.7); margin-left: 4px; }
.home-reg-tabs { display: inline-flex; gap: 1px; background: rgba(255,255,255,0.1); padding: 2px; border-radius: 5px; }
.home-reg-tab { padding: 3px 9px; border: none; background: transparent; color: rgba(255,255,255,0.7); font-family: inherit; font-size: 10.5px; font-weight: 500; cursor: pointer; border-radius: 4px; transition: all 0.15s; }
.home-reg-tab:hover { color: #fff; }
.home-reg-tab.active { background: rgba(255,255,255,0.18); color: #fff; }
.home-reg-list { list-style: none; padding: 4px 0; margin: 0; }
.home-reg-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line-soft); }
.home-reg-item:last-child { border-bottom: none; }
.home-reg-item:hover { background: #fafaf9; }
.home-reg-body { flex: 1 1; min-width: 0; }
.home-reg-title { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.home-reg-meta { font-size: 10.5px; color: var(--ink-3); }
.home-reg-client { color: #02133a; font-weight: 500; }
.home-reg-advisor { background: var(--bg-subtle); color: var(--ink-3); padding: 1px 6px; border-radius: 3px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.home-reg .reg-status { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.home-reg .reg-status svg { width: 9px; height: 9px; }
.home-reg-plus { justify-content: center; }
.reg-btn-ghost-sm { padding: 4px 10px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 10.5px; font-weight: 500; cursor: pointer; flex-shrink: 0; transition: all 0.15s; text-decoration: none; }
.reg-btn-ghost-sm:hover { border-color: var(--navy); color: var(--navy); }

/* Hero : pastille de complétude du dossier de conformité */
.hm-conformite { text-decoration: none; cursor: pointer; }
.hm-conformite.ok { background: #f0fdf4; color: #15803d; }
.hm-conformite.ok svg, .hm-conformite.ok strong { color: #15803d; }
.hm-conformite.wait { background: #fef3c7; color: #92590f; }
.hm-conformite.wait svg, .hm-conformite.wait strong { color: #92590f; }
.hm-conformite.ko { background: #fef2f2; color: #b91c1c; }
.hm-conformite.ko svg, .hm-conformite.ko strong { color: #b91c1c; }

/* Onglet Réglementaire : export + journal du dossier */
.reg-btn-export { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; margin-right: 6px; }
.reg-btn-export:hover { border-color: var(--navy); color: var(--navy); }
.reg-btn-export svg { width: 11px; height: 11px; }
.reg-journal { margin-top: 8px; }
.reg-journal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reg-journal-head h2 { font-size: 11px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.reg-journal-vide { font-size: 11.5px; color: var(--ink-3); padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 7px; }
.reg-journal-liste { list-style: none; margin: 0; padding: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.reg-journal-liste li { display: flex; align-items: baseline; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.reg-journal-liste li:last-child { border-bottom: none; }
.reg-journal-date { color: var(--ink-3); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 10.5px; }
.reg-journal-libelle { color: var(--ink); font-weight: 500; white-space: nowrap; }
.reg-journal-resume { color: var(--ink-2); flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-journal-acteur { color: var(--ink-3); font-size: 10.5px; white-space: nowrap; margin-left: auto; }

/* Journal d'audit */
.aud-page { padding: 4px 0 48px; }
.aud-filtres { flex-wrap: wrap; align-items: flex-end; }
.aud-filtre { display: flex; flex-direction: column; gap: 3px; }
.aud-filtre > span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.aud-filtre select, .aud-filtre input { font-family: inherit; font-size: 12px; color: var(--ink); padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.aud-table tbody tr { cursor: pointer; }
.aud-table tbody tr:hover td { background: #fafaf9; }
.aud-table tr.aud-ouvert td { background: #fafaf9; }
.aud-date { white-space: nowrap; color: var(--ink-2); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.aud-famille { display: inline-block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--bg-subtle); color: var(--ink-2); margin-right: 6px; }
.aud-famille-document { background: var(--gold-soft); color: #8B6914; }
.aud-famille-bordereau { background: #e8eef7; color: #1B3A5C; }
.aud-famille-rappel { background: #f0fdf4; color: #15803d; }
.aud-systeme { color: var(--ink-3); font-style: italic; }
.aud-resume { color: var(--ink-2); max-width: 520px; }
.aud-vide { color: var(--ink-4); }
.aud-brut { margin: 8px 0 0; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 10.5px; line-height: 1.4; color: var(--ink); white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.aud-plus { padding: 12px 22px; display: flex; justify-content: center; border-top: 1px solid var(--line-soft); }

/* ===== Paramètres du cabinet (écrou) : onglets + modules ===== */
.par-page { max-width: 980px; margin: 0 auto; padding: 38px 0 48px; }
.par-page h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.par-page .par-intro { color: var(--text-2); margin-top: 6px; font-size: 13px; }
.par-onglets { display: flex; gap: 4px; margin: 22px 0 14px; border-bottom: 1px solid var(--line); }
.par-onglet { padding: 8px 14px; font-size: 12px; font-weight: 500; color: var(--ink-3); border: none; background: transparent; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.par-onglet.active { color: var(--navy); border-bottom-color: var(--navy); }
.par-onglet:disabled { cursor: default; opacity: 0.55; }
.par-modules { list-style: none; margin: 0; padding: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.par-module { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.par-module:last-child { border-bottom: none; }
.par-module-texte { flex: 1 1; min-width: 0; }
.par-module-nom { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.par-module-defaut { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); background: var(--bg-subtle); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.par-module-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.par-switch { position: relative; width: 38px; height: 22px; border-radius: 11px; border: none; background: var(--ink-4); cursor: pointer; transition: background 0.15s; flex-shrink: 0; padding: 0; }
.par-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.par-switch.on { background: #459169; }
.par-switch.on::after { transform: translateX(16px); }
.par-switch:disabled { opacity: 0.5; cursor: default; }
.par-erreur { margin-top: 12px; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px; padding: 7px 10px; }
.par-note { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); }

/* ===== Paramètres › Emails (compte IMAP/SMTP du membre) ===== */
.mel { display: flex; flex-direction: column; gap: 14px; }

/* Compte connecté (récapitulatif) */
.mel-etat { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.mel-pastille { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.mel-pastille svg { width: 12px; height: 12px; }
.mel-pastille.ok { background: #15803d; } .mel-pastille.ko { background: #b91c1c; } .mel-pastille.wait { background: #d97706; }
.mel-etat-texte { flex: 1 1; min-width: 240px; }
.mel-etat-titre { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mel-fournisseur-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); background: var(--bg-subtle); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.mel-etat-meta { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }
.mel-erreur-inline { color: #b91c1c; }
.mel-etat-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Résultat du test */
.mel-test { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; background: #fafaf9; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.mel-test-ligne { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mel-test-ligne strong { color: var(--ink); font-weight: 600; }
.mel-pastille-sm { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.mel-pastille-sm svg { width: 8px; height: 8px; }
.mel-test-ligne.ok .mel-pastille-sm { background: #15803d; } .mel-test-ligne.ko .mel-pastille-sm { background: #b91c1c; }

/* Blocs numérotés : 1 messagerie, 2 configuration */
.mel-bloc { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mel-bloc-tete { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); background: #fcfcfd; }
.mel-bloc-tete h2 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mel-bloc-tete p { font-size: 12px; color: var(--ink-2); margin-top: 3px; max-width: 66ch; line-height: 1.45; }
.mel-etape-num { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-card); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mel-bloc-corps { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.mel-bloc-attente { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; background: #fcfcfd; }
.mel-bloc-attente .mel-etape-num { background: var(--ink-4); }
.mel-bloc-attente h2 { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.mel-bloc-attente p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* Champs */
.mel-champ { display: flex; flex-direction: column; gap: 5px; }
.mel-champ > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.mel-champ > span em { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: normal; color: var(--ink-3); }
.mel-champ input, .mel-champ select { font-family: inherit; font-size: 13px; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; }
.mel-champ input:focus, .mel-champ select:focus { border-color: var(--navy-card); }
.mel-champ-adresse { max-width: 380px; }

/* Tuiles de messagerie */
.mel-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); grid-gap: 8px; gap: 8px; }
.mel-tuile { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; text-transform: none; transition: all 0.15s; }
.mel-tuile:hover { border-color: var(--navy); background: #fcfcfd; }
.mel-tuile.active { border-color: var(--navy-card); background: var(--navy-card); box-shadow: 0 1px 3px rgba(2,19,58,0.2); }
.mel-tuile-nom { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mel-tuile-sous { font-size: 10.5px; color: var(--ink-3); line-height: 1.3; }
.mel-tuile.active .mel-tuile-nom { color: #fff; }
.mel-tuile.active .mel-tuile-sous { color: rgba(255,255,255,0.72); }

/* Configuration : formulaire + aide */
.mel-config { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-gap: 18px; gap: 18px; align-items: start; }
.mel-config-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mel-secret { display: flex; align-items: center; gap: 8px; }
.mel-secret input { flex: 1 1; font-family: inherit; font-size: 13px; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; min-width: 0; }
.mel-secret input:focus { border-color: var(--navy-card); }
.mel-serveurs { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.mel-serveur { padding: 10px 12px; background: #fafaf9; border: 1px solid var(--line); border-radius: 9px; }
.mel-serveur-titre { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; margin-bottom: 5px; }
.mel-serveur-valeur { font-size: 12.5px; color: var(--ink); font-weight: 500; display: flex; flex-direction: column; gap: 1px; word-break: break-all; }
.mel-serveur-port { font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.mel-serveur-champs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mel-serveur-champs input, .mel-serveur-champs select { font-family: inherit; font-size: 12px; color: var(--ink); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-width: 0; flex: 1 1; }
.mel-serveur-champs .mel-port { flex: 0 0 62px; width: 62px; }
.mel-serveur-note { font-size: 10.5px; color: var(--ink-3); }
.mel-rappel { font-size: 11.5px; color: #92590f; background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; }
.mel-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Marche à suivre */
.mel-aide { padding: 15px 17px; background: var(--gold-soft); border-radius: 10px; font-size: 12.5px; color: var(--ink); }
.mel-aide-titre { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8B6914; margin-bottom: 9px; }
.mel-aide ol { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 7px; line-height: 1.45; }
.mel-aide-lien { display: inline-block; margin-top: 13px; text-decoration: none; }
.mel-aide-note { margin: 13px 0 0; font-size: 11px; color: var(--ink-2); line-height: 1.4; }

.mel-equipe { padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; }
.mel-ok { color: #15803d; } .mel-ko { color: #b91c1c; }
@media (max-width: 900px) { .mel-config { grid-template-columns: 1fr; } .mel-serveurs { grid-template-columns: 1fr; } }

/* ===== Fiche : dernières interactions (bulles du prototype, card-sms) ===== */
.sms-add { padding: 10px 14px 12px; background: var(--bg-subtle); border-bottom: 1px solid var(--line-soft); }
.sms-add-row { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.sms-type-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  font-family: inherit; font-size: 11px; color: var(--ink-2); cursor: pointer; transition: all 0.12s;
}
.sms-type-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.sms-type-btn:hover { border-color: var(--navy); color: var(--navy); }
.sms-type-btn.actif { background: var(--navy); border-color: var(--navy); color: #fff; }
.sms-add-meta { display: flex; gap: 6px; margin-bottom: 8px; }
.sms-add-meta input {
  flex: 1 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px;
  font-family: inherit; font-size: 11.5px; color: var(--ink); background: #fff;
}
.sms-add-meta input:focus { outline: none; border-color: var(--navy); }
.sms-add textarea.reminder-input { resize: vertical; }
.sms-add-actions { display: flex; justify-content: flex-end; }

/* Contacts liés à une interaction (chips + suggestions) */
.sms-liens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sms-lien-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-soft); color: #152A55;
  border-radius: 8px; padding: 2px 8px; font-size: 11.5px; font-weight: 600;
}
.sms-lien-chip button {
  border: 0; background: none; cursor: pointer; color: #152A55;
  font-size: 13px; line-height: 1; padding: 0; opacity: 0.6;
}
.sms-lien-chip button:hover { opacity: 1; }
.sms-lien-champ { position: relative; flex: 1 1; min-width: 220px; }
.sms-lien-champ .reminder-input { width: 100%; }
.sms-lien-sugg {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  box-shadow: 0 8px 20px rgba(21, 42, 85, 0.12); max-height: 180px; overflow: auto;
}
.sms-lien-sugg button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  cursor: pointer; padding: 6px 10px; font-size: 12px; color: #152A55;
}
.sms-lien-sugg button:hover { background: #F4F4F6; }
/* Dernieres interactions - style SMS : bulles navy/gris, ligne centree type + date */
.card-sms {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #cdd1d9;
  border-radius: 7px;
  overflow: hidden;
}
.card-sms .card-h {
  padding: 9px 16px;
  background: #152A55;
  border-bottom: none;
  gap: 8px;
}
.card-sms .card-h h3 {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-sms .card-h .card-icon { width: 12px; height: 12px; color: var(--gold); }
.card-sms .card-h .h-count {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}
#interactionsTimeline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  height: 830px;
  max-height: none;
  padding: 8px 16px 12px;
  box-sizing: border-box;
  overscroll-behavior: none;
}
#interactionsTimeline > * { flex-shrink: 0; }
.sms-when {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  margin: 14px 0 3px;
}
.sms-when:first-child { margin-top: 2px; }
.sms-dot {
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sms-dot svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
.sms-t-mail { border-left: 4px solid #EFD139; }
.sms-t-call { border-left: 4px solid #7ED957; }
.sms-t-sms { border-left: 4px solid #FFA94D; }
.sms-t-rdv { border-left: 4px solid #A2A8B5; }
.sms-dot-mail { background: #EFD139; color: #5C4A08; }
.sms-dot-call { background: #7ED957; color: #1C4A16; }
.sms-dot-sms { background: #FFA94D; color: #6B3E0A; }
.sms-dot-rdv { background: #A2A8B5; color: #2F3646; }
.sms-bubble { position: relative; max-width: 80%; border-radius: 18px; padding: 8px 13px 9px 16px; }
.sms-out {
  align-self: flex-end;
  background: #F1F2F6;
  border-bottom-right-radius: 4px;
}
.sms-in {
  align-self: flex-start;
  background: #FFFFFF;
  border-top: 1px solid #D8DCE4;
  border-right: 1px solid #D8DCE4;
  border-bottom: 1px solid #D8DCE4;
  border-bottom-left-radius: 4px;
}
.sms-subject { font-size: 12px; font-weight: 400; }
.sms-text { font-size: 12px; line-height: 1.4; white-space: pre-line; }
.sms-click { cursor: pointer; }
.sms-subject + .sms-text { margin-top: 2px; }
.sms-out .sms-subject { color: #3d4354; }
.sms-out .sms-text { color: #3d4354; }
.sms-in .sms-subject { color: var(--navy); }
.sms-in .sms-text { color: #223052; }
.sms-rdv {
  position: relative;
  align-self: center;
  max-width: 88%;
  background: #FFFFFF;
  border: 1px solid #D8DCE4;
  border-radius: 14px;
  padding: 14px 14px 9px;
  margin-top: 8px;
}
.sms-rdv.sms-t-rdv { border-left: none; border-top: 4px solid #A2A8B5; }
.sms-rdv .sms-dot {
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
}
.sms-rdv .sms-text { color: #3d4354; font-size: 12.5px; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  height: 830px;
  padding: 8px 16px 12px;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.timeline > * { flex-shrink: 0; }
.timeline::-webkit-scrollbar { width: 6px; }
.timeline::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.timeline::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ===== Fiche : note globale (notes-card-main du prototype) ===== */
.card-h .h-count { font-size: 10px; color: rgba(255, 255, 255, 0.85); padding: 1px 7px; background: rgba(255, 255, 255, 0.15); border-radius: 20px; font-weight: 600; }
.card-h .h-action { margin-left: auto; color: rgba(255, 255, 255, 0.7); cursor: pointer; font-size: 11.5px; background: none; border: none; font-family: inherit; padding: 0; }
.card-h .h-action:hover { color: #FFFFFF; }
.card-h .reminder-add-btn ~ .h-action { margin-left: 12px; }
.notes-card-main { overflow: hidden; }
.notes-vide { padding: 10px 16px; font-size: 11.5px; color: var(--ink-3); }
.notes-preview { padding: 4px 0; cursor: pointer; }
.notes-preview-item { padding: 9px 16px; border-bottom: 1px solid var(--line-soft); transition: background 0.12s; }
.notes-preview-item:hover { background: #fafaf9; }
.notes-preview-date {
  font-size: 10.5px; color: var(--ink-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px;
  display: flex; align-items: baseline; gap: 6px;
}
.notes-preview-date > span:first-child { flex: 1 1; }
.notes-preview-text {
  font-size: 12.5px; color: var(--ink); line-height: 1.4; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notes-preview-item.open .notes-preview-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.notes-modif { color: var(--ink-3); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 10px; }
.note-edit-ta {
  width: 100%; font: inherit; font-size: 12.5px; line-height: 1.4;
  border: 1px solid var(--navy); border-radius: 6px; padding: 6px 8px; min-height: 58px;
  resize: vertical; box-sizing: border-box; outline: none; background: #fff;
}
.notes-preview-more {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; font-size: 11px; font-weight: 500; color: var(--ink-3); transition: all 0.12s;
}
.notes-preview-more svg { width: 11px; height: 11px; }
.notes-preview:hover .notes-preview-more { color: var(--ink); background: var(--bg-subtle); }
.notes-suppr { width: 18px; height: 18px; border: none; background: transparent; color: var(--ink-4); cursor: pointer; border-radius: 4px; opacity: 0; transition: all 0.15s; flex-shrink: 0; }
.notes-suppr svg { width: 10px; height: 10px; }
.notes-preview-item:hover .notes-suppr { opacity: 1; }
.notes-suppr:hover { color: var(--warn); background: var(--bg-subtle); }
.sect-notes-h {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); padding: 10px 16px 6px; border-top: 1px solid var(--line-soft);
}
.sect-notes { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.sect-notes-empty { font-size: 11.5px; color: var(--ink-4); line-height: 1.4; padding: 2px 0 4px; }
.sect-note-item { display: flex; flex-direction: column; gap: 3px; padding: 7px 9px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.sect-note-tag {
  align-self: flex-start; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--navy); background: var(--accent-light); padding: 1px 7px; border-radius: 10px;
}
.sect-note-text { font-size: 12px; color: var(--ink); line-height: 1.45; white-space: pre-wrap; }
.done-card .done-check { width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #459169; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.done-card .done-check svg { width: 10px; height: 10px; }
.done-row { display: flex; gap: 6px; align-items: center; }
.done-date-pick { position: relative; flex: 1 1; justify-content: flex-start; }
.done-go-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; background: #02133a; color: #fff; border: none; border-radius: 5px; font-family: inherit; font-size: 11px; font-weight: 500; cursor: pointer; margin-left: auto; }
.done-go-btn:hover { background: #02133a; }
.done-go-btn:disabled { opacity: 0.5; cursor: default; }
.done-go-btn svg { width: 11px; height: 11px; }
.reminder-done {
  width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-3); cursor: pointer; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.12s;
}
.reminder-done svg { width: 11px; height: 11px; }
.done-remove:hover { background: var(--warn); border-color: var(--warn); color: #fff; }


/* ===== Parite prototype : ombres navy des cartes ===== */
.ik-card,
.card-sms,
.side-section,
.kpis,
.analyse-card,
.home-reg,
.pipe-stats,
.pipeline-card,
.ct-card {
  box-shadow: 0 1px 3px rgba(21, 42, 85, 0.06), 0 5px 14px rgba(21, 42, 85, 0.05);
}

/* Contrats (onglet fiche) — cartes du prototype */
.ct-wrap { padding: 14px 28px 40px; max-width: 1480px; box-sizing: border-box; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); grid-gap: 16px; gap: 16px; }
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ct-prod { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.ct-num { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.ct-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.ct-row:last-child { border-bottom: none; }
.ct-row .lbl { color: var(--text-2); }
.ct-row .val { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; font-weight: 500; }

/* Chiffres tabulaires (revenu fiscal) */
.coords-val.num { font-feature-settings: 'tnum'; }

/* Édition directe depuis la Synthèse (sy-edit du prototype) */
.sy-edit { cursor: pointer; }
.sy-edit:hover { -webkit-text-decoration: underline dotted 1.2px; text-decoration: underline dotted 1.2px; -webkit-text-decoration-color: #b8b8c0; text-decoration-color: #b8b8c0; text-underline-offset: 3px; }
.sy-pop { top: calc(100% - 2px); right: 4px; padding: 6px; min-width: 210px; }
.sy-savebar { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 -8px; }
.sy-savebar .pi-save, .sy-savebar .sy-cancel { padding: 8px 22px; font-size: 12px; font-weight: 500; border-radius: 8px; min-width: 112px; box-sizing: border-box; }
.sy-savebar .pi-save { border: 1px solid transparent; margin-right: 0; }
.sy-cancel { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-family: inherit; cursor: pointer; }
.sy-cancel:hover { border-color: var(--text-3); color: var(--text); }
.sy-edit .sy-in, .coords-val .sy-in { max-width: 220px; }
.sy-pop .sy-in { width: 100%; max-width: none; text-align: left; }
.sy-pop-addr { min-width: 260px; }
.co-brow { display: flex; gap: 6px; }
.co-bin { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-family: inherit; font-size: 12px; color: var(--ink); outline: none; margin-bottom: 6px; box-sizing: border-box; }
.co-bin:focus { border-color: var(--accent); }
.sy-pop-addr .co-bin:last-child { margin-bottom: 0; }

/* Apparition au chargement et a chaque changement d'onglet (prototype) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fiche-wrap .card { animation: fadeUp 0.4s ease backwards; }
.tab-enter { animation: fadeUp 0.38s ease backwards; }
.col-main > *:nth-child(1) { animation-delay: 0.05s; }
.col-main > *:nth-child(2) { animation-delay: 0.12s; }
.col-main > *:nth-child(3) { animation-delay: 0.19s; }
.col-side > *:nth-child(1) { animation-delay: 0.08s; }
.col-side > *:nth-child(2) { animation-delay: 0.15s; }
.col-side > *:nth-child(3) { animation-delay: 0.22s; }
.col-side > *:nth-child(4) { animation-delay: 0.29s; }

/* Bouton retour rond vers l'annuaire (topbar, visible sur une fiche) */
.fiche-back {
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s;
  margin-right: 14px;
  flex-shrink: 0;
}
.fiche-back:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
  transform: translateX(-2px);
}
.fiche-back svg { width: 16px; height: 16px; }


/* ===== Parite prototype : carte Contrats par familles ===== */
.cov-tiles.cov-fam { display: block; padding: 4px 16px 12px; }
.cov-fam-t {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 7px 2px 5px;
}
.cov-h-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 7px; gap: 7px; margin-bottom: 4px; }
.cov-h-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cov-h-l { min-width: 0; }
.cov-h-name {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cov-h-ins { font-size: 11px; color: var(--ink-3); }
.cov-h-r { text-align: right; white-space: nowrap; }
.cov-h-amt, .cov-h-vp {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.cov-h-sub { font-size: 9px; font-weight: 400; color: var(--ink-3); }

/* Rappels et Action effectuee cote a cote */

