*{
margin: 0;
  padding: 0;
  box-sizing: border-box;
}body{
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}.container{
max-width: 1600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}.header{
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}.header h1{
font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}.header p{
opacity: 0.9;
  font-size: 1.1em;
}.settings-btn{
position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}.logout-btn{
position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}.content{
padding: 30px;
}.stat-card.interested{
border-left-color: #4caf50;
}.stat-card.future{
border-left-color: #2196f3;
}.stat-card.no-response{
border-left-color: #795548;
}.stat-number{
font-size: 2.5em;
  font-weight: bold;
  color: #333;
}.stat-label{
color: #666;
  margin-top: 5px;
  font-size: 0.9em;
}.form-section{
background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}.form-section h2{
color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}.form-grid{
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}.form-group{
display: flex;
  flex-direction: column;
}.form-group label{
color: #555;
  font-weight: 600;
  margin-bottom: 5px;
}.form-group input,
.form-group select{
padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}.form-group input:focus,
.form-group select:focus{
outline: none;
  border-color: #667eea;
}.btn{
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}.search-section{
display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
  flex-wrap: wrap;
}.search-input{
flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
}.pagination{
display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}.pagination button{
padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}.pagination button:hover:not(:disabled){
background: #667eea;
  color: white;
}.pagination button:disabled{
opacity: 0.5;
  cursor: not-allowed;
}.pagination .current{
background: #667eea;
  color: white;
  border-color: #667eea;
}.status-select{
padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background: white;
  min-width: 150px;
}/* Liste mobile simplifiée */
.mobile-client-list{
display: none;
}.mobile-client-item.urgent{
border-left-color: #ff5722;
}.mobile-client-item.warning{
border-left-color: #ff9800;
}.mobile-client-name{
font-weight: bold;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 5px;
}.mobile-client-info{
font-size: 0.9em;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}.mobile-client-days{
font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}.mobile-client-days.urgent{
background: #ffebee;
  color: #d32f2f;
}.mobile-client-days.warning{
background: #fff3e0;
  color: #f57c00;
}.mobile-client-days.normal{
background: #e3f2fd;
  color: #1976d2;
}.mobile-client-days.success{
background: #e8f5e8;
  color: #2e7d32;
}.mobile-client-days.refused{
background: #f5f5f5;
  color: #666;
}.mobile-client-days.future{
background: #f3e5f5;
  color: #7b1fa2;
}.mobile-client-days.no-response{
background: #efebe9;
  color: #3e2723;
}.mobile-client-status{
font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  color: #fff;
}/* Utiliser les mêmes couleurs que la version PC */
.mobile-client-status.pending{
background: #2196f3;
}.mobile-client-status.warning,
.mobile-client-status.first-followup{
background: #ff9800;
}.mobile-client-status.urgent,
.mobile-client-status.second-followup{
background: #f44336;
}.mobile-client-status.success,
.mobile-client-status.interested{
background: #4caf50;
}.mobile-client-status.refused{
background: #9e9e9e;
}.mobile-client-status.future{
background: #673ab7;
}.mobile-client-status.first-followup-sent{
background: #8bc34a;
}.mobile-client-status.second-followup-sent{
background: #4caf50;
}.mobile-client-status.no-response{
background: #795548;
}.section-header.urgent{
background: linear-gradient(135deg, #ff6b6b, #ff5722);
}.section-header.warning{
background: linear-gradient(135deg, #ffa726, #ff9800);
}.client-name{
font-weight: bold;
  color: #333;
  font-size: 1.1em;
  margin-bottom: 5px;
}.action-btn{
padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
}.action-btn.refuse{
background: #ffcdd2;
  color: #d32f2f;
}.action-btn.interest{
background: #c8e6c9;
  color: #388e3c;
}.action-btn.future{
background: #bbdefb;
  color: #1976d2;
}.action-btn.call{
background: #f8bbd9;
  color: #c2185b;
}

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

@@keyframes slideIn{
from{
  transform: translateX(100%);
  opacity: 0;
}to{
  transform: translateX(0);
  opacity: 1;
}
}

@@keyframes slideOut{
from{
  transform: translateX(0);
  opacity: 1;
}to{
  transform: translateX(100%);
  opacity: 0;
}
}
.login-container{
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}.login-box{
background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
}.login-box h2{
color: #333;
  margin-bottom: 30px;
  font-size: 2em;
}.login-form{
display: flex;
  flex-direction: column;
  gap: 20px;
}.login-input{
padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}.login-btn{
padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}.error-message{
color: #f44336;
  margin-top: 10px;
  font-size: 14px;
}/* Styles pour le modal */
.modal{
display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}.modal-content{
background-color: white;
  margin: 2.5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-x: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@@keyframes modalSlideIn{
from{
  transform: translateY(-50px);
  opacity: 0;
}to{
  transform: translateY(0);
  opacity: 1;
}
}.modal-header{
padding: 25px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
}.modal-header.pending-header{
background: linear-gradient(135deg, #2196f3, #1976d2);
}.modal-header.first-followup-header{
background: linear-gradient(135deg, #ffa726, #ff9800);
}.modal-header.first-followup-sent-header{
background: linear-gradient(135deg, #8bc34a, #689f38);
}.modal-header.second-followup-header{
background: linear-gradient(135deg, #ff6b6b, #ff5722);
}.modal-header.second-followup-sent-header{
background: linear-gradient(135deg, #4caf50, #388e3c);
}.modal-header.interested-header{
background: linear-gradient(135deg, #4caf50, #388e3c);
}.modal-header.refused-header{
background: linear-gradient(135deg, #9e9e9e, #757575);
}.modal-header.future-header{
background: linear-gradient(135deg, #673ab7, #512da8);
}.modal-header.no-response-header{
background: linear-gradient(135deg, #795548, #5d4037);
}.modal-header.settings-header{
background: linear-gradient(135deg, #607d8b, #455a64);
}.modal-header.client-detail-header{
background: linear-gradient(135deg, #667eea, #764ba2);
}.close{
color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}.modal-body{
padding: 30px;
  overflow-y: auto;
}.modal-clients{
display: grid;
  gap: 15px;
}.settings-form{
display: flex;
  flex-direction: column;
  gap: 20px;
}.settings-group{
display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}.settings-group label{
font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}.settings-group input{
width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}.settings-group input:focus{
outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}.settings-group small{
margin-top: 5px;
  display: block;
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}.settings-actions{
display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}/* Modal détail client */
.client-detail-content{
padding: 20px;
}.client-detail-header{
margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}.client-detail-name{
font-size: 1.4em;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}.client-detail-type{
font-size: 1.1em;
  color: #666;
  margin-bottom: 10px;
}.client-detail-email{
color: #667eea;
  text-decoration: none;
  font-weight: 500;
}.client-detail-info{
display: grid;
  gap: 15px;
  margin-bottom: 20px;
}.client-detail-row{
display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}.client-detail-label{
font-weight: 600;
  color: #555;
}.client-detail-value{
color: #333;
}.client-detail-actions{
display: grid;
  gap: 10px;
  margin-top: 20px;
}.client-detail-actions select{
padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background: white;
}.client-detail-actions button{
padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}.client-detail-actions .notes-btn{
background: #2196f3;
  color: white;
}.client-detail-actions .delete-btn{
background: #ff5722;
  color: white;
}.client-card.no-response{
background: linear-gradient(135deg, #efebe9, #d7ccc8);
  border-left: 4px solid #795548;
}.client-card.no-response .client-name{
color: #3e2723;
}/* Animation pour le statut sans réponse */
.stat-card.no-response .stat-number{
animation: none;
}.stat-card.no-response:hover .stat-number{
animation: bounce 0.6s ease;
}

@@keyframes bounce{
0%, 20%, 50%, 80%, 100%{
  transform: translateY(0);
}40%{
  transform: translateY(-10px);
}60%{
  transform: translateY(-5px);
}
}

@@keyframes slideInCard{
from{
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}to{
  opacity: 1;
  transform: translateY(0) scale(1);
}
}

@media (max-width: 768px){
body{
  padding: 10px;
}.container{
  border-radius: 15px;
}.header{
  padding: 20px 15px;
  position: relative;
}.header h1{
  font-size: 1.8em;
  margin-bottom: 8px;
}.header p{
  font-size: 0.95em;
}.settings-btn,
  .logout-btn{
  position: static;
  margin: 10px 5px 0 5px;
  padding: 8px 12px;
  font-size: 0.8em;
  display: inline-block;
}.content{
  padding: 20px 15px;
}.stats{
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}.stat-card{
  padding: 15px 10px;
}.stat-number{
  font-size: 2em;
}.stat-label{
  font-size: 0.8em;
}.form-section{
  padding: 20px 15px;
  margin-bottom: 20px;
}.form-section h2{
  font-size: 1.3em;
  margin-bottom: 15px;
}.form-grid{
  grid-template-columns: 1fr;
  gap: 15px;
}.search-section{
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}.search-input{
  min-width: auto;
  width: 100%;
}.btn{
  padding: 12px 20px;
  font-size: 14px;
  width: 100%;
}.import-section .btn{
  margin-left: 0 !important;
}.modal-content{
  width: 95%;
  margin: 5vh auto;
  max-height: 85vh;
  border-radius: 15px;
}.modal-header{
  padding: 20px 15px;
  font-size: 1.2em;
}.modal-body{
  padding: 20px 15px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: calc(85vh - 80px);
}.table-container{
  display: none;
}.mobile-client-list{
  display: block;
}.status-select{
  min-width: 120px;
  font-size: 12px;
  padding: 6px 8px;
}.pagination{
  gap: 5px;
  justify-content: center;
}.pagination button{
  padding: 6px 10px;
  font-size: 0.9em;
}.import-section{
  padding: 15px;
}.file-label{
  padding: 8px 15px;
  font-size: 0.9em;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}.login-box{
  padding: 30px 20px;
  margin: 20px;
}.login-box h2{
  font-size: 1.6em;
  margin-bottom: 20px;
}.modal-client-card{
  padding: 15px;
}.settings-actions{
  flex-direction: column;
  gap: 10px;
}.settings-actions button{
  width: 100%;
}.client-detail-actions{
  gap: 15px;
}.settings-group{
  margin-bottom: 15px;
}.settings-group input{
  padding: 10px;
  font-size: 16px;
}.settings-actions{
  margin-top: 25px;
}
}

@@media (max-width: 480px){
.stat-number{
font-size: 1.6em;
}.stat-label{
font-size: 0.75em;
}.header h1{
font-size: 1.5em;
}.form-section h2{
font-size: 1.2em;
}.modal-header{
font-size: 1.1em;
  padding: 15px 10px;
}.close{
font-size: 28px;
}.mobile-client-name{
font-size: 1em;
}.mobile-client-info{
font-size: 0.85em;
}.form-group input,
  .form-group select{
width: 100%;
}
}

/* Version desktop - afficher le tableau */
@media (min-width: 769px){
.table-container{
  overflow-x: auto;
}table{
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}th,
  td{
  padding: 12px 15px;
  font-size: 0.9em;
}th{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: left;
  font-weight: 600;
}
}/* =================== STYLES POUR LA SECTION PRIORITAIRE =================== */

/* SECTION ACTIONS PRIORITAIRES */
.priority-section{
margin-bottom: 40px;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}.priority-header{
display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #ff5722;
}.priority-title{
display: flex;
  align-items: center;
  gap: 15px;
}.priority-title h2{
color: #ff5722;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0;
}.urgent-badge{
background: linear-gradient(135deg, #ff5722, #d32f2f);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}.priority-summary{
background: linear-gradient(135deg, #ffebee, #fff3e0);
  border-left: 6px solid #ff5722;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  color: #d32f2f;
  flex: 1;
  margin-left: 20px;
}.priority-cards{
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  margin-top: 25px;
}.priority-card{
background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 25px;
  border-left: 8px solid;
  position: relative;
  transition: all 0.3s ease;
}.priority-card.urgent{
border-left-color: #ff5722;
  background: linear-gradient(135deg, #fff, #ffebee);
}.priority-card.warning{
border-left-color: #ff9800;
  background: linear-gradient(135deg, #fff, #fff3e0);
}.card-header{
display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}.card-title{
font-size: 1.3em;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}.card-count{
background: linear-gradient(135deg, #ff5722, #d32f2f);
  color: white;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 1.6em;
  font-weight: 800;
  min-width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}.card-count.warning{
background: linear-gradient(135deg, #ff9800, #f57c00);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}.client-preview{
max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
}.client-item{
display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border-left: 4px solid;
  transition: all 0.2s ease;
  cursor: pointer;
}.client-item.urgent{
border-left-color: #ff5722;
}.client-item.warning{
border-left-color: #ff9800;
}.client-name{
font-weight: 600;
  color: #333;
}.client-days{
background: #ff5722;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}.client-days.warning{
background: #ff9800;
}.action-btn{
background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}/* SECTION STATISTIQUES GÉNÉRALES (moins visible) */
.stats-overview{
background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  border: 2px dashed #dee2e6;
}.stats-overview h3{
color: #666;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-align: center;
}.stats-grid{
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}.stat-item{
background: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border-left: 3px solid #dee2e6;
  cursor: pointer;
  transition: all 0.2s ease;
}.stat-number{
font-size: 1.5em;
  font-weight: 600;
  color: #fff;
}.stat-label{
font-size: 0.85em;
  color: #fff;
  margin-top: 5px;
}.stat-item.interested{
border-left-color: #4caf50;
}.stat-item.interested .stat-number{
color: #4caf50;
}.stat-item.no-response{
border-left-color: #795548;
}.stat-item.no-response .stat-number{
color: #795548;
}.stat-item.future{
border-left-color: #673ab7;
}.stat-item.future .stat-number{
color: #673ab7;
}.stat-item.total{
border-left-color: #2196f3;
}.stat-item.total .stat-number{
color: #2196f3;
}/* Toggle pour afficher/masquer les stats générales */
.toggle-stats{
text-align: center;
  margin-bottom: 20px;
}.toggle-btn{
background: none;
  border: 2px dashed #dee2e6;
  color: #666;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

@media (max-width: 768px){
.priority-section{
  padding: 20px 15px;
}.priority-header{
  flex-direction: column;
  text-align: center;
  gap: 15px;
}.priority-summary{
  margin-left: 0;
  margin-top: 15px;
}.priority-cards{
  grid-template-columns: 1fr;
  gap: 20px;
}.priority-title h2{
  font-size: 1.5em;
}.card-count{
  min-width: 60px;
  height: 60px;
  font-size: 1.3em;
  padding: 10px 15px;
}.stats-grid{
  grid-template-columns: repeat(2, 1fr);
}.stat-item{
  padding: 12px;
}.stat-number{
  font-size: 1.3em;
}
}
    /* Styles pour le modal client détaillé */
    .client-detail-modal {
      max-width: 800px;
      max-height: 90vh;
    }

    .client-detail-header {
      background: linear-gradient(135deg, #667eea, #764ba2);
    }

    .client-detail-body {
      padding: 0;
      overflow-y: auto;
      max-height: calc(90vh - 80px);
    }

    .client-main-info {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 25px;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-bottom: 3px solid #dee2e6;
    }

    .client-identity {
      flex: 1;
    }

    .client-name-large {
      font-size: 1.8em;
      font-weight: 700;
      color: #333;
      margin: 0 0 10px 0;
    }

    .client-meta {
      display: flex;
      align-items: center;
      gap: 15px;
      flex-wrap: wrap;
    }

    .client-type-badge {
      background: linear-gradient(135deg, #6c757d, #495057);
      color: white;
      padding: 6px 12px;
      border-radius: 15px;
      font-size: 0.9em;
      font-weight: 600;
    }

    .client-email-link {
      color: #667eea;
      text-decoration: none;
      font-weight: 500;
      padding: 6px 12px;
      background: rgba(102, 126, 234, 0.1);
      border-radius: 15px;
      transition: all 0.2s ease;
    }

    .client-email-link:hover {
      background: rgba(102, 126, 234, 0.2);
      transform: translateY(-1px);
    }

    .client-status-info {
      text-align: right;
    }

    .current-status, .status-date {
      margin-bottom: 10px;
    }

    .current-status label, .status-date label {
      display: block;
      font-size: 0.9em;
      color: #666;
      margin-bottom: 4px;
    }

    .status-badge {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9em;
      color: white;
      background: linear-gradient(135deg, #28a745, #20c997);
    }

    .client-dates-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      padding: 25px;
      background: white;
    }

    .date-card {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 20px;
      background: linear-gradient(135deg, #f8f9fa, #white);
      border-radius: 12px;
      border-left: 4px solid #667eea;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .date-icon {
      font-size: 2em;
    }

    .date-info label {
      display: block;
      font-size: 0.9em;
      color: #666;
      margin-bottom: 4px;
      font-weight: 600;
    }

    .date-info span {
      font-size: 1.1em;
      font-weight: 700;
      color: #333;
    }

    .days-counter {
      color: #667eea !important;
    }

    .client-history-section, .client-notes-section, .client-actions-section {
      padding: 25px;
      border-bottom: 1px solid #eee;
    }

    .client-history-section h3, .client-notes-section h3, .client-actions-section h3 {
      color: #333;
      margin-bottom: 20px;
      font-size: 1.3em;
      font-weight: 600;
    }

    .status-history {
      max-height: 250px;
      overflow-y: auto;
    }

    .history-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px;
      margin-bottom: 10px;
      background: linear-gradient(135deg, #f8f9fa, #white);
      border-radius: 10px;
      border-left: 4px solid #28a745;
    }

    .history-icon {
      font-size: 1.2em;
    }

    .history-content {
      flex: 1;
    }

    .history-change {
      font-weight: 600;
      color: #333;
      margin-bottom: 4px;
    }

    .history-date {
      font-size: 0.9em;
      color: #666;
    }

    .notes-list {
      max-height: 200px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .note-item {
      background: #f8f9fa;
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 10px;
      border-left: 4px solid #17a2b8;
    }

    .note-content {
      color: #333;
      line-height: 1.5;
      margin-bottom: 8px;
    }

    .note-meta {
      font-size: 0.85em;
      color: #666;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .note-actions button {
      background: none;
      border: none;
      color: #dc3545;
      cursor: pointer;
      font-size: 0.9em;
      padding: 2px 6px;
    }

    .add-note-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .add-note-form textarea {
      width: 100%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-family: inherit;
      resize: vertical;
      min-height: 80px;
    }

    .add-note-form textarea:focus {
      outline: none;
      border-color: #667eea;
    }

    .btn-add-note {
      background: linear-gradient(135deg, #28a745, #20c997);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      align-self: flex-start;
    }

    .action-buttons {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
      align-items: center;
    }

    .status-change-select {
      flex: 1;
      min-width: 200px;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 16px;
      background: white;
    }

    .btn-delete {
      background: linear-gradient(135deg, #dc3545, #c82333);
      color: white;
      border: none;
      padding: 12px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
    }

    .btn-delete:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }

    .empty-state {
      text-align: center;
      padding: 40px;
      color: #666;
      font-style: italic;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .client-detail-modal {
        width: 95%;
        max-height: 95vh;
      }
      
      .client-main-info {
        flex-direction: column;
        gap: 20px;
      }
      
      .client-status-info {
        text-align: left;
      }
      
      .client-dates-section {
        grid-template-columns: 1fr;
      }
      
      .action-buttons {
        flex-direction: column;
        align-items: stretch;
      }
      
      .status-change-select {
        min-width: auto;
      }
    }
.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.settings-section h3 {
    font-size: 1.1em;
    font-weight: 600;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.settings-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.settings-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-group small {
    margin-top: 5px;
    display: block;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .settings-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .settings-section h3 {
        font-size: 1em;
    }
}

.stats-section {
    margin-bottom: 25px;
}

.stats-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
    border-left: 4px solid #667eea;
    padding-left: 10px;
}

/* Nouvelles couleurs pour les statistiques */
.stat-item.stat-pending { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-item.stat-warning { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-item.stat-urgent { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-item.stat-success { background: linear-gradient(135deg, #27ae60, #229954); }
.stat-item.stat-neutral { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }

.stat-item.stat-planned { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-item.stat-completed { background: linear-gradient(135deg, #27ae60, #229954); }
.stat-item.stat-waiting { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-item.stat-action { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.stat-item.stat-commercial { background: linear-gradient(135deg, #16a085, #138d75); }
.stat-item.stat-followup { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-item.stat-revenue { background: linear-gradient(135deg, #27ae60, #229954); }

.stat-item.stat-positive { background: linear-gradient(135deg, #27ae60, #229954); }
.stat-item.stat-potential { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.stat-item.stat-reminder { background: linear-gradient(135deg, #e91e63, #ad1457); }
.stat-item.stat-negative { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.stat-item.stat-lost { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-item.stat-postponed { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.stat-item.stat-abandoned { background: linear-gradient(135deg, #34495e, #2c3e50); }

.stat-item.stat-total { background: linear-gradient(135deg, #667eea, #764ba2); }


/* Interface compacte optimisée pour notifications prioritaires */
.priority-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.priority-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.priority-title-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-title-compact h2 {
    margin: 0;
    font-size: 1.3em;
    color: #2d3748;
    font-weight: 600;
}

.notifications-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
}

.notification-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Types de notifications */
.urgent-notification {
    background: linear-gradient(135deg, #ff5722, #d32f2f);
    color: white;
}

.urgent-notification:hover {
    border-color: rgba(255, 87, 34, 0.5);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.warning-notification {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.warning-notification:hover {
    border-color: rgba(255, 152, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.info-notification {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.info-notification:hover {
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.success-notification {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.notification-count {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
}

.notification-text {
    font-weight: 500;
    white-space: nowrap;
}

.global-status {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
}

/* Section contacts planifiés compacte */
.contacts-section-compact {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.contacts-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 15px;
}

.contacts-title-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3748;
}

.contacts-summary {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .priority-header-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .notifications-line {
        justify-content: center;
        gap: 8px;
    }

    .notification-item {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .notification-text {
        font-size: 0.75em;
    }

    .contacts-header-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .global-status {
        font-size: 0.75em;
        text-align: center;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.urgent-notification {
    animation: pulse 2s infinite;
}

.urgent-notification:hover {
    animation: none;
}