/* Styles de base pour le formulaire de contact */
.text-blue-allcomp {
        color: #003B73;
}
.bg-blue-two {
  background-color: #0074B7;
}
.text-blue-allcomp {
  color: #003B73;
}
.text-blue-two {
  color: #0074b7;
}
.text-gradient {
  background: linear-gradient(135deg, #003B73 0%, #003B73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container du formulaire */
#contact-form {
  min-height: 500px;
}

/* Étapes du formulaire */
.form-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.form-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}

.form-step.prev {
  transform: translateX(-100%);
}

/* Styles des inputs */
.form-input {
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  outline: none;
  cursor: pointer;
}

.form-input:focus {
  border-color: #3e5db2;
  box-shadow: 0 0 0 3px rgba(62, 93, 178, 0.1);
  transform: translateY(-2px);
}

.form-input:valid {
  border-color: #10b981;
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Animation de typing pour les inputs */
.form-input:focus {
  animation: inputFocus 0.3s ease;
}

/* Styles des select */
.form-select {
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  outline: none;
  cursor: pointer;

  /* La clé pour Safari */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select {
  background: white
    url('data:image/svg+xml;utf8,<svg fill="gray" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 7l5 5 5-5H5z"/></svg>')
    no-repeat right 1rem center/1rem auto;
}

.form-select:focus {
  border-color: #3e5db2;
  box-shadow: 0 0 0 3px rgba(62, 93, 178, 0.1);
  transform: translateY(-2px);
}

.form-select:valid {
  border-color: #10b981;
}

/* Animation de typing pour les selects */
.form-select:focus {
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1) translateY(-2px);
  }
}

/* Styles des boutons */
.btn-primary {
  background-color: #0074B7;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(62, 93, 178, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: #6b7280;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.btn-secondary:hover {
  border-color: #3e5db2;
  color: #3e5db2;
  transform: translateY(-2px);
}

/* Options de type de personne */
.type-option {
  cursor: pointer;
}

.type-card {
  padding: 24px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.type-card:hover {
  border-color: #3e5db2;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(62, 93, 178, 0.1);
}

.type-option input:checked + .type-card {
  border-color: #3e5db2;
  background: linear-gradient(
    135deg,
    rgba(21, 48, 122, 0.05) 0%,
    rgba(62, 93, 178, 0.05) 100%
  );
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(62, 93, 178, 0.2);
}

.type-option input:checked + .type-card svg {
  color: #3e5db2;
}

/* Messages d'erreur */
.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Récapitulatif */
.recap-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recap-label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recap-value {
  color: #1f2937;
  font-size: 16px;
  word-break: break-word;
}

/* Animations d'entrée pour les étapes */
.form-step.entering {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-step.leaving {
  animation: slideOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* Animation de la barre de progression */
#progress-bar {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de pulsation pour les icônes */
.form-step .w-16 {
  animation: iconPulse 2s infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .form-step {
    padding: 16px;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 120px;
    padding: 10px 20px;
  }

  .type-card {
    padding: 20px 16px;
  }

  .recap-item {
    margin-bottom: 16px;
  }
}

/* Animation de succès */
.success-animation {
  animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Effet de loading sur le bouton submit */
.btn-primary.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-primary.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Styles pour les champs de téléchargement de fichiers */
.file-upload-container {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px dashed #0074b7;
  border-radius: 12px;
  background-color: rgba(0, 116, 183, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background-color: rgba(0, 116, 183, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 116, 183, 0.15);
}

.file-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #0074b7;
  border-radius: 50%;
  margin-right: 16px;
  color: white;
  flex-shrink: 0;
}

.file-upload-text {
  flex-grow: 1;
}

.file-upload-title {
  display: block;
  font-weight: 600;
  color: #0074b7;
  margin-bottom: 4px;
  font-size: 16px;
}

.file-upload-subtitle {
  display: block;
  color: #6b7280;
  font-size: 14px;
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-name {
  margin-top: 8px;
  font-size: 14px;
  color: #0074b7;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-left: 8px;
}

/* Animation pour le drag & drop */
.file-upload-label.dragover {
  background-color: rgba(0, 116, 183, 0.2);
  border-color: #003b73;
  transform: scale(1.02);
}

/* Amélioration de la responsivité mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .form-input, 
  .file-upload-label,
  .type-card {
    width: 100%;
  }
  
  .p-8 {
    padding: 1rem;
  }
  
  .grid.grid-cols-1 {
    width: 100%;
  }
  
  .file-upload-container {
    margin-bottom: 15px;
  }
  
  .file-upload-label {
    padding: 12px;
  }
  
  .file-upload-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .file-upload-title {
    font-size: 14px;
  }
  
  .file-upload-subtitle {
    font-size: 12px;
  }
}

/* css pour les onglets */
li .active {
  border-bottom: 8px solid #0074b7;
  transition: border-color 0.3s ease, border-width 0.3s ease, color 0.3s ease;
}
li button {
  position: relative;
  transition: color 0.3s ease;
}
li button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #0074b7;
  transition: width 0.3s ease;
}
li button:hover::after {
  width: 100%;
}
.tab-pane {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}