/* Styles spectaculaires pour la page de commande FAPECO */

/* Fond principal grandiose */
#commander-content {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #000428 0%, #004e92 100%);
  padding: 60px 0 0 0; 
  margin-bottom: 0; 
  z-index: 1;
}

/* Démarcation verte avec effet entre la section hero et le formulaire */
.green-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #6cb33f; /* Couleur verte FAPECO */
  z-index: 5;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(108, 179, 63, 0.8);
}

.green-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(200%); }
}

/* Transition fluide vers le footer */
#commander-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, #212529 100%);
  z-index: 3;
  pointer-events: none;
}

/* On personnalise aussi le footer pour cette page spécifique */
body:has(#commander-content) footer {
  margin-top: 0;
  position: relative;
  z-index: 5;
  background: #212529;
}

/* Superposition de nébuleuse */
.nebula-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Éléments d'arrière-plan spectaculaires */
.cosmic-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Lueurs d'énergie */
.energy-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 2;
  animation: pulse-glow 15s infinite alternate;
}

.glow-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 179, 63, 0.4) 0%, rgba(108, 179, 63, 0) 70%);
  top: -200px;
  left: 20%;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(9, 40, 73, 0.5) 0%, rgba(9, 40, 73, 0) 70%);
  bottom: -100px;
  right: 10%;
  animation-delay: 3s;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 179, 63, 0.3) 0%, rgba(9, 40, 73, 0.3) 50%, rgba(0, 0, 0, 0) 70%);
  top: 30%;
  left: 40%;
  animation-delay: 6s;
}

/* Particules brillantes */
.star-particle {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  z-index: 3;
  opacity: 0;
  animation: twinkle 5s infinite ease-in-out;
}

/* Section des vagues dynamiques */
.dynamic-wave {
  position: absolute;
  width: 200%;
  height: 200px;
  transform-origin: center bottom;
  background: linear-gradient(90deg, 
    rgba(108, 179, 63, 0.05) 0%, 
    rgba(108, 179, 63, 0.1) 10%, 
    rgba(9, 40, 73, 0.1) 20%, 
    rgba(9, 40, 73, 0.05) 30%,
    rgba(108, 179, 63, 0.05) 40%, 
    rgba(108, 179, 63, 0.1) 50%, 
    rgba(9, 40, 73, 0.1) 60%, 
    rgba(9, 40, 73, 0.05) 70%,
    rgba(108, 179, 63, 0.05) 80%, 
    rgba(108, 179, 63, 0.1) 90%, 
    rgba(9, 40, 73, 0.1) 100%
  );
  opacity: 0.6;
  border-radius: 100%;
  z-index: 2;
  pointer-events: none;
  animation: wave-flow 15s infinite linear;
}

.wave-top {
  bottom: 85%;
  left: -50%;
  animation-duration: 23s;
  opacity: 0.2;
}

.wave-middle {
  bottom: 0;
  left: -50%;
  animation-duration: 18s;
  animation-delay: 5s;
}

.wave-bottom {
  bottom: -30%;
  left: -50%;
  animation-duration: 27s;
  animation-delay: 9s;
  opacity: 0.3;
}

/* Lignes d'énergie */
.energy-line {
  position: absolute;
  background: linear-gradient(to right, 
    rgba(108, 179, 63, 0) 0%, 
    rgba(108, 179, 63, 0.5) 50%, 
    rgba(108, 179, 63, 0) 100%
  );
  height: 1px;
  width: 100%;
  z-index: 2;
  opacity: 0;
  animation: energy-flow 10s infinite ease-in-out;
  transform: rotate(var(--rotation, 0deg));
  pointer-events: none;
}

/* Carrés verts élégants qui tournent */
.rotating-square {
  position: absolute;
  border: 2px solid rgba(108, 179, 63, 0.4);
  background: rgba(108, 179, 63, 0.05);
  border-radius: 6px;
  z-index: 2;
  transform-origin: center center;
  box-shadow: 0 0 20px rgba(108, 179, 63, 0.2);
  backdrop-filter: blur(2px);
  animation: square-rotation var(--rotation-duration, 20s) infinite linear;
}

.square-1 {
  width: 60px;
  height: 60px;
  left: 10%;
  top: 15%;
  --rotation-duration: 25s;
}

.square-2 {
  width: 100px;
  height: 100px;
  right: 8%;
  top: 20%;
  --rotation-duration: 30s;
}

.square-3 {
  width: 80px;
  height: 80px;
  left: 20%;
  bottom: 20%;
  --rotation-duration: 35s;
}

.square-4 {
  width: 120px;
  height: 120px;
  right: 15%;
  bottom: 25%;
  --rotation-duration: 40s;
}

.square-5 {
  width: 50px;
  height: 50px;
  left: 40%;
  top: 35%;
  --rotation-duration: 22s;
}

.square-6 {
  width: 70px;
  height: 70px;
  right: 35%;
  bottom: 30%;
  --rotation-duration: 28s;
}

@keyframes square-rotation {
  0% {
    transform: rotate(0deg) translateY(0);
    opacity: 0.5;
  }
  25% {
    transform: rotate(90deg) translateY(20px);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) translateY(0);
    opacity: 0.5;
  }
  75% {
    transform: rotate(270deg) translateY(-20px);
    opacity: 0.7;
  }
  100% {
    transform: rotate(360deg) translateY(0);
    opacity: 0.5;
  }
}

/* FORMULAIRE AU TON CLAIR ET PROFESSIONNEL */
.contact-form-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  width: 100%;
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(108, 179, 63, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

/* Élément décoratif pour le formulaire */
.contact-form:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #092849 0%, #6cb33f 50%, #092849 100%);
  z-index: 10;
}

.form-header {
  background: linear-gradient(135deg, #092849 0%, #0c3967 100%);
  padding: 40px;
  position: relative;
  border-bottom: none;
  color: white;
  text-align: center;
}

.form-header-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.form-header-ribbon:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #6cb33f;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-45deg) translate(20px, -20px);
}

.form-header h3 {
  color: white;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 2rem;
  position: relative;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-header p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.separator span {
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #6cb33f 50%, transparent 100%);
  margin: 20px auto;
  border-radius: 2px;
  position: relative;
}

.separator span:before,
.separator span:after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #6cb33f;
  border-radius: 50%;
}

.separator span:before {
  left: 15%;
}

.separator span:after {
  right: 15%;
}

.service-info {
  background: #f8f9fa;
  padding: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  flex: 0 0 60px;
  height: 60px;
  background-color: rgba(108, 179, 63, 0.1);
  color: #6cb33f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 22px;
  transition: all 0.3s;
}

.feature-item:hover .feature-icon {
  background-color: #6cb33f;
  color: white;
  transform: scale(1.1);
}

.feature-text h5 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.procedure-steps {
  margin-top: 40px;
}

.procedure-step {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
  position: relative;
}

.procedure-step:not(:last-child):after {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(to bottom, #6cb33f 0%, rgba(108, 179, 63, 0.2) 100%);
}

.step-number {
  flex: 0 0 30px;
  height: 30px;
  background-color: #6cb33f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 20px;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-bottom: 10px;
}

.step-content h5 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #092849;
  font-weight: 600;
}

/* Style des tarifs */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-plan {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.pricing-plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(108, 179, 63, 0.3);
}

.pricing-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-header h3 {
  font-size: 20px;
  color: #092849;
  margin: 0 0 15px;
  font-weight: 700;
}

.pricing-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.currency {
  font-size: 20px;
  font-weight: 700;
  color: #092849;
}

.price {
  font-size: 36px;
  font-weight: 800;
  color: #6cb33f;
  line-height: 1;
}

.period {
  font-size: 14px;
  color: #6c757d;
  align-self: flex-end;
  padding-bottom: 5px;
}

.pricing-features {
  padding: 25px;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #495057;
}

.pricing-features li i {
  color: #6cb33f;
  margin-right: 10px;
  flex-shrink: 0;
}

.pricing-cta {
  padding: 0 25px 25px;
  text-align: center;
}

.pricing-cta .btn {
  background: #6cb33f;
  color: white;
  padding: 12px 0;
  width: 100%;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
}

.pricing-cta .btn:hover {
  background: #5a9935;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 179, 63, 0.3);
}

/* Barre de progression du formulaire */
.form-progress-container {
  margin-bottom: 0;
  padding: 40px 40px 0;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.form-progress:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 3px;
  width: 100%;
  background-color: #e9ecef;
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18%;
  text-align: center;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 3px solid #e9ecef;
  color: #adb5bd;
  font-size: 24px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.step-icon:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(108, 179, 63, 0.1);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-step:hover .step-icon:before {
  transform: scale(1);
}

.progress-step.active .step-icon {
  background-color: #6cb33f;
  border-color: #6cb33f;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(108, 179, 63, 0.2);
  transform: scale(1.1);
}

.progress-step.completed .step-icon {
  background-color: #6cb33f;
  border-color: #6cb33f;
  color: #fff;
}

.step-label {
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
  transition: all 0.3s;
}

.progress-step.active .step-label {
  color: #092849;
  font-weight: 700;
}

.progress-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background-color: #6cb33f;
  z-index: 1;
  width: 0;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(108, 179, 63, 0.5);
}

.progress-bar.active {
  animation: progress-fill 0.8s forwards;
}

@keyframes progress-fill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Sections du formulaire */
.form-section {
  background: #ffffff;
  padding: 40px;
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.form-section h4 {
  color: #092849;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 22px;
  display: flex;
  align-items: center;
}

.form-section h4 i {
  margin-right: 15px;
  color: #6cb33f;
  font-size: 24px;
  background-color: rgba(108, 179, 63, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commander-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 25px;
}

/* Style des champs de formulaire */
.form-field {
  margin-bottom: 25px;
  position: relative;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  color: #092849;
  font-weight: 600;
  font-size: 15px;
}

.required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  color: #495057;
  background-color: #f8f9fa;
  transition: all 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #6cb33f;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(108, 179, 63, 0.15);
  outline: none;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #ced4da;
  background-color: #fff;
}

/* Groupe de boutons radio */
.radio-group {
  display: flex;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-option label {
  padding: 15px 20px;
  text-align: center;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 500;
  color: #495057;
}

.radio-option:not(:last-child) label {
  border-right: 1px solid #e9ecef;
}

.radio-option input[type="radio"]:checked + label {
  background-color: #6cb33f;
  color: white;
  font-weight: 600;
}

.radio-option label:hover {
  background-color: #e9ecef;
}

.radio-option input[type="radio"]:checked + label:hover {
  background-color: #5a9935;
}

/* Boutons de navigation de formulaire */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-prev, .btn-next, .btn-commander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-prev {
  background-color: #e9ecef;
  color: #495057;
}

.btn-prev:hover {
  background-color: #dee2e6;
  color: #212529;
}

.btn-next, .btn-commander {
  background: linear-gradient(90deg, #6cb33f 0%, #5a9935 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(108, 179, 63, 0.3);
}

.btn-next:hover, .btn-commander:hover {
  background: linear-gradient(90deg, #5a9935 0%, #4a8029 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 179, 63, 0.4);
}

.btn-prev i, .btn-next i {
  margin: 0 10px;
  font-size: 18px;
}

.btn-commander {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 10px;
  font-weight: 700;
}

/* Animations */
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}

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

@keyframes wave-flow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes energy-flow {
  0% { opacity: 0; transform: translateX(-100%) rotate(var(--rotation)); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: translateX(100%) rotate(var(--rotation)); }
}

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

/* Amélioration des effets d'arrière-plan avec plus d'éléments */
.particle-burst {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  animation: particle-explosion 3s ease-out forwards;
  opacity: 0;
}

@keyframes particle-explosion {
  0% { 
    transform: scale(0.1) translate(0, 0);
    opacity: 0;
  }
  10% { 
    opacity: 1;
  }
  100% { 
    transform: scale(1) translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

.floating-light {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(108, 179, 63, 0.3) 0%,
    rgba(108, 179, 63, 0.1) 40%,
    rgba(108, 179, 63, 0) 70%
  );
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  animation: float-light 20s infinite ease-in-out alternate;
  z-index: 1;
}

@keyframes float-light {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  30% { opacity: 0.6; }
  70% { opacity: 0.4; }
  100% { opacity: 0; transform: translate(100px, -50px) scale(1.2); }
}

/* Motif de fond avec traces lumineuses */
.light-trace {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(108, 179, 63, 0) 0%, 
    rgba(108, 179, 63, 0.7) 50%, 
    rgba(108, 179, 63, 0) 100%
  );
  z-index: 1;
  transform-origin: center;
  animation: trace-move 8s linear forwards;
  opacity: 0;
}

@keyframes trace-move {
  0% { width: 0; opacity: 0.7; }
  100% { width: 100%; opacity: 0; }
}

/* Vortex énergétique */
.energy-vortex {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(108, 179, 63, 0.2);
  box-shadow: inset 0 0 30px rgba(108, 179, 63, 0.3);
  z-index: 1;
  animation: vortex-spin 30s linear infinite;
  opacity: 0.1;
}

.vortex-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(108, 179, 63, 0.5) 70%,
    rgba(108, 179, 63, 0) 100%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  animation: pulse 2s infinite alternate;
}

@keyframes vortex-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Nouveaux effets pour les survols de formulaire */
.contact-form .form-field:hover input,
.contact-form .form-field:hover select,
.contact-form .form-field:hover textarea,
.contact-form .form-field input:focus,
.contact-form .form-field select:focus,
.contact-form .form-field textarea:focus {
  border-color: #6cb33f;
  box-shadow: 0 0 15px rgba(108, 179, 63, 0.4);
  transition: all 0.3s ease;
}

/* Effet de surbrillance sur les boutons */
.btn-next:hover, .btn-commander:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 179, 63, 0.5);
  background: linear-gradient(135deg, #6cb33f 0%, #7dd649 100%);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-commander:hover:after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 12px;
  border: 2px solid rgba(108, 179, 63, 0.5);
  animation: button-pulse 1.5s infinite;
  pointer-events: none;
}

@keyframes button-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Améliorations générales du formulaire */
.form-field {
  transition: transform 0.3s ease;
}

.form-field:hover {
  transform: translateY(-2px);
}

/* Effets sur les titres */
.form-header h3 {
  position: relative;
  display: inline-block;
}

.form-header h3:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #6cb33f 0%, #092849 100%);
  animation: title-underline 3s ease-in-out forwards;
}

@keyframes title-underline {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Adaptations Mobile - Version complètement repensée */
@media screen and (max-width: 768px) {
  /* Désactiver tous les effets spéciaux sur mobile */
  .nebula-overlay,
  .energy-glow,
  .dynamic-wave,
  .energy-line,
  .star-particle,
  .rotating-square,
  .floating-light,
  .energy-vortex,
  .particle-burst,
  .light-trace,
  .cosmic-background,
  .green-divider {
    display: none !important;
  }
  
  /* Structure de base pour mobile */
  #commander-hero, 
  #commander-content {
    background: linear-gradient(135deg, #092849 0%, #0c3967 100%);
    animation: none;
    position: relative;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    min-height: 100vh;
  }
  
  /* Conteneur du formulaire */
  .contact-form-container {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  
  .contact-form {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
  }
  
  /* En-tête du formulaire */
  .form-header {
    background-color: #092849;
    color: white;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 3px solid #6cb33f;
    margin: 0;
  }
  
  .form-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
  }
  
  .form-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
  }
  
  .form-header-ribbon, 
  .separator {
    display: none;
  }
  
  /* Sections d'information et de tarifs */
  .service-info,
  .pricing-container {
    background-color: white;
    padding: 15px;
    margin-bottom: 5px;
    border: none;
    box-shadow: none;
  }
  
  /* Titre des sections */
  .service-title {
    font-size: 16px;
    color: #092849;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
  }
  
  /* Section des fonctionnalités */
  .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #6cb33f;
    margin: 0;
  }
  
  .feature-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: rgba(108, 179, 63, 0.1);
    color: #6cb33f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
  }
  
  .feature-text h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
  }
  
  .feature-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
  }
  
  /* Étapes de procédure */
  .procedure-steps {
    padding: 0;
    margin: 15px 0;
  }
  
  .procedure-step {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
  }
  
  .step-number {
    background-color: #6cb33f;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 14px;
  }
  
  .step-content h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
  }
  
  .step-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
  }
  
  /* Section de tarification */
  .pricing-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .pricing-plan {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 10px;
  }
  
  .pricing-header {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .pricing-header h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #092849;
    font-weight: 600;
  }
  
  .pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #6cb33f;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
  }
  
  .pricing-features li {
    font-size: 13px;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
  }
  
  .pricing-features li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #6cb33f;
  }
  
  .pricing-cta {
    text-align: center;
    margin-top: 10px;
  }
  
  .pricing-cta .btn {
    display: inline-block;
    background-color: #6cb33f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    width: 100%;
    transition: background 0.3s;
  }
  
  .pricing-cta .btn:active {
    background-color: #5a9935;
    transform: translateY(2px);
  }
  
  /* Barre de progression du formulaire */
  .form-progress-container {
    background-color: white;
    padding: 15px 10px 5px;
    margin-top: 5px;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
  }
  
  .form-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
  }
  
  .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    position: relative;
    flex: 1;
    min-width: 60px;
  }
  
  .step-icon {
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  .progress-step.active .step-icon {
    background-color: #6cb33f;
    color: white;
  }
  
  .step-label {
    font-size: 11px;
    color: #999;
    text-align: center;
    white-space: nowrap;
  }
  
  .progress-step.active .step-label {
    color: #6cb33f;
    font-weight: 600;
  }
  
  .progress-bar {
    flex-grow: 1;
    height: 2px;
    background-color: #f0f0f0;
    z-index: 0;
    margin: 0 5px;
    position: relative;
    top: -18px;
  }
  
  /* Sections du formulaire */
  .form-section {
    display: none;
    background-color: white;
    padding: 15px;
    margin-bottom: 5px;
  }
  
  .form-section.active {
    display: block;
  }
  
  .form-section h4 {
    font-size: 16px;
    color: #092849;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
  }
  
  .form-section h4 i {
    color: #6cb33f;
    margin-right: 8px;
  }
  
  /* Champs du formulaire */
  .form-field {
    margin-bottom: 15px;
  }
  
  .form-field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
  }
  
  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px; 
    background-color: #f9f9f9;
    -webkit-appearance: none; 
    appearance: none; 
  }
  
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    outline: none;
    border-color: #6cb33f;
    box-shadow: 0 0 5px rgba(108, 179, 63, 0.2);
  }
  
  .required {
    color: #e74c3c;
  }
  
  /* Groupe de boutons radio */
  .radio-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .radio-option {
    flex: 1;
  }
  
  .radio-option input[type="radio"] {
    display: none;
  }
  
  .radio-option label {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    transition: background 0.3s;
    font-weight: normal;
  }
  
  .radio-option input[type="radio"]:checked + label {
    background-color: #6cb33f;
    color: white;
  }
  
  /* Grille pour le formulaire */
  .commander-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Boutons */
  .btn-next,
  .btn-prev,
  .btn-commander {
    display: inline-block;
    padding: 14px 20px;
    background-color: #6cb33f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn-prev {
    background-color: #f0f0f0;
    color: #333;
  }
  
  .btn-next:active,
  .btn-commander:active {
    background-color: #5a9935;
    transform: translateY(2px);
  }
  
  .btn-prev:active {
    background-color: #e0e0e0;
    transform: translateY(2px);
  }
  
  /* Navigation du formulaire */
  .form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
  }
  
  .form-navigation .btn-prev {
    flex: 1;
  }
  
  .form-navigation .btn-next {
    flex: 2;
  }
  
  /* Ajustements pour véhicule sélecteur */
  .vehicle-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .vehicle-type {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .vehicle-option {
    flex: 1 0 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
  
  .shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .shipping-option {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
  }
}

/* Ajustements supplémentaires pour les très petits écrans */
@media screen and (max-width: 480px) {
  .form-header h3 {
    font-size: 18px;
  }
  
  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .step-label {
    font-size: 10px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .pricing-plan {
    padding: 10px;
  }
  
  .pricing-features li {
    font-size: 12px;
  }
  
  /* Ajuster l'espacement du formulaire */
  .form-section {
    padding: 12px 10px;
  }
  
  .form-field {
    margin-bottom: 12px;
  }
  
  .form-field label {
    font-size: 13px;
  }
  
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 10px;
  }
  
  .vehicle-option {
    flex: 1 0 100%;
    min-width: 100%;
  }
}

/* Amélioration des champs spécifiques - version desktop uniquement */
/* Pas de média query car nous voulons appliquer ces styles uniquement en desktop */

/* Section kilométrage améliorée */
.form-field.wide {
  grid-column: 1 / -1;
  margin-top: 15px;
  margin-bottom: 30px;
}

.range-slider {
  position: relative;
  padding: 10px 0 30px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(to right, #092849 0%, #6cb33f 100%);
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  margin-bottom: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6cb33f;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6cb33f;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.1);
  background: #5a9935;
}

input[type="range"]::-moz-range-thumb:hover,
input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.1);
  background: #5a9935;
}

.kilometer-output {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #6cb33f;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: inline-block;
  min-width: 100px;
  text-align: center;
}

/* Repères visuels pour le slider */
.range-slider::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 8px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 19%,
    rgba(0,0,0,0.1) 20%,
    rgba(0,0,0,0.1) 20.1%
  );
  z-index: -1;
}

.range-slider::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  text-align: justify;
  font-size: 11px;
  color: #777;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

/* Section des symptômes améliorée */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.checkbox-option {
  position: relative;
}

.checkbox-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-option label {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: normal;
  margin: 0;
  position: relative;
  padding-left: 45px;
}

.checkbox-option label:before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid #ccc;
  background-color: white;
  transition: all 0.2s;
}

.checkbox-option input[type="checkbox"]:checked + label {
  border-color: #6cb33f;
  background-color: rgba(108, 179, 63, 0.05);
}

.checkbox-option input[type="checkbox"]:checked + label:before {
  background-color: #6cb33f;
  border-color: #6cb33f;
}

.checkbox-option input[type="checkbox"]:checked + label:after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: white;
}

.checkbox-option label:hover {
  border-color: #ced4da;
  background-color: #f0f0f0;
}

.checkbox-option input[type="checkbox"]:checked + label:hover {
  background-color: rgba(108, 179, 63, 0.1);
}
