body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: background 0.2s linear;
}

/* Bandeau fixe */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ff69b4;
  padding: 10px 0;
  text-align: center;
  z-index: 1000;
}

header.navbar h1 {
  font-family: 'Dancing Script', cursive;
  color: white;
  margin: 0;
  font-size: 50px;
  text-shadow: 0 0 10px black;
}

header.navbar .buttons {
  margin-top: 10px;

}

header.navbar button {
  margin: 0 5px;
  padding: 5px 10px;
  font-size: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: aliceblue;
  font-family: 'Dancing Script', cursive;
}

/* Sections */
section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto; /* centre la section sur la page si max-width est active */
  display: flex;
  flex-direction: column;
  align-items: center; /* centre uniquement les titres ou éléments qu'on veut centrer */
}

section h2 {
  text-align: center; /* titre centré */
  font-family: "Mr Dafoe", cursive;
  font-size: 30px;
  margin-bottom: 10px;
  width: 100%; /* s'assure que le h2 prend toute la largeur de la section */
}

section:first-of-type h2 {
  margin-top: 100px; /* ou la hauteur de ton header */
}

section p {
  text-align: justify; /* texte justifié */
  line-height: 1.5;
  margin-bottom: 15px;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%; /* texte sur toute la largeur, pas centré */
  align-self: flex-start; /* aligne le texte à gauche dans le flex parent */
}

section:last-of-type p {
  text-align: center; 
  
}


/* Countdown */
.countdown-card {
  position: relative;
  background-color: #ffe4e1;
  border-radius: 15px;
  padding: 30px 40px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.time-box {
  position: relative;
  background-color: #ffb6c1;
  padding: 20px 25px;
  border-radius: 10px;
  text-align: center;
  min-width: 70px;
  z-index: 1;
}

.time-box span {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

.label {
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
}

/* Hearts animation */
.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ff69b4;
  transform: rotate(-45deg);
  animation: floatUp 4s linear infinite;
  opacity: 0.8;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ff69b4;
  border-radius: 50%;
}

/* Animation for floating hearts */
@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(-45deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-250px) rotate(-45deg);
    opacity: 0;
  }
}

/* Boîte mot de passe */
#password-box {
  text-align: center;
  padding: 300px;
  background-color: pink;
  display: flex;
  flex-direction: column; /* empile le titre et le texte verticalement */
  justify-content: center; /* centre verticalement */
  align-items: center; /* centre horizontalement */
  height: 220px; /* prend toute la hauteur de la page */
  text-align: center; /* centre le texte à l’intérieur */
}

/* Input et bouton */
input[type="password"] {
  padding: 10px;
  font-size: 16px;
  border-radius: 15px;
  border: 1px solid black;
}

button {
  padding: 10px 15px;
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
  margin: 10px;
  border-radius: 15px;
  border: 1px solid black;
  background-color: rgba(224,224,224);
}

/* Message d'erreur */
#error-message {
  color: red;
  margin-top: 10px;
}

/* Contenu du site caché au départ */
#site-content {
  display: none;
}

#password-box h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 120px;
  color: white;
  text-shadow: 0 0 10px #ff69b4;
  margin-bottom: 10px;
}

.clocks {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.clock-box {
  text-align: center;
  background: #ffe4e1;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.clock-box h3 {
  margin-bottom: 15px;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: #ff69b4;
}

.clock-box div {
  font-size: 36px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  color: #333;
}

body {
  font-family: Arial, sans-serif;
  background: #ffe4f0;
  text-align: center;
  padding: 50px;
}

h1 {
  color: #d63384;
}

#distance {
  font-size: 30px;
  font-weight: bold;
  margin-top: 20px;
  color: #333;
}

.coords {
  margin-top: 20px;
  font-size: 16px;
  color: #666;
}
