/* TERRA NOVA — Accès protégé (visiteurs non connectés) : fenêtre d'accueil et zones floutées. Voir gate.js. */

/* ---------- Fenêtre d'accueil ---------- */
dialog.gate-dlg { width: min(34rem, calc(100% - 2rem)); text-align: center; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 45, 122, .16), transparent 60%), var(--panel2); box-shadow: inset 0 0 0 1px rgba(255, 45, 122, .45), 0 0 70px rgba(255, 45, 122, .22), 0 40px 80px rgba(0, 0, 0, .6) }
dialog.gate-dlg::backdrop { background: rgba(3, 3, 8, .72); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2) }
dialog.gate-dlg[open] { animation: gate-in .45s var(--e) both }
.gate-in-dlg { position: relative }
.gate-in-dlg .dlg-x { position: absolute; top: .9rem; inset-inline-end: .9rem }
.gate-emblem { position: relative; width: 4.6rem; height: 4.6rem; margin: .2rem auto 1rem; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 122, .25), transparent 70%) }
.gate-emblem::before, .gate-emblem::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--neon); border-color: var(--neon) transparent var(--cyan) transparent; animation: gate-spin 6s linear infinite }
.gate-emblem::after { inset: -.55rem; border-width: 1px; border-color: transparent var(--cyan) transparent var(--neon); opacity: .6; animation-duration: 10s; animation-direction: reverse }
.gate-emblem .ico { width: 2rem; height: 2rem; background: var(--neon); filter: drop-shadow(0 0 10px var(--neon)) }
dialog.gate-dlg .eyebrow { justify-content: center }
dialog.gate-dlg h2 { margin: .5rem 0 .6rem; font: 700 clamp(1.45rem, 3.6vw, 2rem)/1.15 var(--tech); text-transform: uppercase; letter-spacing: .02em; color: var(--ink) }
.gate-lead { margin: 0 auto 1.1rem; max-width: 30rem; color: var(--mute) }
.gate-perks { list-style: none; margin: 0 auto 1.4rem; padding: 0; display: grid; gap: .45rem; max-width: 22rem; text-align: start }
.gate-perks li { position: relative; padding-inline-start: 1.7rem; font-size: .95rem }
.gate-perks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 1.05rem; height: 1.05rem; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat }
.gate-acts { justify-content: center; flex-wrap: wrap }
.gate-later { margin-top: .9rem; padding: .5rem 1rem; border: 0; background: none; color: var(--mute); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer }
.gate-later:hover, .gate-later:focus-visible { color: var(--ink) }
.gate-note { margin: .6rem auto 0; max-width: 28rem; font-size: .82rem; color: var(--mute) }

/* ---------- Zones floutées ---------- */
.gate-wrap { position: relative; min-height: 11rem; isolation: isolate }
.gate-wrap--sig { min-height: 24rem }
.gate-blur { filter: blur(7px) saturate(.7); opacity: .55; pointer-events: none; user-select: none; -webkit-user-select: none }
.gate-sk { display: grid; gap: .7rem; padding: 1.2rem 0 }
.gate-sk i { display: block; height: .8rem; border-radius: 4px; background: linear-gradient(90deg, var(--line), rgba(63, 214, 255, .35), var(--line)); background-size: 200% 100%; animation: gate-shimmer 2.4s linear infinite }
.gate-sk i:nth-child(2) { width: 85% }
.gate-sk i:nth-child(3) { width: 60% }
.gate-card { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(26rem, calc(100% - 1.5rem)); padding: 1.2rem 1.3rem; text-align: center; color: var(--ink); background: var(--panel2); box-shadow: inset 0 0 0 1px rgba(255, 45, 122, .5), 0 18px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 45, 122, .18); clip-path: var(--cut-s); animation: gate-card .5s var(--e) both }
[dir=rtl] .gate-card { inset: 50% 50% auto auto; transform: translate(50%, -50%) }
.gate-card p { margin: .35rem 0 .9rem; font-size: .92rem; color: var(--mute) }
.gate-card .actions { justify-content: center; flex-wrap: wrap; margin: 0 }
.gate-ct { display: block; font: 700 1.05rem/1.2 var(--tech); text-transform: uppercase; letter-spacing: .04em }
.gate-lock { display: block; width: 2.6rem; height: 2.6rem; margin: 0 auto .5rem; border-radius: 50%; background: rgba(255, 45, 122, .14); box-shadow: 0 0 0 1px rgba(255, 45, 122, .5); position: relative; animation: gate-pulse 2.4s ease-in-out infinite }
.gate-lock::after { content: ""; position: absolute; inset: 0; background: var(--neon); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5M12 14.5v2.5'/%3E%3C/svg%3E") center/1.3rem no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5M12 14.5v2.5'/%3E%3C/svg%3E") center/1.3rem no-repeat }
.gate-wrap--al { min-height: 12rem; margin-top: .6rem }

/* Bandeau d'alerte : bouton de connexion */
.gate-bar { flex: none; margin-inline-start: .6rem; padding: .35rem .8rem; font: 600 .8rem/1 var(--tech); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--neon); clip-path: var(--cut-s); text-decoration: none; white-space: nowrap }
.gate-bar:hover, .gate-bar:focus-visible { filter: brightness(1.15) }

/* Thème clair et contraste élevé */
html[data-theme=light] dialog.gate-dlg { box-shadow: inset 0 0 0 1px rgba(192, 15, 85, .45), 0 30px 70px rgba(60, 20, 50, .25) }
html[data-theme=light] dialog.gate-dlg::backdrop { background: rgba(40, 25, 45, .45) }
html[data-theme=light] .gate-card { box-shadow: inset 0 0 0 1px rgba(192, 15, 85, .45), 0 18px 40px rgba(60, 20, 50, .2) }
html.hc .gate-card, html.hc dialog.gate-dlg { background: #000; box-shadow: inset 0 0 0 2px #fff }
html.hc .gate-blur { filter: blur(9px); opacity: .3 }

@keyframes gate-in { from { opacity: 0; transform: translateY(18px) scale(.96) } }
@keyframes gate-card { from { opacity: 0; margin-top: 12px } }
@keyframes gate-spin { to { transform: rotate(360deg) } }
@keyframes gate-pulse { 50% { box-shadow: 0 0 0 1px rgba(255, 45, 122, .5), 0 0 0 9px rgba(255, 45, 122, 0), 0 0 22px rgba(255, 45, 122, .45) } }
@keyframes gate-shimmer { to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { dialog.gate-dlg[open], .gate-card, .gate-lock, .gate-emblem::before, .gate-emblem::after, .gate-sk i { animation: none } }
html.rm dialog.gate-dlg[open], html.rm .gate-card, html.rm .gate-lock, html.rm .gate-emblem::before, html.rm .gate-emblem::after, html.rm .gate-sk i { animation: none }
@media (max-width: 520px) { .gate-acts .btn { flex: 1 1 100% } .gate-wrap--sig { min-height: 28rem } }
/* Pages du menu pour un visiteur : même présentation que « Signaler » — bloc flouté, encart centré par-dessus */
.gate-wrap--page, .gate-wrap--pageal { min-height: 24rem }
.gate-wrap--page > .gate-page, .gate-wrap--pageal > .gate-page { max-height: 36rem; overflow: hidden }
.gate-sos { margin: -.3rem 0 .9rem !important; font-weight: 700 }
.gate-sos a { color: var(--crit, #ff3b5c) }
