/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  color: white;
  overflow-x: hidden;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* CANVAS */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* BACKGROUND ANIMÉ */
.background {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #001f3f, #004aad, #001f3f);
  background-size: 300% 300%;
  animation: gradientMove 12s ease infinite;
  z-index: -1;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* BOX CENTRALE */
.center-box {
  width: min(90%, 600px);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 40px rgba(0,0,0,0.25);
  animation: fadeIn 1.5s ease;
}

/* TITRE */
.title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
  animation: slideDown 1.2s ease;
}

/* TYPING EFFECT */
.typing {
  font-size: 22px;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(40) forwards, fadeIn 3s ease;
}

.cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* SOUS-TITRE */
.subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 35px;
  animation: fadeIn 2s ease;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 35px;
}

.countdown div {
  text-align: center;
}

.countdown span {
  font-size: 36px;
  font-weight: 700;
  display: block;
}

.countdown small {
  font-size: 14px;
  opacity: 0.7;
}

/* BUTTON */
.btn-primary {
  padding: 14px 32px;
  border-radius: 6px;
  background-color: #ffffff;
  color: #004aad;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #e6e6e6;
  transform: translateY(-3px);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 RESPONSIVE MOBILE */
@media (max-width: 480px) {

  .title {
    font-size: 32px;
  }

  .typing {
    font-size: 16px;
    white-space: normal;
    width: 100%;
    animation: none;
  }

  .countdown span {
    font-size: 28px;
  }

  .center-box {
    padding: 25px;
  }
}