/* =============================================================================
   MADNESS MANAGER — Charte visuelle commune (DA madness.show)
   Version 1 — 30/11/2026 — proposition à valider

   Chargée EN DERNIER sur chaque page. Deux parties :
     1. Le socle : polices, couleurs, ciel étoilé, composants .mm-*
        (à utiliser pour tout nouvel écran).
     2. Le pont : ré-habille les classes existantes du logiciel
        (sidebar, cartes, boutons, tableaux, formulaires, modales)
        SANS toucher aux tailles ni aux positions → aucun risque de casse
        de mise en page.

   Règles DA (identiques au site) : nuit #06050b, or #d4a856, rose #e86aa8,
   Montserrat (léger, capitales espacées), Lora italique pour les accents.
   ============================================================================= */

/* ---------------------------------------------------------------- polices */
@font-face {
  font-family: "Montserrat";
  src: url("../public/fonts/montserrat.woff") format("woff");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../public/fonts/lora-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* « Inter » (ancienne police du logiciel) est redirigée vers Montserrat :
   toutes les règles existantes qui demandaient Inter affichent désormais la
   police de la charte, sans avoir à modifier chaque feuille de style. */
@font-face {
  font-family: "Inter";
  src: url("../public/fonts/montserrat.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- jetons */
:root {
  /* Couleurs de marque */
  --mm-night: #06050b;
  --mm-ink: #0a0613;
  --mm-panel: #0f0d1a;
  --mm-panel-2: #151225;
  --mm-gold: #d4a856;
  --mm-gold-hi: #e6bd6e;
  --mm-gold-ink: #1a0f05;
  --mm-pink: #e86aa8;
  --mm-pink-soft: rgba(232, 106, 168, 0.12);

  /* Texte */
  --mm-text: #ffffff;
  --mm-text-2: rgba(236, 228, 245, 0.78);
  --mm-muted: rgba(236, 228, 245, 0.58);

  /* Lignes */
  --mm-line: rgba(212, 168, 86, 0.18);
  --mm-line-strong: rgba(212, 168, 86, 0.45);
  --mm-line-soft: rgba(255, 255, 255, 0.08);

  /* États (sobres, alignés sur la nuit) */
  --mm-ok: #6fcf97;
  --mm-warn: #e8b45a;
  --mm-danger: #ff7a95;
  --mm-info: #9db4ff;

  /* Typo */
  --mm-font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mm-serif: "Lora", Georgia, serif;

  /* Formes */
  --mm-radius: 2px;
  --mm-radius-lg: 4px;
  --mm-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --mm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =============================================================================
   1. SOCLE
   ============================================================================= */

html body {
  font-family: var(--mm-font);
  font-weight: 300;
  color: var(--mm-text);
  background:
    linear-gradient(180deg, rgba(6, 5, 11, 0.72), rgba(6, 5, 11, 0.94) 45%, rgba(6, 5, 11, 0.97)),
    radial-gradient(80% 60% at 75% 0%, rgba(232, 106, 168, 0.1), transparent 60%),
    #140a26 url("../public/charte/ciel.webp") center top / cover no-repeat fixed;
  background-color: var(--mm-night);
}

/* Étoiles qui scintillent, très discrètes, derrière tout le contenu */
html body::before,
html body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-size: 600px 600px;
}
html body::before { background-image: url("../public/charte/etoiles-1.png"); opacity: 0.28; }
html body::after { background-image: url("../public/charte/etoiles-3.png"); animation: mm-twinkle 3.6s ease-in-out infinite alternate; }
@keyframes mm-twinkle { from { opacity: 0.12; } to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { html body::after { animation: none; opacity: 0.25; } }

::selection { background: rgba(232, 106, 168, 0.35); color: #fff; }

/* Barres de défilement */
* { scrollbar-width: thin; scrollbar-color: rgba(212, 168, 86, 0.35) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(212, 168, 86, 0.3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 168, 86, 0.55); }
::-webkit-scrollbar-track { background: transparent; }

/* Focus clavier visible partout */
:focus-visible { outline: 1px solid var(--mm-pink); outline-offset: 2px; }

/* ----------------------------------------------------- utilitaires texte */
.mm-cap { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400; }
.mm-wide { font-weight: 200; letter-spacing: 0.3em; text-transform: uppercase; }
.mm-it { font-family: var(--mm-serif); font-style: italic; font-weight: 400; }
.mm-gold { color: var(--mm-gold); }
.mm-pink { color: var(--mm-pink); }
.mm-muted { color: var(--mm-muted); }
.mm-rule { display: block; width: 44px; height: 1px; background: var(--mm-gold); margin: 18px 0; }

/* ----------------------------------------------------- en-tête de page */
.mm-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.mm-page-head .mm-cap { color: var(--mm-gold); margin: 0 0 10px; }
.mm-page-head h1 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 300; margin: 0; letter-spacing: 0.01em; }
.mm-page-head h1 em { font-family: var(--mm-serif); font-style: italic; color: var(--mm-pink); font-weight: 400; }
.mm-page-head p { color: var(--mm-muted); margin: 8px 0 0; }

/* ----------------------------------------------------- boutons */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--mm-radius);
  background: transparent; color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  font: 400 11px/1 var(--mm-font); letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--mm-ease);
}
.mm-btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.mm-btn--gold { background: var(--mm-gold); border-color: var(--mm-gold); color: var(--mm-gold-ink); font-weight: 500; }
.mm-btn--gold:hover { background: var(--mm-gold-hi); border-color: var(--mm-gold-hi); }
.mm-btn--ghost { border-color: rgba(255, 255, 255, 0.14); color: var(--mm-text-2); }
.mm-btn--danger { border-color: rgba(255, 122, 149, 0.4); color: var(--mm-danger); }
.mm-btn--danger:hover { background: rgba(255, 122, 149, 0.1); border-color: var(--mm-danger); }
.mm-btn--sm { padding: 9px 14px; font-size: 10px; }
.mm-btn:disabled, .mm-btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }

/* ----------------------------------------------------- cartes */
.mm-card {
  position: relative; padding: 26px; background: rgba(15, 13, 26, 0.86);
  border: 1px solid var(--mm-line); border-radius: var(--mm-radius);
  transition: border-color 0.35s, transform 0.35s var(--mm-ease);
}
.mm-card--link:hover { border-color: rgba(212, 168, 86, 0.6); transform: translateY(-3px); }
.mm-card__title { margin: 0 0 14px; font-size: 11px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mm-gold); }

/* Indicateur chiffré */
.mm-kpi { display: flex; flex-direction: column; gap: 6px; }
.mm-kpi__label { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mm-muted); }
.mm-kpi__value { font-size: 38px; font-weight: 200; line-height: 1.1; color: #fff; }
.mm-kpi__value small { font-size: 15px; color: var(--mm-gold); margin-left: 4px; }
.mm-kpi__foot { font-size: 12.5px; color: var(--mm-muted); }

/* ----------------------------------------------------- formulaires */
.mm-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; font-size: 12px; letter-spacing: 0.06em; color: var(--mm-text-2); }
.mm-input {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: var(--mm-radius);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
  font: 300 15px var(--mm-font); outline: none; transition: border-color 0.3s;
}
.mm-input:focus { border-color: var(--mm-pink); }
html body .mm-field input, html body .mm-field select, html body .mm-field textarea { padding: 11px 13px; font-size: 15px; font-weight: 300; width: 100%; box-sizing: border-box; }

/* ----------------------------------------------------- badges & statuts */
.mm-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.06em; border: 1px solid currentColor; line-height: 1.3;
}
.mm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mm-badge--gold { color: var(--mm-gold); }
.mm-badge--pink { color: var(--mm-pink); }
.mm-badge--ok { color: var(--mm-ok); }
.mm-badge--warn { color: var(--mm-warn); }
.mm-badge--danger { color: var(--mm-danger); }
.mm-badge--muted { color: var(--mm-muted); }
.mm-count { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 20px; background: var(--mm-pink); color: #fff; font-size: 11px; text-align: center; }

/* ----------------------------------------------------- tableaux */
.mm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mm-table th { text-align: left; padding: 12px 14px; font-size: 10.5px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mm-gold); border-bottom: 1px solid var(--mm-line-strong); }
.mm-table td { padding: 14px; border-bottom: 1px solid var(--mm-line-soft); color: var(--mm-text-2); }
.mm-table tbody tr { transition: background 0.2s; }
.mm-table tbody tr:hover { background: rgba(212, 168, 86, 0.05); }
.mm-table td strong { color: #fff; font-weight: 500; }

/* ----------------------------------------------------- modale */
.mm-modal-backdrop { position: fixed; inset: 0; background: rgba(4, 3, 8, 0.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 900; padding: 24px; }
.mm-modal { width: min(560px, 100%); background: var(--mm-panel); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); }
.mm-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--mm-line); }
.mm-modal__head h2 { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; }
.mm-modal__body { padding: 26px; }
.mm-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--mm-line); }

/* =============================================================================
   2. PONT — habillage des écrans existants (couleurs, typo, bordures seulement)
   ============================================================================= */

/* ---------- polices : on remplace Inter partout */
html body,
html body button,
html body input,
html body select,
html body textarea,
html body table { font-family: var(--mm-font); }

/* ---------- titres de page */
html body .project-header h1,
html body .main > h1,
html body .main h1:first-of-type {
  font-family: var(--mm-font); font-weight: 300; letter-spacing: 0.01em; color: #fff;
}
html body .page-subtitle { color: var(--mm-muted); font-weight: 300; }
html body h2, html body h3 { font-family: var(--mm-font); }

/* ---------- barre latérale */
html body .sidebar {
  background: linear-gradient(180deg, rgba(10, 8, 20, 0.96), rgba(8, 6, 16, 0.97)) !important;
  border-color: var(--mm-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}
html body .sidebar .logo { filter: none; }
/* (#sidebarMenu + !important : le style actuel utilise un sélecteur d'ID et des !important) */
html body .sidebar .menu-item a,
html body .sidebar .menu > li > a,
html body #sidebarMenu .menu-item > a {
  font-weight: 300 !important; letter-spacing: 0.04em;
  color: rgba(236, 228, 245, 0.72) !important;
  background: transparent !important; border: none !important; border-radius: 0 !important;
  border-left: 2px solid transparent !important; box-shadow: none !important;
}
html body .sidebar .menu-item a:hover,
html body #sidebarMenu .menu-item > a:hover {
  color: #fff !important; background: rgba(255, 255, 255, 0.035) !important; border-left-color: rgba(212, 168, 86, 0.45) !important;
}
html body .sidebar .menu-item.active a,
html body .sidebar .menu > li.active > a,
html body #sidebarMenu .menu-item.active > a {
  color: #fff !important; font-weight: 400 !important;
  background: linear-gradient(90deg, rgba(232, 106, 168, 0.14), rgba(232, 106, 168, 0.02)) !important;
  border-left: 2px solid var(--mm-pink) !important;
}
html body .sidebar .menu-item a .nav-ico { color: rgba(212, 168, 86, 0.75) !important; }
html body .sidebar .menu-item.active a .nav-ico { color: var(--mm-pink) !important; }
html body .sidebar .sidebar-nav__section-title,
html body .sidebar .sidebar-nav__section-heading {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mm-gold); font-weight: 400;
}
html body .pending-badge { background: var(--mm-pink); box-shadow: none; font-family: var(--mm-font); }

/* ---------- cartes : fini le verre dépoli bleuté, place aux panneaux de nuit filetés d'or */
html body .card,
html body .dashboard-kpi-card,
html body .project-card,
html body .client-side-card,
html body .documents-card {
  background: rgba(15, 13, 26, 0.86);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  box-shadow: none;
  backdrop-filter: none;
}
html body .card:hover { background: rgba(18, 15, 31, 0.9); border-color: rgba(212, 168, 86, 0.38); }
html body .card h3,
html body .dashboard-kpi-card h3 {
  font-size: 11px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mm-gold);
}
html body .dashboard-kpi-card p { font-weight: 200; color: #fff; }

/* ---------- BOUTONS — harmonisation de toutes les familles existantes
   Règle d'or : on ne touche QU'AUX couleurs, fonds, filets et coins.
   Aucune modification de taille (padding, police, hauteur, largeur,
   capitales, espacement des lettres) → la mise en page ne bouge pas.
   Le filet est dessiné par un « outline » posé sur le bord (ne prend aucune place),
   la bordure existante éventuelle est simplement rendue transparente.
   5 rôles : Secondaire (filet blanc) · Discret (filet gris) · Principal (or)
             · Icône (filet or léger) · Suppression (rose-rouge)
   + Fermer (×) et Onglets/filtres (actif = rose). */

/* commun */
html body .action-btn,
html body .project-btn,
html body .doc-btn-soft,
html body .dashboard-task-btn,
html body .modal-btn-modern,
html body .payroll-btn,
html body .contact-btn-modern,
html body .depot-btn,
html body .ec-btn,
html body .prep-btn,
html body .recap-btn,
html body .pb-fire-modal-btn,
html body .fr-btn,
html body .db-btn,
html body .dash-panel-btn,
html body .dash-side-cta,
html body .cdt-doc-btn,
html body .cdt-refresh-btn,
html body .arti-doc-btn,
html body .arti-docs-refresh-btn,
html body .arti-contract-btn,
html body .arti-rail-cta,
html body .compta-doc-btn,
html body .compta-kpi-link-btn,
html body .facturation-relance-btn,
html body .project-docs-upload-btn,
html body .project-docs-mini-btn,
html body .project-materiel-apply-btn,
html body .project-hotel-extra-date-submit,
html body .nf-file-pick-btn,
html body .nf-doc-scan-capture,
html body .task-action-btn,
html body .btn-header,
html body .btn-add-line,
html body .creation-add-effect-btn,
html body .creation-transport-btn,
html body .creation-zoom-btn,
html body .taches-import-local-btn,
html body .product-list-clear-btn,
html body .product-list-total-reset,
html body .staff-contract-mark-signed-btn,
html body .pip-btn,
html body .pip-projets-btn,
html body .login-helper-btn,
html body .team-rdv-btn,
html body .team-artificier-profile-btn,
html body .team-cachet-role-btn,
html body .payroll-mini-btn,
html body .payroll-mark-all-arti,
html body .payroll-mark-all-proj,
html body .recap-pay-action,
html body .pipeline-status-open-btn,
html body .client-portal-reset-activity-btn,
html body .artificiers-tshirt-btn,
html body .artificiers-sort-btn,
html body .artificier-account-status-btn,
html body .clothing-order-edit-btn,
html body .fire-avail-btn,
html body .pb-nav-btn,
html body .ec-theme-listen-btn,
html body .ec-theme-pp-btn,
html body .si-vote-btn,
html body .suspended-btn,
html body .mobile-filters-toggle,
html body .outline-purple,
html body .top-notif-clear-btn,
html body .action-btn-soft,
html body .modal-btn-cancel,
html body .btn-cancel,
html body .btn-ghost,
html body .depot-btn--ghost,
html body .ec-btn-ghost,
html body .ec-btn-discreet,
html body .payroll-btn--ghost,
html body .pb-fire-modal-btn--ghost,
html body .pip-btn-ghost,
html body .pip-projets-btn--ghost,
html body .prep-btn--ghost,
html body .recap-btn--ghost,
html body .contact-btn-secondary,
html body .modern-cancel-btn,
html body .pip-display-btn-secondary,
html body .nf-doc-scan-cancel,
html body .action-btn.soft,
html body .project-btn.soft,
html body .action-btn-primary,
html body .action-btn.primary,
html body .project-btn.primary,
html body .primary-save-btn,
html body .doc-btn-primary,
html body .modal-btn-confirm,
html body .btn-create,
html body .btn-primary,
html body .depot-btn--primary,
html body .ec-btn-primary,
html body .mfa-btn-primary,
html body .payroll-btn--primary,
html body .pb-fire-modal-btn--primary,
html body .pip-btn-accent,
html body .pip-display-btn-primary,
html body .pip-projets-btn--primary,
html body .prep-btn--primary,
html body .prep-btn--accent,
html body .recap-btn--primary,
html body .arti-doc-btn--primary,
html body .arti-contract-sign-btn,
html body .login-btn,
html body .modern-confirm-btn,
html body .project-contracts-send-btn,
html body .fr-btn-generate,
html body .nf-rembourse-btn,
html body .payroll-btn.primary,
html body .icon-btn,
html body .compta-icon-btn,
html body .compta-eye-btn,
html body .depot-icon-btn,
html body .depot-step-btn,
html body .fleet-icon-btn,
html body .fleet-qty-btn,
html body .doc-btn-icon,
html body .arti-contract-icon-btn,
html body .arti-contract-btn-icon,
html body .arti-payslip-icon-btn,
html body .client-portal-file-icon-btn,
html body .client-portal-pass-toggle-btn,
html body .project-contracts-icon-btn,
html body .project-date-icon-btn,
html body .staff-contract-btn-icon,
html body .payroll-slip-icon-btn,
html body .row-btn,
html body .btn-attestation-row,
html body .btn-calendar-row,
html body .btn-contract-row,
html body .btn-feuille-route-row,
html body .btn-notify-row,
html body .btn-send-contract-row,
html body .btn-social-row,
html body .fr-btn-icon,
html body .fr-btn-add,
html body .fr-btn-preview,
html body .ec-view-btn,
html body .ec-dl-btn,
html body .team-row-actions-menu-btn,
html body .db-edit-btn,
html body .project-hotel-extra-date-quick,
html body .delete-btn,
html body .action-btn-danger,
html body .action-btn.danger,
html body .project-btn.danger,
html body .artificiers-btn-danger,
html body .contact-btn-danger,
html body .project-btn-danger-outline,
html body .pip-btn-danger,
html body .db-delete-btn,
html body .catalog-del-btn,
html body .nf-delete-btn,
html body .clothing-order-delete-btn,
html body .staff-contract-btn-delete,
html body .row-btn--delete,
html body .btn-delete-row,
html body .compta-icon-btn--danger,
html body .depot-icon-btn--danger,
html body .fleet-icon-btn--danger,
html body .client-portal-file-icon-btn--danger,
html body .client-portal-msg-delete,
html body .client-portal-ticket-delete,
html body .project-contracts-icon-btn--danger,
html body .product-list-row-delete,
html body .creation-row-del,
html body .expense-line-remove,
html body .ec-del-btn,
html body .project-hotel-chip-remove,
html body .project-hotel-extra-date-remove,
html body .top-notif-remove,
html body .compta-icon-btn--ok,
html body .payroll-mini-btn--ok,
html body .fire-avail-btn--yes,
html body .compta-icon-btn--warn,
html body .payroll-mini-btn--warn,
html body .modal-close,
html body .modal-close-modern,
html body .project-modal-close,
html body .pip-modal-close,
html body .video-modal__close,
html body .recovery-close-btn,
html body .nf-doc-scan-close,
html body .pip-style-popup__close,
html body .pip-toolbar-more-panel__close,
html body .filter-chip,
html body .settings-nav-pill,
html body .summary-chip,
html body .client-portal-tab,
html body .ec-tab,
html body .facturation-tab,
html body .arti-sign-mode-tab,
html body .planning-state-option,
html body .nf-chip-btn,
html body .settings-tab,
html body .recap-paye-month-tab,
html body .depot-cat-pill,
html body .pb-fire-pill,
html body .route-trip-segment__opt {
  border-radius: var(--mm-radius) !important;
  font-family: var(--mm-font) !important;
  text-shadow: none !important;
  background-image: none !important;
  border-color: transparent !important;
  transition: background-color .25s, color .25s, box-shadow .25s, border-color .25s !important;
  transform: none !important;
}
html body .action-btn:disabled,
html body .project-btn:disabled,
html body .doc-btn-soft:disabled,
html body .dashboard-task-btn:disabled,
html body .modal-btn-modern:disabled,
html body .payroll-btn:disabled,
html body .contact-btn-modern:disabled,
html body .depot-btn:disabled,
html body .ec-btn:disabled,
html body .prep-btn:disabled,
html body .recap-btn:disabled,
html body .pb-fire-modal-btn:disabled,
html body .fr-btn:disabled,
html body .db-btn:disabled,
html body .dash-panel-btn:disabled,
html body .dash-side-cta:disabled,
html body .cdt-doc-btn:disabled,
html body .cdt-refresh-btn:disabled,
html body .arti-doc-btn:disabled,
html body .arti-docs-refresh-btn:disabled,
html body .arti-contract-btn:disabled,
html body .arti-rail-cta:disabled,
html body .compta-doc-btn:disabled,
html body .compta-kpi-link-btn:disabled,
html body .facturation-relance-btn:disabled,
html body .project-docs-upload-btn:disabled,
html body .project-docs-mini-btn:disabled,
html body .project-materiel-apply-btn:disabled,
html body .project-hotel-extra-date-submit:disabled,
html body .nf-file-pick-btn:disabled,
html body .nf-doc-scan-capture:disabled,
html body .task-action-btn:disabled,
html body .btn-header:disabled,
html body .btn-add-line:disabled,
html body .creation-add-effect-btn:disabled,
html body .creation-transport-btn:disabled,
html body .creation-zoom-btn:disabled,
html body .taches-import-local-btn:disabled,
html body .product-list-clear-btn:disabled,
html body .product-list-total-reset:disabled,
html body .staff-contract-mark-signed-btn:disabled,
html body .pip-btn:disabled,
html body .pip-projets-btn:disabled,
html body .login-helper-btn:disabled,
html body .team-rdv-btn:disabled,
html body .team-artificier-profile-btn:disabled,
html body .team-cachet-role-btn:disabled,
html body .payroll-mini-btn:disabled,
html body .payroll-mark-all-arti:disabled,
html body .payroll-mark-all-proj:disabled,
html body .recap-pay-action:disabled,
html body .pipeline-status-open-btn:disabled,
html body .client-portal-reset-activity-btn:disabled,
html body .artificiers-tshirt-btn:disabled,
html body .artificiers-sort-btn:disabled,
html body .artificier-account-status-btn:disabled,
html body .clothing-order-edit-btn:disabled,
html body .fire-avail-btn:disabled,
html body .pb-nav-btn:disabled,
html body .ec-theme-listen-btn:disabled,
html body .ec-theme-pp-btn:disabled,
html body .si-vote-btn:disabled,
html body .suspended-btn:disabled,
html body .mobile-filters-toggle:disabled,
html body .outline-purple:disabled,
html body .top-notif-clear-btn:disabled,
html body .action-btn-soft:disabled,
html body .modal-btn-cancel:disabled,
html body .btn-cancel:disabled,
html body .btn-ghost:disabled,
html body .depot-btn--ghost:disabled,
html body .ec-btn-ghost:disabled,
html body .ec-btn-discreet:disabled,
html body .payroll-btn--ghost:disabled,
html body .pb-fire-modal-btn--ghost:disabled,
html body .pip-btn-ghost:disabled,
html body .pip-projets-btn--ghost:disabled,
html body .prep-btn--ghost:disabled,
html body .recap-btn--ghost:disabled,
html body .contact-btn-secondary:disabled,
html body .modern-cancel-btn:disabled,
html body .pip-display-btn-secondary:disabled,
html body .nf-doc-scan-cancel:disabled,
html body .action-btn.soft:disabled,
html body .project-btn.soft:disabled,
html body .action-btn-primary:disabled,
html body .action-btn.primary:disabled,
html body .project-btn.primary:disabled,
html body .primary-save-btn:disabled,
html body .doc-btn-primary:disabled,
html body .modal-btn-confirm:disabled,
html body .btn-create:disabled,
html body .btn-primary:disabled,
html body .depot-btn--primary:disabled,
html body .ec-btn-primary:disabled,
html body .mfa-btn-primary:disabled,
html body .payroll-btn--primary:disabled,
html body .pb-fire-modal-btn--primary:disabled,
html body .pip-btn-accent:disabled,
html body .pip-display-btn-primary:disabled,
html body .pip-projets-btn--primary:disabled,
html body .prep-btn--primary:disabled,
html body .prep-btn--accent:disabled,
html body .recap-btn--primary:disabled,
html body .arti-doc-btn--primary:disabled,
html body .arti-contract-sign-btn:disabled,
html body .login-btn:disabled,
html body .modern-confirm-btn:disabled,
html body .project-contracts-send-btn:disabled,
html body .fr-btn-generate:disabled,
html body .nf-rembourse-btn:disabled,
html body .payroll-btn.primary:disabled,
html body .icon-btn:disabled,
html body .compta-icon-btn:disabled,
html body .compta-eye-btn:disabled,
html body .depot-icon-btn:disabled,
html body .depot-step-btn:disabled,
html body .fleet-icon-btn:disabled,
html body .fleet-qty-btn:disabled,
html body .doc-btn-icon:disabled,
html body .arti-contract-icon-btn:disabled,
html body .arti-contract-btn-icon:disabled,
html body .arti-payslip-icon-btn:disabled,
html body .client-portal-file-icon-btn:disabled,
html body .client-portal-pass-toggle-btn:disabled,
html body .project-contracts-icon-btn:disabled,
html body .project-date-icon-btn:disabled,
html body .staff-contract-btn-icon:disabled,
html body .payroll-slip-icon-btn:disabled,
html body .row-btn:disabled,
html body .btn-attestation-row:disabled,
html body .btn-calendar-row:disabled,
html body .btn-contract-row:disabled,
html body .btn-feuille-route-row:disabled,
html body .btn-notify-row:disabled,
html body .btn-send-contract-row:disabled,
html body .btn-social-row:disabled,
html body .fr-btn-icon:disabled,
html body .fr-btn-add:disabled,
html body .fr-btn-preview:disabled,
html body .ec-view-btn:disabled,
html body .ec-dl-btn:disabled,
html body .team-row-actions-menu-btn:disabled,
html body .db-edit-btn:disabled,
html body .project-hotel-extra-date-quick:disabled,
html body .delete-btn:disabled,
html body .action-btn-danger:disabled,
html body .action-btn.danger:disabled,
html body .project-btn.danger:disabled,
html body .artificiers-btn-danger:disabled,
html body .contact-btn-danger:disabled,
html body .project-btn-danger-outline:disabled,
html body .pip-btn-danger:disabled,
html body .db-delete-btn:disabled,
html body .catalog-del-btn:disabled,
html body .nf-delete-btn:disabled,
html body .clothing-order-delete-btn:disabled,
html body .staff-contract-btn-delete:disabled,
html body .row-btn--delete:disabled,
html body .btn-delete-row:disabled,
html body .compta-icon-btn--danger:disabled,
html body .depot-icon-btn--danger:disabled,
html body .fleet-icon-btn--danger:disabled,
html body .client-portal-file-icon-btn--danger:disabled,
html body .client-portal-msg-delete:disabled,
html body .client-portal-ticket-delete:disabled,
html body .project-contracts-icon-btn--danger:disabled,
html body .product-list-row-delete:disabled,
html body .creation-row-del:disabled,
html body .expense-line-remove:disabled,
html body .ec-del-btn:disabled,
html body .project-hotel-chip-remove:disabled,
html body .project-hotel-extra-date-remove:disabled,
html body .top-notif-remove:disabled,
html body .compta-icon-btn--ok:disabled,
html body .payroll-mini-btn--ok:disabled,
html body .fire-avail-btn--yes:disabled,
html body .compta-icon-btn--warn:disabled,
html body .payroll-mini-btn--warn:disabled,
html body .modal-close:disabled,
html body .modal-close-modern:disabled,
html body .project-modal-close:disabled,
html body .pip-modal-close:disabled,
html body .video-modal__close:disabled,
html body .recovery-close-btn:disabled,
html body .nf-doc-scan-close:disabled,
html body .pip-style-popup__close:disabled,
html body .pip-toolbar-more-panel__close:disabled,
html body .filter-chip:disabled,
html body .settings-nav-pill:disabled,
html body .summary-chip:disabled,
html body .client-portal-tab:disabled,
html body .ec-tab:disabled,
html body .facturation-tab:disabled,
html body .arti-sign-mode-tab:disabled,
html body .planning-state-option:disabled,
html body .nf-chip-btn:disabled,
html body .settings-tab:disabled,
html body .recap-paye-month-tab:disabled,
html body .depot-cat-pill:disabled,
html body .pb-fire-pill:disabled,
html body .route-trip-segment__opt:disabled {
  opacity: .38 !important; cursor: not-allowed !important;
}

/* 1. Secondaire */
html body .action-btn,
html body .project-btn,
html body .doc-btn-soft,
html body .dashboard-task-btn,
html body .modal-btn-modern,
html body .payroll-btn,
html body .contact-btn-modern,
html body .depot-btn,
html body .ec-btn,
html body .prep-btn,
html body .recap-btn,
html body .pb-fire-modal-btn,
html body .fr-btn,
html body .db-btn,
html body .dash-panel-btn,
html body .dash-side-cta,
html body .cdt-doc-btn,
html body .cdt-refresh-btn,
html body .arti-doc-btn,
html body .arti-docs-refresh-btn,
html body .arti-contract-btn,
html body .arti-rail-cta,
html body .compta-doc-btn,
html body .compta-kpi-link-btn,
html body .facturation-relance-btn,
html body .project-docs-upload-btn,
html body .project-docs-mini-btn,
html body .project-materiel-apply-btn,
html body .project-hotel-extra-date-submit,
html body .nf-file-pick-btn,
html body .nf-doc-scan-capture,
html body .task-action-btn,
html body .btn-header,
html body .btn-add-line,
html body .creation-add-effect-btn,
html body .creation-transport-btn,
html body .creation-zoom-btn,
html body .taches-import-local-btn,
html body .product-list-clear-btn,
html body .product-list-total-reset,
html body .staff-contract-mark-signed-btn,
html body .pip-btn,
html body .pip-projets-btn,
html body .login-helper-btn,
html body .team-rdv-btn,
html body .team-artificier-profile-btn,
html body .team-cachet-role-btn,
html body .payroll-mini-btn,
html body .payroll-mark-all-arti,
html body .payroll-mark-all-proj,
html body .recap-pay-action,
html body .pipeline-status-open-btn,
html body .client-portal-reset-activity-btn,
html body .artificiers-tshirt-btn,
html body .artificiers-sort-btn,
html body .artificier-account-status-btn,
html body .clothing-order-edit-btn,
html body .fire-avail-btn,
html body .pb-nav-btn,
html body .ec-theme-listen-btn,
html body .ec-theme-pp-btn,
html body .si-vote-btn,
html body .suspended-btn,
html body .mobile-filters-toggle,
html body .outline-purple,
html body .top-notif-clear-btn {
  background-color: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.26) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(255,255,255,.26) !important;
  outline-offset: -1px !important;
}
html body .action-btn:hover:not(:disabled),
html body .project-btn:hover:not(:disabled),
html body .doc-btn-soft:hover:not(:disabled),
html body .dashboard-task-btn:hover:not(:disabled),
html body .modal-btn-modern:hover:not(:disabled),
html body .payroll-btn:hover:not(:disabled),
html body .contact-btn-modern:hover:not(:disabled),
html body .depot-btn:hover:not(:disabled),
html body .ec-btn:hover:not(:disabled),
html body .prep-btn:hover:not(:disabled),
html body .recap-btn:hover:not(:disabled),
html body .pb-fire-modal-btn:hover:not(:disabled),
html body .fr-btn:hover:not(:disabled),
html body .db-btn:hover:not(:disabled),
html body .dash-panel-btn:hover:not(:disabled),
html body .dash-side-cta:hover:not(:disabled),
html body .cdt-doc-btn:hover:not(:disabled),
html body .cdt-refresh-btn:hover:not(:disabled),
html body .arti-doc-btn:hover:not(:disabled),
html body .arti-docs-refresh-btn:hover:not(:disabled),
html body .arti-contract-btn:hover:not(:disabled),
html body .arti-rail-cta:hover:not(:disabled),
html body .compta-doc-btn:hover:not(:disabled),
html body .compta-kpi-link-btn:hover:not(:disabled),
html body .facturation-relance-btn:hover:not(:disabled),
html body .project-docs-upload-btn:hover:not(:disabled),
html body .project-docs-mini-btn:hover:not(:disabled),
html body .project-materiel-apply-btn:hover:not(:disabled),
html body .project-hotel-extra-date-submit:hover:not(:disabled),
html body .nf-file-pick-btn:hover:not(:disabled),
html body .nf-doc-scan-capture:hover:not(:disabled),
html body .task-action-btn:hover:not(:disabled),
html body .btn-header:hover:not(:disabled),
html body .btn-add-line:hover:not(:disabled),
html body .creation-add-effect-btn:hover:not(:disabled),
html body .creation-transport-btn:hover:not(:disabled),
html body .creation-zoom-btn:hover:not(:disabled),
html body .taches-import-local-btn:hover:not(:disabled),
html body .product-list-clear-btn:hover:not(:disabled),
html body .product-list-total-reset:hover:not(:disabled),
html body .staff-contract-mark-signed-btn:hover:not(:disabled),
html body .pip-btn:hover:not(:disabled),
html body .pip-projets-btn:hover:not(:disabled),
html body .login-helper-btn:hover:not(:disabled),
html body .team-rdv-btn:hover:not(:disabled),
html body .team-artificier-profile-btn:hover:not(:disabled),
html body .team-cachet-role-btn:hover:not(:disabled),
html body .payroll-mini-btn:hover:not(:disabled),
html body .payroll-mark-all-arti:hover:not(:disabled),
html body .payroll-mark-all-proj:hover:not(:disabled),
html body .recap-pay-action:hover:not(:disabled),
html body .pipeline-status-open-btn:hover:not(:disabled),
html body .client-portal-reset-activity-btn:hover:not(:disabled),
html body .artificiers-tshirt-btn:hover:not(:disabled),
html body .artificiers-sort-btn:hover:not(:disabled),
html body .artificier-account-status-btn:hover:not(:disabled),
html body .clothing-order-edit-btn:hover:not(:disabled),
html body .fire-avail-btn:hover:not(:disabled),
html body .pb-nav-btn:hover:not(:disabled),
html body .ec-theme-listen-btn:hover:not(:disabled),
html body .ec-theme-pp-btn:hover:not(:disabled),
html body .si-vote-btn:hover:not(:disabled),
html body .suspended-btn:hover:not(:disabled),
html body .mobile-filters-toggle:hover:not(:disabled),
html body .outline-purple:hover:not(:disabled),
html body .top-notif-clear-btn:hover:not(:disabled) {
  background-color: rgba(255,255,255,.06) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.75) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(255,255,255,.75) !important;
  outline-offset: -1px !important;
}

/* 2. Discret (annuler, secondaire doux) */
html body .action-btn-soft,
html body .modal-btn-cancel,
html body .btn-cancel,
html body .btn-ghost,
html body .depot-btn--ghost,
html body .ec-btn-ghost,
html body .ec-btn-discreet,
html body .payroll-btn--ghost,
html body .pb-fire-modal-btn--ghost,
html body .pip-btn-ghost,
html body .pip-projets-btn--ghost,
html body .prep-btn--ghost,
html body .recap-btn--ghost,
html body .contact-btn-secondary,
html body .modern-cancel-btn,
html body .pip-display-btn-secondary,
html body .nf-doc-scan-cancel,
html body .action-btn.soft,
html body .project-btn.soft {
  background-color: transparent !important;
  color: var(--mm-text-2) !important;
  border-color: rgba(255,255,255,.13) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(255,255,255,.13) !important;
  outline-offset: -1px !important;
}
html body .action-btn-soft:hover:not(:disabled),
html body .modal-btn-cancel:hover:not(:disabled),
html body .btn-cancel:hover:not(:disabled),
html body .btn-ghost:hover:not(:disabled),
html body .depot-btn--ghost:hover:not(:disabled),
html body .ec-btn-ghost:hover:not(:disabled),
html body .ec-btn-discreet:hover:not(:disabled),
html body .payroll-btn--ghost:hover:not(:disabled),
html body .pb-fire-modal-btn--ghost:hover:not(:disabled),
html body .pip-btn-ghost:hover:not(:disabled),
html body .pip-projets-btn--ghost:hover:not(:disabled),
html body .prep-btn--ghost:hover:not(:disabled),
html body .recap-btn--ghost:hover:not(:disabled),
html body .contact-btn-secondary:hover:not(:disabled),
html body .modern-cancel-btn:hover:not(:disabled),
html body .pip-display-btn-secondary:hover:not(:disabled),
html body .nf-doc-scan-cancel:hover:not(:disabled),
html body .action-btn.soft:hover:not(:disabled),
html body .project-btn.soft:hover:not(:disabled) {
  background-color: rgba(255,255,255,.04) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.35) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(255,255,255,.35) !important;
  outline-offset: -1px !important;
}

/* 3. Principal (or) */
html body .action-btn-primary,
html body .action-btn.primary,
html body .project-btn.primary,
html body .primary-save-btn,
html body .doc-btn-primary,
html body .modal-btn-confirm,
html body .btn-create,
html body .btn-primary,
html body .depot-btn--primary,
html body .ec-btn-primary,
html body .mfa-btn-primary,
html body .payroll-btn--primary,
html body .pb-fire-modal-btn--primary,
html body .pip-btn-accent,
html body .pip-display-btn-primary,
html body .pip-projets-btn--primary,
html body .prep-btn--primary,
html body .prep-btn--accent,
html body .recap-btn--primary,
html body .arti-doc-btn--primary,
html body .arti-contract-sign-btn,
html body .login-btn,
html body .modern-confirm-btn,
html body .project-contracts-send-btn,
html body .fr-btn-generate,
html body .nf-rembourse-btn,
html body .payroll-btn.primary {
  background-color: var(--mm-gold) !important;
  color: var(--mm-gold-ink) !important;
  border-color: var(--mm-gold) !important;
  box-shadow: none !important;
  outline: 1px solid var(--mm-gold) !important;
  outline-offset: -1px !important;
}
html body .action-btn-primary:hover:not(:disabled),
html body .action-btn.primary:hover:not(:disabled),
html body .project-btn.primary:hover:not(:disabled),
html body .primary-save-btn:hover:not(:disabled),
html body .doc-btn-primary:hover:not(:disabled),
html body .modal-btn-confirm:hover:not(:disabled),
html body .btn-create:hover:not(:disabled),
html body .btn-primary:hover:not(:disabled),
html body .depot-btn--primary:hover:not(:disabled),
html body .ec-btn-primary:hover:not(:disabled),
html body .mfa-btn-primary:hover:not(:disabled),
html body .payroll-btn--primary:hover:not(:disabled),
html body .pb-fire-modal-btn--primary:hover:not(:disabled),
html body .pip-btn-accent:hover:not(:disabled),
html body .pip-display-btn-primary:hover:not(:disabled),
html body .pip-projets-btn--primary:hover:not(:disabled),
html body .prep-btn--primary:hover:not(:disabled),
html body .prep-btn--accent:hover:not(:disabled),
html body .recap-btn--primary:hover:not(:disabled),
html body .arti-doc-btn--primary:hover:not(:disabled),
html body .arti-contract-sign-btn:hover:not(:disabled),
html body .login-btn:hover:not(:disabled),
html body .modern-confirm-btn:hover:not(:disabled),
html body .project-contracts-send-btn:hover:not(:disabled),
html body .fr-btn-generate:hover:not(:disabled),
html body .nf-rembourse-btn:hover:not(:disabled),
html body .payroll-btn.primary:hover:not(:disabled) {
  background-color: var(--mm-gold-hi) !important;
  color: var(--mm-gold-ink) !important;
  border-color: var(--mm-gold-hi) !important;
  box-shadow: none !important;
  outline: 1px solid var(--mm-gold-hi) !important;
  outline-offset: -1px !important;
}

/* 4. Icône */
html body .icon-btn,
html body .compta-icon-btn,
html body .compta-eye-btn,
html body .depot-icon-btn,
html body .depot-step-btn,
html body .fleet-icon-btn,
html body .fleet-qty-btn,
html body .doc-btn-icon,
html body .arti-contract-icon-btn,
html body .arti-contract-btn-icon,
html body .arti-payslip-icon-btn,
html body .client-portal-file-icon-btn,
html body .client-portal-pass-toggle-btn,
html body .project-contracts-icon-btn,
html body .project-date-icon-btn,
html body .staff-contract-btn-icon,
html body .payroll-slip-icon-btn,
html body .row-btn,
html body .btn-attestation-row,
html body .btn-calendar-row,
html body .btn-contract-row,
html body .btn-feuille-route-row,
html body .btn-notify-row,
html body .btn-send-contract-row,
html body .btn-social-row,
html body .fr-btn-icon,
html body .fr-btn-add,
html body .fr-btn-preview,
html body .ec-view-btn,
html body .ec-dl-btn,
html body .team-row-actions-menu-btn,
html body .db-edit-btn,
html body .project-hotel-extra-date-quick {
  background-color: rgba(212,168,86,.04) !important;
  color: var(--mm-text-2) !important;
  border-color: rgba(212,168,86,.28) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(212,168,86,.28) !important;
  outline-offset: -1px !important;
}
html body .icon-btn:hover:not(:disabled),
html body .compta-icon-btn:hover:not(:disabled),
html body .compta-eye-btn:hover:not(:disabled),
html body .depot-icon-btn:hover:not(:disabled),
html body .depot-step-btn:hover:not(:disabled),
html body .fleet-icon-btn:hover:not(:disabled),
html body .fleet-qty-btn:hover:not(:disabled),
html body .doc-btn-icon:hover:not(:disabled),
html body .arti-contract-icon-btn:hover:not(:disabled),
html body .arti-contract-btn-icon:hover:not(:disabled),
html body .arti-payslip-icon-btn:hover:not(:disabled),
html body .client-portal-file-icon-btn:hover:not(:disabled),
html body .client-portal-pass-toggle-btn:hover:not(:disabled),
html body .project-contracts-icon-btn:hover:not(:disabled),
html body .project-date-icon-btn:hover:not(:disabled),
html body .staff-contract-btn-icon:hover:not(:disabled),
html body .payroll-slip-icon-btn:hover:not(:disabled),
html body .row-btn:hover:not(:disabled),
html body .btn-attestation-row:hover:not(:disabled),
html body .btn-calendar-row:hover:not(:disabled),
html body .btn-contract-row:hover:not(:disabled),
html body .btn-feuille-route-row:hover:not(:disabled),
html body .btn-notify-row:hover:not(:disabled),
html body .btn-send-contract-row:hover:not(:disabled),
html body .btn-social-row:hover:not(:disabled),
html body .fr-btn-icon:hover:not(:disabled),
html body .fr-btn-add:hover:not(:disabled),
html body .fr-btn-preview:hover:not(:disabled),
html body .ec-view-btn:hover:not(:disabled),
html body .ec-dl-btn:hover:not(:disabled),
html body .team-row-actions-menu-btn:hover:not(:disabled),
html body .db-edit-btn:hover:not(:disabled),
html body .project-hotel-extra-date-quick:hover:not(:disabled) {
  background-color: rgba(212,168,86,.12) !important;
  color: var(--mm-gold) !important;
  border-color: rgba(212,168,86,.7) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(212,168,86,.7) !important;
  outline-offset: -1px !important;
}

/* 5. Suppression */
html body .delete-btn,
html body .action-btn-danger,
html body .action-btn.danger,
html body .project-btn.danger,
html body .artificiers-btn-danger,
html body .contact-btn-danger,
html body .project-btn-danger-outline,
html body .pip-btn-danger,
html body .db-delete-btn,
html body .catalog-del-btn,
html body .nf-delete-btn,
html body .clothing-order-delete-btn,
html body .staff-contract-btn-delete,
html body .row-btn--delete,
html body .btn-delete-row,
html body .compta-icon-btn--danger,
html body .depot-icon-btn--danger,
html body .fleet-icon-btn--danger,
html body .client-portal-file-icon-btn--danger,
html body .client-portal-msg-delete,
html body .client-portal-ticket-delete,
html body .project-contracts-icon-btn--danger,
html body .product-list-row-delete,
html body .creation-row-del,
html body .expense-line-remove,
html body .ec-del-btn,
html body .project-hotel-chip-remove,
html body .project-hotel-extra-date-remove,
html body .top-notif-remove {
  background-color: transparent !important;
  color: var(--mm-danger) !important;
  border-color: rgba(255,122,149,.4) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(255,122,149,.4) !important;
  outline-offset: -1px !important;
}
html body .delete-btn:hover:not(:disabled),
html body .action-btn-danger:hover:not(:disabled),
html body .action-btn.danger:hover:not(:disabled),
html body .project-btn.danger:hover:not(:disabled),
html body .artificiers-btn-danger:hover:not(:disabled),
html body .contact-btn-danger:hover:not(:disabled),
html body .project-btn-danger-outline:hover:not(:disabled),
html body .pip-btn-danger:hover:not(:disabled),
html body .db-delete-btn:hover:not(:disabled),
html body .catalog-del-btn:hover:not(:disabled),
html body .nf-delete-btn:hover:not(:disabled),
html body .clothing-order-delete-btn:hover:not(:disabled),
html body .staff-contract-btn-delete:hover:not(:disabled),
html body .row-btn--delete:hover:not(:disabled),
html body .btn-delete-row:hover:not(:disabled),
html body .compta-icon-btn--danger:hover:not(:disabled),
html body .depot-icon-btn--danger:hover:not(:disabled),
html body .fleet-icon-btn--danger:hover:not(:disabled),
html body .client-portal-file-icon-btn--danger:hover:not(:disabled),
html body .client-portal-msg-delete:hover:not(:disabled),
html body .client-portal-ticket-delete:hover:not(:disabled),
html body .project-contracts-icon-btn--danger:hover:not(:disabled),
html body .product-list-row-delete:hover:not(:disabled),
html body .creation-row-del:hover:not(:disabled),
html body .expense-line-remove:hover:not(:disabled),
html body .ec-del-btn:hover:not(:disabled),
html body .project-hotel-chip-remove:hover:not(:disabled),
html body .project-hotel-extra-date-remove:hover:not(:disabled),
html body .top-notif-remove:hover:not(:disabled) {
  background-color: rgba(255,122,149,.1) !important;
  color: #ffb3c2 !important;
  border-color: var(--mm-danger) !important;
  box-shadow: none !important;
  outline: 1px solid var(--mm-danger) !important;
  outline-offset: -1px !important;
}

/* Validation / alerte (variantes d’icônes) */
html body .compta-icon-btn--ok,
html body .payroll-mini-btn--ok,
html body .fire-avail-btn--yes {
  background-color: rgba(111,207,151,.06) !important;
  color: var(--mm-ok) !important;
  border-color: rgba(111,207,151,.4) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(111,207,151,.4) !important;
  outline-offset: -1px !important;
}
html body .compta-icon-btn--ok:hover:not(:disabled),
html body .payroll-mini-btn--ok:hover:not(:disabled),
html body .fire-avail-btn--yes:hover:not(:disabled) {
  background-color: rgba(111,207,151,.1) !important;
  border-color: var(--mm-ok) !important;
  box-shadow: none !important;
  outline: 1px solid var(--mm-ok) !important;
  outline-offset: -1px !important;
}
html body .compta-icon-btn--warn,
html body .payroll-mini-btn--warn {
  background-color: rgba(232,180,90,.06) !important;
  color: var(--mm-warn) !important;
  border-color: rgba(232,180,90,.4) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(232,180,90,.4) !important;
  outline-offset: -1px !important;
}
html body .compta-icon-btn--warn:hover:not(:disabled),
html body .payroll-mini-btn--warn:hover:not(:disabled) {
  background-color: rgba(232,180,90,.1) !important;
  border-color: var(--mm-warn) !important;
  box-shadow: none !important;
  outline: 1px solid var(--mm-warn) !important;
  outline-offset: -1px !important;
}

/* Fermer (×) — sans filet */
html body .modal-close,
html body .modal-close-modern,
html body .project-modal-close,
html body .pip-modal-close,
html body .video-modal__close,
html body .recovery-close-btn,
html body .nf-doc-scan-close,
html body .pip-style-popup__close,
html body .pip-toolbar-more-panel__close {
  background-color: transparent !important;
  color: var(--mm-muted) !important;
  box-shadow: none !important;
}
html body .modal-close:hover:not(:disabled),
html body .modal-close-modern:hover:not(:disabled),
html body .project-modal-close:hover:not(:disabled),
html body .pip-modal-close:hover:not(:disabled),
html body .video-modal__close:hover:not(:disabled),
html body .recovery-close-btn:hover:not(:disabled),
html body .nf-doc-scan-close:hover:not(:disabled),
html body .pip-style-popup__close:hover:not(:disabled),
html body .pip-toolbar-more-panel__close:hover:not(:disabled) {
  background-color: rgba(255,255,255,.06) !important;
  color: #fff !important;
}

/* Onglets, filtres, pastilles */
html body .filter-chip,
html body .settings-nav-pill,
html body .summary-chip,
html body .client-portal-tab,
html body .ec-tab,
html body .facturation-tab,
html body .arti-sign-mode-tab,
html body .planning-state-option,
html body .nf-chip-btn,
html body .settings-tab,
html body .recap-paye-month-tab,
html body .depot-cat-pill,
html body .pb-fire-pill,
html body .route-trip-segment__opt {
  background-color: transparent !important;
  color: var(--mm-muted) !important;
  border-color: rgba(255,255,255,.1) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(255,255,255,.1) !important;
  outline-offset: -1px !important;
}
html body .filter-chip:hover:not(:disabled),
html body .settings-nav-pill:hover:not(:disabled),
html body .summary-chip:hover:not(:disabled),
html body .client-portal-tab:hover:not(:disabled),
html body .ec-tab:hover:not(:disabled),
html body .facturation-tab:hover:not(:disabled),
html body .arti-sign-mode-tab:hover:not(:disabled),
html body .planning-state-option:hover:not(:disabled),
html body .nf-chip-btn:hover:not(:disabled),
html body .settings-tab:hover:not(:disabled),
html body .recap-paye-month-tab:hover:not(:disabled),
html body .depot-cat-pill:hover:not(:disabled),
html body .pb-fire-pill:hover:not(:disabled),
html body .route-trip-segment__opt:hover:not(:disabled) {
  color: #fff !important;
  background-color: rgba(255,255,255,.04) !important;
  border-color: rgba(212,168,86,.45) !important;
  box-shadow: none !important;
  outline: 1px solid rgba(212,168,86,.45) !important;
  outline-offset: -1px !important;
}
html body .filter-chip.active,
html body .filter-chip.is-active,
html body .filter-chip.on,
html body .filter-chip[aria-selected="true"],
html body .filter-chip[aria-pressed="true"],
html body .settings-nav-pill.active,
html body .settings-nav-pill.is-active,
html body .settings-nav-pill.on,
html body .settings-nav-pill[aria-selected="true"],
html body .settings-nav-pill[aria-pressed="true"],
html body .summary-chip.active,
html body .summary-chip.is-active,
html body .summary-chip.on,
html body .summary-chip[aria-selected="true"],
html body .summary-chip[aria-pressed="true"],
html body .client-portal-tab.active,
html body .client-portal-tab.is-active,
html body .client-portal-tab.on,
html body .client-portal-tab[aria-selected="true"],
html body .client-portal-tab[aria-pressed="true"],
html body .ec-tab.active,
html body .ec-tab.is-active,
html body .ec-tab.on,
html body .ec-tab[aria-selected="true"],
html body .ec-tab[aria-pressed="true"],
html body .facturation-tab.active,
html body .facturation-tab.is-active,
html body .facturation-tab.on,
html body .facturation-tab[aria-selected="true"],
html body .facturation-tab[aria-pressed="true"],
html body .arti-sign-mode-tab.active,
html body .arti-sign-mode-tab.is-active,
html body .arti-sign-mode-tab.on,
html body .arti-sign-mode-tab[aria-selected="true"],
html body .arti-sign-mode-tab[aria-pressed="true"],
html body .planning-state-option.active,
html body .planning-state-option.is-active,
html body .planning-state-option.on,
html body .planning-state-option[aria-selected="true"],
html body .planning-state-option[aria-pressed="true"],
html body .nf-chip-btn.active,
html body .nf-chip-btn.is-active,
html body .nf-chip-btn.on,
html body .nf-chip-btn[aria-selected="true"],
html body .nf-chip-btn[aria-pressed="true"],
html body .settings-tab.active,
html body .settings-tab.is-active,
html body .settings-tab.on,
html body .settings-tab[aria-selected="true"],
html body .settings-tab[aria-pressed="true"],
html body .recap-paye-month-tab.active,
html body .recap-paye-month-tab.is-active,
html body .recap-paye-month-tab.on,
html body .recap-paye-month-tab[aria-selected="true"],
html body .recap-paye-month-tab[aria-pressed="true"],
html body .depot-cat-pill.active,
html body .depot-cat-pill.is-active,
html body .depot-cat-pill.on,
html body .depot-cat-pill[aria-selected="true"],
html body .depot-cat-pill[aria-pressed="true"],
html body .pb-fire-pill.active,
html body .pb-fire-pill.is-active,
html body .pb-fire-pill.on,
html body .pb-fire-pill[aria-selected="true"],
html body .pb-fire-pill[aria-pressed="true"],
html body .route-trip-segment__opt.active,
html body .route-trip-segment__opt.is-active,
html body .route-trip-segment__opt.on,
html body .route-trip-segment__opt[aria-selected="true"],
html body .route-trip-segment__opt[aria-pressed="true"],
html body .ec-tab--active,
html body .filter-chip.active:hover,
html body .filter-chip.is-active:hover,
html body .filter-chip.on:hover,
html body .filter-chip[aria-selected="true"]:hover,
html body .filter-chip[aria-pressed="true"]:hover,
html body .settings-nav-pill.active:hover,
html body .settings-nav-pill.is-active:hover,
html body .settings-nav-pill.on:hover,
html body .settings-nav-pill[aria-selected="true"]:hover,
html body .settings-nav-pill[aria-pressed="true"]:hover,
html body .summary-chip.active:hover,
html body .summary-chip.is-active:hover,
html body .summary-chip.on:hover,
html body .summary-chip[aria-selected="true"]:hover,
html body .summary-chip[aria-pressed="true"]:hover,
html body .client-portal-tab.active:hover,
html body .client-portal-tab.is-active:hover,
html body .client-portal-tab.on:hover,
html body .client-portal-tab[aria-selected="true"]:hover,
html body .client-portal-tab[aria-pressed="true"]:hover,
html body .ec-tab.active:hover,
html body .ec-tab.is-active:hover,
html body .ec-tab.on:hover,
html body .ec-tab[aria-selected="true"]:hover,
html body .ec-tab[aria-pressed="true"]:hover,
html body .facturation-tab.active:hover,
html body .facturation-tab.is-active:hover,
html body .facturation-tab.on:hover,
html body .facturation-tab[aria-selected="true"]:hover,
html body .facturation-tab[aria-pressed="true"]:hover,
html body .arti-sign-mode-tab.active:hover,
html body .arti-sign-mode-tab.is-active:hover,
html body .arti-sign-mode-tab.on:hover,
html body .arti-sign-mode-tab[aria-selected="true"]:hover,
html body .arti-sign-mode-tab[aria-pressed="true"]:hover,
html body .planning-state-option.active:hover,
html body .planning-state-option.is-active:hover,
html body .planning-state-option.on:hover,
html body .planning-state-option[aria-selected="true"]:hover,
html body .planning-state-option[aria-pressed="true"]:hover,
html body .nf-chip-btn.active:hover,
html body .nf-chip-btn.is-active:hover,
html body .nf-chip-btn.on:hover,
html body .nf-chip-btn[aria-selected="true"]:hover,
html body .nf-chip-btn[aria-pressed="true"]:hover,
html body .settings-tab.active:hover,
html body .settings-tab.is-active:hover,
html body .settings-tab.on:hover,
html body .settings-tab[aria-selected="true"]:hover,
html body .settings-tab[aria-pressed="true"]:hover,
html body .recap-paye-month-tab.active:hover,
html body .recap-paye-month-tab.is-active:hover,
html body .recap-paye-month-tab.on:hover,
html body .recap-paye-month-tab[aria-selected="true"]:hover,
html body .recap-paye-month-tab[aria-pressed="true"]:hover,
html body .depot-cat-pill.active:hover,
html body .depot-cat-pill.is-active:hover,
html body .depot-cat-pill.on:hover,
html body .depot-cat-pill[aria-selected="true"]:hover,
html body .depot-cat-pill[aria-pressed="true"]:hover,
html body .pb-fire-pill.active:hover,
html body .pb-fire-pill.is-active:hover,
html body .pb-fire-pill.on:hover,
html body .pb-fire-pill[aria-selected="true"]:hover,
html body .pb-fire-pill[aria-pressed="true"]:hover,
html body .route-trip-segment__opt.active:hover,
html body .route-trip-segment__opt.is-active:hover,
html body .route-trip-segment__opt.on:hover,
html body .route-trip-segment__opt[aria-selected="true"]:hover,
html body .route-trip-segment__opt[aria-pressed="true"]:hover,
html body .ec-tab--active:hover {
  background-color: rgba(232,106,168,.12) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 1px solid var(--mm-pink) !important;
  outline-offset: -1px !important;
}

/* Focus clavier identique pour tous */
html body .action-btn:focus-visible,
html body .project-btn:focus-visible,
html body .doc-btn-soft:focus-visible,
html body .dashboard-task-btn:focus-visible,
html body .modal-btn-modern:focus-visible,
html body .payroll-btn:focus-visible,
html body .contact-btn-modern:focus-visible,
html body .depot-btn:focus-visible,
html body .ec-btn:focus-visible,
html body .prep-btn:focus-visible,
html body .recap-btn:focus-visible,
html body .pb-fire-modal-btn:focus-visible,
html body .fr-btn:focus-visible,
html body .db-btn:focus-visible,
html body .dash-panel-btn:focus-visible,
html body .dash-side-cta:focus-visible,
html body .cdt-doc-btn:focus-visible,
html body .cdt-refresh-btn:focus-visible,
html body .arti-doc-btn:focus-visible,
html body .arti-docs-refresh-btn:focus-visible,
html body .arti-contract-btn:focus-visible,
html body .arti-rail-cta:focus-visible,
html body .compta-doc-btn:focus-visible,
html body .compta-kpi-link-btn:focus-visible,
html body .facturation-relance-btn:focus-visible,
html body .project-docs-upload-btn:focus-visible,
html body .project-docs-mini-btn:focus-visible,
html body .project-materiel-apply-btn:focus-visible,
html body .project-hotel-extra-date-submit:focus-visible,
html body .nf-file-pick-btn:focus-visible,
html body .nf-doc-scan-capture:focus-visible,
html body .task-action-btn:focus-visible,
html body .btn-header:focus-visible,
html body .btn-add-line:focus-visible,
html body .creation-add-effect-btn:focus-visible,
html body .creation-transport-btn:focus-visible,
html body .creation-zoom-btn:focus-visible,
html body .taches-import-local-btn:focus-visible,
html body .product-list-clear-btn:focus-visible,
html body .product-list-total-reset:focus-visible,
html body .staff-contract-mark-signed-btn:focus-visible,
html body .pip-btn:focus-visible,
html body .pip-projets-btn:focus-visible,
html body .login-helper-btn:focus-visible,
html body .team-rdv-btn:focus-visible,
html body .team-artificier-profile-btn:focus-visible,
html body .team-cachet-role-btn:focus-visible,
html body .payroll-mini-btn:focus-visible,
html body .payroll-mark-all-arti:focus-visible,
html body .payroll-mark-all-proj:focus-visible,
html body .recap-pay-action:focus-visible,
html body .pipeline-status-open-btn:focus-visible,
html body .client-portal-reset-activity-btn:focus-visible,
html body .artificiers-tshirt-btn:focus-visible,
html body .artificiers-sort-btn:focus-visible,
html body .artificier-account-status-btn:focus-visible,
html body .clothing-order-edit-btn:focus-visible,
html body .fire-avail-btn:focus-visible,
html body .pb-nav-btn:focus-visible,
html body .ec-theme-listen-btn:focus-visible,
html body .ec-theme-pp-btn:focus-visible,
html body .si-vote-btn:focus-visible,
html body .suspended-btn:focus-visible,
html body .mobile-filters-toggle:focus-visible,
html body .outline-purple:focus-visible,
html body .top-notif-clear-btn:focus-visible,
html body .action-btn-soft:focus-visible,
html body .modal-btn-cancel:focus-visible,
html body .btn-cancel:focus-visible,
html body .btn-ghost:focus-visible,
html body .depot-btn--ghost:focus-visible,
html body .ec-btn-ghost:focus-visible,
html body .ec-btn-discreet:focus-visible,
html body .payroll-btn--ghost:focus-visible,
html body .pb-fire-modal-btn--ghost:focus-visible,
html body .pip-btn-ghost:focus-visible,
html body .pip-projets-btn--ghost:focus-visible,
html body .prep-btn--ghost:focus-visible,
html body .recap-btn--ghost:focus-visible,
html body .contact-btn-secondary:focus-visible,
html body .modern-cancel-btn:focus-visible,
html body .pip-display-btn-secondary:focus-visible,
html body .nf-doc-scan-cancel:focus-visible,
html body .action-btn.soft:focus-visible,
html body .project-btn.soft:focus-visible,
html body .action-btn-primary:focus-visible,
html body .action-btn.primary:focus-visible,
html body .project-btn.primary:focus-visible,
html body .primary-save-btn:focus-visible,
html body .doc-btn-primary:focus-visible,
html body .modal-btn-confirm:focus-visible,
html body .btn-create:focus-visible,
html body .btn-primary:focus-visible,
html body .depot-btn--primary:focus-visible,
html body .ec-btn-primary:focus-visible,
html body .mfa-btn-primary:focus-visible,
html body .payroll-btn--primary:focus-visible,
html body .pb-fire-modal-btn--primary:focus-visible,
html body .pip-btn-accent:focus-visible,
html body .pip-display-btn-primary:focus-visible,
html body .pip-projets-btn--primary:focus-visible,
html body .prep-btn--primary:focus-visible,
html body .prep-btn--accent:focus-visible,
html body .recap-btn--primary:focus-visible,
html body .arti-doc-btn--primary:focus-visible,
html body .arti-contract-sign-btn:focus-visible,
html body .login-btn:focus-visible,
html body .modern-confirm-btn:focus-visible,
html body .project-contracts-send-btn:focus-visible,
html body .fr-btn-generate:focus-visible,
html body .nf-rembourse-btn:focus-visible,
html body .payroll-btn.primary:focus-visible,
html body .icon-btn:focus-visible,
html body .compta-icon-btn:focus-visible,
html body .compta-eye-btn:focus-visible,
html body .depot-icon-btn:focus-visible,
html body .depot-step-btn:focus-visible,
html body .fleet-icon-btn:focus-visible,
html body .fleet-qty-btn:focus-visible,
html body .doc-btn-icon:focus-visible,
html body .arti-contract-icon-btn:focus-visible,
html body .arti-contract-btn-icon:focus-visible,
html body .arti-payslip-icon-btn:focus-visible,
html body .client-portal-file-icon-btn:focus-visible,
html body .client-portal-pass-toggle-btn:focus-visible,
html body .project-contracts-icon-btn:focus-visible,
html body .project-date-icon-btn:focus-visible,
html body .staff-contract-btn-icon:focus-visible,
html body .payroll-slip-icon-btn:focus-visible,
html body .row-btn:focus-visible,
html body .btn-attestation-row:focus-visible,
html body .btn-calendar-row:focus-visible,
html body .btn-contract-row:focus-visible,
html body .btn-feuille-route-row:focus-visible,
html body .btn-notify-row:focus-visible,
html body .btn-send-contract-row:focus-visible,
html body .btn-social-row:focus-visible,
html body .fr-btn-icon:focus-visible,
html body .fr-btn-add:focus-visible,
html body .fr-btn-preview:focus-visible,
html body .ec-view-btn:focus-visible,
html body .ec-dl-btn:focus-visible,
html body .team-row-actions-menu-btn:focus-visible,
html body .db-edit-btn:focus-visible,
html body .project-hotel-extra-date-quick:focus-visible,
html body .delete-btn:focus-visible,
html body .action-btn-danger:focus-visible,
html body .action-btn.danger:focus-visible,
html body .project-btn.danger:focus-visible,
html body .artificiers-btn-danger:focus-visible,
html body .contact-btn-danger:focus-visible,
html body .project-btn-danger-outline:focus-visible,
html body .pip-btn-danger:focus-visible,
html body .db-delete-btn:focus-visible,
html body .catalog-del-btn:focus-visible,
html body .nf-delete-btn:focus-visible,
html body .clothing-order-delete-btn:focus-visible,
html body .staff-contract-btn-delete:focus-visible,
html body .row-btn--delete:focus-visible,
html body .btn-delete-row:focus-visible,
html body .compta-icon-btn--danger:focus-visible,
html body .depot-icon-btn--danger:focus-visible,
html body .fleet-icon-btn--danger:focus-visible,
html body .client-portal-file-icon-btn--danger:focus-visible,
html body .client-portal-msg-delete:focus-visible,
html body .client-portal-ticket-delete:focus-visible,
html body .project-contracts-icon-btn--danger:focus-visible,
html body .product-list-row-delete:focus-visible,
html body .creation-row-del:focus-visible,
html body .expense-line-remove:focus-visible,
html body .ec-del-btn:focus-visible,
html body .project-hotel-chip-remove:focus-visible,
html body .project-hotel-extra-date-remove:focus-visible,
html body .top-notif-remove:focus-visible,
html body .compta-icon-btn--ok:focus-visible,
html body .payroll-mini-btn--ok:focus-visible,
html body .fire-avail-btn--yes:focus-visible,
html body .compta-icon-btn--warn:focus-visible,
html body .payroll-mini-btn--warn:focus-visible,
html body .modal-close:focus-visible,
html body .modal-close-modern:focus-visible,
html body .project-modal-close:focus-visible,
html body .pip-modal-close:focus-visible,
html body .video-modal__close:focus-visible,
html body .recovery-close-btn:focus-visible,
html body .nf-doc-scan-close:focus-visible,
html body .pip-style-popup__close:focus-visible,
html body .pip-toolbar-more-panel__close:focus-visible,
html body .filter-chip:focus-visible,
html body .settings-nav-pill:focus-visible,
html body .summary-chip:focus-visible,
html body .client-portal-tab:focus-visible,
html body .ec-tab:focus-visible,
html body .facturation-tab:focus-visible,
html body .arti-sign-mode-tab:focus-visible,
html body .planning-state-option:focus-visible,
html body .nf-chip-btn:focus-visible,
html body .settings-tab:focus-visible,
html body .recap-paye-month-tab:focus-visible,
html body .depot-cat-pill:focus-visible,
html body .pb-fire-pill:focus-visible,
html body .route-trip-segment__opt:focus-visible {
  outline: 1px solid var(--mm-pink) !important; outline-offset: 2px !important;
}

/* ---------- formulaires */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html body select,
html body textarea {
  font-family: var(--mm-font);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mm-radius);
  color: #fff;
}
html body input:not([type="checkbox"]):not([type="radio"]):focus,
html body select:focus,
html body textarea:focus { border-color: var(--mm-pink); box-shadow: 0 0 0 3px rgba(232, 106, 168, 0.12); outline: none; }
html body select option { background: var(--mm-panel); color: #fff; }
html body input[type="checkbox"], html body input[type="radio"] { accent-color: var(--mm-pink); }
html body input[type="date"], html body input[type="time"], html body input[type="datetime-local"] { color-scheme: dark; }
html body label { font-family: var(--mm-font); }

/* ---------- tableaux */
html body table th,
html body .projects-table th,
html body .team-table th {
  font-family: var(--mm-font); font-size: 10.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mm-gold); background: transparent; border-bottom: 1px solid var(--mm-line-strong);
}
html body table td,
html body .projects-table td,
html body .team-table td { border-bottom-color: var(--mm-line-soft); }
html body .projects-table tbody tr:hover,
html body .team-table tbody tr:hover { background: rgba(212, 168, 86, 0.05); }

/* ---------- modales (familles existantes) */
html body .modal-content,
html body .project-modal-card,
html body .pip-modal-box,
html body .settings-modal,
html body .video-modal__box,
html body .pdf-viewer-box {
  background: var(--mm-panel);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-lg);
  box-shadow: var(--mm-shadow);
  font-family: var(--mm-font);
}
html body .project-modal-header,
html body .pip-modal-head,
html body .video-modal__head,
html body .pdf-viewer-header { border-bottom: 1px solid var(--mm-line); }
html body .project-modal-footer,
html body .pip-modal-actions { border-top: 1px solid var(--mm-line); }
html body .project-modal-overlay,
html body .pip-modal-backdrop,
html body .pip-projets-modal-overlay { background: rgba(4, 3, 8, 0.72); }

/* ---------- liens */
html body .main a:not([class]) { color: var(--mm-gold); }
html body .main a:not([class]):hover { color: var(--mm-gold-hi); }

/* ---------- bandeau « instance de test » (affiché seulement si APP_ENV=test) */
.mm-env-banner {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2000;
  padding: 7px 16px; border: 1px solid var(--mm-pink); background: rgba(10, 6, 19, 0.92); color: var(--mm-pink);
  font: 400 10.5px/1 var(--mm-font); letter-spacing: 0.3em; text-transform: uppercase; pointer-events: none;
}
