/* ================================================================
   Age Gate – Styles
   Module tcagegate – TrendyConnect
   ================================================================ */

:root {
  --ag-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

#age-gate,
#age-gate * {
  font-family: var(--ag-font);
  box-sizing: border-box;
}

/* Verrouillage du scroll quand le pop-up est ouvert */
html.ag-lock {
  overflow: hidden;
}

/* ---- Etat caché ---- */
.age-gate.hidden {
  display: none;
}

/* ---- Fond plein écran ---- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* ---- Overlay sombre ---- */
.age-gate__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}

/* ---- Boîte centrale ---- */
.age-gate__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12vh auto;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: ag-pop 0.28s ease-out;
}

.age-gate__content h2    { margin: 10px 0 8px; font-size: 22px; }
.age-gate__text          { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.age-gate__note          { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #ef4444; }
.age-gate__disclaimer    { margin: 8px 0 12px; font-size: 13px; color: #6b7280; line-height: 1.4; }
.age-gate__legal         { display: block; margin-top: 12px; opacity: 0.7; font-size: 12px; }

/* ---- Boutons ---- */
.age-gate__actions {
  --ag-accent: #1e73ff;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

#age-gate .btn {
  padding: 0.8rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

/* Entrer */
#age-gate .btn-primary {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}
#age-gate .btn-primary:focus,
#age-gate .btn-primary:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
#age-gate .btn-primary:hover {
  background: var(--ag-accent) !important;
  border-color: var(--ag-accent) !important;
  color: #fff !important;
}
#age-gate .btn-primary:visited {
  color: #fff !important;
}

/* Quitter */
#age-gate .btn-outline {
  color: var(--ag-accent) !important;
  border-color: #ddd;
  background: transparent;
}
#age-gate .btn-outline:hover {
  background: rgba(30, 115, 255, 0.06);
  border-color: var(--ag-accent) !important;
}

/* ---- Animation d'entrée ---- */
@keyframes ag-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
