* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: Arial, sans-serif;
  background: #fcf5f5;
  overflow: hidden;
}

/* BANDEAU */
#topMessage {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px;
  background: #ffe600;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  z-index: 10;
  color: black;
}

/* LOGO */
#logo {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
}

/* CENTRAGE */
#centerWrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   BOUTON PRINCIPAL
   ========================= */
#mainButton {
  font-size: 22px;
  padding: 40px 72px;
  border-radius: 26px;
  border: 2px solid black;
  background: #e9f7e6;
  color: black;
  font-family: Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;

  position: relative;
  top: -8px;

  opacity: 0;
  transform: translateY(10px);

  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#mainButton.show {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔥 NOUVELLE ANIMATION HOVER PLUS VIVANTE */
#mainButton.hovering {
  transform: scale(1.09);
  box-shadow: 0 15px 35px rgba(0,0,0,0.20);
  filter: brightness(1.05);
}

/* OVERLAY */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* CONTENEUR VIDÉO */
#videoContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60vw;
  min-height: 60vh;

  /* 🔥 espace pour éviter chevauchement du bouton */
  padding-bottom: 90px;
}

/* 🔥 VIDÉO LÉGÈREMENT RÉDUITE */
#videoPlayer {
  width: min(1000px, 68vw);
  max-height: 85vh;
  border-radius: 16px;
}

#closeBtn {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* BOUTON NOUVELLE PERLE */
#newVideoBtn {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);

  padding: 20px 38px;
  font-size: 18px;
  font-weight: 700;

  border-radius: 999px;
  border: none;
  cursor: pointer;

  color: #111;
  background: linear-gradient(135deg, #ffd84d, #ffcc00);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* COMPTEUR */
#counter {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 1s;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

  #logo {
    width: 270px;
    top: 55px;
  }

  #mainButton {
    font-size: 16px;
    padding: 18px 30px;
    width: calc(100vw - 40px);
    max-width: 420px;
  }

  #videoContainer {
    width: 100vw;
    min-width: unset;
    min-height: unset;
    padding-bottom: 110px;
  }

  #videoPlayer {
    width: 150vw;
    max-width: 150vw;
    height: auto;

    min-width: 0;
    min-height: 0;

    max-height: 70vh;
    border-radius: 14px;
  }

  #newVideoBtn {
    bottom: 15px;
    font-size: 16px;
    padding: 16px 28px;
  }

  #closeBtn {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  #counter {
    font-size: 11px;
    right: 8px;
    bottom: 8px;
  }

  #topMessage {
    font-size: 12px;
    padding: 8px;
  }
}