/* === IMAGING.CSS === */

/* Container principal */
.imaging-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

/* Titre */
.imaging-container h1 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* Formulaire */
.imaging-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.imaging-form .form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.imaging-form label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #444;
}

.imaging-form input,
.imaging-form select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: border 0.3s ease;
}

.imaging-form input:focus,
.imaging-form select:focus {
  border-color: #007bff;
  outline: none;
}

/* Bouton */
.imaging-form button {
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #007bff;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.imaging-form button:hover {
  background-color: #0056b3;
}

/* Résultat */
.avatar-result {
  text-align: center;
  margin-top: 30px;
}

.avatar-result h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #222;
}

.avatar-result img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.welcome-text {
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #001f3f !important;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.imaging-container h1 {
  font-size: 1.2rem !important;
  border-bottom: 2px solid #001f3f;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #001f3f;
  text-align: center;
}

.image-wrapper {
  text-align: center;
  margin-bottom: 20px; /* espace sous l'image */
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.avatar-result h3.result-title {
  font-size: 1.1rem !important;
  color: #1a2636 !important;
  margin-bottom: 10px !important;
}

label[for="size"] {
  text-align: left; /* aligner à gauche */
  margin-bottom: 6px;
  font-weight: bold;
  color: #444; /* même couleur que les autres */
}

#size {
  width: 360px; /* largeur réduite */
  margin: 0 0 20px 0; /* pas de centrage */
  display: block;
}

#avatarPreview {
  display: flex;
  justify-content: center; /* centre horizontalement */
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}


/* Responsive */
@media (max-width: 600px) {
  .imaging-form .form-group {
    flex: 1 1 100%;
  }

  .imaging-container {
    padding: 20px;
  }
}
