/**
 * ========================================
 * FORMULAIRE POPUP - Styles
 * ========================================
 */

/* Overlay sombre */
.formulaire-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.formulaire-popup-overlay.formulaire-popup-visible {
  opacity: 1;
  visibility: visible;
}

/* Conteneur de la popup */
.formulaire-popup-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid rgba(30, 144, 255, 0.3);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(30, 144, 255, 0.2);
  transform: scale(0.9) translateY(30px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.formulaire-popup-visible .formulaire-popup-content {
  transform: scale(1) translateY(0);
}

/* Bouton fermer */
.formulaire-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.formulaire-popup-close:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ff4444;
  transform: rotate(90deg);
}

/* Header */
.formulaire-popup-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.formulaire-popup-header h2 {
  margin: 0 0 15px 0;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.formulaire-popup-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

/* Barre de progression */
.formulaire-progression {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.formulaire-progression-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.formulaire-progression-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e90ff, #00bfff);
  border-radius: 10px;
  transition: width 0.4s ease;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.5);
}

.formulaire-progression-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Body */
.formulaire-popup-body {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

/* Scroll personnalisé */
.formulaire-popup-body::-webkit-scrollbar {
  width: 8px;
}

.formulaire-popup-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.formulaire-popup-body::-webkit-scrollbar-thumb {
  background: rgba(30, 144, 255, 0.3);
  border-radius: 10px;
}

.formulaire-popup-body::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 144, 255, 0.5);
}

/* Labels */
.formulaire-label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.formulaire-required {
  color: #ff4444;
  margin-left: 5px;
}

/* Inputs */
.formulaire-input,
.formulaire-textarea,
.formulaire-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.formulaire-input:focus,
.formulaire-textarea:focus,
.formulaire-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #1e90ff;
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1);
}

.formulaire-input::placeholder,
.formulaire-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.formulaire-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio et Checkbox */
.formulaire-radio-group,
.formulaire-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formulaire-radio-label,
.formulaire-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

.formulaire-radio-label:hover,
.formulaire-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(30, 144, 255, 0.3);
}

.formulaire-radio-label input[type="radio"],
.formulaire-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1e90ff;
}

.formulaire-radio-label input[type="radio"]:checked,
.formulaire-checkbox-label input[type="checkbox"]:checked {
  background: #1e90ff;
}

.formulaire-radio-label span,
.formulaire-checkbox-label span {
  flex: 1;
}

/* Liste de questions (mode formulaire) */
.formulaire-questions-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.formulaire-question-item {
  /* Pas de styles spéciaux nécessaires */
}

/* Footer */
.formulaire-popup-footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

/* Boutons */
.formulaire-btn {
  flex: 1;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.formulaire-btn-primary {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.formulaire-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
}

.formulaire-btn-primary:active {
  transform: translateY(0);
}

.formulaire-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.formulaire-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Message de confirmation */
.formulaire-confirmation {
  text-align: center;
  padding: 40px 20px;
}

.formulaire-confirmation-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: formulaire-bounce 0.6s ease;
}

@keyframes formulaire-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.formulaire-confirmation h3 {
  font-size: 2rem;
  margin: 0 0 15px 0;
  color: #00ff88;
}

.formulaire-confirmation p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .formulaire-popup-overlay {
    padding: 10px;
    align-items: flex-start;
  }

  .formulaire-popup-content {
    max-height: 95vh;
    margin-top: 10px;
    border-radius: 15px;
  }

  .formulaire-popup-header {
    padding: 25px 20px;
  }

  .formulaire-popup-header h2 {
    font-size: 1.6rem;
  }

  .formulaire-popup-body {
    padding: 20px;
  }

  .formulaire-progression {
    padding: 15px 20px;
  }

  .formulaire-popup-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .formulaire-btn {
    width: 100%;
  }

  .formulaire-popup-close {
    width: 35px;
    height: 35px;
    top: 10px;
    right: 10px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .formulaire-popup-header h2 {
    font-size: 1.4rem;
  }

  .formulaire-popup-header p {
    font-size: 0.9rem;
  }

  .formulaire-input,
  .formulaire-textarea,
  .formulaire-select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .formulaire-label {
    font-size: 0.95rem;
  }

  .formulaire-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .formulaire-confirmation h3 {
    font-size: 1.6rem;
  }

  .formulaire-confirmation p {
    font-size: 1rem;
  }
}
