*{
margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#main-app {
    display: block !important;
}
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;
}
}.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: 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);
}
}

/* RESPONSIVENESS MOBILE */
@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;
}.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: #666;
}.stat-label{
font-size: 0.85em;
  color: #999;
  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;
}

/* RESPONSIVENESS MOBILE */
@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;
}
}
.retour-home {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
}