body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2f9f6;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 128, 96, 0.2);
  width: 100%;
  max-width: 420px;
}

.logo {
  width: 100px;
  margin-bottom: 20px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* 🔥 empêche l’apparition de l’ascenseur inutile */
  background-color: #f2f9f6;
  font-family: 'Segoe UI', sans-serif;
}

input[type="text"] {
  padding: 12px;
  width: 80%;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 10px;
}

button {
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #008060;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: #00684c;
}

.message {
  margin-top: 20px;
  background-color: #e1fff3;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #b9f5d0;
  color: #004d39;
  white-space: pre-line;
  display: none;
}

.alert {
  position: fixed;
  top: -60px;
  left: 0;
  width: 100%;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  transition: top 0.4s ease;
  z-index: 9999;
  color: white;
}

.alert.visible {
  top: 0;
}

.alert.success {
  background-color: #3bb273;
}

.alert.error {
  background-color: #e53935; /* rouge élégant et professionnel */
}

.hidden {
  display: none;
}


/* Alerte animée qui slide du haut */
.alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  z-index: 9999;
  color: white;
  font-size: 16px;
}

/* Apparition */
.alert.visible {
  transform: translateY(0%);
}

/* Disparition automatique */
.alert.success {
  background-color: #3bb273;
}

.alert.error {
  background-color: #ff4d4f;
}

.footer {
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #888;
  background-color: #f6f6f6;
  border-top: 1px solid #e1e1e1;
}

.logo-footer {
  width: 60px;
  margin-top: 10px;
  opacity: 0.8;
}

.wait-message {
  margin-top: 20px;
  font-style: italic;
  color: #555;
  font-size: 15px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

button,
.download-btn {
  padding: 14px 25px;
  font-size: 16px;
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
}

@media only screen and (max-width: 600px) {
  .container {
    max-width: 70%;
  }
}

















