/* ============================================================
   Menu d'accueil — choix entre les deux jeux
   Deux grandes cartes, une par enfant, sur le modèle du jeu de pêche.
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  /* Prairie à gauche, montagne à droite : les deux mondes se rejoignent. */
  background:
    radial-gradient(120% 90% at 50% 0%, #ffe7c9 0%, rgba(255, 231, 201, 0) 60%),
    linear-gradient(120deg, #ffd0e8 0%, #d9c4f5 45%, #a9dcf2 100%);
}

#menu {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
}

/* ---------- Titre ---------- */

.bulle-titre {
  background: rgba(255, 255, 255, .72);
  border-radius: 999px;
  padding: 18px 48px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(90, 40, 110, .2);
}

.bulle-titre h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 58px);
  color: #6a3fb5;
  letter-spacing: 1px;
}

.sous-titre {
  margin: 4px 0 0;
  font-size: clamp(15px, 3.4vw, 20px);
  color: #a0669f;
}

/* ---------- Les deux cartes ---------- */

.choix {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.carte {
  flex: 1 1 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 22px 30px;
  border-radius: 32px;
  border: 6px solid transparent;
  text-decoration: none;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 26px rgba(70, 30, 90, .22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.carte:hover, .carte:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(70, 30, 90, .3);
}
.carte:active { transform: translateY(-1px); }

.carte-lilou { border-color: #ff7bc4; }
.carte-lola  { border-color: #a76bff; }

.carte-dessin {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 150px;
}
.carte-dessin img {
  height: 100%;
  width: auto;
  /* Le dessin regarde vers la droite : on le tourne vers le centre pour Lola. */
  filter: drop-shadow(0 6px 10px rgba(70, 30, 90, .22));
}

.carte-nom {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: bold;
  color: #4a2d5c;
}

/* ---------- Les niveaux, dans chaque carte ---------- */

.niveaux {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.niveau {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .16);
  transition: transform .12s ease;
}
.niveau:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .16); }
.niveau:hover, .niveau:focus-visible { filter: brightness(1.06); }

/* Chaque niveau porte la couleur de son décor : on le reconnaît avant de lire. */
.niveau-prairie  { background: linear-gradient(135deg, #7ecb88, #5fc46a); }
.niveau-ciel     { background: linear-gradient(135deg, #8fa8ee, #c9a6ef); }
.niveau-montagne { background: linear-gradient(135deg, #8f6fc4, #ef7fa6); }

.niveau-nom {
  font-size: clamp(18px, 3.8vw, 23px);
  font-weight: bold;
}

.niveau-detail {
  font-size: clamp(12px, 2.6vw, 14px);
  opacity: .9;
  text-align: center;
}

@media (max-width: 700px) {
  #menu { gap: 24px; justify-content: flex-start; padding-top: 40px; }
  .carte { padding: 18px 16px 22px; }
  .carte-dessin { height: 110px; }
}
