body {
  margin: 0;
  overflow: hidden;
  background: #e6eef5; /* Couleur Wii */
  font-family: sans-serif;
}

/* CONTAINER INTRO */
#wiiIntro {
    position: fixed;
    inset: 0;
    background: linear-gradient(#eef5fb, #dce6f1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: introFadeOut 1.8s ease forwards;
    animation-delay: 3.8s;
    z-index: 20;
  }

/* VAGUE BLEUE */
.wii-wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 180px;
  background: url('wii-wave.png') repeat-x;
  background-size: contain;
  transform: translateX(-50%);
  animation: waveSlide 4s linear infinite;
}

@keyframes waveSlide {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}

/* HALO */
.halo {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(rgba(255,255,255,0.8), transparent);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0;
  animation: haloIn 1.6s ease forwards;
  animation-delay: 0.6s;
}

@keyframes haloIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* FLASH LUMINEUX */
.flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  animation: flashAnim 0.45s ease-in-out forwards;
  animation-delay: 0.25s;
}

@keyframes flashAnim {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 0; }
}

/* LOGO WII */
.wii-logo {
  width: 280px;
  opacity: 0;
  animation:
    logoIn 1.4s cubic-bezier(.17,.67,.35,1.39) forwards,
    logoZoom 2.4s ease-out forwards,
    logoShake 0.8s ease-in-out infinite alternate;
  animation-delay: 0.6s, 0.6s, 1.7s;
}

/* fade in + léger saut */
@keyframes logoIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* zoom avant doux */
@keyframes logoZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* shake subtil style Wii */
@keyframes logoShake {
  0%   { transform: translateY(0) scale(1.12); }
  100% { transform: translateY(-4px) scale(1.12); }
}

/* LOADER WII SHOP */
.wii-loader {
  position: absolute;
  bottom: 90px;
  left: 51%;
  transform: translateX(-51%);
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: loaderAppear 1.2s ease forwards;
  animation-delay: 2.2s;
}

@keyframes loaderAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wii-loader .dot {
  width: 14px;
  height: 14px;
  background: #8ec5fc;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate ease-in-out;
}

.wii-loader .dot:nth-child(2) { animation-delay: 0.2s; }
.wii-loader .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* FIN DE L'INTRO */
@keyframes introFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* ======================= MENU ======================= */
  #mainMenu {
    position: absolute;
    inset: 0;
    display: none;
    background: url("./images/bg-jeu-page.png");
    background-size: cover;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    z-index: 10;
  }

  #mainMenu h1 {
    font-size: 48px;
    color: #4d4d4d;
    margin-bottom: 40px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.15);
  }

  .menu-buttons {
    display: flex;
    gap: 80px;
    margin-top: 20px;
  }

  .menu-btn {
    width: 300px;
    height: 180px;
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid #b8d8f5;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  }

  .menu-btn img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
  }

  .menu-btn span {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 32px;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  }
  .logo {
    position: fixed;
    top: -70px;
    left: 0;
    width: 150px;
    max-width: 25vw;
    height: auto;
    z-index: 1000;
    display: block;
  }