/* ============================================================
   LaPivoine — Thème Bootstrap 5 custom
   Charte officielle LaPivoine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Vadodara:wght@400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --vt-primary       : #1E90FF;   /* bleu vif — accent, CTA */
  --vt-primary-dark  : #185FA5;   /* bleu intermédiaire — hover */
  --vt-navy          : #0C447C;   /* bleu marine — texte principal */
  --vt-dark-bg       : #1A3F7A;   /* fond sombre — sidebar brand */
  --vt-subtitle      : #6690BB;   /* bleu-gris — textes secondaires */
  --vt-body-bg       : #f0f4fa;   /* fond général */
  --vt-body-color    : #0C447C;
  --vt-sidebar-w     : 260px;
  --vt-sidebar-mini-w: 64px;
  --vt-topbar-h      : 58px;
  --vt-sidebar-bg    : #fff;
  --vt-sidebar-brand : #0C447C;
  --vt-card-shadow   : 0 1px 4px rgba(12,68,124,.1);
  --vt-transition    : .25s ease-in-out;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  font-family: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--vt-body-color);
  background-color: var(--vt-body-bg);
  margin: 0;
}

/* ── Bootstrap 5 override — couleurs primaires ──────────────── */
.btn-primary,
.bg-primary { background-color: var(--vt-primary) !important; border-color: var(--vt-primary) !important; }
.btn-primary:hover { background-color: var(--vt-primary-dark) !important; border-color: var(--vt-primary-dark) !important; }
.text-primary { color: var(--vt-primary) !important; }
.border-primary { border-color: var(--vt-primary) !important; }
a { color: var(--vt-primary); }
a:hover { color: var(--vt-primary-dark); }

/* ── Layout wrapper ─────────────────────────────────────────── */
.vt-wrapper {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.vt-sidebar {
  width: var(--vt-sidebar-w);
  min-width: var(--vt-sidebar-w);
  background: var(--vt-sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1030;
  box-shadow: 2px 0 8px rgba(0,0,0,.06);
  transition: width var(--vt-transition), min-width var(--vt-transition), left var(--vt-transition);
  overflow: hidden; /* le scroll est sur .vt-nav uniquement */
}

.vt-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  background: var(--vt-sidebar-brand);
  text-decoration: none;
  min-height: var(--vt-topbar-h);
  flex-shrink: 0;
}
.vt-sidebar-brand img { height: 32px; width: auto; }
.vt-sidebar-brand-name {
  font-size: .78rem;
  color: var(--vt-subtitle);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bloc utilisateur en bas de sidebar */
.vt-sidebar-user {
  margin-top: auto;
  padding: .75rem 1rem;
  background: #fff;
  border-top: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.vt-sidebar-user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--vt-dark-bg);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
  flex-shrink: 0;
}
.vt-sidebar-user-name  { font-size: .875rem; font-weight: 600; color: var(--vt-navy); line-height: 1.2; }
.vt-sidebar-user-role  { font-size: .75rem; color: var(--vt-subtitle); }

/* Section header dans la sidebar */
.vt-sidebar-header {
  padding: 1rem 1rem .3rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #adb5bd;
}

/* Liens de navigation — structure identique au PGI : .sidebar-item > .sidebar-link */
.vt-nav           { list-style: none; padding: 0 0 .5rem; margin: 0; flex: 1; overflow-y: auto; overflow-x: hidden; }
.vt-sidebar-item  { position: relative; }

.vt-sidebar-link,
a.vt-sidebar-link {
  display: flex;
  align-items: center;
  padding: .625rem .75rem;
  margin: 1px .5rem;
  border-radius: .375rem;
  color: #6c757d;
  font-size: .875rem;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--vt-transition), color var(--vt-transition);
}
.vt-sidebar-link i {
  width: 20px; text-align: center;
  margin-right: .65rem;
  font-size: 1rem;
  color: var(--vt-navy);
  flex-shrink: 0;
}
.vt-sidebar-link:hover {
  background: #f0f4fa;
  color: #212529;
}
.vt-sidebar-link:hover i { color: var(--vt-navy); }

.vt-sidebar-item.active > .vt-sidebar-link {
  background: rgba(30,144,255,.1);
  color: var(--vt-navy);
  font-weight: 500;
}
.vt-sidebar-item.active > .vt-sidebar-link i { color: var(--vt-primary); }

/* Chevron collapse — Bootstrap Icons en HTML, rotation via CSS */
.vt-sidebar-link .vt-chevron {
  margin-left: auto;
  font-size: .8rem;
  transition: transform var(--vt-transition);
  color: #adb5bd;
}
.vt-sidebar-link[aria-expanded="true"] .vt-chevron { transform: rotate(180deg); }

/* Sous-menus */
.vt-sidebar-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8fafd;
}
.vt-sidebar-dropdown .vt-sidebar-link {
  padding-left: 2.85rem;
  font-size: .84rem;
  margin: 1px .5rem;
}
.vt-sidebar-dropdown .vt-sidebar-item.active > .vt-sidebar-link {
  background: rgba(30,144,255,.08);
  color: var(--vt-primary);
  font-weight: 500;
}

/* ── Main area ──────────────────────────────────────────────── */
.vt-main {
  flex: 1;
  margin-left: var(--vt-sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left var(--vt-transition);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.vt-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: var(--vt-topbar-h);
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  overflow: visible; /* permet aux dropdowns Bootstrap de déborder */
}

.vt-topbar-toggle {
  background: none;
  border: none;
  padding: .35rem .5rem;
  border-radius: .375rem;
  color: var(--vt-body-color);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background var(--vt-transition);
}
.vt-topbar-toggle:hover { background: var(--vt-body-bg); }

.vt-topbar-spacer { flex: 1; }

.vt-topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vt-dark-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Content ────────────────────────────────────────────────── */
.vt-content {
  flex: 1;
  padding: 1.75rem;
}

.vt-page-header {
  margin-bottom: 1.5rem;
}
.vt-page-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--vt-navy);
  margin: 0;
}
.vt-breadcrumb {
  font-size: .82rem;
  color: #6c757d;
  margin-top: .15rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: .5rem;
  box-shadow: var(--vt-card-shadow);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  font-weight: 500;
  color: var(--vt-navy);
}

/* ── Stat cards (dashboard) ─────────────────────────────────── */
.vt-stat {
  background: #fff;
  border-radius: .5rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--vt-card-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.vt-stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.vt-stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: .5rem;
  background: rgba(30,144,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--vt-primary);
  flex-shrink: 0;
}
.vt-stat-body    { min-width: 0; flex: 1; }
.vt-stat-label   { font-size: .72rem; color: #6c757d; margin-bottom: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-stat-value   { font-size: 1.3rem; font-weight: 700; color: var(--vt-navy); line-height: 1.1; }
.vt-stat-sub     { font-size: .68rem; color: #6c757d; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-stat-delta   { font-size: .72rem; margin-top: .15rem; }
.vt-stat-delta.up   { color: #16a34a; }
.vt-stat-delta.down { color: #dc2626; }

/* ── Tables ─────────────────────────────────────────────────── */
.table { color: var(--vt-body-color); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; border-top: none; font-weight: 600; }
.table-hover > tbody > tr:hover > td { background-color: rgba(30,144,255,.04); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { font-weight: 500; font-size: .75em; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--vt-primary);
  box-shadow: 0 0 0 .2rem rgba(30,144,255,.2);
}
.form-label { font-size: .875rem; font-weight: 500; color: var(--vt-body-color); }

/* ── Auth layout ────────────────────────────────────────────── */
.vt-auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vt-dark-bg) 0%, var(--vt-primary-dark) 100%);
}
.vt-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: .75rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.vt-auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.vt-auth-logo img { height: 48px; }
.vt-auth-logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vt-navy);
  margin: .5rem 0 0;
}
.vt-auth-logo small { font-size: .82rem; color: #6c757d; }

/* ── Fiche client (popup) ───────────────────────────────────── */
.vt-fiche-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.vt-fiche-avatar {
  width: 56px; height: 56px;
  border-radius: .5rem;
  background: var(--vt-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.vt-fiche-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.vt-fiche-nom  { font-size: 1.25rem; font-weight: 700; color: var(--vt-navy); margin: 0; }
.vt-fiche-meta { font-size: .82rem; color: #6c757d; margin-top: .2rem; display: flex; gap: .85rem; flex-wrap: wrap; }
.vt-fiche-meta-link { color: var(--vt-primary); text-decoration: none; }
.vt-fiche-meta-link:hover { text-decoration: underline; }

/* KPI strip */
.vt-kpi {
  background: #fff;
  border-radius: .5rem;
  padding: .85rem 1rem;
  box-shadow: var(--vt-card-shadow);
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
}
.vt-kpi-icon {
  width: 40px; height: 40px;
  border-radius: .375rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.vt-kpi-label { font-size: .75rem; color: #6c757d; margin-bottom: .1rem; }
.vt-kpi-value { font-size: 1.15rem; font-weight: 700; color: var(--vt-navy); line-height: 1.1; }
.vt-kpi-sub   { font-size: .72rem; color: #6c757d; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Layout popup (fiche sans sidebar) ─────────────────────── */
.vt-popup-body {
  background: var(--vt-body-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
.vt-popup-header {
  background: var(--vt-sidebar-brand);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  min-height: 64px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.vt-popup-brand img { height: 26px; width: auto; }
.vt-popup-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.vt-popup-title {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-popup-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  border-radius: .375rem;
  padding: .3rem .55rem;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--vt-transition);
  flex-shrink: 0;
}
.vt-popup-close:hover { background: rgba(255,255,255,.25); }
.vt-popup-content { padding: 1.5rem; flex: 1; }

/* Identité compte dans la topbar popup */
.vt-popup-account {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}
.vt-popup-acct-avatar {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: .5rem;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
/* logo réel : fond blanc, image inscrite dans le carré sans rogner */
.vt-popup-acct-avatar img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: .5rem;
  background: #fff;
  display: block;
  padding: 4px;
}
.vt-popup-acct-info { min-width: 0; line-height: 1.2; }
.vt-popup-acct-name {
  font-size: .88rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-popup-acct-badge {
  display: inline-block;
  font-size: .65rem; font-weight: 600;
  color: #fff;
  padding: .1rem .45rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vt-popup-acct-meta {
  display: flex; gap: .75rem; margin-top: .1rem;
  font-size: .72rem; flex-wrap: wrap;
}
.vt-popup-acct-meta a {
  color: rgba(255,255,255,.65); text-decoration: none;
  display: flex; align-items: center; gap: .2rem;
}
.vt-popup-acct-meta a:hover { color: #fff; }

/* ── Recherche globale topbar ───────────────────────────────── */
.vt-search {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}
.vt-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.vt-search-icon {
  position: absolute;
  left: .75rem;
  color: #adb5bd;
  font-size: .9rem;
  pointer-events: none;
}
.vt-search-input {
  width: 100%;
  border: 1px solid #e9ecef;
  border-radius: 2rem;
  padding: .42rem .9rem .42rem 2.2rem;
  font-size: .875rem;
  background: var(--vt-body-bg);
  color: var(--vt-body-color);
  outline: none;
  transition: border-color var(--vt-transition), box-shadow var(--vt-transition);
}
.vt-search-input:focus {
  border-color: var(--vt-primary);
  background: #fff;
  box-shadow: 0 0 0 .2rem rgba(30,144,255,.15);
}
.vt-search-dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  z-index: 1050;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}
.vt-search-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .9rem;
  text-decoration: none;
  color: var(--vt-body-color);
  transition: background var(--vt-transition);
}
.vt-search-item:hover { background: var(--vt-body-bg); }
.vt-search-item-icon {
  width: 28px; height: 28px;
  border-radius: .375rem;
  background: rgba(30,144,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--vt-primary);
  flex-shrink: 0;
}
.vt-search-item-body { flex: 1; min-width: 0; }
.vt-search-item-label { display: block; font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-search-item-sub   { display: block; font-size: .75rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-search-item-type  { font-size: .7rem; color: #adb5bd; white-space: nowrap; flex-shrink: 0; }
.vt-search-empty { padding: .85rem 1rem; font-size: .875rem; color: #6c757d; text-align: center; }

@media (max-width: 767.98px) {
  .vt-search { width: 180px; }
}
@media (max-width: 575.98px) {
  .vt-search { display: none; }
}

/* ── Autocomplete adresses ──────────────────────────────────── */
.vt-addr-dropdown {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 1060;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.vt-addr-item {
  padding: .5rem .85rem;
  font-size: .875rem;
  cursor: pointer;
  transition: background var(--vt-transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--vt-body-color);
}
.vt-addr-item:hover { background: var(--vt-body-bg); color: var(--vt-navy); }

/* ── Carte Leaflet ──────────────────────────────────────────── */
.vt-map {
  height: 360px;
  border-radius: .5rem;
  overflow: hidden;
  background: #f0f4fa;
}

/* ── Mobile : sidebar hors-écran quand non ouverte ──────────── */

/* Copyright sidebar */
/* Pied de sidebar — lien Paramètres */
.vt-sidebar-copyright {
  margin-top: auto;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
.vt-sidebar-settings {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .85rem;
  border-top: 1px solid #e9ecef;
  font-size: .8rem;
  color: #6c757d;
  text-decoration: none;
  transition: background var(--vt-transition), color var(--vt-transition);
}
.vt-sidebar-settings:hover,
.vt-sidebar-settings.active { background: rgba(30,144,255,.07); color: var(--vt-primary); }
.vt-sidebar-settings i { font-size: 1rem; flex-shrink: 0; }

/* Footer principal */
.vt-footer {
  padding: .5rem 1.5rem;
  font-size: .72rem;
  color: #adb5bd;
  border-top: 1px solid var(--vt-border);
  text-align: right;
}

/* ── Sidebar mode icon rail (desktop collapsed) ─────────────── */
.vt-sidebar-collapsed .vt-sidebar {
  width: var(--vt-sidebar-mini-w);
  min-width: var(--vt-sidebar-mini-w);
}
.vt-sidebar-collapsed .vt-main {
  margin-left: var(--vt-sidebar-mini-w);
}
/* Éléments masqués en mode mini */
.vt-sidebar-collapsed .vt-sidebar-header,
.vt-sidebar-collapsed .vt-sidebar-link span,
.vt-sidebar-collapsed .vt-chevron,
.vt-sidebar-collapsed .vt-sidebar-dropdown,
.vt-sidebar-collapsed .vt-sidebar-settings span { display: none !important; }
.vt-sidebar-collapsed .vt-sidebar-settings { justify-content: center; padding: .6rem 0; }
/* Brand : centrer le logo */
.vt-sidebar-collapsed .vt-sidebar-brand { justify-content: center; padding: .85rem .5rem; }
.vt-sidebar-collapsed .vt-sidebar-brand img {
  height: 36px;
  width: 40px;
  object-fit: cover;
  object-position: left center;
}
/* Liens : centrer les icônes */
.vt-sidebar-collapsed .vt-sidebar-link {
  justify-content: center;
  padding: .7rem 0;
  margin: 2px .5rem;
}
.vt-sidebar-collapsed .vt-sidebar-link i {
  margin-right: 0;
  font-size: 1.2rem;
}

/* ── Scrollbar sidebar ──────────────────────────────────────── */
.vt-sidebar::-webkit-scrollbar { width: 4px; }
.vt-sidebar::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 2px; }

/* ── Responsive ─────────────────────────────────────────────── */
.vt-sidebar-overlay { display: none; }

@media (max-width: 991.98px) {
  .vt-sidebar { left: calc(-1 * var(--vt-sidebar-w)); }
  .vt-main    { margin-left: 0; }
  .vt-wrapper.sidebar-open .vt-sidebar { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.15); }
  .vt-wrapper.sidebar-open .vt-sidebar-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1029;
  }
}

/* ── GED Dropzone ───────────────────────────────────────────── */
.vt-dropzone {
  border: 2px dashed #dee2e6;
  border-radius: .5rem;
  padding: 2rem 1rem;
  text-align: center;
  color: #6c757d;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.vt-dropzone:hover,
.vt-dropzone.drag-over {
  border-color: var(--vt-primary);
  background: rgba(30,144,255,.04);
}
.vt-dropzone i {
  font-size: 2rem;
  display: block;
  margin-bottom: .5rem;
}

/* ── Preview modal ─────────────────────────────────────────── */
#modalDocPreview .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
/* iframe / video : pleine largeur, hauteur fixe */
#docPreviewContent > iframe,
#docPreviewContent > video {
  display: block;
  width: 100%;
  height: 75vh;
  border: none;
}
/* image : centrée avec padding */
#docPreviewContent > img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: 1rem auto;
  object-fit: contain;
}
/* audio : centré avec padding */
#docPreviewContent > div > audio {
  width: 100%;
}
/* texte/csv */
#docPreviewContent > pre {
  width: 100%;
  margin: 0;
  padding: 1rem;
  background: #f8f9fa;
  max-height: 75vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .82rem;
}
/* fallback */
#docPreviewContent > div.text-center {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Lien nom de fichier prévisualisable */
a.btn-doc-preview {
  color: var(--vt-primary);
}
a.btn-doc-preview:hover {
  text-decoration: underline !important;
}

/* ── Timeline Activités ─────────────────────────────────────── */
.vt-act-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: .75rem;
}
.vt-act-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Panel notifications ────────────────────────────────────── */
#vtNotifPanel.show {
  display: flex !important;
  flex-direction: column;
}
.vt-notif-item:hover { background: var(--vt-body-bg) !important; }
