/* Pages de test de clic (optigameslab.com). Mobile d'abord. */
:root {
  --accent: #7ae05a;
  --fond: #141a3a;
  --texte: #ffffff;
  --doux: rgba(255, 255, 255, 0.72);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Fond sur html seulement : sinon il recouvre le fond flou (z-index -1). */
html { background: var(--fond); }
body { color: var(--texte);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.fond-flou {
  position: fixed; inset: -40px; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.45) saturate(1.2);
}
main { max-width: 480px; margin: 0 auto; padding: 16px 16px 120px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.logo { width: 80%; max-width: 340px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.logo.haut { width: 40%; max-width: 190px; }
.accroche { font-weight: 900; font-size: 1.5rem; text-align: center; line-height: 1.2; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.video-cadre {
  /* Hauteur limitée pour que le haut de page tienne sur un téléphone */
  position: relative; width: min(100%, 340px, calc(56vh * 9 / 16)); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.video-cadre video { width: 100%; height: 100%; object-fit: cover; display: block; }
.son {
  position: absolute; right: 10px; bottom: 10px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 800;
  padding: 8px 12px; cursor: pointer;
}
.bouton {
  display: block; width: 100%; max-width: 340px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--accent); color: #111; font: inherit; font-weight: 900; font-size: 1.35rem;
  padding: 18px 20px; text-align: center; text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: pouls 1.6s ease-in-out infinite;
}
.bouton:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.bouton small { display: block; font-size: 0.8rem; font-weight: 700; opacity: 0.75; margin-top: 2px; }
/* Bandeau « In development » en haut de chaque page */
.bandeau {
  background: rgba(0, 0, 0, 0.55); color: #fff; text-align: center; font-weight: 800; font-size: 0.85rem;
  padding: 8px 12px; letter-spacing: 0.01em;
}
.bouton { font-size: 1.2rem; }

/* Bouton toujours visible en bas de l'écran */
.barre-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65) 40%);
  display: flex; justify-content: center;
}
@keyframes pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.description { color: var(--doux); text-align: center; line-height: 1.5; font-size: 1rem; }
.points { list-style: none; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.points li {
  background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 10px 14px; font-weight: 700;
  display: flex; gap: 10px; align-items: center;
}
.points li::before { content: "★"; color: var(--accent); }
footer { text-align: center; font-size: 0.8rem; color: var(--doux); padding: 10px 16px 28px; }
footer a { color: var(--doux); }

/* Fenêtre « Coming soon » */
.voile {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none;
  align-items: center; justify-content: center; padding: 16px; z-index: 10;
}
.voile.ouvert { display: flex; }
.fenetre {
  background: #fff; color: #161616; border-radius: 22px; padding: 26px 22px; max-width: 360px; width: 100%;
  text-align: center; display: flex; flex-direction: column; gap: 12px; animation: entree 0.25s ease-out;
}
.fenetre img { width: 70%; margin: 0 auto; }
.fenetre h2 { font-size: 1.5rem; font-weight: 900; }
.fenetre p { color: #444; line-height: 1.45; }
.fenetre button {
  border: 0; border-radius: 14px; background: #161616; color: #fff; font: inherit; font-weight: 800;
  padding: 14px; cursor: pointer; margin-top: 4px;
}
@keyframes entree { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Pages simples (accueil, confidentialité) */
.texte { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; line-height: 1.6; }
.texte h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.texte h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.texte p, .texte li { color: var(--doux); }
.texte ul { padding-left: 20px; }
.texte a { color: var(--accent); }

/* Accueil : une carte par jeu */
.jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.carte {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none;
  background: rgba(255, 255, 255, 0.08); color: var(--texte); border-bottom: 4px solid var(--accent);
}
.carte img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; display: block; }
.carte span { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.carte b { font-size: 1rem; }
.carte small { color: var(--doux); font-size: 0.8rem; line-height: 1.3; }
.texte .carte { color: var(--texte); }

@media (prefers-reduced-motion: reduce) { .bouton { animation: none; } }
