:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

/* Version avec hauteur encore plus importante */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  /*  min-height: 120vh; /* 20% plus haut que la fenêtre */
  height: auto;
}

.container, .main-container {
  min-height: 120vh; /* 20% plus haut que la fenêtre */
  height: auto;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Si vous avez un conteneur spécifique pour votre application */
.app-container {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Pour les conteneurs de contenu */
.content-container {
  flex: 1;
  min-height: calc(100vh - 100px); /* Ajustez selon vos besoins */
  padding: 20px;
}

/* Responsive pour différentes tailles d'écran */
@media (min-width: 768px) {
  .container, .main-container {
    min-height: 100vh;
    padding: 30px;
  }
}

@media (min-width: 1024px) {
  .container, .main-container {
    min-height: 100vh;
    padding: 40px;
  }
}

.container {
  max-width: 100%;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}


h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.form-container {
  padding: 20px;
}

.form-section {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.form-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-group {
  flex: 1 0 calc(50% - 20px);
  margin: 0 10px 15px;
  min-width: 250px;
}

.form-group.full-width {
  flex: 1 0 calc(100% - 20px);
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--secondary-color);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.file-name {
  font-size: 14px;
  color: #666;
}

.expertise-container {
  margin-top: 20px;
}

.expertise-group {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

/* Nouveaux styles pour l'en-tête d'expertise avec case à cocher */
.expertise-header {
  background-color: var(--light-gray);
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.expertise-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.main-expertise-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.expertise-header:hover {
  background-color: #e9e9e9;
}

.expertise-content {
  padding: 15px;
  display: none;
}

.expertise-content.active {
  display: block;
}

.sub-expertise-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.sub-expertise-group {
  margin-bottom: 15px;
}

.sub-expertise-title {
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.checkbox-item input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.add-expertise {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.add-expertise input[type="text"] {
  flex: 1;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

/* Styles pour le calendrier amélioré - Version pleine largeur */
.calendar-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: none; /* Suppression de la limitation de largeur */
  margin: 0;
}

.calendar-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  width: 100%;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

.month-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.month-selection label {
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.month-selector {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: white;
}

.calendar-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  min-width: 250px;
  flex-grow: 1;
  max-width: 400px;
}

.calendar-nav-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  flex-shrink: 0;
}

.calendar-nav-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.calendar-month-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-grow: 1;
  white-space: nowrap;
}

.calendar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.calendar-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.selected-days-count {
  color: white;
  font-weight: 500;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #f8f9fa;
  padding: 0;
  user-select: none;
  width: 100%;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  min-height: 50px;
  border: 1px solid transparent;
  width: 100%;
}

.calendar-day.header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: white;
  cursor: default;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 40px;
  aspect-ratio: auto;
}

.calendar-day.selectable {
  color: #4a5568;
  position: relative;
}

.calendar-day.selectable:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  transform: scale(1.05);
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
  z-index: 2;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: scale(1.02);
  z-index: 3;
}

.calendar-day.selecting {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  color: #0d47a1;
  border-color: #2196f3;
  transform: scale(1.02);
}

.calendar-day.disabled {
  background-color: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

/* Effet de pulsation pour les jours sélectionnés */
.calendar-day.selected::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

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

/* Animation pour la sélection */
.calendar-day.selected {
  animation: selectDay 0.3s ease;
}

@keyframes selectDay {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1.02); }
}

/* Style pour le feedback visuel pendant la sélection */
.calendar-container.selecting {
  cursor: crosshair;
}

.calendar-container.selecting .calendar-day.selectable {
  cursor: crosshair;
}

/* Style pour les jours du mois actuel */
.calendar-day.today {
  position: relative;
}

.calendar-day.today::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: #ff5722;
  border-radius: 50%;
  transform: translateX(-50%);
}

.calendar-day.today.selected::before {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Amélioration de l'accessibilité */
.calendar-day:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Responsive design pour très grands écrans */
@media (min-width: 1200px) {
  .calendar-day {
    min-height: 60px;
    font-size: 16px;
  }
  
  .calendar-day.header {
    min-height: 45px;
    font-size: 14px;
  }
  
  .calendar-header {
    padding: 25px;
  }
  
  .calendar-month-title {
    font-size: 20px;
  }
}

/* Responsive design pour écrans moyens */
@media (max-width: 1024px) {
  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .calendar-month-nav {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
  
  .calendar-actions {
    justify-content: center;
  }
}

/* Styles pour le calendrier amélioré - Version compacte pleine largeur */
.calendar-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
}

.calendar-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  width: 100%;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

.month-selection {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.month-selection label {
  color: white;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.month-selector {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: white;
}

.calendar-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  min-width: 200px;
  flex-grow: 1;
  max-width: 300px;
}

.calendar-nav-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  flex-shrink: 0;
}

.calendar-nav-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.calendar-month-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-grow: 1;
  white-space: nowrap;
}

.calendar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.calendar-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.selected-days-count {
  color: white;
  font-weight: 500;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #f8f9fa;
  padding: 0;
  user-select: none;
  width: 100%;
}

.calendar-day {
  aspect-ratio: 1.2; /* Ratio plus compact */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 13px;
  position: relative;
  min-height: 35px; /* Hauteur réduite */
  max-height: 45px; /* Hauteur maximale */
  border: 1px solid transparent;
  width: 100%;
}

.calendar-day.header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: white;
  cursor: default;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-height: 28px; /* Hauteur réduite pour l'en-tête */
  max-height: 32px;
  aspect-ratio: auto;
}

.calendar-day.selectable {
  color: #4a5568;
  position: relative;
}

.calendar-day.selectable:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  transform: scale(1.03); /* Effet de zoom réduit */
  border-color: #2196f3;
  box-shadow: 0 1px 4px rgba(33, 150, 243, 0.3);
  z-index: 2;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transform: scale(1.01); /* Effet de zoom réduit */
  z-index: 3;
}

.calendar-day.selecting {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  color: #0d47a1;
  border-color: #2196f3;
  transform: scale(1.01);
}

.calendar-day.disabled {
  background-color: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

/* Effet de pulsation pour les jours sélectionnés - plus petit */
.calendar-day.selected::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px; /* Taille réduite */
  height: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Animation pour la sélection - plus subtile */
.calendar-day.selected {
  animation: selectDay 0.2s ease;
}

@keyframes selectDay {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1.01); }
}

/* Style pour le feedback visuel pendant la sélection */
.calendar-container.selecting {
  cursor: crosshair;
}

.calendar-container.selecting .calendar-day.selectable {
  cursor: crosshair;
}

/* Style pour les jours du mois actuel - plus petit */
.calendar-day.today {
  position: relative;
}

.calendar-day.today::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px; /* Taille réduite */
  height: 3px;
  background-color: #ff5722;
  border-radius: 50%;
  transform: translateX(-50%);
}

.calendar-day.today.selected::before {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Amélioration de l'accessibilité */
.calendar-day:focus {
  outline: 1px solid #667eea;
  outline-offset: 1px;
}

/* Responsive design pour très grands écrans */
@media (min-width: 1200px) {
  .calendar-day {
    min-height: 40px;
    max-height: 50px;
    font-size: 14px;
  }
  
  .calendar-day.header {
    min-height: 32px;
    max-height: 38px;
    font-size: 12px;
  }
  
  .calendar-header {
    padding: 18px;
  }
  
  .calendar-month-title {
    font-size: 17px;
  }
}

/* Responsive design pour écrans moyens */
@media (max-width: 1024px) {
  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .calendar-month-nav {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
  
  .calendar-actions {
    justify-content: center;
  }
}

/* Responsive design pour tablettes */
@media (max-width: 768px) {
  .calendar-container {
    margin: 0;
    border-radius: 8px;
  }
  
  .calendar-header {
    padding: 12px;
  }
  
  .calendar-controls {
    gap: 8px;
  }
  
  .month-selection {
    padding: 4px 8px;
  }
  
  .month-selection label {
    font-size: 12px;
  }
  
  .calendar-month-nav {
    padding: 6px 12px;
  }
  
  .calendar-month-title {
    font-size: 14px;
  }
  
  .calendar-nav-button {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .calendar-day {
    min-height: 32px;
    max-height: 38px;
    font-size: 12px;
  }
  
  .calendar-day.header {
    min-height: 26px;
    max-height: 30px;
    font-size: 10px;
  }
  
  .selected-days-count {
    font-size: 12px;
  }
}

/* Responsive design pour mobiles */
@media (max-width: 480px) {
  .calendar-header {
    padding: 8px;
  }
  
  .calendar-controls {
    gap: 6px;
  }
  
  .month-selection {
    padding: 3px 6px;
  }
  
  .month-selection label {
    font-size: 11px;
  }
  
  .calendar-month-nav {
    padding: 5px 10px;
  }
  
  .calendar-month-title {
    font-size: 13px;
  }
  
  .calendar-nav-button {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  
  .calendar-day {
    min-height: 28px;
    max-height: 34px;
    font-size: 11px;
  }
  
  .calendar-day.header {
    min-height: 22px;
    max-height: 26px;
    font-size: 9px;
  }
  
  .calendar-actions {
    padding: 6px 10px;
  }
  
  .calendar-actions .btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .selected-days-count {
    font-size: 11px;
  }
}

/* Style pour la section du formulaire contenant le calendrier */
.form-section .calendar-container {
  width: 100%;
  margin-top: 10px;
}

/* Assurer que le conteneur parent utilise toute la largeur */
.form-section {
  width: 100%;
}

/* Style pour les très larges écrans - version compacte */
@media (min-width: 1600px) {
  .calendar-day {
    min-height: 45px;
    max-height: 55px;
    font-size: 15px;
  }
  
  .calendar-day.header {
    min-height: 35px;
    max-height: 42px;
    font-size: 13px;
  }
  
  .calendar-header {
    padding: 20px;
  }
  
  .calendar-month-title {
    font-size: 18px;
  }
  
  .calendar-nav-button {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
}

.radio-item input[type="radio"] {
  margin-right: 8px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.pricing-container {
  margin-top: 15px;
}

.pricing-table {
  margin-top: 20px;
}

.pricing-table h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.pricing-table th,
.pricing-table td {
  padding: 10px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.pricing-table th {
  background-color: var(--light-gray);
  font-weight: 500;
}

.add-pricing {
  margin-top: 15px;
}

@media (max-width: 768px) {
  .form-group {
    flex: 1 0 calc(100% - 20px);
  }
  
  .sub-expertise-list {
    grid-template-columns: 1fr;
  }
}
/* Styles pour le système d'onglets */
.tabs-container {
  margin-top: 20px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all 0.3s;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Styles pour la section de recherche */
.search-section {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.results-section {
  margin-top: 30px;
  margin-left: 20px;
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-options {
  display: flex;
  gap: 10px;
}

.view-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #777;
  cursor: pointer;
  padding: 5px;
}

.view-btn.active {
  color: var(--primary-color);
}

/* Styles pour la vue en cartes */
.collaborator-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.collaborator-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.collaborator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  position: relative;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
}

.card-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 10px;
}

.card-body {
  padding: 15px;
}

.card-info {
  margin-bottom: 15px;
}

.card-info-item {
  display: flex;
  margin-bottom: 8px;
  flex-direction: column;
}

.card-info-label {
  font-weight: 500;
  width: 100px;
  flex-shrink: 0;
}

.card-expertises {
  margin-top: 15px;
}

.expertise-tag {
  display: inline-block;
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
}

.card-footer {
  padding: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

/* Styles pour la vue en tableau */
.collaborator-table {
  overflow-x: auto;
}

.collaborator-table table {
  width: 100%;
  border-collapse: collapse;
}

.collaborator-table th,
.collaborator-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.collaborator-table th {
  background-color: var(--light-gray);
  font-weight: 500;
}

.collaborator-table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.table-actions {
  display: flex;
  gap: 10px;
}

.table-actions button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--primary-color);
}

.table-actions button:hover {
  color: var(--secondary-color);
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #777;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.3;
}

/* Modal de détails du collaborateur */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 15px 20px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* Détails du collaborateur */
.collaborator-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.details-section {
  margin-bottom: 20px;
}

.details-section h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.details-item {
  margin-bottom: 8px;
  display: flex;
}

.details-label {
  font-weight: 500;
  width: 150px;
  flex-shrink: 0;
}

.details-expertises {
  grid-column: 1 / -1;
}

.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.details-calendar {
  grid-column: 1 / -1;
}

.availability-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 10px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 500;
  padding: 5px;
  background-color: var(--light-gray);
}

.calendar-day-cell {
  text-align: center;
  padding: 5px;
  border: 1px solid var(--border-color);
}

.calendar-day-cell.available {
  background-color: rgba(46, 204, 113, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .collaborator-details {
    grid-template-columns: 1fr;
  }
  
  .details-expertises,
  .details-calendar {
    grid-column: auto;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
    border-bottom: none;
  }
  
  .tab-btn.active {
    border-left-color: var(--primary-color);
    border-bottom: none;
  }
}
/* Style pour le menu déroulant avec cases à cocher */
.dropdown-container {
  position: relative;
  width: 100%;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 300px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  margin-top: 5px;
}

.dropdown-content.active {
  display: block;
}

.dropdown-search {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.dropdown-search input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.dropdown-items {
  max-height: 200px;
  overflow-y: auto;
  padding: 5px 0;
}

.dropdown-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-item input[type="checkbox"] {
  margin-right: 8px;
}

.dropdown-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  border-top: 1px solid #eee;
  gap: 10px;
}

.empty-dropdown-message {
  padding: 15px;
  text-align: center;
  color: #888;
  font-style: italic;
}

.selected-items-preview {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.selected-item {
  background-color: #f0f0f0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.selected-item i {
  margin-left: 5px;
  cursor: pointer;
  font-size: 0.8em;
}

/* Style pour l'élément search-date */
#search-date {
  width: 100%;                /* Utilise toute la largeur disponible */
  padding: 10px 12px;         /* Agrandit l'élément en ajoutant du padding */
  border: 1px solid #ddd;     /* Bordure légère */
  border-radius: 4px;         /* Coins arrondis */
  font-size: 14px;            /* Taille de police appropriée */
  height: auto;               /* Hauteur automatique basée sur le contenu */
  background-color: #fff;     /* Fond blanc */
  box-sizing: border-box;     /* Inclut padding et bordure dans la largeur */
  appearance: none;           /* Supprime l'apparence par défaut du navigateur */
  -webkit-appearance: none;   /* Pour Safari */
  -moz-appearance: none;      /* Pour Firefox */
  cursor: pointer;            /* Curseur pointer au survol */
}

/* Style pour l'icône de calendrier */
#search-date::-webkit-calendar-picker-indicator {
  opacity: 0.8;               /* Légère transparence pour l'icône */
  cursor: pointer;            /* Curseur pointer au survol de l'icône */
  padding: 3px;               /* Espace autour de l'icône */
}

/* Style au focus */
#search-date:focus {
  outline: none;              /* Supprime le contour par défaut */
  border-color: #4a90e2;      /* Bordure bleue au focus */
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2); /* Ombre légère au focus */
}

/* Style au survol */
#search-date:hover {
  border-color: #bbb;         /* Bordure plus foncée au survol */
}

/* Assure que l'élément a une taille minimale */
.form-group:has(#search-date) {
  min-width: 200px;           /* Largeur minimale pour le groupe contenant l'input */
}

/* Style pour uniformiser avec les autres éléments de formulaire */
#search-date {
  height: 40px;               /* Hauteur fixe pour correspondre aux autres éléments */
}

/* Style pour les informations de champ optionnel */
.field-info {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: normal;
  margin-top: 3px;
  font-style: italic;
}

/* Style pour les labels avec informations */
.form-group label {

  flex-direction: column;
  margin-bottom: 8px;
  font-weight: 500;
  height: auto;
}

.form-group label span {
  font-weight: 500;
  margin-bottom: 2px;
}

/* Style pour les champs de tarifs */
#price-standard, #price-rush {
  border-left: 3px solid #3498db;
}

/* Indicateur visuel pour les champs optionnels */
.form-group.optional {
  position: relative;
}

.form-group.optional::before {
  content: "Optionnel";
  position: absolute;
  top: -5px;
  right: 5px;
  background-color: #f39c12;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

/* Styles pour les calendriers multiples dans le modal */
.availability-calendars {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 0;
}

.month-calendar {
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background: #fafafa;
}

.month-title {
  text-align: center;
  margin: 0 0 15px 0;
  color: #333;
  font-weight: 600;
}

.calendar-grid-modal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  max-width: 350px;
  margin: 0 auto;
}

.calendar-day-header {
  background: #4CAF50;
  color: white;
  padding: 8px 4px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}

.calendar-day-cell {
  background: #f5f5f5;
  padding: 8px 4px;
  text-align: center;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
}

.calendar-day-cell.empty {
  background: transparent;
}

.calendar-day-cell.available {
  background: #4CAF50;
  color: white;
  font-weight: bold;
}

.calendar-day-cell.today {
  border: 2px solid #FF9800;
  font-weight: bold;
}

.calendar-day-cell.available.today {
  border: 2px solid #FF9800;
  background: #4CAF50;
  box-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
}

.availability-summary {
  background: #e8f5e8;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.availability-summary p {
  margin: 0;
  color: #2e7d32;
}

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

/* Styles pour les onglets du modal - VERSION CORRIGÉE */
.modal-tabs {
  display: flex;
  flex-direction: row; /* Forcer l'affichage horizontal */
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 5px;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  width: 100%;
}

.modal-tab-btn {
  background: none;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  white-space: nowrap; /* Empêcher le retour à la ligne */
  min-width: 120px; /* Largeur minimale pour chaque onglet */
}

.modal-tab-btn:hover {
  color: #4CAF50;
  background: #f0f8f0;
}

.modal-tab-btn.active {
  color: #4CAF50;
  border-bottom-color: #4CAF50;
  background: white;
  font-weight: 600;
}

.modal-tab-content {
  min-height: 500px;
  width: 100%;
}

.modal-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  width: 100%;
}

.modal-tab-pane.active {
  display: block;
}

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

/* Assurer que le conteneur principal utilise toute la largeur */
.collaborator-details {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Styles pour le modal - mise à jour pour éviter les conflits */
.modal-content {
  background-color: #fefefe;
  margin: 55px;
  padding: 0;
  border: none;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, #4CAF50,
  color: white;
  padding: 20px 25px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
  .modal-tab-btn {
    padding: 12px 15px;
    font-size: 14px;
    min-width: 100px;
  }
  
  .modal-tab-btn i {
    display: none; /* Masquer les icônes sur mobile pour gagner de l'espace */
  }
  
  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
}

@media (max-width: 480px) {
  .modal-tabs {
    flex-direction: row; /* Garder horizontal même sur très petits écrans */
  }
  
  .modal-tab-btn {
    padding: 10px 8px;
    font-size: 12px;
    min-width: 80px;
  }
}

/* Correction pour l'alignement horizontal de la case à cocher */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: normal !important;
  padding: 12px 15px;
  border-radius: 6px;
  transition: background 0.3s ease;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
}

.checkbox-label:hover {
  background: #e9ecef;
}

.checkbox-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: #333;
}

.checkbox-label input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  cursor: pointer;
  accent-color: #4CAF50;
  flex-shrink: 0;
}

.checkbox-label i {
  color: #4CAF50;
  font-size: 16px;
  flex-shrink: 0;
}

/* Assurer que le conteneur parent ne centre pas les éléments */
.form-group.checkbox-group {
  display: block;
  text-align: left;
}

/* CSS additionnel pour forcer l'alignement correct */
.contact-form .checkbox-group {
  text-align: left !important;
  display: block !important;
}

.contact-form .checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
}

.contact-form .checkbox-text {
  order: 1;
  flex: 1;
  text-align: left !important;
}

.contact-form input[type="checkbox"] {
  order: 2;
  margin-left: auto !important;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
  .checkbox-label {
    padding: 10px 12px;
  }
  
  .checkbox-text {
    font-size: 13px;
  }
  
  .checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
  }
}