/* ===========================================================
   JEU-COUPLE.FR — écran "18 ans et plus" + lien retour
   Autonome : utilisable sur n'importe quelle page de jeu.
   =========================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 5, 6, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: ageFade 0.4s ease;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #f4eeea;
}
.age-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 26px;
  background: #171314;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px -30px #e0436b;
  animation: agePop 0.5s cubic-bezier(.2, 1.4, .4, 1);
}
.age-box .big { font-family: "Cormorant Garamond", Georgia, serif; font-size: 4rem; line-height: 1; color: #e0436b; text-shadow: 0 0 30px rgba(224, 67, 107, 0.6); }
.age-box h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.8rem; font-weight: 600; margin: 8px 0 6px; }
.age-box p { color: #a3958f; font-size: 0.95rem; line-height: 1.5; margin: 0 0 22px; }
.age-box .row { display: grid; gap: 10px; }
.age-box small { display: block; margin-top: 14px; color: #a3958f; font-size: 0.78rem; line-height: 1.4; }
.age-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #f4eeea;
  font: 600 1rem "Inter", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.age-btn.oui { border-color: transparent; color: #fff; background: linear-gradient(135deg, #e0436b, #ff5e8a); box-shadow: 0 10px 30px rgba(224, 67, 107, 0.35); }
.age-btn:active { transform: scale(0.97); }
@keyframes ageFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes agePop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Lien "Tous les jeux" en haut des écrans d'accueil des jeux */
.back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font: 500 0.85rem "Inter", system-ui, sans-serif;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  color: #a3958f;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.back-to-site:hover { color: #f4eeea; }
@media (prefers-reduced-motion: reduce) {
  .age-gate, .age-box { animation: none; }
}
