

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: #f5f5f5;
  height: 100vh;
}

.container,
#background-slider,
#video-content {
  display: none;
}

.container {
  color: #333;
  margin: 0 auto;
  text-align: center;
  padding: 5%;
  z-index: 10;
  position: relative;
}

h1 {
  font-weight: 600;
  letter-spacing: 0.125rem;
  margin-top: 3em;
  color: white;
  opacity: 0.7;
  font-size: 1.5em;
}

h2 {
  font-weight: normal;
  letter-spacing: 0.125rem;
  margin-top: 1.5em;
  color: white;
  opacity: 0.7;
  font-size: 1em;
}

@media (max-width: 768px) {
.logo {
  width: 60vw;
  max-width: 300px;
  margin-bottom: 1.5em;
  }
}

@media (min-width: 769px) {
  .logo {
    width: 40vw;
    max-width: 500px;
    margin-bottom: 5em;
  }
}

li.counter {
  display: inline-block;
  font-size: 1.5em;
  list-style-type: none;
  padding: 1em;
}

li.counter span {
  display: block;
  font-size: 3.5rem;
}

/* --- CORRECTIONS --- */

ul.socials_group {
  margin: 3em auto 0 auto; /* centré horizontalement */
  display: flex;
  justify-content: center; /* centre les icônes */
  gap: 1.5em; /* espace entre les icônes */
  width: fit-content; /* prend la largeur minimale */
  margin-top: 7em;
}

li.socials {
  list-style: none;
}

li.socials img {
  width: 40px; /* taille fixe propre */
  height: auto;
  display: block; /* supprime l'espace inline */
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

/* --- FIN CORRECTIONS --- */

li.socials img:hover {
  width: 40px; /* taille fixe propre */
  height: auto;
  display: block; /* supprime l'espace inline */
  opacity: 1;
  transform: scale(1.1);
}

.name {
  font-family: "Inter", sans-serif;
  color: #e06a00;
}

.time {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: white;
  animation: pulse_inverse 5s infinite ease-in-out;
}

.separator {
  width: 30px; /* Largeur du trait */
  height: 2px; /* Épaisseur */
  background-color: white; /* Couleur du trait */
  margin: 0.5em auto; /* Espacement vertical + centré */
  opacity: 0.5; /* Discret */
  border-radius: 1px; /* Optionnel : coins arrondis */
}

.emoji {
  display: none;
  padding: 1rem;
}

.emoji span {
  font-size: 4rem;
  padding: 0 0.5rem;
}

@media all and (max-width: 768px) {
  h1 {
    font-size: calc(1.5rem * var(--smaller));
  }

  li.counter {
    font-size: calc(1.125rem * var(--smaller));
  }

  li span {
    font-size: calc(3.375rem * var(--smaller));
  }
}

/* === Slider de fond === */

.background-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 230%;
  height: 230%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  animation: pulse 5s infinite ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Effet de pulsation douce */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(0%);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(50%);
  }
}

/* Effet de pulsation douce - inverse du texte */
@keyframes pulse_inverse {
  50% {
    transform: scale(1);
    filter: brightness(100%);
    text-shadow: 0 0 5px rgba(250, 250, 250, 1), 0 0 5px rgba(250, 250, 250, 0);
  }
  0%,
  100% {
    transform: scale(1.1);
    filter: brightness(100%);
    text-shadow: 0 0 5px rgba(250, 250, 250, 1), 0 0 5px rgba(250, 250, 250, 0);
  }
}

/* Apparition logo */
@keyframes apparition {
  0% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* video-content */

.fullscreen-video {
  position: fixed; /* fullscreen et au-dessus */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1000;
  display: none; /* caché par défaut */
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

.overlay-content {
  position: absolute;
  top: 75vh; /* positionne le haut du contenu à 75% de la hauteur de la fenêtre */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta-button {
  margin-bottom: 40px;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  color: #f67c00;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  border: 1px solid #f67c00;
}

.cta-button:hover {
  background-color: #f67c00;
  border-radius: 5px;
  color: white;
  border: 1px solid white;
  transition: background-color 0.3s ease;
}

/* === CORRECTIONS FINALES POUR SAFARI MOBILE === */

@media (max-width: 768px) {
  :root {
    --smaller: 0.95; /* Réduction très légère */
  }

  /* Assure un centrage vertical correct */
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  /* Empêche les éléments de se coller les uns aux autres */
  .container {
    padding: 0 1em;
    margin-top: 1em;
    width: 100%;
  }

  .logo {
    width: 70%;
    max-width: 280px;
    margin: 2em auto;
    display: block;
  }

  /* Countdown en une seule ligne */
  #countdown ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row;
    gap: 1em;
    flex-shrink: 1;
    overflow-x: auto;
  }

  li.counter {
    padding: 0.5em;
    font-size: 1rem;
    min-width: 60px;
  }

  li.counter span {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 1.2rem;
    margin-top: 2em;
  }

  h2 {
    font-size: 1rem;
    margin-top: 1.5em;
  }

  ul.socials_group {
    flex-wrap: wrap;
    margin-top: 2em;
    gap: 1em;
  }

  li.socials img {
    width: 40px;
  }

  .time {
    animation: none !important;
  }
}

/* Ciblage spécifique Safari mobile (protection supplémentaire) */
@supports (-webkit-touch-callout: none) {
  .time {
    animation: none !important;
  }
}
