/* style.css */

body {
  margin: 0;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: #fdf6e3;
  color: #333;
}

header {
  background-color: #ffcc00;
  padding: 20px;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 3em;
}

header p {
  font-size: 1.2em;
}

.tiny-img {
    width: 50px;  /* Ajuste la largeur */
    height: auto; /* Garde les proportions */
}

/* Peigne animé */
#rotatingComb {
  width: 50px;
  position: absolute;
  top: 20px;
  right: 10px;
  animation: rotateComb 5s linear infinite;
}

#rotatingComb:hover {
    animation: shakeComb 0.5s ease-in-out;
}


@keyframes shakeComb {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}


@keyframes jumpComb {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

#rotatingComb {
    animation: jumpComb 1s ease-in-out;
}


@keyframes disappearAndSpin {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

#rotatingComb:active {
    animation: disappearAndSpin 1s ease-in-out;
}

@keyframes rotateComb {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  background-color: #eee;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

section {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
}

form input, form select {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#submitBtn {
  margin-top: 20px;
  padding: 10px;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s;
}

#submitBtn:hover {
  background-color: #e65c00;
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 15px;
  background-color: #eee;
  margin-top: 20px;
}

.hidden {
  display: none;
}

/* Animation pour la bannière secrète */
#secretBanner {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffcc00;
  padding: 20px;
  border: 2px solid #333;
  border-radius: 10px;
  animation: fadeInOut 5s ease-in-out;
  z-index: 1000;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Confetti styles */
#confettiContainer {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.8;
  transform: rotate(45deg);
  animation: fall 4s linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* Shake animation pour header */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }
  nav ul {
    flex-direction: column;
  }
}

/* ----------------- */
/* Easter Egg 4 : Vidéo overlay */
#videoOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
#videoContainer {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}
#videoContainer iframe {
  display: block;
  max-width: 100%;
}
#closeVideo {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

/* ----------------- */
/* Easter Egg 5 : Tooltip sur le bouton "Réserver" */
#reserveTooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffcc00;
  padding: 5px 10px;
  border: 1px solid #333;
  border-radius: 5px;
  font-size: 0.9em;
  white-space: nowrap;
}

/* ----------------- */
/* Easter Egg 6 : Astuce coiffure popup */
#hairstyleTip {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1982c4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1em;
  z-index: 1500;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
