:root {
  --bordeaux: #7f0000;
  --beige: #f9f6f2;
  --text: #3a3a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--beige);
  color: var(--text);
  height: 100vh;              /* prend la hauteur visible */
  width: 100vw;               /* prend toute la largeur */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;           /* empêche le scroll */
  margin: 0;
  padding: 0;
  touch-action: none;
}



.container {
  text-align: center;
  padding: 0 20px; /* pas de padding vertical, juste latéral */
  z-index: 2;
  position: relative;
  max-width: 500px; /* limite la largeur */
  width: 100%;
}


.logo {
  width: 120px;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin-bottom: 10px;
  line-height: 1.3;
}

.title span {
  color: var(--text);
  font-weight: 400;
}

.subtitle {
  max-width: 480px;
  margin: 0 auto 30px;
  font-size: 0.95rem;
  color: #5b5b5b;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
}

.time-box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 14px;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: fadeIn 1.5s ease forwards;
}

.time-box span {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bordeaux);
}

.time-box p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
}

.notify-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notify-form input {
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  min-width: 230px;
  outline: none;
  transition: 0.3s;
}

.notify-form input:focus {
  border-color: var(--bordeaux);
}

.notify-form button {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  background: var(--bordeaux);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.notify-form button:hover {
  background: #a00000;
}

#message {
  color: var(--bordeaux);
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 20px;
}

footer {
  margin-top: 25px;
  font-size: 0.8rem;
  color: #777;
}

.bg-circle,
.bg-circle2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  animation: float 10s infinite alternate ease-in-out;
}

.bg-circle {
  width: 400px;
  height: 400px;
  background: rgba(127, 0, 0, 0.15);
  top: -80px;
  left: -80px;
}

.bg-circle2 {
  width: 500px;
  height: 500px;
  background: rgba(127, 0, 0, 0.1);
  bottom: -150px;
  right: -150px;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, -20px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.social-box {
  margin: -10px auto -5px;
  background: #fff;
  border: 1px solid rgba(127, 0, 0, 0.15);
  border-radius: 50px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-shadow: 0 4px 20px rgba(127, 0, 0, 0.05);
  transition: all 0.3s ease;
}


.social-box:hover {
  box-shadow: 0 6px 28px rgba(127, 0, 0, 0.1);
}

.social-box img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-box img:hover {
  transform: scale(1.1);
}

/* ===============================
   📱 Responsive mobile (max 600px)
   =============================== */
@media (max-width: 600px) {

  body {
    padding: 0 10px;
    justify-content: flex-start;
    overflow-y: auto; /* permet de scroller si besoin */
  }

  .container {
    padding: 30px 10px;
  }

  .logo {
    width: 90px;
    margin-bottom: 5px;
  }

  .title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
  }

  .time-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }

  .time-box span {
    font-size: 1.1rem;
  }

  .notify-form {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .notify-form input {
    width: 90%;
    min-width: unset;
    font-size: 0.9rem;
  }

  .notify-form button {
    width: 90%;
    font-size: 0.9rem;
  }

  #message {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .social-box {
    margin: 30px auto 15px;
    padding: 10px 20px;
    gap: 22px;
  }

  .social-box img {
    width: 25px;
    height: 25px;
  }

  footer {
    margin-top: 15px;
    font-size: 0.75rem;
    padding-bottom: 20px;
  }
}

/* ===============================
   📱 Responsive ultra mobile
   =============================== */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 20px 12px;
  }

  .logo {
    width: 80px;
  }

  .title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 0.85rem;
    margin-bottom: 22px;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .time-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    margin-bottom: 5px;
  }

  .time-box span {
    font-size: 1rem;
  }

  .time-box p {
    font-size: 0.65rem;
  }

  .notify-form {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .notify-form input,
  .notify-form button {
    width: 100%;
    max-width: 340px;
  }

  #message {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .social-box {
    padding: 10px 18px;
    gap: 18px;
    margin: 25px auto 15px;
  }

  .social-box img {
    width: 24px;
    height: 24px;
  }

  footer {
    margin-top: 10px;
    font-size: 0.7rem;
  }
}

/* ===============================
   💻 Tablettes / petits laptops
   =============================== */
@media (min-width: 481px) and (max-width: 900px) {
  .container {
    max-width: 500px;
    padding: 40px 20px;
  }

  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .time-box {
    width: 75px;
    height: 75px;
  }

  .notify-form input {
    min-width: 200px;
  }
}


html {
  height: 100%;
  overflow: hidden;
}
/* 🔧 Corrige l’espace vide sur mobile (iPhone, Android) */
@media (max-width: 768px) {
  html, body {
    height: 100dvh; /* utilise la hauteur dynamique réelle du viewport mobile */
  }

  .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* répartit haut/milieu/bas */
    padding: 30px 20px 40px;
  }

  footer {
    margin-top: 0;
  }

  .social-box {
    margin: 20px auto 10px;
  }
}

/* Ajuste la taille visuelle du logo TikTok */
.tiktok-icon {
  width: 60px;  /* un peu plus grand que les 28px de base */
  height: 60px;
  object-fit: contain;
  display: block;
}
