/* Styles pour la page de contact */
.content-zone {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: transparent !important;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(1px);
}

.page-title {
  text-align: center;
  color: #1e293b !important;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
}

/* Styles pour les fieldsets */
fieldset {
  border: none;
  margin-bottom: 2rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(33, 150, 243, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(3px);
}

/* Styles de base pour les légendes et labels */
fieldset legend {
  color: #2196f3;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: none;
  text-align: center;
}

.form-group label {
  color: #000000 !important;
  font-weight: 500;
}

/* Style spécifique pour les labels du formulaire de contact */
.form-group label,
.form-group label span,
.form-group label div {
  color: #000000 !important;
}

/* Forcer la couleur noire pour tous les textes dans les labels */
.form-group label * {
  color: #000000 !important;
}

/* Style spécifique pour les textes des labels */
.form-group label:not(.consent-line) {
  color: #000000 !important;
}

/* Grille d'options */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Style des options */
.option {
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--light-gray);
  height: 160px; /* Hauteur fixe pour toutes les cartes */
  width: 100%; /* Largeur à 100% pour s'adapter à la grille */
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
  box-sizing: border-box;
}

/* Cache le radio button par défaut */
.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  outline: none;
}

/* Style de base des icônes */
.option i {
  font-size: 2.5rem; /* Taille fixe pour toutes les icônes */
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
  pointer-events: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--primary-color);
}

/* Style du texte */
.option span {
  font-size: 1rem; /* Taille fixe pour tout le texte */
  text-align: center;
  color: var(--dark);
  pointer-events: none;
  outline: none;
  line-height: 1.2;
  margin-top: var(--space-xs);
}

/* Style pour le texte "(réservé aux abonnés)" */
.option span small {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-top: 0.3rem;
}

/* Effet au survol */
.option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* Style quand sélectionné */
.option.selected {
  background: var(--primary-light);
  border-color: var(--primary-color);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

/* Style quand sélectionné ET survolé */
.option.selected:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(33, 150, 243, 0.3) !important;
}

/* Style des champs de formulaire */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #333333; /* Couleur du texte saisi */
  background-color: #ffffff; /* Fond blanc */
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: #2196f3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  color: #333333; /* Assurer la visibilité au focus */
}

/* Styles pour les placeholders */
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
  color: #999999;
  opacity: 1;
}

/* Style du compteur de caractères */
#message-counter {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Style de la checkbox de confidentialité */
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
}

/* Style du bouton d'envoi */
.form-actions {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
}

.btn-primary {
  background: #2196f3;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary:hover {
  background: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

/* États des boutons */
.btn-primary:disabled {
  background: #90caf9;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Messages de succès et d'erreur */
#form-messages-guide {
  display: none;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

#form-messages-guide.show {
  display: block;
}

#form-messages-guide.success {
  background-color: var(--success-bg, #d4edda);
  color: var(--success-color, #155724);
  border: 1px solid var(--success-border, #c3e6cb);
}

#form-messages-guide.error {
  background-color: var(--error-bg, #f8d7da);
  color: var(--error-color, #721c24);
  border: 1px solid var(--error-border, #f5c6cb);
}

/* États des champs de formulaire */
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef5350;
  background-color: #fff8f8;
}

.form-group.error .error-message {
  color: #ef5350;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-group.error .error-message::before {
  content: "⚠";
  font-size: 1rem;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #4caf50;
  background-color: #f8fff8;
}

/* Animation de chargement pour le formulaire */
.form-loading {
  position: relative;
}

.form-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.form-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

/* Styles spécifiques pour les niveaux d'urgence */
#fieldset-urgence .option[value="Critique"] i {
  color: #f44336 !important;
}

#fieldset-urgence .option[value="Haute"] i {
  color: #ff9800 !important;
}

#fieldset-urgence .option[value="Moyenne"] i {
  color: #ffc107 !important;
}

#fieldset-urgence .option[value="Faible"] i {
  color: #4caf50 !important;
}

/* Animation de progression */
.form-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  z-index: 1000;
}

.form-progress-bar {
  height: 100%;
  background: #2196f3;
  width: 0;
  transition: width 0.3s ease;
}

/* Amélioration de la réactivité des options */
.option input[type="radio"]:checked + i {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.option:active {
  transform: scale(0.98);
}

/* Style pour les fieldsets complétés */
fieldset.completed {
  border-left: 4px solid #4caf50;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .content-zone {
    padding: 1rem;
    margin: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .options {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  .option {
    height: 140px; /* Hauteur réduite sur mobile */
    padding: var(--space-sm);
  }

  .option i {
    font-size: 2rem; /* Icônes plus petites sur mobile */
  }

  .option span {
    font-size: 0.9rem;
  }

  .option span small {
    font-size: 0.7rem;
  }

  .btn-primary {
    width: 100%;
  }

  fieldset {
    margin-bottom: 1.5rem;
  }

  .form-progress {
    height: 3px;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .form-actions {
    padding: 1rem 0;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  #form-messages-guide {
    margin: 1rem 0;
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  fieldset legend {
    color: #333333 !important;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: none;
  }

  .form-group label {
    color: #333333 !important;
  }

  .option span {
    color: #333333;
  }
}

/* Amélioration de l'accessibilité pour les nouveaux éléments */
.option input[type="radio"]:focus + i {
  outline: 3px solid rgba(33, 150, 243, 0.5);
  outline-offset: 2px;
}

/* Style pour les messages d'aide */
.help-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Animation pour les transitions entre les sections */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

fieldset {
  animation: slideIn 0.3s ease-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group,
.option {
  animation: fadeIn 0.3s ease-out;
}

/* Accessibilité */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Focus styles pour l'accessibilité */
*:focus {
  outline: 3px solid rgba(33, 150, 243, 0.5);
  outline-offset: 2px;
}

/* Styles spécifiques à la page de contact */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.main-content {
  position: relative;
  padding: var(--space-lg);
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.main-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/fonds/fond_012.webp");
  background-size: 100% auto;
  background-position: center;
  background-repeat: repeat-y;
  filter: brightness(0.3) saturate(0.5);
  opacity: 0.08;
  z-index: -2;
}

.main-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

/* Style des options */
.option {
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--light-gray);
  min-height: 150px;
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
}

/* Cache le radio button par défaut */
.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  outline: none;
}

/* Style de base des icônes */
.option i {
  font-size: var(--font-size-xxl);
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
  pointer-events: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Style du texte */
.option span {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--dark);
  pointer-events: none;
  outline: none;
}

/* Effet au survol */
.option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* Style quand sélectionné */
.option.selected {
  background: var(--primary-light);
  border-color: var(--primary-color);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

/* Styles spécifiques pour les icônes de la page contact */
#fieldset-support .option[value="PC"] i {
  color: #2196f3 !important;
}
#fieldset-support .option[value="Portable"] i {
  color: #1976d2 !important;
}
#fieldset-support .option[value="Tablette"] i {
  color: #0d47a1 !important;
}
#fieldset-support .option[value="Téléphone"] i {
  color: #2962ff !important;
}
#fieldset-support .option[value="Imprimante"] i {
  color: #304ffe !important;
}
#fieldset-support .option[value="Internet"] i {
  color: #2979ff !important;
}

#fieldset-intervention .option[value="Distance"] i {
  color: #00bcd4 !important;
}
#fieldset-intervention .option[value="Domicile"] i {
  color: #009688 !important;
}
#fieldset-intervention .option[value="Atelier"] i {
  color: #00796b !important;
}
#fieldset-intervention .option[value="Conseil"] i {
  color: #26a69a !important;
}

/* Styles spécifiques pour les niveaux d'urgence */
#fieldset-urgence .option[value="Critique"] i {
  color: #f44336 !important;
}
#fieldset-urgence .option[value="Haute"] i {
  color: #ff9800 !important;
}
#fieldset-urgence .option[value="Moyenne"] i {
  color: #ffc107 !important;
}
#fieldset-urgence .option[value="Faible"] i {
  color: #4caf50 !important;
}

/* Désactiver les événements de pointeur sur les éléments internes */
.option * {
  pointer-events: none;
}

/* Assurer que le label est cliquable */
.option {
  pointer-events: auto;
}

/* Style des fieldsets */
fieldset {
  border: none;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
}

fieldset legend {
  font-size: 1.5rem;
  color: #2196f3;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Media queries */
@media (max-width: 1200px) {
  .main-content {
    padding: 1.5rem;
  }

  .options {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Styles mobiles */
@media (max-width: 768px) {
  .main-content {
    padding: 0.3rem !important;
    padding-top: calc(var(--navbar-height) + 0.5rem) !important;
    min-height: calc(100vh - 60px);
  }

  .main-content::before {
    background-size: 200% auto !important;
    filter: brightness(0.2) saturate(0.3);
    opacity: 0.05;
  }

  .page-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.6rem !important;
    padding: 0 0.8rem;
    color: #1e293b !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  }

  .content-zone {
    width: 100%;
    padding: 0.5rem !important;
    margin: 0;
  }

  .options {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.3rem !important;
    margin-bottom: 0.6rem !important;
    justify-items: center !important;
    place-items: center !important;
  }

  .option {
    padding: 0.3rem !important;
    min-height: 80px;
    max-height: 80px;
    aspect-ratio: 1/1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 8px !important;
    width: 100% !important;
    justify-self: center !important;
  }

  /* Centrer la dernière carte si elle est seule sur sa ligne */
  .option:nth-child(7) {
    grid-column: 2 / 3 !important;
  }

  .option i {
    font-size: 1rem !important;
    margin-bottom: 0.2rem;
  }

  .option span {
    font-size: 0.65rem !important;
    line-height: 1.1;
    text-align: center !important;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    display: block;
    height: fit-content;
  }

  /* Style spécifique pour les textes avec <small> */
  .option span small {
    font-size: 0.5rem !important;
    line-height: 1;
    display: block;
    margin-top: 0.1rem;
    opacity: 0.8;
    color: #666;
  }

  fieldset {
    padding: 0.5rem !important;
    margin-bottom: 0.8rem !important;
    border-radius: 8px;
  }

  fieldset legend {
    color: #2196f3;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center;
    padding: 0 0.3rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .form-actions {
    margin-top: 1.5rem;
    padding: 0;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  #form-messages-guide {
    margin: 1rem 0;
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Styles pour très petits écrans */
@media (max-width: 480px) {
  .main-content {
    padding: 0.2rem !important;
    padding-top: calc(var(--navbar-height) + 0.3rem) !important;
  }

  .content-zone {
    padding: 0.3rem !important;
  }

  .page-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.4rem !important;
  }

  .options {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.25rem !important;
    margin-bottom: 0.4rem !important;
    justify-items: center !important;
    place-items: center !important;
  }

  .option {
    min-height: 75px !important;
    max-height: 75px !important;
    padding: 0.25rem !important;
    width: 100% !important;
    justify-self: center !important;
  }

  /* Pour les très petits écrans avec 7 éléments en 2 colonnes, centrer le dernier */
  .option:nth-child(7) {
    grid-column: 1 / 3 !important;
    max-width: 75px !important;
    margin: 0 auto !important;
  }

  .option i {
    font-size: 0.9rem !important;
    margin-bottom: 0.1rem;
  }

  .option span {
    font-size: 0.6rem !important;
    line-height: 0.95;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  /* Style spécifique pour le texte long "À distance (réservé aux abonnés)" */
  .option span small {
    font-size: 0.45rem !important;
    line-height: 0.9;
    display: block;
    margin-top: 0.1rem;
    opacity: 0.85;
  }

  fieldset {
    padding: 0.3rem !important;
    margin-bottom: 0.5rem !important;
  }

  fieldset legend {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
  }
}

/* Reset des styles pour éviter les conflits */
.main-content * {
  box-sizing: border-box;
}

/* Styles de base améliorés */
.main-content {
  position: relative;
  padding: 1rem 2rem;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  padding-top: calc(var(--navbar-height) + 1rem) !important;
  padding-bottom: 2rem !important;
}

.main-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/fonds/fond_012.webp") !important;
  background-size: 100% auto !important;
  background-position: center !important;
  background-repeat: repeat-y !important;
  filter: brightness(0.7) !important;
  z-index: -1;
}

.content-zone {
  background: transparent !important;
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem !important;
  margin-bottom: 0 !important;
}

/* Styles des cartes d'options optimisés */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto 2rem;
  justify-items: center;
  place-items: center;
}

.option {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.option:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-color: #2196f3;
}

.option.selected {
  background: rgba(33, 150, 243, 0.1);
  border-color: #2196f3;
}

.option i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2196f3;
  transition: all 0.3s ease;
}

.option span {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Animation des cartes */
.option {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Suppression des styles conflictuels */
.option * {
  pointer-events: none;
}

.option input[type="radio"] {
  pointer-events: auto;
}

/* Style des legends */
legend {
  color: var(--dark);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
    padding-bottom: 1rem !important;
    min-height: auto !important;
  }

  .main-content::before {
    background-size: 200% auto;
  }

  legend {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .content-zone {
    width: 100%;
    padding: 1rem;
  }
}

/* Animations et effets interactifs */
.option {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Effet Ripple */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Animation de sélection */
.option.selected {
  animation: selectPulse 0.3s ease;
}

@keyframes selectPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* Feedback tactile */
.option:active {
  transform: scale(0.97);
}

/* Animation d'entrée des fieldsets */
fieldset {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style de la section récapitulative */
.recap-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.recap-section h3 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.recap-content {
  display: grid;
  gap: 1rem;
}

.recap-content p {
  margin: 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.recap-content p.filled {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.2);
}

.recap-content p strong {
  color: #444;
  margin-right: 0.5rem;
  font-weight: 600;
}

.recap-content p span {
  color: #666;
  transition: color 0.3s ease;
}

.recap-content p.filled span {
  color: #2196f3;
  font-weight: 500;
}

/* Messages de formulaire */
#form-messages-guide {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

#form-messages-guide.show {
  opacity: 1;
  transform: translateY(0);
}

/* Suppression du outline sur mobile */
@media (max-width: 768px) {
  .option:focus,
  .option:active,
  .option *:focus,
  .option *:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Validation des champs */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
  border-color: #ef5350;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
  border-color: #4caf50;
}

/* Messages de validation */
.validation-message {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: fadeIn 0.3s ease;
}

.validation-message.error {
  color: #ef5350;
}

.validation-message.error::before {
  content: "⚠";
}

.validation-message.success {
  color: #4caf50;
}

.validation-message.success::before {
  content: "✓";
}

/* Style des champs requis */
.form-group.required label::after {
  content: "*";
  color: #ef5350;
  margin-left: 0.3rem;
}

/* Feedback visuel pour les champs */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* Style des options sélectionnées */
.option.selected.valid {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.option.selected.invalid {
  border-color: #ef5350;
  background: rgba(239, 83, 80, 0.1);
}

/* Messages d'aide */
.help-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3rem;
  font-style: italic;
}

.help-text.warning {
  color: #ff9800;
}

/* Styles pour le récapitulatif */
.recap-content p.invalid {
  border-color: #ef5350;
  background: rgba(239, 83, 80, 0.1);
}

.recap-content p.valid {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

/* Styles pour mobile */
@media (max-width: 768px) {
  .validation-message {
    font-size: 0.8rem;
  }

  .help-text {
    font-size: 0.8rem;
  }

  .form-group.required label::after {
    font-size: 1rem;
  }
}

/* Accessibilité et focus */
:root {
  --focus-ring-color: rgba(33, 150, 243, 0.4);
}

/* Styles de focus améliorés */
*:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* Styles pour le focus des options */
.option:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-color: #2196f3;
}

/* Support de la navigation au clavier */
.option:focus {
  position: relative;
}

.option:focus::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: calc(var(--border-radius-lg) + 3px);
  border: 3px solid var(--focus-ring-color);
  pointer-events: none;
}

/* Amélioration de l'accessibilité des messages */
#form-messages-guide {
  position: relative;
  padding-left: 2rem;
}

#form-messages-guide::before {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

#form-messages-guide.success::before {
  content: "\f058";
  color: #2e7d32;
}

#form-messages-guide.error::before {
  content: "\f06a";
  color: #c62828;
}

/* Skip links pour l'accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2196f3;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Support des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: more) {
  .option {
    border-width: 2px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    border-width: 2px;
  }

  .btn-primary {
    border: 2px solid #1565c0;
  }
}

/* Support du mode sombre */
@media (prefers-color-scheme: dark) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }

  .form-group label {
    color: rgba(255, 255, 255, 0.9);
  }

  .help-text {
    color: rgba(255, 255, 255, 0.7);
  }

  #message-counter {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Styles pour le wizard multi-étapes */
/* ====================================== */

/* Barre de progression */
.progress-bar {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  backdrop-filter: blur(3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3e9f7;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.1s ease, color 0.1s ease, transform 0.1s ease;
  border: 2px solid transparent;
}

.step.active .step-icon {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: scale(1.1);
}

.step.completed .step-icon {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  transition: color 0.1s ease;
}

.step.active .step-label {
  color: #2563eb;
  font-weight: 600;
}

.step.completed .step-label {
  color: #10b981;
}

.progress-line {
  height: 4px;
  background: #e3e9f7;
  border-radius: 2px;
  position: relative;
  margin-top: -2rem;
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #4f8cff 100%);
  border-radius: 2px;
  transition: width 0.1s ease;
  width: 0%;
}

/* Panels des étapes */
.step-panel {
  display: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.step-panel.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Grilles et cartes - s'assurer qu'elles sont toujours visibles quand le panel est actif */
.step-panel.active .device-grid,
.step-panel.active .problem-grid,
.step-panel.active .intervention-grid,
.step-panel.active .urgency-grid,
.step-panel.active .availability-grid {
  display: grid;
  opacity: 1;
  visibility: visible;
}

.step-panel.active .device-card,
.step-panel.active .problem-option,
.step-panel.active .intervention-option,
.step-panel.active .urgency-option,
.step-panel.active .availability-option {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Grilles d'options */
.device-grid,
.problem-grid,
.intervention-grid,
.urgency-grid,
.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Styles spécifiques pour la grille des problèmes */
.problem-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }
}

.device-option,
.problem-option,
.intervention-option,
.urgency-option,
.availability-option {
  position: relative;
  cursor: pointer;
  border: 2px solid #e3e9f7;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.device-option:hover,
.problem-option:hover,
.intervention-option:hover,
.urgency-option:hover,
.availability-option:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.device-option input:checked + .device-icon + .device-name,
.problem-option input:checked + .problem-icon + .problem-name,
.intervention-option input:checked + .intervention-icon + .intervention-name,
.urgency-option input:checked + .urgency-icon + .urgency-name,
.availability-option input:checked + .availability-icon + .availability-name {
  color: #2563eb;
  font-weight: 600;
}

.device-option input:checked ~ *,
.problem-option input:checked ~ *,
.intervention-option input:checked ~ *,
.urgency-option input:checked ~ *,
.availability-option input:checked ~ * {
  color: #2563eb;
}

.device-option input:checked,
.problem-option input:checked,
.intervention-option input:checked,
.urgency-option input:checked,
.availability-option input:checked {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb 0%, #4f8cff 100%);
}

/* Styles pour les options sélectionnées */
.problem-option.selected,
.intervention-option.selected,
.urgency-option.selected,
.availability-option.selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb 0%, #4f8cff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.problem-option.selected .problem-icon,
.intervention-option.selected .intervention-icon,
.urgency-option.selected .urgency-icon,
.availability-option.selected .availability-icon {
  background: #2563eb;
  color: #fff;
}

.problem-option.selected .problem-name,
.intervention-option.selected .intervention-name,
.urgency-option.selected .urgency-name,
.availability-option.selected .availability-name {
  color: #2563eb;
  font-weight: 600;
}

/* Styles spécifiques pour les options de problème */
.problem-option {
  min-height: 120px;
  justify-content: center;
}

.problem-option .problem-icon {
  margin-bottom: 0.5rem;
}

.problem-option .problem-name {
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

/* Styles pour les checkboxes de disponibilités */
.availability-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  outline: none;
}

.availability-option.selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb 0%, #4f8cff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.availability-option.selected .availability-icon {
  background: #2563eb;
  color: #fff;
}

.availability-option.selected .availability-name {
  color: #2563eb;
  font-weight: 600;
}

.device-option input:checked + .device-icon,
.problem-option input:checked + .problem-icon,
.intervention-option input:checked + .intervention-icon,
.urgency-option input:checked + .urgency-icon,
.availability-option input:checked + .availability-icon {
  background: #2563eb;
  color: #fff;
}

.device-icon,
.problem-icon,
.intervention-icon,
.urgency-icon,
.availability-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.device-name,
.problem-name,
.intervention-name,
.urgency-name,
.availability-name {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.intervention-desc,
.urgency-desc,
.availability-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

/* Champs de contact */
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Récapitulatif */
.summary-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e3e9f7;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e3e9f7;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: #374151;
}

.summary-value {
  color: #2563eb;
  font-weight: 500;
}

/* Navigation */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e9f7;
}

.btn-primary,
.btn-secondary {
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.1s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb 0%, #4f8cff 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #e5e7eb;
  color: #1f2937;
}

/* Messages du wizard */
#form-messages-wizard {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  display: none;
}

#form-messages-wizard.success {
  display: block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #10b981;
}

#form-messages-wizard.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #f87171;
}

/* Responsive pour le wizard */
@media (max-width: 768px) {
  .step-title {
    font-size: 1.3rem;
  }

  .device-grid,
  .problem-grid,
  .intervention-grid,
  .urgency-grid,
  .availability-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  .device-option,
  .problem-option,
  .intervention-option,
  .urgency-option,
  .availability-option {
    padding: 1rem 0.8rem;
  }

  .device-icon,
  .problem-icon,
  .intervention-icon,
  .urgency-icon,
  .availability-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .wizard-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .progress-steps {
    gap: 0.5rem;
  }

  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .device-grid,
  .problem-grid,
  .intervention-grid,
  .urgency-grid,
  .availability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Styles pour la première étape refondue */
/* ====================================== */

/* En-tête de l'étape */
.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-description {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Sélection d'appareil */
.device-selection {
  position: relative;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  /* Assurer la stabilité de la grille */
  grid-auto-rows: 1fr;
  align-items: stretch;
}

/* S'assurer que les cartes gardent leur forme */
.device-card {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Éviter les changements de layout */
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Cartes d'appareil modernes */
.device-card {
  position: relative;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  z-index: 2;
  /* Assurer la stabilité du layout */
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.device-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.device-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.device-card-content {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.device-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.device-icon-wrapper i {
  font-size: 2rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.device-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.device-description {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.selection-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.selection-indicator i {
  font-size: 0.75rem;
  color: #fff;
}

/* États sélectionnés */
.device-card input[type="radio"]:checked + .device-card-content {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.device-card
  input[type="radio"]:checked
  + .device-card-content
  .device-icon-wrapper {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: scale(1.1);
}

.device-card
  input[type="radio"]:checked
  + .device-card-content
  .device-icon-wrapper
  i {
  color: #fff;
}

.device-card input[type="radio"]:checked + .device-card-content .device-title {
  color: #1e40af;
}

.device-card
  input[type="radio"]:checked
  + .device-card-content
  .device-description {
  color: #475569;
}

.device-card
  input[type="radio"]:checked
  + .device-card-content
  .selection-indicator {
  background: #10b981;
  opacity: 1;
  transform: scale(1);
}

/* Feedback de sélection */
.selection-feedback {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.selection-feedback.selected {
  background: #eff6ff;
  border-color: #3b82f6;
}

.feedback-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #64748b;
}

.feedback-content i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.feedback-content.selected {
  color: #1e40af;
}

.feedback-content.selected i {
  color: #10b981;
}

/* Animation d'entrée pour les cartes */
.device-card {
  animation: slideInUp 0.3s ease forwards;
  opacity: 0;
  transform: translateY(10px);
  /* Éviter les conflits de layout */
  will-change: transform, opacity;
}

/* Désactiver les animations lors des transitions d'étapes */
.step-panel:not(.active) .device-card {
  animation: none;
  opacity: 1;
  transform: none;
}

.device-card:nth-child(1) {
  animation-delay: 0.05s;
}
.device-card:nth-child(2) {
  animation-delay: 0.1s;
}
.device-card:nth-child(3) {
  animation-delay: 0.15s;
}
.device-card:nth-child(4) {
  animation-delay: 0.2s;
}
.device-card:nth-child(5) {
  animation-delay: 0.25s;
}
.device-card:nth-child(6) {
  animation-delay: 0.3s;
}
.device-card:nth-child(7) {
  animation-delay: 0.35s;
}
.device-card:nth-child(8) {
  animation-delay: 0.4s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive pour les cartes */
@media (max-width: 768px) {
  .device-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .device-card-content {
    padding: 1.5rem 1rem;
  }

  .device-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .device-icon-wrapper i {
    font-size: 1.5rem;
  }

  .device-title {
    font-size: 1.1rem;
  }

  .device-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .step-description {
    font-size: 1rem;
  }

  .device-card-content {
    padding: 1.25rem 0.75rem;
  }

  .selection-feedback {
    padding: 0.75rem 1rem;
  }

  .feedback-content {
    font-size: 0.9rem;
  }
}

/* Amélioration de la barre de progression pour l'étape 1 */
.progress-steps .step[data-step="1"] .step-icon {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  transform: scale(1.1);
}

.progress-steps .step[data-step="1"] .step-label {
  color: #1e40af;
  font-weight: 600;
}

/* Bouton suivant dynamique */
.btn-next.dynamic-text {
  position: relative;
  overflow: hidden;
}

.btn-next.dynamic-text::before {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-next.dynamic-text.showing-dynamic::before {
  opacity: 1;
}

.btn-next.dynamic-text.showing-dynamic span {
  opacity: 0;
}

/* Effet de pulsation lors de la sélection */
.device-card.selection-pulse,
.problem-option.selection-pulse,
.intervention-option.selection-pulse,
.urgency-option.selection-pulse,
.availability-option.selection-pulse {
  animation: selectionPulse 0.1s ease;
}

@keyframes selectionPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
}

/* Amélioration de l'état sélectionné */
.device-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.device-card.selected .device-icon-wrapper {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: scale(1.1);
}

.device-card.selected .device-icon-wrapper i {
  color: #fff;
}

.device-card.selected .device-title {
  color: #1e40af;
}

.device-card.selected .device-description {
  color: #475569;
}

.device-card.selected .selection-indicator {
  background: #10b981;
  opacity: 1;
  transform: scale(1);
}

/* Correction affichage panels wizard multi-étapes */
.step-panel {
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  pointer-events: auto !important;
}

.step-panel.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  pointer-events: auto !important;
}

.step-panel .device-grid,
.step-panel .problem-grid,
.step-panel .intervention-grid,
.step-panel .urgency-grid,
.step-panel .availability-grid {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}

.step-panel .device-card,
.step-panel .problem-option,
.step-panel .intervention-option,
.step-panel .urgency-option,
.step-panel .availability-option {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}

/* Correction finale : footer identique aux autres pages */
.main-footer .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.main-footer .footer-content,
.main-footer .footer-bottom {
  width: 100%;
  padding: 0;
  margin: 0;
}
