/* ==========================================================================
   CRM Démarchage — design system "Apple vibe"
   Mobile-first, dark mode auto, safe areas iOS, touch targets 44px+
   ========================================================================== */

:root {
  --bg: #F2F2F7;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --card: #FFFFFF;
  --card-2: #F9F9FB;
  --text: #1C1C1E;
  --text-2: #6D6D72;
  --text-3: #AEAEB2;
  --sep: rgba(60, 60, 67, 0.12);
  --accent: #0A84FF;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --green: #30D158;
  --green-soft: rgba(48, 209, 88, 0.14);
  --orange: #FF9F0A;
  --orange-soft: rgba(255, 159, 10, 0.15);
  --red: #FF453A;
  --red-soft: rgba(255, 69, 58, 0.12);
  --purple: #BF5AF2;
  --purple-soft: rgba(191, 90, 242, 0.14);
  --teal: #64D2FF;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
  --radius: 18px;
  --radius-sm: 12px;
  --blur: saturate(180%) blur(20px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: rgba(28, 28, 30, 0.72);
    --card: #1C1C1E;
    --card-2: #2C2C2E;
    --text: #FFFFFF;
    --text-2: #98989E;
    --text-3: #636366;
    --sep: rgba(84, 84, 88, 0.42);
    --accent-soft: rgba(10, 132, 255, 0.22);
    --green-soft: rgba(48, 209, 88, 0.20);
    --orange-soft: rgba(255, 159, 10, 0.22);
    --red-soft: rgba(255, 69, 58, 0.20);
    --purple-soft: rgba(191, 90, 242, 0.22);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.hidden { display: none !important; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; /* evite le zoom iOS */ }

/* Icones SVG inline */
svg { display: inline-block; vertical-align: middle; }
.tab-ico svg { width: 23px; height: 23px; }
.action-ico svg { width: 24px; height: 24px; }
.d-ico svg { width: 20px; height: 20px; }
.tl-ico svg { width: 15px; height: 15px; color: var(--text-2); }
.pill-appels svg, .badge svg { width: 12px; height: 12px; vertical-align: -2px; }
.searchbar .ico svg { width: 17px; height: 17px; }
.btn-ico svg { width: 18px; height: 18px; margin-right: 7px; vertical-align: -3.5px; }
.totp-icon { display: flex; justify-content: center; margin-bottom: 10px; color: var(--accent); }
.totp-icon svg { width: 34px; height: 34px; }
.empty-ico { display: block; margin: 0 auto 12px; color: var(--text-3); }
.empty-ico svg { width: 44px; height: 44px; }
.script-summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.script-summary::-webkit-details-marker { display: none; }
.script-summary svg { width: 16px; height: 16px; margin-right: 6px; color: var(--accent); vertical-align: -3px; }
.tpl-nom svg { width: 15px; height: 15px; margin-right: 5px; color: var(--accent); vertical-align: -2.5px; }
.badge-count { background: var(--card-2); color: var(--text-2); }
.badge-admin {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  vertical-align: 1px;
}

/* ==========================================================================
   Login
   ========================================================================== */
.login {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 800px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, var(--purple-soft), transparent 55%),
    var(--bg);
}
.login-inner { width: 100%; max-width: 380px; }
.login-logo {
  width: 72px; height: 72px; border-radius: 22px;
  background: linear-gradient(135deg, #0A84FF, #5E5CE6);
  color: #fff; font-weight: 800; font-size: 24px; letter-spacing: -0.5px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(10, 132, 255, .35);
}
.login-title {
  font-size: 40px; font-weight: 800; letter-spacing: -1.2px;
  margin: 0 0 6px;
}
.login-sub { color: var(--text-2); font-size: 16px; line-height: 1.45; margin: 0 0 28px; }
.login-form .field { margin-bottom: 12px; }
.login-form input {
  width: 100%; padding: 16px 18px;
  border: 1px solid var(--sep); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.login-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.totp-input {
  text-align: center; font-size: 28px !important; letter-spacing: 10px;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.btn-big {
  width: 100%; padding: 16px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 600;
  margin-top: 6px;
  transition: transform .15s var(--spring), opacity .2s;
}
.btn-big:active { transform: scale(0.97); opacity: .85; }
.login-error { color: var(--red); font-size: 14px; margin-top: 14px; min-height: 18px; text-align: center; }
.enrol-qr { display: flex; justify-content: center; margin: 8px 0 14px; }
.enrol-qr svg { width: 230px; height: 230px; border-radius: 16px; background: #fff; padding: 14px; box-shadow: var(--shadow); }
.enrol-secret { margin-bottom: 16px; text-align: center; }
.enrol-secret summary { color: var(--accent); font-size: 14px; cursor: pointer; list-style: none; }
.enrol-secret code {
  display: block; margin-top: 8px; padding: 10px; border-radius: 10px;
  background: var(--card-2); font-size: 13px; word-break: break-all; user-select: all;
}

/* ==========================================================================
   Structure app
   ========================================================================== */
.app { min-height: 100dvh; }
.vue {
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 96px);
  max-width: 680px; margin: 0 auto;
}

/* Grand titre iOS */
.big-title {
  font-size: 34px; font-weight: 800; letter-spacing: -1px;
  margin: 10px 0 2px;
}
.big-sub { color: var(--text-2); font-size: 15px; margin: 0 0 18px; }

/* Tab bar verre depoli */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  padding: 8px 8px calc(var(--safe-bottom) + 8px);
  background: var(--bg-elev);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-top: 0.5px solid var(--sep);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: none; color: var(--text-3);
  font-size: 10.5px; font-weight: 600; padding: 4px 14px; border-radius: 12px;
  min-width: 62px;
  transition: color .2s;
}
.tab .tab-ico { font-size: 22px; line-height: 1; }
.tab.on { color: var(--accent); }

/* ==========================================================================
   Cartes & listes
   ========================================================================== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 14px;
}
.card-pad { padding: 16px; }

.section-title {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 22px 6px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .count-pill {
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 2px 10px; font-size: 12px;
}

/* Ligne de lead */
.lead-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--sep);
  cursor: pointer;
  transition: background .15s;
  min-height: 64px;
}
.lead-row:last-child { border-bottom: none; }
.lead-row:active { background: var(--card-2); }
.lead-avatar {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
}
.lead-main { flex: 1; min-width: 0; }
.lead-nom {
  font-weight: 600; font-size: 15.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lead-meta {
  color: var(--text-2); font-size: 13px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lead-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.chev { color: var(--text-3); font-size: 17px; }

/* Badges de statut */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge.nouveau, .badge.a_appeler { background: var(--accent-soft); color: var(--accent); }
.badge.pas_de_reponse, .badge.injoignable { background: var(--card-2); color: var(--text-2); }
.badge.rappel { background: var(--orange-soft); color: var(--orange); }
.badge.interesse { background: var(--purple-soft); color: var(--purple); }
.badge.rdv { background: var(--green-soft); color: var(--green); }
.badge.converti { background: var(--green); color: #fff; }
.badge.refus { background: var(--red-soft); color: var(--red); }
.badge.npr { background: var(--red); color: #fff; }

.pill-appels {
  font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums;
}

/* Etat vide */
.empty-state {
  text-align: center; padding: 56px 24px; color: var(--text-2);
}
.empty-state .emoji { font-size: 52px; display: block; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.empty-state p { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Barre de recherche */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.searchbar input {
  flex: 1; border: none; background: none; color: var(--text);
  padding: 0; outline: none;
}
.searchbar .ico { color: var(--text-3); }

/* Filtres segmentes (scroll horizontal) */
.seg-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.seg-scroll::-webkit-scrollbar { display: none; }
.seg {
  border: none; border-radius: 999px; padding: 8px 16px;
  background: var(--card); color: var(--text-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .1s;
}
.seg:active { transform: scale(.96); }
.seg.on { background: var(--text); color: var(--bg); }

/* ==========================================================================
   Fiche lead (plein ecran, slide-in)
   ========================================================================== */
.fiche {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  animation: slideIn .34s var(--spring);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.fiche.closing { animation: slideOut .28s var(--spring) forwards; }
@keyframes slideOut { to { transform: translateX(100%); } }
.fiche-body {
  padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 40px);
  max-width: 680px; margin: 0 auto;
}

.fiche-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; min-height: 44px;
}
.btn-retour {
  border: none; background: none; color: var(--accent);
  font-size: 17px; font-weight: 500; padding: 8px 8px 8px 0;
  display: flex; align-items: center; gap: 2px;
}

.fiche-head { text-align: center; margin-bottom: 20px; }
.fiche-avatar {
  width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px; color: #fff;
  box-shadow: var(--shadow);
}
.fiche-nom { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 4px; }
.fiche-sub { color: var(--text-2); font-size: 14.5px; margin: 0 0 12px; }

/* Rangee d'actions rondes (Appeler / SMS / Email / Web) */
.actions-row {
  display: flex; justify-content: center; gap: 14px; margin: 18px 0 8px;
}
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: none; background: none; color: var(--accent);
  font-size: 12px; font-weight: 600; width: 72px;
}
.action-btn .action-ico {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: transform .15s var(--spring), background .2s;
}
.action-btn:active .action-ico { transform: scale(.92); }
.action-btn.primary .action-ico { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(48,209,88,.4); }
.action-btn:disabled { opacity: .35; }

/* Groupes d'infos (style Reglages iOS) */
.info-group {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.info-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 16px; border-bottom: 0.5px solid var(--sep);
  font-size: 15px;
}
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--text-2); font-size: 13.5px; flex-shrink: 0; }
.info-row dd { margin: 0; text-align: right; word-break: break-word; font-weight: 500; }
.info-row dd a { color: var(--accent); text-decoration: none; }

/* Saisie resultat d'appel : grille de dispositions */
.dispo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.dispo-btn {
  border: 1.5px solid var(--sep); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text);
  padding: 14px 10px; font-size: 14px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all .15s;
  min-height: 68px;
}
.dispo-btn .d-ico { font-size: 22px; }
.dispo-btn:active { transform: scale(.96); }
.dispo-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Timeline historique */
.timeline { position: relative; }
.tl-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 0.5px solid var(--sep);
}
.tl-item:last-child { border-bottom: none; }
.tl-ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: var(--card-2);
}
.tl-main { flex: 1; min-width: 0; }
.tl-titre { font-size: 14px; font-weight: 600; }
.tl-note { font-size: 13.5px; color: var(--text-2); margin-top: 3px; white-space: pre-wrap; }
.tl-quand { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ==========================================================================
   Bottom sheet
   ========================================================================== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,.4);
  animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  animation: sheetUp .38s var(--spring);
  max-height: 88dvh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet.closing { animation: sheetDown .26s ease-in forwards; }
@keyframes sheetDown { to { transform: translateY(100%); } }
#sheet-body { padding: 10px 20px calc(var(--safe-bottom) + 24px); }
.sheet-grab {
  width: 38px; height: 5px; border-radius: 3px;
  background: var(--sep); margin: 8px auto 14px;
}
.sheet h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 16px; }

.sheet textarea, .sheet input[type="text"], .sheet input[type="email"],
.sheet input[type="datetime-local"], .sheet input[type="password"], .sheet select {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--sep); border-radius: var(--radius-sm);
  background: var(--card-2); color: var(--text);
  margin-bottom: 12px; resize: vertical;
}
.sheet textarea:focus, .sheet input:focus, .sheet select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.sheet label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 4px 2px 6px; }

.btn-primary {
  width: 100%; padding: 15px; border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  transition: transform .15s var(--spring), opacity .2s;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .4; }
.btn-primary.green { background: var(--green); }
.btn-primary.red { background: var(--red); }
.btn-ghost {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: none; color: var(--accent); font-size: 15.5px; font-weight: 600;
}
.btn-danger-ghost { color: var(--red); }

/* Bouton "ligne de liste" dans un sheet (choix d'un commercial, etc.) */
.btn-liste {
  display: flex; align-items: center; justify-content: space-between;
  text-align: left; background: var(--card-2); margin-bottom: 8px;
  padding: 13px 16px;
}
.btn-liste-nb { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.sheet-sep { height: 0.5px; background: var(--sep); margin: 16px 0; }

/* ==========================================================================
   Power dialer
   ========================================================================== */
.dialer-bar {
  position: sticky; top: calc(var(--safe-top) + 4px); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-elev);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 0.5px solid var(--sep);
  border-radius: 999px; padding: 8px 8px 8px 18px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.dialer-bar .d-info { font-size: 13.5px; font-weight: 700; }
.dialer-bar .d-info small { display: block; font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.dialer-next {
  border: none; border-radius: 999px; padding: 10px 18px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
}

/* ==========================================================================
   Stats admin (bento)
   ========================================================================== */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bento .stat-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.stat-card.wide { grid-column: 1 / -1; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 2px; }
.stat-trend { font-size: 12px; font-weight: 700; }
.stat-trend.up { color: var(--green); }

/* Barres horizontales pipeline */
.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; }
.hbar-lbl { width: 108px; flex-shrink: 0; color: var(--text-2); font-weight: 600; font-size: 12px; }
.hbar-track { flex: 1; height: 22px; border-radius: 7px; background: var(--card-2); overflow: hidden; }
.hbar-fill {
  height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, var(--accent), #5E5CE6);
  min-width: 4px;
  transition: width .6s var(--spring);
}
.hbar-n { width: 48px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Leaderboard */
.leader-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 0.5px solid var(--sep);
}
.leader-row:last-child { border-bottom: none; }
.leader-rank {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--card-2); color: var(--text-2);
}
.leader-rank.r1 { background: rgba(255, 214, 10, .22); color: #A07800; }
.leader-rank.r2 { background: rgba(174, 174, 178, .25); color: #6D6D72; }
.leader-rank.r3 { background: rgba(255, 159, 10, .18); color: #B26A00; }
@media (prefers-color-scheme: dark) {
  .leader-rank.r1 { color: #FFD60A; }
  .leader-rank.r2 { color: #C7C7CC; }
  .leader-rank.r3 { color: #FF9F0A; }
}
.leader-nom { flex: 1; font-weight: 600; font-size: 15px; }
.leader-stats { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 110px);
  transform: translateX(-50%); z-index: 90;
  background: var(--text); color: var(--bg);
  border-radius: 999px; padding: 12px 22px;
  font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s var(--spring);
  max-width: calc(100vw - 40px); text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast.err { background: var(--red); color: #fff; }

/* ==========================================================================
   Formulaires admin / listes utilisateurs
   ========================================================================== */
.user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 0.5px solid var(--sep);
}
.user-row:last-child { border-bottom: none; }
.user-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.user-dot.off { background: var(--text-3); }
.user-main { flex: 1; min-width: 0; }
.user-nom { font-weight: 600; font-size: 15px; }
.user-mail { font-size: 12.5px; color: var(--text-2); }
.mini-btn {
  border: none; border-radius: 999px; padding: 7px 14px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.mini-btn.red { background: var(--red-soft); color: var(--red); }

/* fab (bouton flottant +) */
.fab {
  position: fixed; right: 18px; bottom: calc(var(--safe-bottom) + 104px); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff; font-size: 26px;
  box-shadow: 0 8px 24px rgba(10,132,255,.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--spring);
}
.fab:active { transform: scale(.92); }

/* Desktop : centre et elargit un peu */
@media (min-width: 760px) {
  .vue, .fiche-body { max-width: 760px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .stat-card.wide { grid-column: span 2; }
  .dispo-grid { grid-template-columns: repeat(4, 1fr); }
}
