/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 5px rgba(57, 183, 199, 0.2); }
  50% { box-shadow: 0 0 20px rgba(57, 183, 199, 0.5); }
  100% { box-shadow: 0 0 5px rgba(57, 183, 199, 0.2); }
}

/* ================= BODY ================= */
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1a1a1a, #050505);
  background-attachment: fixed;
  color: #e0e0e0;
}

/* ================= CONTAINERS ================= */
.container20, .container21, .container22, .container24 {
  width: 90%;
  max-width: 750px;
  margin: 60px auto;
  
  /* Ton dégradé Blanc -> Bleu Cyan */
  background: linear-gradient(180deg, #ffffff 0%, #39b7c7 100%);
  
  padding: 40px;
  border-radius: 24px;
  
  /* On change la couleur du texte à l'intérieur car le fond est clair */
  color: #1a1a1a;
  
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.container20:hover, .container21:hover, .container22:hover, .container24:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(57, 183, 199, 0.3);
}

/* ================= HEADER ================= */
header {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -1px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

/* ================= FORM ELEMENTS ================= */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #1a1a1a;
  margin-left: 5px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: #000;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #39b7c7;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(57, 183, 199, 0.3);
  transform: scale(1.01);
}

/* ================= BOUTONS ================= */
.buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  
  /* Dégradé Bleu Sombre vers Cyan */
  background: linear-gradient(135deg, #1e96a5, #39b7c7);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(57, 183, 199, 0.4);
}

button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #39b7c7, #50c8d7);
  animation: glowPulse 1.5s infinite;
}

button:active {
  transform: scale(0.96);
}

/* ================= SYNTHÈSE (Zone noire) ================= */
#synthese {
  background: #000;
  color: #39b7c7; /* Texte cyan sur fond noir pour le style */
  padding: 25px;
  border-radius: 15px;
  margin-top: 30px;
  border: 1px solid rgba(57, 183, 199, 0.3);
  box-shadow: inset 0 0 20px rgba(57, 183, 199, 0.1);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  body {
    background: linear-gradient(180deg, #000, #444);
  }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* 🔥 empêche le décalage */
  padding-top: 20px ;
}
  .container20, .container21, .container22, .container24 {
    width: 84%;
    padding: 20px;
    margin-top: 20px;
    
  }
  textarea{
    width: 90%;
  }

  header {
    font-size: 1.1rem;
  }

  button {
    font-size: 0.95rem;
    padding: 10px;
  }

  input, select, textarea {
    font-size: 0.95rem;
  }
  select{
    width: 95%;
  }
}

@media (min-width: 769px) {

  .container20, .container21, .container22, .container24 {
    max-width: 900px;

  }

  input, select, textarea {
    font-size: 17px;
  }
}