/* Header principal pour la page d'accueil */
.main-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.main-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Styles pour le texte du logo supprimés car on utilise maintenant assets/logo.png */

.header-content {
  flex: 1;
  text-align: center;
}

.main-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.header-actions {
  flex-shrink: 0;
}

.help-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.help-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Améliorations pour le formulaire */
.enhanced-form-container {
  background: white;
  margin: 30px auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  overflow: hidden;
  position: relative;
}

.form-intro {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.form-intro h2 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: 24px;
  font-weight: 600;
}

.form-intro p {
  margin: 0;
  color: #718096;
  font-size: 16px;
  line-height: 1.6;
}

.form-content {
  padding: 40px;
}

.legal-notice {
  background: #fff3e0;
  border-top: 1px solid #ffe0b2;
  padding: 30px;
  font-size: 13px;
  color: #e65100;
  line-height: 1.6;
}

.legal-notice p {
  margin: 8px 0 0;
}

.legal-notice-toggle {
  background: none;
  border: none;
  color: #bf360c;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0 2px;
  text-decoration: underline;
}

.legal-notice-toggle:hover {
  color: #e65100;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 15px;
  }

  .main-title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .header-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 18px;
  }

  .logo-section {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 20px;
  }

  .header-stats {
    flex-direction: column;
    gap: 10px;
  }

  .form-content {
    padding: 20px;
  }
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enhanced-form-container {
  animation: fadeInUp 0.6s ease-out;
}

/* Indicateurs visuels pour les étapes */
.form-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: white;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.step-indicator.active {
  border-color: #4caf50;
  background: #f0f9ff;
}

.step-indicator.completed {
  border-color: #4caf50;
  background: #4caf50;
  color: white;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.step-indicator.active .step-number {
  background: #4caf50;
  color: white;
}

.step-indicator.completed .step-number {
  background: white;
  color: #4caf50;
}

/* Styles pour les nouvelles sections */
.resources-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #4caf50;
}

.resources-section h4 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: 18px;
  font-weight: 600;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.resource-list li {
  margin-bottom: 8px;
}

.resource-list a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-list a:hover {
  color: #45a049;
  text-decoration: underline;
}

.info-box {
  background: #e8f5e8;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 15px;
  font-size: 14px;
  color: #2e7d32;
}

.info-box a {
  color: #1b5e20;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
}

.submit-btn,
.reset-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.submit-btn {
  background: #4caf50;
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.reset-btn {
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.reset-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

/* Modal d'aide */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 30px;
}

.help-step {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.help-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.help-step h4 {
  margin: 0 0 10px 0;
  color: #2d3748;
  font-size: 16px;
  font-weight: 600;
}

.help-step p {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

/* Classe pour cacher les éléments */
.hidden {
  display: none !important;
}
