* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-overlay.active {
  display: block;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 70px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.mobile-menu-btn {
  display: none;
  background: none;
}

.btn-primary {
  background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #00f2fe 0%, #4facfe 100%);
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.step-form .step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.step-form .step-content {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo i {
  color: #4facfe;
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.header-nav i {
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.header-nav i:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.notification {
  position: relative;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.user-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Progress Bar for Multi-step Form */
.progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 30px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: #007bff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  position: relative;
  text-align: center;
}

.progress-steps:before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step.completed {
  cursor: pointer;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  position: relative;
}

.step-label {
  margin-top: 10px;
  font-size: 14px;
  color: #888;
  transition: color 0.3s ease;
}

.step.active .step-number {
  background: #fff;
  border-color: #007bff;
  color: #007bff;
  box-shadow: 0 0 0 2px #007bff;
}

.step.active .step-label {
  color: #333;
  font-weight: 500;
}

.step.completed .step-number {
  background: #4CAF50;
  color: transparent; /* Hide number */
  box-shadow: 0 0 0 2px #4CAF50;
}

.step.completed .step-number:after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: white;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Main Container */
.main-container {
  display: flex;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  overflow-y: auto;
  position: fixed;
  height: calc(100vh - 70px);
  transition: transform 0.3s ease;
  z-index: 998;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-nav .nav-item .nav-link {
  display: block;
  padding: 0.75rem 2rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav-item .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 2.5rem;
}

.sidebar-nav .nav-item .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  border-left: 4px solid white;
}

/* Zone de contenu principale */
.content-area {
  flex: 1;
  padding: 20px;
  margin-left: 0px;
  box-sizing: border-box;
  background-color: #f8f9fa;
  min-height: calc(100vh - 70px);
  position: relative;
  z-index: 1;
}

/* Style classique du tableau de bord */
.classic-dashboard {
  background-color: #f5f7fa;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e9ed;
}

.dashboard-title h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 8px;
}

.dashboard-title p {
  color: #7f8c8d;
  font-size: 14px;
}

.dashboard-actions .btn-primary {
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-actions .btn-primary:hover {
  background-color: #2980b9;
}

.dashboard-nav {
  margin-bottom: 30px;
}

.dashboard-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.dashboard-nav li {
  margin-right: 5px;
}

.dashboard-nav li a {
  display: block;
  padding: 12px 20px;
  color: #7f8c8d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.dashboard-nav li.active a {
  color: #3498db;
  border-bottom: 2px solid #3498db;
}

.dashboard-nav li a:hover {
  color: #3498db;
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Règle pour cacher les onglets de contenu inactifs */
.main-content {
  display: none;
}

/* Afficher uniquement l'onglet actif */
.main-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Styles pour les étapes du formulaire multi-étapes */
.step-form {
  margin-bottom: 30px;
}

.step-form .step-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-form .steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.step-form .steps::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.step-form .step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-form .step.active {
  border-color: #4facfe;
  color: #4facfe;
  box-shadow: 0 0 0 5px rgba(79, 172, 254, 0.1);
}

.step-form .step.done {
  background-color: #4facfe;
  border-color: #4facfe;
  color: white;
}

/* Styles pour les cartes et éléments du tableau de bord */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-header {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.card-body {
  padding: 15px;
}

/* Styles pour les formulaires */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #4facfe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
}

/* Styles pour les colonnes */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col, .col-md-6, .col-lg-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.table th, .table td {
  padding: 12px 15px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}

.table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.table tbody tr:hover {
  background-color: rgba(52, 144, 220, 0.05);
}

.sidebar-nav .nav-section h4 {
  color: rgba(255, 255, 255, 0.7);
  padding: 0 2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-nav .nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.sidebar-nav .nav-section ul li {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-section ul li, 
.sidebar-nav .nav-section ul li .menu-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 2rem;
  gap: 1rem;
}

.sidebar-nav .nav-section ul li .menu-item {
  width: 100%;
  padding: 0;
}

.sidebar-nav .nav-section ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav .nav-section ul li.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 4px solid #4facfe;
}

.sidebar-nav .nav-section ul li i:not(.submenu-toggle) {
  width: 20px;
  text-align: center;
}

.sidebar-nav .nav-section ul li span {
  flex-grow: 1;
}

.sidebar-nav .nav-section ul li .badge {
  position: static;
  margin-left: auto;
}

/* Styles pour les sous-menus - SIMPLIFIÉ */
.sidebar-nav .submenu {
  display: none; /* Cache les sous-menus par défaut */
  padding-left: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-nav .has-submenu.open .submenu {
  display: block; /* Affiche les sous-menus uniquement quand .open est présent */
}

/* Styles pour la validation des formulaires */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  background-color: rgba(220, 53, 69, 0.05);
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 500;
}

.form-group.error .error-message {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-nav .has-submenu .submenu-toggle {
  transition: transform 0.3s ease;
  margin-left: auto;
  font-size: 0.8rem;
}

.sidebar-nav .has-submenu.open .submenu-toggle {
  transform: rotate(180deg);
}

.sidebar-nav .submenu li {
  padding-left: 3rem;
  font-size: 0.95rem;
}

.sidebar-nav .submenu li:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.user-info img {
  width: 60px;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  background-color: #fff;
}

/* Styles pour les champs en erreur */
input.error,
select.error,
textarea.error {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.error-message {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 5px;
  margin-bottom: 15px;
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

input::placeholder {
  color: #a0aec0;
}

/* Checkbox and radio styles */
input[type="checkbox"],
input[type="radio"] {
  margin-right: 8px;
}

.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Required field indicator */
.required-field::after {
  content: '*';
  color: #e53e3e;
  margin-left: 4px;
}

/* ... */

/* Responsive form styles */
@media (min-width: 769px) {
  .form-step {
    padding: 30px;
  }
  
  .form-navigation {
    flex-direction: row;
  }
  
  .btn-prev, .btn-next, .btn-submit {
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .form-step {
    padding: 15px;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-prev, .btn-next, .btn-submit {
    width: 100%;
    justify-content: center;
  }
  
  .nav-spacer {
    display: none;
  }
  
  .flex-spacer {
    display: none;
  }
}

/* Improved form field styling for mobile */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-size: 16px; /* Prevents zoom on iOS */
  padding: 12px;
}

/* Better spacing for form groups */
.form-group {
  margin-bottom: 20px;
}

/* Make signature pads responsive */
.signature-container {
  flex-direction: column;
}

.signature-pad-container {
  width: 100%;
  margin-bottom: 15px;
}

/* Styles pour le formulaire multi-étapes */
.form-progress {
  margin-bottom: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.progress-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 5px;
  transition: width 0.5s ease-in-out;
}

/* Styles pour les étapes du formulaire */
/* Style général du formulaire */
.form-step {
  display:none;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.form-step h4 {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  align-items: center;
}

.form-step h4 i {
  margin-right: 10px;
  color: #3498db;
}

/* Sections du formulaire */
.form-section {
  margin-bottom: 30px;
}

.form-section h5 {
  color: #34495e;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.form-section h5 i {
  margin-right: 10px;
  color: #3498db;
  font-size: 14px;
}

/* Disposition en grille responsive */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-group {
  flex: 1 0 calc(50% - 20px);
  margin: 0 10px 20px;
  min-width: 0;
}

/* Styles des champs de formulaire */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
  font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Style pour les champs obligatoires */
.required {
  color: #e74c3c;
  font-size: 12px;
}

/* Style pour les boutons */
button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
}

button:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

button i {
  margin-right: 8px;
}

/* Style pour le bouton de géolocalisation */
#me-localiser {
  background: #2ecc71;
}

#me-localiser:hover {
  background: #27ae60;
}

#geolocalisation-status {
  margin-left: 10px;
  font-size: 12px;
  color: #7f8c8d;
}

/* Style pour les sliders */
.slider {
  width: 100%;
  margin: 15px 0 5px;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  background: #2980b9;
  transform: scale(1.1);
}

.slider-value {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.slider-value span {
  font-weight: 600;
  color: #2c3e50;
  margin-left: 5px;
}

/* Style pour les selects */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

/* Style responsive */
@media (max-width: 768px) {
  .form-group {
      flex: 1 0 100%;
  }
  
  .form-row {
      flex-direction: column;
  }
  
  .form-step {
      padding: 15px;
  }
}

/* Animation pour les sections */
.form-section {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Style pour la table d'identité (optionnel) */
.identity-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.identity-table th, 
.identity-table td {
  padding: 12px 15px;
  border: 1px solid #ecf0f1;
  text-align: left;
}

.identity-table th {
  background-color: #f8f9fa;
  font-weight: 500;
  color: #7f8c8d;
  font-size: 13px;
}

.identity-table td {
  font-weight: 500;
  color: #2c3e50;
}
.form-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container pour les boutons de navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.flex-spacer {
  flex-grow: 1;
  min-width: 20px;
}

.nav-spacer {
  width: 100px;
}

/* Styles pour les boutons */
.btn-prev, .btn-next, .btn-submit {
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-prev {
  background-color: #fff;
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-prev:hover {
  background-color: #f0f2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.btn-next {
  background-color: #667eea;
  color: white;
  border: none;
}

.btn-next:hover {
  background-color: #5a6fd9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

.btn-submit {
  background-color: #10b981;
  color: white;
  border: none;
}

.btn-submit:hover {

.progress-fill {
height: 100%;
background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
border-radius: 5px;
transition: width 0.5s ease-in-out;
}

/* Styles pour les étapes du formulaire */
.form-step {
display: none; /* Masquer toutes les étapes par défaut */
background-color: #fff;
border-radius: 10px;
padding: 25px;
margin-bottom: 20px;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
transition: all 0.3s ease;
}

.form-step.active {
display: block;
animation: fadeIn 0.5s;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

/* Container pour les boutons de navigation */
.form-navigation {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e9ecef;
}

.flex-spacer {
flex-grow: 1;
min-width: 20px;
}

.nav-spacer {
width: 100px;
}

/* Styles pour les boutons */
.btn-prev, .btn-next, .btn-submit {
padding: 12px 24px;
border-radius: 5px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
cursor: pointer;
}

.btn-prev {
background-color: #fff;
color: #667eea;
border: 1px solid #667eea;
}

.btn-prev:hover {
background-color: #f0f2ff;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.btn-next {
background-color: #667eea;
color: white;
border: none;
}

.btn-next:hover {
background-color: #5a6fd9;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

.btn-submit {
background-color: #10b981;
color: white;
border: none;
}

.btn-submit:hover {
background-color: #0ea271;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
color: #666;
}

.step.active .step-label {
color: #333;
font-weight: 500;
}

.step.completed {
cursor: pointer;
}

.progress-bar {
height: 4px;
background: #e0e0e0;
border-radius: 2px;
margin-bottom: 30px;
overflow: hidden;
}

.progress-fill {
height: 100%;
background: #4CAF50;
width: 20%;
transition: width 0.3s ease;
}

/* Gestion des étapes du formulaire */
.form-step {
display: none;
animation: fadeIn 0.5s ease;
}

.form-step.active {
display: block;
}

.form-navigation {
display: flex;
justify-content: space-between;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
}

/* Styles spécifiques pour les champs du formulaire */
.etude-form .form-section {
margin-bottom: 25px;
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
}

.etude-form h4 {
margin-top: 0;
color: #2c3e50;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}

.etude-form h4 i {
color: #4CAF50;
}

/* Styles responsives */
@media (max-width: 768px) {
.progress-steps {
    flex-wrap: wrap;
    gap: 15px;
}

.step {
    width: 60px;
}

.step-label {
    font-size: 10px;
}

.form-navigation {
    flex-direction: column;
    gap: 10px;
}

.btn {
    width: 100%;
    justify-content: center;
}
}

/* Styles pour l'étape 6 - Validation du devis */
.recap-final {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recap-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recap-logo {
    margin-right: 20px;
}

.recap-logo img {
    max-height: 60px;
    width: auto;
}

.recap-titre h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.recap-titre p {
    margin: 5px 0 0;
    color: #7f8c8d;
}

.recap-client {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.recap-client h6 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

.recap-client p {
    margin: 5px 0;
    color: #34495e;
}

.recap-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.recap-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.recap-detail-item:last-child {
    border-bottom: none;
}

.recap-montants {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
    border: 1px solid #eee;
}

.recap-montant-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem;
}

.recap-montant-item.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #ddd;
}

.recap-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Zones de signature */
.signature-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.signature-box {
    flex: 1;
    min-width: 250px;
}

.signature-box h6 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.signature-pad {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 10px;
}

.signature-pad-body {
    height: 150px;
    position: relative;
}

.signature-pad-body canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px 4px 0 0;
}

.signature-pad-footer {
    padding: 8px;
    text-align: right;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
}

/* Case à cocher des conditions */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-container label {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Alertes */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.alert-info {
    background-color: #e7f5ff;
    border-left: 4px solid #4dabf7;
    color: #1864ab;
}

.alert i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .recap-header {
        flex-direction: column;
        text-align: center;
    }
    
    .recap-logo {
        margin: 0 0 15px 0;
    }
    
    .recap-details {
        grid-template-columns: 1fr;
    }
    
    .signature-container {
        flex-direction: column;
    }
    
    .recap-actions {
        flex-direction: column;
    }
    
    .recap-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Styles pour les curseurs (sliders) */
input.slider {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, #3490dc 0%, #3490dc 50%, #e9ecef 50%, #e9ecef 100%);
  outline: none;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  margin: 15px 0 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

input.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #3490dc;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

input.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #3490dc;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

input.slider:hover::-webkit-slider-thumb,
input.slider:active::-webkit-slider-thumb {
  background: #2779bd;
  transform: scale(1.1);
}

input.slider:hover::-moz-range-thumb,
input.slider:active::-moz-range-thumb {
  background: #2779bd;
  transform: scale(1.1);
}

/* Styles pour l'affichage des valeurs des curseurs */
.slider-value {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-top: 5px;
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  transition: margin 0.3s ease-out;
}

.slider-value span {
  color: #3490dc;
  font-weight: 700;
  transition: color 0.3s ease, font-size 0.3s ease;
}

/* Animation de surbrillance */
.slider-value span.highlight {
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Style pour les curseurs au survol */
input.slider:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 144, 220, 0.5);
}

/* Style conteneur pour l'ensemble slider + valeur */
.form-group:has(input.slider) {
  position: relative;
  padding-bottom: 30px; /* Espace pour l'affichage de la valeur */
}

/* Animation lors du changement de valeur */
@keyframes fadeHighlight {
  0% { background-color: rgba(52, 144, 220, 0.2); }
  100% { background-color: #f8f9fa; }
}

.slider-value:has(span.highlight) {
  animation: fadeHighlight 0.5s ease-in-out;
}

/* Animation lorsque le curseur est déplacé activement */
.slider-value.active {
  background-color: rgba(52, 144, 220, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);.
  font-weight: 700;
  transform: translateY(-2px) scale(1.05);
  transition: all 0.3s ease;
}

/* Animation pour suivre le curseur */
.slider-value {
  transition: margin-left 0.2s ease-out, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style épuré pour les options de type de paroi */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 5px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.checkbox-container:hover {
  background-color: #e9ecef;
}

.checkbox-container input[type="radio"] {
  margin-right: 5px;
}

.checkbox-container input[type="radio"]:checked + .checkmark + span,
.checkbox-container input[type="radio"]:checked ~ span {
  font-weight: 600;
}

.checkbox-container input[type="radio"]:checked {
  accent-color: #3490dc;
}

.checkbox-container:has(input[type="radio"]:checked) {
  background-color: rgba(52, 144, 220, 0.1);
  border-color: #3490dc;
}

/* Grille pour 3 colonnes */
.form-grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px; /* Espace entre les champs */
}