/* ========== MARMARA STYLE - VERSION SIMPLIFIÉE ET NON INTRUSIVE ========== */

/* ========== RÉINITIALISATION MINIMALE ========== */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e293b;
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 100px; /* Espace supplémentaire pour la navigation */
}

/* ========== LOGO + HEADER ========== */
header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 25px;
  position: relative;
}

header img {
  width: 140px; /* Réduit pour tenir sur une page */
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.15));
}

header h2 {
  background: linear-gradient(135deg, #22503f 0%, #2d6a4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8em; /* Réduit pour tenir sur une page */
  font-weight: 700;
  margin: 15px 0;
  text-shadow: 0 2px 10px rgba(34, 80, 63, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== CONTAINER COMMUN (UNIQUEMENT SI CLASSE EXPLICITE) ========== */
.container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  max-width: 1600px; /* Augmenté pour accommoder 3 colonnes de livraison */
  margin: 20px auto;
  padding: 40px; /* Augmenté pour plus d'espace intérieur */
  border-radius: 25px; /* Augmenté pour un look plus moderne */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4); /* Contour plus visible */
  margin-bottom: 80px; /* Réduit pour tenir sur une page */
}

/* ========== LOGIN CONTAINER (UNIQUEMENT POUR LOGIN) ========== */
.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  max-width: 400px;
  margin: 30px auto;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== TITRES (UNIQUEMENT SI PAS DE STYLE LOCAL) ========== */
h1:not([style]), h2:not([style]) {
  color: #22503f;
  text-align: center;
  margin-bottom: 25px;
}

/* ========== GRILLE ACCUEIL MODERNISÉE ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Changé de 2 à 3 colonnes */
  gap: 20px; /* Réduit pour accommoder 3 blocs par ligne */
  max-width: 1100px; /* Augmenté pour 3 blocs par ligne */
  margin: 20px auto;
  padding: 0;
  margin-bottom: 80px; /* Réduit pour tenir sur une page */
}

.grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px; /* Ajusté pour les blocs plus petits */
  border-radius: 18px; /* Ajusté pour les blocs plus petits */
  text-align: center;
  font-weight: 700; /* Plus gras pour plus de visibilité */
  color: white;
  font-size: 15px; /* Ajusté pour les blocs plus petits */
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 100px; /* Ajusté pour les blocs plus compacts */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Couleurs plus vives et contrastées pour une meilleure visibilité */
.grid a:nth-child(1) {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: rgba(59, 130, 246, 0.3);
}

.grid a:nth-child(2) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: rgba(16, 185, 129, 0.3);
}

.grid a:nth-child(3) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-color: rgba(245, 158, 11, 0.3);
}

.grid a:nth-child(4) {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border-color: rgba(139, 92, 246, 0.3);
}

.grid a:nth-child(5) {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border-color: rgba(6, 182, 212, 0.3);
}

.grid a:nth-child(6) {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: white;
  border-color: rgba(132, 204, 22, 0.3);
}

.grid a:nth-child(7) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border-color: rgba(249, 115, 22, 0.3);
}

.grid a:nth-child(8) {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
  border-color: rgba(236, 72, 153, 0.3);
}

.grid a:nth-child(9) {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: white;
  border-color: rgba(20, 184, 166, 0.3);
}

.grid a:nth-child(10) {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  border-color: rgba(107, 114, 128, 0.3);
}

.grid a:nth-child(11) {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: white;
  border-color: rgba(244, 63, 94, 0.3);
}

.grid a:nth-child(12) {
  background: linear-gradient(135deg, #8b5a3c 0%, #6d4c28 100%);
  color: white;
  border-color: rgba(139, 90, 60, 0.3);
}

.grid a:nth-child(13) {
  background: linear-gradient(135deg, #7c2d12 0%, #991b1b 100%);
  color: white;
  border-color: rgba(124, 45, 18, 0.3);
}

.grid a:nth-child(14) {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  border-color: rgba(30, 64, 175, 0.3);
}

/* Effet de brillance amélioré */
.grid a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.grid a:hover::before {
  left: 100%;
}

/* Animations au survol améliorées */
.grid a:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.grid a:active {
  transform: translateY(-4px) scale(1.02);
  transition: all 0.1s ease;
}

/* Icônes dans la grille - plus grandes et mieux centrées */
.grid a::after {
  content: attr(data-icon);
  font-size: 2.5em; /* Ajusté pour les blocs plus petits */
  margin-bottom: 12px; /* Ajusté pour les blocs plus petits */
  display: block;
  opacity: 1;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

/* Animation des icônes au survol */
.grid a:hover::after {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Animation d'entrée pour chaque bloc */
.grid a {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.grid a:nth-child(1) { animation-delay: 0.1s; }
.grid a:nth-child(2) { animation-delay: 0.2s; }
.grid a:nth-child(3) { animation-delay: 0.3s; }
.grid a:nth-child(4) { animation-delay: 0.4s; }
.grid a:nth-child(5) { animation-delay: 0.5s; }
.grid a:nth-child(6) { animation-delay: 0.6s; }
.grid a:nth-child(7) { animation-delay: 0.7s; }
.grid a:nth-child(8) { animation-delay: 0.8s; }
.grid a:nth-child(9) { animation-delay: 0.9s; }
.grid a:nth-child(10) { animation-delay: 1.0s; }
.grid a:nth-child(11) { animation-delay: 1.1s; }
.grid a:nth-child(12) { animation-delay: 1.2s; }
.grid a:nth-child(13) { animation-delay: 1.3s; }
.grid a:nth-child(14) { animation-delay: 1.4s; }

/* Animation d'entrée améliorée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Amélioration du texte des blocs pour une meilleure lisibilité */
.grid a {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Effet de focus pour l'accessibilité */
.grid a:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  transform: translateY(-4px) scale(1.03);
}

/* Animation de pulsation subtile pour attirer l'attention */
@keyframes subtlePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }
}

/* Application de la pulsation subtile aux blocs principaux */
.grid a:nth-child(1),
.grid a:nth-child(2),
.grid a:nth-child(3),
.grid a:nth-child(4) {
  animation: fadeInUp 0.6s ease-out, subtlePulse 3s ease-in-out infinite;
  animation-fill-mode: both;
}

/* Effet de survol spécial pour les blocs principaux */
.grid a:nth-child(1):hover,
.grid a:nth-child(2):hover,
.grid a:nth-child(3):hover,
.grid a:nth-child(4):hover {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Amélioration du container pour un meilleur contraste */
.container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ========== BOUTON DECONNEXION MODERNISÉ ========== */
.logout-btn {
  position: relative; /* Changé de absolute à relative */
  color: #22503f;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  z-index: 1001; /* Plus haut que le message de bienvenue */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.logout-btn:hover {
  text-decoration: none;
  background: rgba(240, 245, 242, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 80, 63, 0.2);
  border-color: rgba(34, 80, 63, 0.2);
}

/* ========== CENTRAGE LOGIN ========== */
.centered-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ========== LOGO CENTRÉ ========== */
.logo-centered {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 140px;
}

/* ========== ERREUR LOGIN ========== */
.login-error {
  color: #dc3545;
  text-align: center;
  margin: 10px 0;
}

/* ========== NAVIGATION INFÉRIEURE MODERNISÉE ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  text-align: center;
  z-index: 99;
  padding: 18px 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.bottom-nav a {
  display: inline-block;
  margin: 0 20px;
  padding: 12px 20px;
  color: #22503f;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bottom-nav a:hover {
  background: rgba(34, 80, 63, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(34, 80, 63, 0.15);
  border-color: rgba(34, 80, 63, 0.2);
}

/* ========== NOTIFICATIONS MODERNISÉES ========== */
.notifications-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.notification-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #22503f 0%, #2d6a4f 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(34, 80, 63, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.notification-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.notification-icon:hover::before {
  left: 100%;
}

.notification-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(34, 80, 63, 0.4);
  color: white;
}

.notification-badge {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ========== MESSAGES D'ERREUR MODERNISÉS ========== */
.error-message {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 16px;
  margin: 25px auto;
  max-width: 600px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
  animation: slideIn 0.6s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
/* Assurer que le contenu ne soit jamais caché par la navigation */
body {
  padding-bottom: 100px; /* Espace supplémentaire pour la navigation */
}

/* Responsive pour toutes les pages */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    max-width: 500px;
    gap: 20px;
  }
  
  .grid a {
    padding: 18px 20px; /* Réduit pour mobile */
    min-height: 90px; /* Réduit pour mobile */
  }
  
  header h2 {
    font-size: 1.8em;
  }
  
  .logout-btn {
    top: 15px;
    left: 15px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .notification-icon {
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .grid a {
    padding: 16px 18px; /* Encore plus compact sur petit mobile */
    font-size: 14px;
    min-height: 80px; /* Très compact sur petit mobile */
  }
  
  .grid a::after {
    font-size: 2.2em;
  }
  
  header img {
    width: 140px;
  }
  
  header h2 {
    font-size: 1.5em;
  }
}

/* ========== FORMULAIRES (UNIQUEMENT SI PAS DE STYLE LOCAL) ========== */
form:not([style]) {
  margin: 20px 0;
}

form:not([style]) input:not([style]),
form:not([style]) select:not([style]) {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

form:not([style]) + h2:not([style]) {
  margin-top: 30px;
}

/* ========== STYLES SPÉCIFIQUES AUX CLIENTS (UNIQUEMENT SI CLASSE EXPLICITE) ========== */
.client-list {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.client-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
}

.client-header {
  background: #f8f9fa;
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.client-toggle {
  background: #53826f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
}

.client-toggle:hover {
  background: #4a7361;
}

.client-details {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.client-details.open {
  padding: 20px;
  max-height: 500px;
}

.client-details a {
  color: #53826f;
  text-decoration: none;
  margin-right: 15px;
  font-weight: 600;
}

.client-details a:hover {
  text-decoration: underline;
}

.client-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

/* ========== FORMULAIRES SPÉCIFIQUES (UNIQUEMENT SI CLASSE EXPLICITE) ========== */
.ice-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.ice-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.modifier-client-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modifier-client-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* ========== DÉTAILS ET RÉSUMÉS ========== */
details {
  margin: 15px 0;
}

details summary {
  background: #f8f9fa;
  padding: 15px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  color: #333;
  border: 1px solid #e0e0e0;
}

details summary:hover {
  background: #e9ecef;
}

/* ========== STATUT ET INDICATEURS ========== */
/* Styles des blocs de statut supprimés - maintenant dans page_livraison.php */

/* ========== LISTES ET TABLEAUX ========== */
.liste-commandes {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========== TABLEAU À 3 COLONNES POUR LES STATUTS ========== */
.tableau-statuts-principaux {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 20px !important;
  margin: 30px 0 !important;
  width: 100% !important;
  max-width: none !important;
  clear: both !important;
  float: none !important;
}

.colonne-statut {
  background: white !important;
  border-radius: 0 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
  padding: 20px 15px !important;
  border: 1px solid #e9ecef !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: auto !important;
  max-width: none !important;
  min-height: 600px !important;
}

.colonne-statut:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-color: #22503f;
}

.titre-colonne {
  color: white;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #22503f, #2d6a4f);
  border-radius: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.liste-commandes-colonne {
  max-height: 700px;
  overflow-y: auto;
  padding-right: 12px;
  width: 100%;
  box-sizing: border-box;
}

.liste-commandes-colonne::-webkit-scrollbar {
  width: 8px;
}

.liste-commandes-colonne::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.liste-commandes-colonne::-webkit-scrollbar-thumb {
  background: #22503f;
  border-radius: 4px;
}

.liste-commandes-colonne::-webkit-scrollbar-thumb:hover {
  background: #2d6a4f;
}

/* Section annulées séparée */
.section-annulees {
  margin-top: 40px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #dc3545;
}

.section-annulees .titre-liste {
  color: white;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-radius: 8px;
}

.carte-commande.annulee {
  border-left: 4px solid #dc3545;
  background: #fff5f5;
}

.carte-commande.annulee:hover {
  background: #ffe6e6;
}

/* Forcer l'affichage des cartes de commandes dans les colonnes */
.colonne-statut .carte-commande {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px !important;
  float: none !important;
  clear: both !important;
  padding: 12px !important;
  border-radius: 6px !important;
  border: 1px solid #e9ecef !important;
  background: #f8f9fa !important;
}

/* Rendre les cartes de commandes plus compactes */
.colonne-statut .carte-commande p {
  margin: 5px 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
}

.colonne-statut .carte-commande .commande-actions {
  margin-top: 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.colonne-statut .carte-commande .btn {
  padding: 4px 6px !important;
  font-size: 0.7rem !important;
  margin: 0 !important;
  white-space: nowrap !important;
  min-width: auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}



/* Surcharge complète pour forcer la grille */
.container .bloc .tableau-statuts-principaux {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 30px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  float: none !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Forcer les colonnes à s'afficher côte à côte avec Flexbox */
.container .bloc .tableau-statuts-principaux .colonne-statut {
  display: block !important;
  flex: 1 !important;
  width: 33.33% !important;
  margin: 0 !important;
  vertical-align: top !important;
  float: none !important;
  clear: none !important;
  min-width: 0 !important;
  max-width: 33.33% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.titre-liste {
  color: #22503f;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #53826f;
}

/* ========== MESSAGES ET NOTIFICATIONS ========== */
.message {
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.message .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.message .close-btn:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.message.success {
  animation: fadeOut 0.5s ease 3s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
