/* auth-popup.css — pop-up de connexion/inscription affichée UNIQUEMENT sur la fiche
   château, au clic sur une action de réservation quand on n'est pas connecté.
   La carte reprend À L'IDENTIQUE celle des pages connexion.html / inscription.html
   (règles copiées et préfixées .tvap). Ne pas modifier ces pages : voir PAGES-AUTH-FIGEES.md. */
.tvap[hidden]{display:none!important}
.tvap{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto;background:rgba(9,8,6,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.tvap-box{position:relative;width:100%;max-width:454px;margin:auto}
.tvap .tv-auth-card{max-height:none}
.tvap-close{position:absolute;top:14px;right:14px;z-index:2;width:38px;height:38px;border-radius:50%;border:1px solid var(--rv-border,#514938);background:transparent;color:var(--rv-muted,#c7bdac);font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tvap-close:hover,.tvap-close:focus-visible{color:var(--rv-ink,#f5eee0);border-color:var(--rv-gold,#dfbf7d)}
.tvap-back{position:absolute;top:22px;left:24px;z-index:2;border:0;background:none;padding:4px;color:var(--rv-muted,#c7bdac);font-size:13px;cursor:pointer}
.tvap-back:hover{color:var(--rv-gold,#dfbf7d)}
/* Écran de choix : « Vous êtes presque prêt » */
.tvap .tvap-options{display:grid;gap:10px;margin:4px 0 2px;text-align:left}
.tvap .tvap-option{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:16px 18px;border-radius:12px;border:1px solid var(--rv-border,#514938);background:transparent;color:var(--rv-ink,#f5eee0);cursor:pointer;font-family:Inter,system-ui,sans-serif;text-align:left;transition:border-color .15s,background .15s}
.tvap .tvap-option:hover,.tvap .tvap-option:focus-visible{border-color:var(--rv-gold,#dfbf7d);background:rgba(201,169,97,.08)}
.tvap .tvap-option strong{display:block;font-size:15px;font-weight:650}
.tvap .tvap-option small{display:block;margin-top:4px;font-size:12.5px;color:var(--rv-muted,#c7bdac)}
.tvap .tvap-option b{color:var(--rv-gold,#dfbf7d);font-size:21px;font-weight:400}
.tvap .tv-auth-foot button,.tvap .tv-auth-alt button{border:0;background:none;padding:0;font:inherit;color:var(--rv-gold,#dfbf7d);font-weight:600;cursor:pointer}
.tvap .tv-auth-foot button:hover{text-decoration:underline}
.tvap .tvap-forgot{text-align:right;margin:-4px 0 14px;font-size:12.5px}
.tvap .tvap-forgot a{color:var(--rv-muted,#c7bdac);text-decoration:none}
.tvap .tvap-forgot a:hover{color:var(--rv-gold,#dfbf7d)}
.tvap .tvap-note{margin:10px 0 0;font-size:12.5px;color:var(--rv-muted,#c7bdac)}
body.tvap-open{overflow:hidden}
/* ── Carte : copie fidèle des pages ── */
.tvap .tv-auth-card{background:var(--rv-surface);border:1px solid var(--rv-border);border-radius:22px;padding:40px 38px 32px; box-shadow:0 34px 90px rgba(10,7,4,.55);text-align:center}
.tvap .tv-auth-kicker{display:inline-block;font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--rv-gold);margin-bottom:12px}
.tvap .tv-auth-title{font-family:Gar,'Cormorant Garamond',serif;font-size:30px;line-height:1.1;font-weight:600;margin:0 0 9px;color:var(--rv-ink)}
.tvap .tv-auth-sub{font-size:14px;line-height:1.5;color:var(--rv-muted);margin:0 0 24px}
.tvap .tv-auth-social{display:flex;flex-direction:column;gap:10px}
.tvap .tv-auth-roles{border:0;padding:0;margin:0 0 20px;text-align:left}
.tvap .tv-auth-roles legend{font-family:Inter,system-ui,sans-serif;font-size:12.5px;font-weight:600;color:var(--rv-muted);margin:0 0 7px;padding:0}
.tvap .tv-role-seg{display:flex;gap:8px}
.tvap .tv-role-opt{flex:1;cursor:pointer}
.tvap .tv-role-opt input{position:absolute;opacity:0;width:0;height:0}
.tvap .tv-role-opt span{display:block;text-align:center;border:1px solid var(--rv-border);border-radius:11px;padding:11px 10px;font-family:Inter,system-ui,sans-serif;font-size:14px;font-weight:600;color:var(--rv-ink);transition:border-color .15s,background .15s,box-shadow .15s}
.tvap .tv-role-opt:hover span{border-color:var(--rv-gold)}
.tvap .tv-role-opt input:checked + span{border-color:var(--rv-gold);background:rgba(201,169,97,.1);box-shadow:0 0 0 1px var(--rv-gold) inset}
.tvap .tv-role-opt input:focus-visible + span{box-shadow:0 0 0 2px rgba(201,169,97,.35)}
.tvap .tv-auth-roles.tv-role-error .tv-role-opt span{border-color:#c0564e}
.tvap .tv-role-hint{margin:7px 0 0;font-size:12px;color:#c0564e}
.tvap .tv-oauth{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 16px;border-radius:12px; font-family:Inter,system-ui,sans-serif;font-size:14.5px;font-weight:600;cursor:pointer;border:1px solid transparent;transition:filter .15s,box-shadow .15s,transform .1s}
.tvap .tv-oauth:active{transform:translateY(1px)}
.tvap .tv-oauth-ic{display:inline-flex;align-items:center;justify-content:center}
.tvap .tv-oauth-google{background:#fff;color:#3c4043;border-color:#dadce0}
.tvap .tv-oauth-google:hover{box-shadow:0 2px 10px rgba(60,64,67,.2)}
.tvap .tv-oauth-apple{background:#000;color:#fff}
.tvap .tv-oauth-apple:hover{filter:brightness(1.18)}
.tvap .tv-auth-sep{display:flex;align-items:center;gap:12px;margin:20px 0}
.tvap .tv-auth-sep::before,.tvap .tv-auth-sep::after{content:"";flex:1;height:1px;background:var(--rv-border)}
.tvap .tv-auth-sep span{font-size:12px;color:var(--rv-muted)}
.tvap .tv-auth-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.tvap .tv-auth-field{text-align:left;margin-bottom:14px}
.tvap .tv-auth-field label{display:block;font-family:Inter,system-ui,sans-serif;font-size:12.5px;font-weight:600;color:var(--rv-muted);margin-bottom:6px}
.tvap .tv-auth-field input{width:100%;box-sizing:border-box;padding:12px 14px;border-radius:11px;border:1px solid var(--rv-border); background:var(--rv-bg);color:var(--rv-ink);font-size:15px;outline:none;transition:border-color .15s}
.tvap .tv-auth-field input:focus{border-color:var(--rv-gold)}
.tvap .tv-auth-passwrap{position:relative;display:flex;align-items:center}
.tvap .tv-auth-passwrap input{padding-right:78px}
.tvap .tv-auth-show{position:absolute;right:8px;border:none;background:transparent;color:var(--rv-muted);font-size:12.5px;font-weight:600;cursor:pointer;padding:6px 8px}
.tvap .tv-auth-show:hover{color:var(--rv-gold)}
.tvap .tv-auth-legal{text-align:left;font-size:11.5px;line-height:1.45;color:var(--rv-muted);margin:2px 0 16px}
.tvap .tv-auth-submit{width:100%;padding:14px 18px;border:none;border-radius:12px;background:var(--rv-gold);color:#241a07; font-family:Inter,system-ui,sans-serif;font-size:15.5px;font-weight:700;cursor:pointer;box-shadow:0 10px 26px rgba(201,169,97,.3);transition:transform .12s,box-shadow .18s}
.tvap .tv-auth-submit:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(201,169,97,.42)}
.tvap .tv-auth-foot{margin:22px 0 0;font-size:13.5px;color:var(--rv-muted)}
.tvap .tv-auth-foot a{color:var(--rv-gold);font-weight:600;text-decoration:none}
.tvap .tv-auth-foot a:hover{text-decoration:underline}
.tvap .tv-auth-alt{margin:12px 0 0;font-size:12.5px;color:var(--rv-muted)}
.tvap .tv-auth-alt a{color:var(--rv-muted);text-decoration:none;border-bottom:1px solid var(--rv-border)}
.tvap .tv-auth-alt a:hover{color:var(--rv-ink)}
@media(max-width:480px){.tvap .tv-auth-card{padding:32px 22px 26px}
.tvap .tv-auth-title{font-size:26px}
.tvap .tv-auth-grid2{grid-template-columns:1fr;gap:0}}
.tvap .tv-auth-err{margin:0 0 14px;padding:11px 13px;border-radius:10px;background:rgba(192,86,78,.1);border:1px solid rgba(192,86,78,.4);color:#b4463d;font-size:13.5px;line-height:1.45}
.tvap .tv-auth-err a{color:#b4463d;font-weight:600;text-decoration:underline}
.tvap .tv-auth-card{border:1px solid rgba(201,169,97,.4);border-radius:16px;padding:34px 36px 30px;box-shadow:0 30px 90px rgba(10,7,4,.6)}
.tvap .tv-auth-logo{display:block;width:54px;height:54px;margin:0 auto 12px;background:url('venue_assets/logo-castle.png') center/contain no-repeat}
.tvap .tv-auth-kicker{letter-spacing:.2em;font-size:10.5px;margin-bottom:10px}
.tvap .tv-auth-title{font-size:32px}
@media(max-width:560px){.tvap .tv-auth-card{padding:28px 22px 24px}
.tvap .tv-auth-logo{width:46px;height:46px}}
