body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 1s ease;
  background-color: #f8f9fa;
}

.container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  color: #023345; /* Bleu foncé Kirago */
}

.highlight {
  color: #00aaef; /* Bleu clair Kirago */
}

#subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #023345; /* Texte secondaire Kirago foncé */
}

#cta {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: #00aaef; /* Bouton primaire Kirago */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#cta:hover {
  background-color: #008fcc; /* Variante hover */
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #e8f5fb; /* Légère variation claire du bleu clair */
  color: #023345;
}

.modal {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* fond noir transparent */
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid #00A19A;
  border-radius: 12px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  animation: slideIn 0.4s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-top: 0;
  color: #00A19A;
}

.modal-content p {
  color: #333;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #00A19A;
}

@keyframes slideIn {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { background-color: rgba(0,0,0,0); }
  to { background-color: rgba(0,0,0,0.4); }
}

#subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #023345;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
}

#subtitle span {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-name: fadeUp;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  will-change: opacity, transform; /* aide le navigateur */
  backface-visibility: hidden; /* active la couche GPU */
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
