/* ===== Global ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #eaf3ff 0%, #f7f9fb 100%);
  margin: 0;
  padding: 40px;
  color: #333;
  animation: fadeInBody 0.8s ease-in-out;
}

/* Animation d’apparition globale */
@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Formulaire ===== */
form {
  background: #ffffff;
  border-radius: 18px;
  padding: 45px 50px;
  max-width: 960px;
  margin: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideInForm 0.8s ease;
}

/* Apparition douce du formulaire */
@keyframes slideInForm {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Légère mise en avant au survol */
form:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

/* ===== Titres ===== */
h1 {
  color: #003366;
  text-align: center;
  margin-bottom: 45px;
  font-size: 2.6em;
  font-weight: 700;
  letter-spacing: -0.5px;
  animation: fadeInTitle 1s ease;
}

@keyframes fadeInTitle {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  color: #004080;
  margin-top: 60px;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 8px;
  font-size: 1.6em;
  font-weight: 600;
  position: relative;
  animation: fadeInSection 1s ease;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Questions ===== */
.question {
  background: #f8faff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeInQuestion 0.7s ease;
}

@keyframes fadeInQuestion {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.question:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ===== Options ===== */
.options label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease, transform 0.2s ease;
}

.options label:hover {
  color: #0059b3;
  transform: scale(1.01);
}

.options input {
  margin-right: 10px;
  accent-color: #0055b3;
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

.options input:hover {
  transform: scale(1.25);
}

/* ===== Inputs ===== */
input[type="number"],
input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid #c9d4e2;
  font-size: 1em;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

/* ===== Hidden / Visible ===== */
.hidden {
  display: none !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

.visible {
  display: block;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* ===== Bloc Innovations ===== */
#block_innovations {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 45px;
  clear: both;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.innovation {
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  padding: 28px;
  transition: all 0.3s ease;
}

.innovation:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===== Bouton ===== */
button[type="submit"] {
  background: linear-gradient(135deg, #004080 0%, #0073e6 100%);
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 50px auto 0;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  animation: fadeInButton 1s ease;
}

@keyframes fadeInButton {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #003366 0%, #0059b3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  form {
    padding: 30px 25px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.4em;
  }

  .question {
    padding: 16px 18px;
  }

  button[type="submit"] {
    width: 100%;
    margin-top: 30px;
  }
}
img.logo {
  display: block;
  margin: 0 auto 25px auto;
  width: 150px; /* adapte selon ton logo */
  animation: fadeIn 1s ease-in-out;
}
