@charset "utf-8";
/* CSS Document */


/* Styles de base */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  transition: all 0.3s ease;
}

body { 
  font-family: 'Poppins', Arial, sans-serif; 
  background-color: #f9f9f9; 
  color: #23283F; 
  line-height: 1.6;
}

/* En-tête */
header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  background-color: #4860A6; 
  padding: 15px 20px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
  position: relative;
  overflow: hidden;
}
/* Bandeau animé */
header .title {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 20px;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(270deg, #4860A6, #6E80C0, #2E3E80, #4860A6);
  background-size: 800% 800%;
  animation: gradientText 6s ease infinite, floatText 3s ease-in-out infinite;
}

/* Dégradé qui se déplace */
@keyframes gradientText {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Légère « flottabilité » du texte */
@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Optionnel : un léger halo animé derrière le header */
header::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
  animation: rotateHalo 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateHalo {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo img { 
  max-height: 60px; 
  border-radius: 12px; 
  border: 3px solid #23283F; 
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.title { 
  flex: 1; 
  text-align: center; 
  color: #fff; 
  padding: 15px; 
  font-size: 28px; 
  font-weight: bold; 
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Conteneur principal */
.main-container { 
  max-width: 900px; 
  margin: 40px auto; 
  padding: 40px; 
  background-color: #ffffff; 
  border-radius: 15px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  color: #23283F; 
  position: relative;
  overflow: hidden;
}

.main-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #4860A6 0%, #6E80C0 100%);
}

/* Titres de sections */
.section-title { 
  font-size: 24px; 
  text-transform: uppercase; 
  color: #4860A6; 
  margin-bottom: 20px; 
  border-bottom: 2px solid #4860A6; 
  padding-bottom: 10px; 
  font-weight: 600;
  letter-spacing: 1.5px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #4860A6;
  border-radius: 2px;
  animation: pulse 2s infinite;
}

/* Étapes (comme dans les images) */
.form-step {
  position: relative;
  padding-top: 40px;
  margin-bottom: 40px;
}

.step-indicator {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4860A6;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 18px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Formulaire et champs */
.form-group { 
  margin-bottom: 25px; 
  position: relative;
}

.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 500; 
  color: #23283F; 
  font-size: 16px;
  transition: all 0.3s ease;
}

label.required-field::after,
p.required-field::after {
  content: " *";
  color: red;
  margin-left: 4px;
  font-weight: 700;
}

.form-group input, 
.form-group select, 
.form-group textarea { 
  width: 100%; 
  padding: 12px; 
  border: 1px solid #dee2e6; 
  border-radius: 8px; 
  background-color: #fff; 
  color: #23283F; 
  font-size: 15px; 
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus { 
  outline: none; 
  border-color: #4860A6; 
  box-shadow: 0 0 0 3px rgba(72, 96, 166, 0.2); 
  transform: translateY(-2px);
}

.form-group input:hover, 
.form-group select:hover, 
.form-group textarea:hover {
  border-color: #4860A6;
}

.form-label-float {
  position: absolute;
  top: 0;
  left: 12px;
  padding: 0 5px;
  background-color: white;
  transform: translateY(-50%);
  font-size: 0.9em;
  opacity: 0;
  transition: all 0.3s ease;
}

.form-group input:focus + .form-label-float,
.form-group select:focus + .form-label-float,
.form-group textarea:focus + .form-label-float {
  opacity: 1;
}

/* Fieldsets */
fieldset { 
  border: none;
  border-radius: 12px; 
  margin-bottom: 40px; 
  padding: 30px; 
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

fieldset:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

fieldset legend { 
  color: #4860A6; 
  font-weight: bold; 
  padding: 0 15px;
  font-size: 22px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Sections spéciales */
.section-formation-title,
.section-diplome-title,
.section-situation-title {
  font-size: 32px;
  color: #4860A6;
  margin-bottom: 15px;
  font-weight: 300;
}

.section-guidance {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

/* Cases à cocher */
.checkbox-group { 
  display: flex; 
  align-items: center; 
  margin-bottom: 20px; 
  color: #23283F;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.checkbox-group:hover {
  background-color: #eef1f7;
}

.checkbox-group input[type="checkbox"] { 
  margin-right: 12px;
  width: 20px;
  height: 20px;
  accent-color: #4860A6;
  cursor: pointer;
}

/* Boutons */
.button-container { 
  text-align: center; 
  margin-top: 30px; 
}

button { 
  background-color: #4860A6; 
  color: #ffffff; 
  border: none; 
  border-radius: 8px; 
  padding: 14px 30px; 
  cursor: pointer; 
  font-size: 16px; 
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(72, 96, 166, 0.3);
}

button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.1), rgba(255,255,255,0) 80%);
  transform: rotate(30deg);
  transition: all 0.5s ease;
}

button:hover {
  background-color: #3a4c8a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(72, 96, 166, 0.4);
}

button:hover::after {
  left: 100%;
  transition: all 0.7s ease;
}

button:disabled { 
  background-color: #b4b4b4; 
  cursor: not-allowed;
  box-shadow: none;
}

button:active {
  transform: translateY(1px);
}

/* Messages (erreur/succès) */
.notice { 
  margin-bottom: 25px; 
  padding: 15px; 
  border-radius: 8px; 
  font-weight: 500;
  animation: fadeIn 0.5s ease-in-out;
}

.notice.success { 
  background-color: #d4edda; 
  color: #155724; 
  border-left: 5px solid #28a745; 
}

.notice.error { 
  background-color: #f8d7da; 
  color: #721c24; 
  border-left: 5px solid #dc3545; 
}

/* Upload de fichiers */
.file-upload-container {
  position: relative;
  padding: 30px;
  background-color: #f9f9f9;
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.file-upload-container:hover {
  border-color: #4860A6;
  background-color: #f0f4ff;
}

.file-upload-text {
  margin-bottom: 15px;
  font-size: 18px;
  color: #666;
}

.file-select-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4860A6;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-select-button:hover {
  background-color: #3a4c8a;
  transform: translateY(-2px);
}

.file-types {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { width: 60px; }
  50% { width: 100px; }
  100% { width: 60px; }
}

@keyframes shimmer {
  0% { transform: rotate(30deg) translateX(0); }
  100% { transform: rotate(30deg) translateX(100%); }
}

@keyframes floatingLabel {
  from { opacity: 0; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-20px); }
}

/* Media queries */
@media (max-width: 768px) {
  .title {
    font-size: 22px;
  }
  
  .main-container {
    padding: 20px;
  }
  
  fieldset {
   .padding: 20px 15px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .section-formation-title,
  .section-diplome-title,
  .section-situation-title {
    font-size: 26px;
  }
}

/* Styles chemin de file et selected-files */
input[type="file"] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.file-input-label {
  display: block;
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  background-color: #eef2ff;
  border-color: #4860A6;
}

.file-input-label i {
  font-size: 24px;
  color: #4860A6;
  margin-right: 8px;
}

.file-input-info {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.selected-files {
  margin-top: .5rem;
  list-style: disc inside;
  font-size: .9rem;
}

.selected-files li {
  background: #eef2ff;
  padding: 5px 10px;
  margin-bottom: 4px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #23283F;
}

/* Animations sections */
.animate-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* Toggle handicap-details */
#handicap-details {
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

#handicap-details[style*="display: block"] {
  max-height: 2000px;
  opacity: 1;
}

#handicap-details .form-group {
  margin-bottom: 1.5rem;
}

#handicap-details .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#handicap-details .checkbox-group label {
  flex: 1 1 calc(50% - 1rem);
  cursor: pointer;
}

#handicap-details .file-upload-container {
  margin-bottom: 1rem;
}

/* Conditional sections */
.conditional-section {
  margin-bottom: 2rem;
}
.conditional-section .form-group {
  margin-bottom: 1rem;
}

.row + .row {
  margin-top: 1.2rem;
}

/* Effet shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.shake {
  animation: shake 0.5s ease;
}
