/* ==================================================== */
/* DESIGN ET MISE EN PAGE                               */
/* ==================================================== */
:root {
  --bleu-nuit: #0f172a;
  --bleu-hover: #1e293b;
  --bleu-electrique: #2563eb;
  --orange-vif: #f97316;
  --orange-hover: #ea580c;
  --fond-ecran: #f1f5f9;
  --texte-principal: #334155;
  --gris-bordure: #cbd5e1;
  --vert-succes: #10b981;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  display: flex;
  height: 100vh;
  background-color: var(--fond-ecran);
  color: var(--texte-principal);
  overflow: hidden;
}
#contenu-app {
  display: none;
  width: 100%;
  height: 100vh;
}

/* --- NOUVEAUTÉ : PERSONNALISATION DE LA BARRE DE DÉFILEMENT --- */
::-webkit-scrollbar {
  width: 8px; /* Largeur de la barre verticale */
  height: 8px; /* Hauteur de la barre horizontale */
}
::-webkit-scrollbar-track {
  background: transparent; /* Fond invisible */
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* Couleur grise discrète */
  border-radius: 10px; /* Bords bien arrondis */
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* Devient un peu plus foncée quand on passe la souris */
}

#ecran-connexion {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: var(--bleu-nuit);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
.box-connexion {
  background: white;
  width: 380px;
  text-align: center;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-top: 5px solid var(--orange-vif);
  box-sizing: border-box;
}
.box-connexion h2 {
  color: var(--bleu-nuit);
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.box-connexion p {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 25px;
}

#mobile-header {
  display: none;
}
#overlay-menu {
  display: none;
}

.menu-lateral {
  flex-shrink: 0;
  min-width: 260px;
  width: 260px;
  background-color: var(--bleu-nuit);
  color: white;
  padding: 25px 0 0 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}
.menu-lateral h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
}
.menu-lateral a {
  display: block;
  color: #cbd5e1;
  padding: 15px 25px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}
.menu-lateral a:hover {
  background-color: var(--bleu-hover);
  color: white;
  padding-left: 32px;
}
.menu-lateral a.actif {
  background-color: var(--bleu-electrique);
  color: white;
  font-weight: bold;
  border-left: 6px solid var(--orange-vif);
  padding-left: 19px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contenu-principal {
  min-width: 0;
  flex-grow: 1;
  padding: 30px 40px;
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
}
.carte {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #ffffff;
  margin-bottom: 25px;
  position: relative;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
  animation: apparitionDouce 0.4s ease-out; /* On ajoute l'animation ici */
}

/* On crée la règle de l'animation juste en dessous */
@keyframes apparitionDouce {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#cloud-status {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 13px;
  font-weight: bold;
  color: var(--vert-succes);
  background: #ecfdf5;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}
.pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--vert-succes);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    opacity: 1;
  }
}

/* DESIGN DES SECTIONS AUTOCERFA */
.mega-form-section {
  margin-bottom: 45px;
}
.mega-form-titre {
  color: #334155;
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--bleu-electrique);
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
}

/* DESIGN DES CHAMPS SANS BORDURES (Style AutoCerfa) */
.form-groupe {
  margin-bottom: 5px;
  background-color: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 12px 4px 12px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}
.form-groupe label {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: normal;
  transition: color 0.3s ease;
}

/* NOUVEAUTÉ : Effet "Focus" quand on clique dans le champ */
.form-groupe:focus-within {
  border-bottom: 2px solid var(--bleu-electrique);
  background-color: #f8fafc;
}
.form-groupe:focus-within label {
  color: var(--bleu-electrique);
  font-weight: bold;
}
.icon-help {
  background: #334155;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  margin-left: 8px;
  font-weight: bold;
  cursor: help;
}
.form-groupe input,
.form-groupe select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}

.form-groupe.champ-surligne {
  background-color: #e0f2fe !important; /* Un bleu un tout petit peu plus foncé (plus visible) */
  border-bottom: 2px solid #0ea5e9 !important; /* On garde bien la barre en bas ! */
}
.form-groupe.champ-surligne label {
  color: #0369a1 !important;
}

.btn-principal {
  padding: 16px 20px;
  background-color: var(--orange-vif);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.btn-principal:hover {
  background-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}
.btn-supprimer {
  background-color: #ef4444;
  padding: 6px 12px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-editer {
  background-color: var(--bleu-electrique);
  padding: 6px 12px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
}

.table-standard,
.table-mon-stock,
.table-ventes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.table-standard th,
.table-mon-stock th,
.table-ventes th {
  background-color: #f8fafc;
  color: #64748b;
  padding: 16px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
}
.table-standard td,
.table-mon-stock td,
.table-ventes td {
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
/* Effet surligneur au passage de la souris */
.table-standard tbody tr:hover,
.table-mon-stock tbody tr:hover,
.table-ventes tbody tr:hover {
  background-color: #f1f5f9;
  transition: background-color 0.2s ease;
  cursor: default;
}
.badge-ordre {
  background-color: #e0f2fe;
  color: var(--bleu-electrique);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  min-width: 25px;
  text-align: center;
  border: 1px solid #bae6fd;
}
.badge-facture {
  background-color: var(--vert-succes);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

.dashboard-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.dash-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 5px solid var(--bleu-electrique);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
}
.dash-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.dash-card h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
}
.dash-card p {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--bleu-nuit);
}

.doc-section {
  margin-bottom: 30px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}
.doc-section h3 {
  color: var(--bleu-nuit);
  border-bottom: 2px solid var(--orange-vif);
  padding-bottom: 8px;
  font-size: 15px;
  display: inline-block;
  margin-bottom: 15px;
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-list li {
  margin-bottom: 12px;
}
.doc-list a {
  color: var(--bleu-electrique);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  font-weight: 500;
  cursor: pointer;
}
.doc-list a:hover {
  color: var(--orange-vif);
  text-decoration: underline;
}

.table-police {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  background: white;
  white-space: nowrap;
  border: 2px solid #cbd5e1;
}
.table-police th,
.table-police td {
  border: 1px solid #cbd5e1;
  padding: 8px;
  text-align: center;
}
.table-police th {
  background-color: var(--bleu-nuit);
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 9px;
}
.table-police .th-main {
  background-color: #1e293b;
  font-size: 10px;
}
.police-td-left {
  text-align: left !important;
  white-space: normal;
  min-width: 120px;
  font-size: 10px;
  line-height: 1.3;
}

#bandeau-edition {
  display: none;
  background-color: var(--bleu-electrique);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: bold;
  align-items: center;
  justify-content: space-between;
}
#btn-annuler-edition {
  background: white;
  color: var(--bleu-electrique);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#menu-documents-rapides {
  display: none;
  background-color: #f8fafc;
  border: 2px solid #8b5cf6;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.titre-docs-rapides {
  color: #8b5cf6;
  font-size: 14px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.grille-boutons-docs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-doc-auto {
  background-color: white;
  border: 1px solid #cbd5e1;
  color: var(--bleu-nuit);
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}
.btn-doc-auto:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  #contenu-app {
    flex-direction: column;
  }
  #mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bleu-nuit);
    color: white;
    padding: 15px 20px;
    z-index: 1000;
  }
  .menu-lateral {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    width: 260px;
    transition: left 0.3s ease;
    z-index: 2000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  }
  .menu-lateral.ouvert {
    left: 0;
  }
  #overlay-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
  }
  #overlay-menu.ouvert {
    display: block;
  }
  .contenu-principal {
    width: 100%;
    padding: 15px;
    padding-bottom: 120px !important;
    height: calc(100vh - 65px);
    overflow-y: auto !important;
  }
  #btn-faire-signer,
  #btn-validation-dossier {
    width: 100% !important;
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    box-sizing: border-box !important;
  }
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .box-connexion {
    width: 90%;
    padding: 30px 20px;
  }
  .btn-editer,
  .btn-supprimer {
    width: 100%;
    margin: 0;
    text-align: center;
    margin-bottom: 5px;
  }
  .mega-form-titre {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .mega-form-titre select,
  .mega-form-titre > div {
    position: static !important;
    width: 100% !important;
    margin-top: 5px;
  }
}

/* STYLE POUR L'IMPRESSION */
#zone-impression {
  display: none;
}
@media print {
  @page {
    margin: 0;
    size: A4 portrait;
  } /* Retire les marges forcées par le téléphone */
  html,
  body {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    background-color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    color: black !important;
  }
  #contenu-app,
  #ecran-connexion,
  .menu-lateral,
  .contenu-principal,
  #mobile-header,
  #overlay-menu {
    display: none !important;
  }
  #zone-impression {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 5mm !important;
    box-sizing: border-box !important;
  }

  .format-police {
    display: block !important;
    width: 100%;
  }
  @page police-page {
    size: A4 landscape;
    margin: 5mm;
  }
  .format-police {
    page: police-page;
  }

  /* --- COMPRESSION MAXIMALE POUR FACTURE/BDC SUR MOBILE --- */
  .doc-custom {
    font-size: 10px !important; /* On regrossit un tout petit peu la police */
    padding: 0 !important;
    height: 285mm !important; /* On force la facture à prendre EXACTEMENT la hauteur d'une page A4 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* MAGIE : Répartit l'espace vide harmonieusement entre chaque bloc ! */
    overflow: hidden !important;
  }
  .doc-custom h1 {
    font-size: 16px !important;
    margin-bottom: 2px !important;
  }
  .doc-custom-header {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
  }
  .doc-custom-logo img {
    max-height: 50px !important;
  }
  .doc-custom-block-container,
  .doc-custom-fullblock,
  .doc-custom-prix-container {
    margin-bottom: 5px !important;
  }
  .doc-custom-block-content {
    padding: 4px !important;
  }
  .doc-custom-block-header {
    padding: 2px 5px !important;
    font-size: 10px !important;
  }
  .doc-custom-item {
    padding: 1px 0 !important;
    margin-bottom: 0 !important;
  }
  .doc-custom-grid-2 {
    gap: 2px 15px !important;
  }
  .doc-custom-prix-left,
  .doc-custom-prix-right {
    padding: 4px !important;
  }
  .doc-custom-prix-left div,
  .doc-custom-prix-right div {
    margin-bottom: 2px !important;
  }
  .doc-custom-sign-box {
    height: 75px !important;
    padding: 5px !important;
  }
  .doc-custom-sign-box img {
    max-height: 45px !important;
  }
  .doc-custom-obs {
    margin-bottom: 5px !important;
    min-height: 25px !important;
    padding: 5px !important;
  }
  .doc-custom-signs {
    margin-top: 5px !important;
  }

  /* --- Style Cerfa intact --- */
  .cerfa-container {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
  }
  .cerfa-header {
    text-align: center;
    border-bottom: 2px solid black;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  .cerfa-titre {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
  }
  .cerfa-num {
    font-size: 14px;
    color: #555;
  }
  .cerfa-section {
    border: 1px solid #000;
    margin-bottom: 15px;
    padding: 10px;
    position: relative;
  }
  .cerfa-section-titre {
    background: white;
    font-weight: bold;
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 0 5px;
    font-size: 14px;
  }
  .cerfa-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .cerfa-col {
    flex: 1;
    padding: 0 10px;
  }
  .cerfa-label {
    color: #555;
    font-size: 10px;
    display: block;
  }
  .cerfa-value {
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px dotted #ccc;
    display: block;
    min-height: 18px;
  }
  .cerfa-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }
  .cerfa-box-sign {
    border: 1px dashed #000;
    width: 45%;
    height: 100px;
    padding: 5px;
  }
}
/* ==================================================== */
/* NOTIFICATIONS (TOASTS)                               */
/* ==================================================== */
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: white;
  color: var(--bleu-nuit);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(150%); /* Caché sur la droite au début */
  transition: transform 0.3s ease-out;
  border-left: 5px solid var(--bleu-electrique);
}

.toast.show {
  transform: translateX(0); /* Glisse vers la gauche pour s'afficher */
}

.toast.success {
  border-left-color: var(--vert-succes);
}
.toast.error {
  border-left-color: #ef4444;
}

/* ==================================================== */
/* FENETRES DE CONFIRMATION (MODALES)                   */
/* ==================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7); /* Fond noir transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001; /* Au-dessus de tout le reste */
}
.modal-box {
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  width: 400px;
  max-width: 90%;
  border-top: 5px solid #ef4444; /* Bordure rouge en haut */
  animation: popModal 0.2s ease-out;
}
@keyframes popModal {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.btn-secondaire {
  padding: 10px 20px;
  background-color: #e2e8f0;
  color: #334155;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-secondaire:hover {
  background-color: #cbd5e1;
}

/* --- ASTUCE : DESIGN DES BOUTONS FILTRES --- */
.btn-filtre {
  background-color: white;
  border: 1px solid #cbd5e1;
  color: var(--bleu-nuit);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-filtre:hover {
  border-color: var(--bleu-electrique);
  background-color: #f1f5f9;
  transform: translateY(-2px);
}
.btn-filtre.actif {
  background-color: var(--bleu-electrique);
  color: white;
  border-color: var(--bleu-electrique);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* ==================================================== */
/* NOUVEAUTÉS : ERGONOMIE ET FLUIDITÉ                   */
/* ==================================================== */
/* 1. Bouton Ascenseur */
#btn-ascenseur {
  position: fixed;
  bottom: 30px;
  left: 30px; /* En bas à gauche pour ne pas gêner le bouton valider */
  background-color: var(--bleu-nuit);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
}
#btn-ascenseur:hover {
  background-color: var(--bleu-electrique);
  transform: translateY(-5px);
}

/* 2. Transition fluide des pages */
.vue-animee {
  animation: glissementFluide 0.3s ease-out;
}
@keyframes glissementFluide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================== */
/* VOS COULEURS PASTELLES ET DESIGN AÉRÉ                */
/* ==================================================== */

/* 1. On rend les conteneurs principaux totalement transparents */
#vue-dashboard,
#vue-clients,
#vue-monstock,
#vue-ventes,
#vue-compta,
#vue-calculette,
#vue-documents,
#vue-police,
#vue-saisie {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 2. On désintègre les fonds blancs inscrits "en dur" dans le code HTML (Stock, Ventes, Compta, Police) */
#vue-monstock > div,
#vue-ventes .carte,
#vue-ventes .carte > div,
#vue-compta > div,
#vue-police > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 3. Vos couleurs pastelles pour chaque page */
body.theme-dashboard {
  background-color: #fefce8 !important;
} /* Jaune très pâle */
body.theme-clients {
  background-color: #dcfce7 !important;
} /* Vert pastel */
body.theme-monstock {
  background-color: #bae6fd !important;
} /* Bleu un peu plus foncé */
body.theme-ventes {
  background-color: #ede9fe !important;
} /* Violet pastel */
body.theme-compta {
  background-color: #fee2e2 !important;
} /* Rouge pastel */
body.theme-calculette {
  background-color: #fce7f3 !important;
} /* Rose pastel */
body.theme-documents {
  background-color: #f5e6d3 !important;
} /* Marron / Sable pastel */
body.theme-police {
  background-color: #f3f4f6 !important;
} /* Gris perle très doux */
body.theme-saisie {
  background-color: #f1f5f9 !important;
} /* Gris doux */

/* 4. On garde UNIQUEMENT les tableaux et les mini-cartes (Dashboard) en blanc */
.dash-card,
.table-standard,
.table-mon-stock,
.table-ventes,
.table-police {
  background-color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  border-radius: 8px !important;
}

/* 5. Effet "Surligneur" au passage de la souris sur les tableaux */
.table-standard tbody tr:hover,
.table-mon-stock tbody tr:hover,
.table-ventes tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
  transition: background-color 0.2s;
}

/* --- ASTUCE : BOUTON DE SAUVEGARDE TOUJOURS VISIBLE --- */
#btn-validation-dossier {
  position: fixed !important;
  bottom: 30px !important;
  right: 40px !important;
  width: 350px !important;
  z-index: 1000 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  border: 3px solid white !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  #btn-validation-dossier {
    right: 50% !important;
    transform: translateX(50%) !important;
    width: 90% !important;
    bottom: 20px !important;
  }
}

/* Espace supplémentaire en bas pour éviter le chevauchement */
.contenu-principal {
  padding-bottom: 120px !important;
}
