/* =====================================================================
   LYON VTC — Carte de réservation (booking card)
   Portage vanilla du design Claude. TOUT est scopé sous .lvtc-rc afin de
   ne jamais entrer en collision avec le CSS du site (.hero, .plate-night,
   .hero-trust, .bcard…). Sert dans : hero de l'accueil, page /reservation,
   et la modale ouverte par les boutons [data-book].
   ===================================================================== */

/* ---- variables (scopées au composant + au hero dédié) ---- */
.lvtc-rc, .lvtc-hero{
  --gold-deep:#8a6a2c; --gold:#b8924a; --gold-bright:#d9be7e; --gold-pale:#f4ecda; --gold-line:#e7dcc1;
  --grad-gold:linear-gradient(135deg,#8a6a2c 0%,#bd9b54 36%,#e7ce8c 60%,#a98a3f 100%);
  --ink:#1a1a1a; --ink-soft:#33312d; --body:#565248; --muted:#8c877c;
  --white:#fff; --paper:#faf8f3; --soft:#f3efe6; --dark:#15140f; --dark2:#1e1c16;
  --hair:#e8e3d8; --hair-strong:#d7d0c1; --hair-dark:#2c2a22;
  --sans:"Hanken Grotesk",-apple-system,system-ui,"Segoe UI",sans-serif;
}
.lvtc-rc, .lvtc-rc *, .lvtc-rc *::before, .lvtc-rc *::after{ box-sizing:border-box; }
.lvtc-rc{ font-family:var(--sans); color:var(--body); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.lvtc-rc button{ font-family:inherit; cursor:pointer; }
.lvtc-rc input, .lvtc-rc textarea{ font-family:inherit; }
.lvtc-rc ::selection{ background:var(--gold); color:#fff; }
.lvtc-rc svg{ flex:none; }

/* ---- carte (boîte blanche) ---- */
.lvtc-bcard{ position:relative; height:512px; max-height:calc(100dvh - 120px); background:#fff; box-shadow:0 50px 110px -42px rgba(0,0,0,.7); overflow:hidden; }
.lvtc-rc{ height:100%; position:relative; }
.lvtc-rc .screen{ height:100%; display:flex; flex-direction:column; background:#fff; }
.lvtc-rc .scr-top{ padding:13px 22px 8px; background:linear-gradient(180deg,#fff,#fff 70%,var(--paper)); border-bottom:1px solid var(--gold-line); }
.lvtc-rc .scr-top-tight{ padding:12px 20px 8px; }
.lvtc-rc .scr-body{ flex:1 1 auto; padding:11px 20px; display:flex; flex-direction:column; gap:7px; overflow-y:auto; }
.lvtc-rc .scr-center{ justify-content:center; overflow:hidden; }
.lvtc-rc .scr-foot{ padding:10px 20px calc(11px + env(safe-area-inset-bottom)); background:var(--paper); border-top:1px solid var(--hair); }
.lvtc-rc .rfoot-2{ display:flex; gap:12px; }

/* ---- marque ---- */
.lvtc-rc .rb-word{ font-weight:500; font-size:24px; line-height:1; letter-spacing:2.5px; color:var(--ink); }
.lvtc-rc .rb-word span{ color:var(--gold-deep); }
.lvtc-rc .rb-sub{ font-size:9.5px; letter-spacing:3px; text-transform:uppercase; color:var(--muted); margin-top:6px; }

/* ---- onglets ---- */
.lvtc-rc .rtabs{ display:flex; gap:4px; margin-top:9px; }
.lvtc-rc .rtab{ flex:1; background:none; border:0; padding:9px 4px 11px; font-size:12.5px; font-weight:600; letter-spacing:.2px; color:var(--muted); border-bottom:2px solid transparent; text-align:center; line-height:1.2; }
.lvtc-rc .rtab.on{ color:var(--ink); border-bottom-color:var(--gold); }

/* ---- champ ---- */
.lvtc-rc .rfield{ display:flex; align-items:center; gap:13px; width:100%; background:#fff; border:1px solid var(--hair-strong); padding:0 14px; min-height:48px; text-align:left; transition:border-color .15s ease; }
.lvtc-rc .rfield.filled{ border-color:var(--gold); background:var(--paper); }
.lvtc-rc .rfield:active{ border-color:var(--gold); }
.lvtc-rc .rfield-static{ background:var(--paper); }
.lvtc-rc .rf-ic{ flex:none; width:22px; display:grid; place-items:center; }
.lvtc-rc .rf-ic.tone-gold{ color:var(--gold); }
.lvtc-rc .rf-ic.tone-ink{ color:var(--ink); }
.lvtc-rc .rf-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.lvtc-rc .rf-ph{ color:var(--muted); font-size:15.5px; }
.lvtc-rc .rf-val{ color:var(--ink); font-size:15.5px; font-weight:500; letter-spacing:-.1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lvtc-rc .rf-sub{ color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lvtc-rc .rf-chip{ flex:none; color:var(--gold-deep); display:grid; place-items:center; }

/* ---- date + heure ---- */
.lvtc-rc .rdt{ display:flex; gap:11px; position:relative; }
.lvtc-rc .rdt-cell{ flex:1; display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--hair-strong); padding:0 11px; min-height:46px; text-align:left; }
.lvtc-rc .rdt-time{ flex:0 0 36%; }
.lvtc-rc .rdt-txt{ font-size:14px; color:var(--ink); min-width:0; white-space:nowrap; }
.lvtc-rc .rdt-txt b{ font-weight:600; letter-spacing:-.2px; }
.lvtc-rc .rdt-a{ color:var(--muted); font-weight:500; margin-right:2px; }
.lvtc-rc .rf-ph{ color:var(--muted); }
.lvtc-rc .rdt-native{ position:absolute; left:0; bottom:0; width:1px; height:1px; opacity:0; border:0; pointer-events:none; }

/* ---- liens / bascules ---- */
.lvtc-rc .rlink{ display:inline-flex; align-items:center; gap:7px; background:none; border:0; color:var(--gold-deep); font-size:13.5px; font-weight:600; padding:2px; align-self:flex-start; }
.lvtc-rc .rlink-sm{ margin:-4px 0 -2px; }
.lvtc-rc .ropts{ display:flex; align-items:center; justify-content:space-between; margin-top:2px; gap:10px; }
.lvtc-rc .ropts-l{ display:flex; gap:16px; flex-wrap:wrap; }
.lvtc-rc .rtog{ display:inline-flex; align-items:center; gap:8px; background:none; border:0; color:var(--gold-deep); font-size:13px; font-weight:600; padding:4px 0; }
.lvtc-rc .rtog-box{ width:18px; height:18px; border:1.5px solid var(--gold-line); display:grid; place-items:center; color:#fff; }
.lvtc-rc .rtog.on .rtog-box{ background:var(--gold); border-color:var(--gold); }

/* ---- stepper ---- */
.lvtc-rc .rstep{ display:flex; align-items:center; gap:2px; flex:none; }
.lvtc-rc .rstep button{ width:34px; height:34px; border:1px solid var(--hair-strong); background:#fff; color:var(--ink); display:grid; place-items:center; }
.lvtc-rc .rstep button:disabled{ color:var(--hair-strong); cursor:not-allowed; }
.lvtc-rc .rstep span{ min-width:34px; text-align:center; font-weight:600; color:var(--ink); font-size:16px; }

/* ---- boutons ---- */
.lvtc-rc .rbtn{ flex:1; min-height:48px; border:1px solid transparent; font-size:13.5px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; display:inline-flex; align-items:center; justify-content:center; gap:9px; transition:transform .1s ease, opacity .15s ease; }
.lvtc-rc .rbtn-primary{ background:var(--grad-gold); color:#fff; box-shadow:0 14px 28px -16px rgba(138,106,44,.85); }
.lvtc-rc .rbtn-primary:active{ transform:translateY(1px); }
.lvtc-rc .rbtn-primary:disabled{ background:var(--hair-strong); box-shadow:none; color:#fff; opacity:.7; cursor:not-allowed; }
.lvtc-rc .rbtn-ghost{ flex:0 0 38%; background:#fff; color:var(--ink); border-color:var(--hair-strong); letter-spacing:1px; }

/* ---- fil d'étapes ---- */
.lvtc-rc .rsteps{ display:flex; align-items:flex-start; justify-content:center; gap:6px; }
.lvtc-rc .rstp{ display:flex; flex-direction:column; align-items:center; gap:5px; width:82px; }
.lvtc-rc .rstp-c{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--soft); color:var(--muted); border:1px solid var(--hair); }
.lvtc-rc .rstp.cur .rstp-c{ background:var(--grad-gold); color:#fff; border-color:transparent; box-shadow:0 10px 22px -12px rgba(138,106,44,.9); }
.lvtc-rc .rstp.done .rstp-c{ background:#fff; color:var(--gold-deep); border-color:var(--gold); }
.lvtc-rc .rstp-l{ font-size:11.5px; font-weight:600; color:var(--muted); text-align:center; line-height:1.2; }
.lvtc-rc .rstp.cur .rstp-l{ color:var(--ink); }
.lvtc-rc .rstp.done .rstp-l{ color:var(--gold-deep); }
.lvtc-rc .rstp-arr{ color:var(--hair-strong); margin-top:9px; }
.lvtc-rc .rstp-arr.done{ color:var(--gold); }

/* ---- saisies texte ---- */
.lvtc-rc .rinput{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--hair-strong); padding:0 14px; min-height:48px; }
.lvtc-rc .rinput input{ flex:1; border:0; outline:none; font-size:15.5px; color:var(--ink); background:none; min-width:0; }
.lvtc-rc .rinput input::placeholder{ color:var(--muted); }
.lvtc-rc .rinput-area{ align-items:stretch; padding:12px 14px; }
.lvtc-rc .rinput-area textarea{ flex:1; border:0; outline:none; resize:none; font-size:14.5px; line-height:1.5; color:var(--ink); background:none; }
.lvtc-rc .rinput-area textarea::placeholder{ color:var(--muted); }
.lvtc-rc .rinput.err, .lvtc-rc .rfield.err{ border-color:#c0392b; }

.lvtc-rc .rnote{ display:flex; gap:9px; align-items:flex-start; background:var(--gold-pale); border-left:3px solid var(--gold); padding:10px 14px; font-size:12.5px; line-height:1.45; color:var(--ink-soft); margin-top:auto; }
.lvtc-rc .rnote svg{ color:var(--gold-deep); margin-top:1px; }
.lvtc-rc .rtrust{ display:flex; align-items:center; justify-content:center; gap:8px; font-size:12px; color:var(--muted); padding-top:4px; }
.lvtc-rc .rtrust svg{ color:var(--gold-deep); }

/* ---- CGV inline ---- */
.lvtc-rc .rcgv{ display:flex; align-items:flex-start; gap:10px; padding:9px 14px; background:var(--gold-pale); border-left:3px solid var(--gold); font-size:12px; line-height:1.45; color:var(--ink-soft); cursor:pointer; }
.lvtc-rc .rcgv input[type="checkbox"]{ flex:none; margin-top:2px; width:16px; height:16px; accent-color:var(--gold-deep); cursor:pointer; }
.lvtc-rc .rcgv a{ color:var(--gold-deep); text-decoration:underline; }

/* ---- bandeau erreur ---- */
.lvtc-rc .resv-error{ background:#fff0f0; border-left:3px solid #c0392b; padding:10px 14px; font-size:13px; color:#7b1010; display:flex; gap:10px; align-items:flex-start; }
.lvtc-rc .resv-error svg{ color:#c0392b; margin-top:1px; }
.lvtc-rc .resv-error ul{ margin:4px 0 0; padding-left:16px; }

/* ---- bottom sheet ---- */
.lvtc-rc .sh-scrim{ position:absolute; inset:0; background:rgba(21,20,15,.46); z-index:40; display:flex; align-items:flex-end; }
.lvtc-rc .sh-panel{ width:100%; max-height:80%; background:#fff; border-radius:22px 22px 0 0; padding:8px 18px 22px; display:flex; flex-direction:column; }
.lvtc-rc .sh-grab{ width:40px; height:4px; border-radius:3px; background:var(--hair-strong); margin:6px auto 10px; }
.lvtc-rc .sh-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.lvtc-rc .sh-head h3{ margin:0; font-size:17px; font-weight:600; letter-spacing:-.3px; color:var(--ink); }
.lvtc-rc .sh-x{ background:none; border:0; color:var(--muted); padding:4px; }
.lvtc-rc .sh-search{ display:flex; align-items:center; gap:10px; border:1px solid var(--gold); padding:0 14px; min-height:52px; color:var(--muted); }
.lvtc-rc .sh-search input{ flex:1; border:0; outline:none; font-size:15.5px; color:var(--ink); }
.lvtc-rc .sh-clear{ background:none; border:0; color:var(--muted); padding:4px; }
.lvtc-rc .sh-cap{ font-size:11px; letter-spacing:1.6px; text-transform:uppercase; color:var(--muted); padding:16px 2px 8px; }
.lvtc-rc .sh-list{ overflow-y:auto; -webkit-overflow-scrolling:touch; margin:0 -18px; padding:0 18px; }
.lvtc-rc .sh-row{ display:flex; align-items:center; gap:13px; width:100%; background:none; border:0; border-bottom:1px solid var(--hair); padding:14px 2px; text-align:left; }
.lvtc-rc .sh-row:active{ background:var(--paper); }
.lvtc-rc .sh-row.active{ background:var(--gold-pale); }
.lvtc-rc .sh-ic{ flex:none; width:36px; height:36px; border-radius:50%; background:var(--gold-pale); color:var(--gold-deep); display:grid; place-items:center; }
.lvtc-rc .sh-typed .sh-ic{ background:var(--ink); color:#fff; }
.lvtc-rc .sh-loading{ display:flex; align-items:center; gap:10px; padding:14px 2px; color:var(--muted); font-size:14px; }
.lvtc-rc .sh-loading svg{ animation:lvtcSpin 1s linear infinite; }
@keyframes lvtcSpin{ to{ transform:rotate(360deg); } }
.lvtc-rc .sh-bul{ flex:none; width:7px; height:7px; background:var(--gold); margin:0 14px 0 6px; }
.lvtc-rc .sh-rl{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.lvtc-rc .sh-rl b{ font-weight:500; font-size:15.5px; color:var(--ink); letter-spacing:-.2px; }
.lvtc-rc .sh-rl i{ font-style:normal; font-size:12.5px; color:var(--muted); }
.lvtc-rc .sh-chk{ color:var(--gold-deep); }
.lvtc-rc .sh-time{ display:flex; gap:14px; padding-top:6px; }
.lvtc-rc .sh-col{ flex:1; }
.lvtc-rc .sh-colh{ text-align:center; font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); padding-bottom:8px; }
.lvtc-rc .sh-wheel{ height:220px; overflow-y:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--hair); }
.lvtc-rc .sh-num{ width:100%; background:#fff; border:0; border-bottom:1px solid var(--hair); padding:14px 0; font-size:17px; font-weight:600; color:var(--ink-soft); }
.lvtc-rc .sh-num.on{ background:var(--grad-gold); color:#fff; }

/* ---- écran d'attente (vraie transition après POST) ---- */
.lvtc-rc .wait{ padding:0 30px; text-align:center; }
.lvtc-rc .radar{ width:128px; height:128px; margin:0 auto 26px; position:relative; }
.lvtc-rc .radar span{ position:absolute; inset:0; border-radius:50%; border:1.5px solid var(--gold); opacity:.22; animation:lv-ping 2.4s ease-out infinite; }
.lvtc-rc .radar span:nth-child(2){ animation-delay:.8s; }
.lvtc-rc .radar span:nth-child(3){ animation-delay:1.6s; }
@keyframes lv-ping{ 0%{ transform:scale(.45); opacity:.85; } 80%{ opacity:0; } 100%{ transform:scale(1); opacity:0; } }
.lvtc-rc .radar-core{ position:absolute; inset:36px; border-radius:50%; background:var(--grad-gold); color:#fff; display:grid; place-items:center; box-shadow:0 16px 34px -14px rgba(138,106,44,.9); }
@media (prefers-reduced-motion:reduce){ .lvtc-rc .radar span{ animation:none; opacity:.4; } }
.lvtc-rc .wait-eyebrow{ font-size:11px; letter-spacing:2.4px; text-transform:uppercase; color:var(--gold-deep); font-weight:600; margin:0 0 10px; }
.lvtc-rc .wait-h{ font-size:25px; font-weight:500; letter-spacing:-.6px; color:var(--ink); margin:0 0 14px; }
.lvtc-rc .wait-p{ font-size:14.5px; line-height:1.6; color:var(--body); margin:0 0 22px; }
.lvtc-rc .wait-p b{ color:var(--ink-soft); font-weight:600; }
.lvtc-rc .wait-bar{ height:4px; background:var(--soft); overflow:hidden; margin-bottom:22px; }
.lvtc-rc .wait-bar i{ display:block; height:100%; width:40%; background:var(--grad-gold); animation:lv-slide 1.4s ease-in-out infinite; }
@keyframes lv-slide{ 0%{ margin-left:-42%; } 100%{ margin-left:102%; } }
.lvtc-rc .wait-foot{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); margin:0; }
.lvtc-rc .wait-foot svg{ color:var(--gold-deep); }

/* =====================================================================
   HERO dédié — page /reservation (copie à gauche, carte à droite)
   ===================================================================== */
.lvtc-hero{ position:relative; min-height:calc(100dvh - 68px); display:flex; align-items:center; overflow:hidden; }
.lvtc-hero-bg{ position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(120% 90% at 72% 18%, rgba(231,206,140,.18), rgba(231,206,140,0) 52%),
    radial-gradient(120% 120% at 14% 90%, rgba(184,146,74,.20), rgba(184,146,74,0) 58%),
    linear-gradient(180deg,#26221a 0%,#16140f 58%,#0b0a07 100%); }
.lvtc-hero-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(110deg, rgba(10,9,6,.82) 0%, rgba(10,9,6,.5) 52%, rgba(10,9,6,.28) 100%); }
.lvtc-hero-wrap{ position:relative; z-index:2; width:100%; max-width:1200px; margin:0 auto; padding:40px 44px; display:grid; grid-template-columns:1fr 520px; gap:56px; align-items:center; }
.lvtc-hero-copy .eyebrow{ color:var(--gold-bright); }
.lvtc-hero-copy h1{ color:#fff; font-size:clamp(34px,3.6vw,54px); line-height:1.05; letter-spacing:-1.1px; font-weight:500; margin:18px 0 0; max-width:13ch; }
.lvtc-hero-copy h1 em{ font-style:normal; color:var(--gold-bright); }
.lvtc-hero-copy p{ color:rgba(255,255,255,.82); font-size:18px; line-height:1.62; margin:22px 0 0; max-width:46ch; }
.lvtc-hero-trust{ display:flex; flex-wrap:wrap; gap:14px 26px; margin:32px 0 0; padding:0; list-style:none; }
.lvtc-hero-trust li{ display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.92); font-size:14px; }
.lvtc-hero-trust li svg{ width:18px; height:18px; color:var(--gold-bright); flex:none; }

/* =====================================================================
   EMBED dans le hero de l'accueil (.hero existant du site)
   Scopé sous .hero-booking → n'affecte aucune autre page en .hero.
   ===================================================================== */
.hero.hero-booking{ align-items:center; min-height:clamp(640px,90vh,860px); }
.hero-booking .hero-inner{ padding-top:96px; padding-bottom:48px; }
.hero-booking .hb-grid{ display:grid; grid-template-columns:1fr 460px; gap:48px; align-items:center; }
.hero-booking .hb-copy{ max-width:600px; }
.hero-booking .hb-card .lvtc-bcard{ height:512px; max-height:none; border-radius:2px; }

/* =====================================================================
   MODALE (boutons [data-book] sur tout le site)
   ===================================================================== */
.lvtc-modal{ position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:24px; }
.lvtc-modal.open{ display:flex; }
.lvtc-modal-backdrop{ position:absolute; inset:0; background:rgba(12,11,8,.66); backdrop-filter:blur(2px); }
.lvtc-modal-panel{ position:relative; z-index:2; width:100%; max-width:452px; }
.lvtc-modal-panel .lvtc-bcard{ height:min(548px, calc(100dvh - 48px)); max-height:none; border-radius:4px; }
.lvtc-modal-close{ position:absolute; top:-42px; right:0; z-index:3; background:rgba(255,255,255,.14); border:0; color:#fff; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; cursor:pointer; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width:1024px){
  .hero-booking .hb-grid{ grid-template-columns:1fr; gap:28px; max-width:560px; margin:0 auto; }
  .hero-booking .hb-copy .hero-trust, .hero-booking .hb-copy .lead{ display:none; }
  .lvtc-hero-wrap{ grid-template-columns:1fr; gap:26px; padding:36px 28px; max-width:560px; }
  .lvtc-hero-copy p, .lvtc-hero-trust{ display:none; }
  .lvtc-hero-copy h1{ font-size:clamp(28px,7vw,40px); max-width:20ch; }
}
@media (max-width:560px){
  .lvtc-modal{ padding:0; }
  .lvtc-modal-panel{ max-width:none; height:100dvh; }
  .lvtc-modal-panel .lvtc-bcard{ height:100dvh; box-shadow:none; border-radius:0; }
  .lvtc-modal-close{ top:10px; right:10px; background:rgba(0,0,0,.32); }
  .hero-booking .hb-card .lvtc-bcard{ height:auto; min-height:494px; box-shadow:0 30px 70px -36px rgba(0,0,0,.6); }
  .lvtc-hero{ min-height:100dvh; }
  .lvtc-hero-wrap{ display:flex; flex-direction:column; padding:0; gap:0; max-width:none; }
  .lvtc-hero-copy{ flex:none; padding:18px 22px 14px; }
  .lvtc-hero .lvtc-bcard{ height:auto; min-height:78dvh; max-height:none; box-shadow:none; }
}

/* ---- desktop : bottom-sheet devient un popover centré ---- */
@media (min-width:561px){
  .lvtc-rc .sh-scrim{ align-items:center; justify-content:center; padding:22px; }
  .lvtc-rc .sh-panel{ max-width:404px; max-height:84%; border-radius:8px; }
}

/* =====================================================================
   RTL (arabe) — la grille se reflète d'elle-même (la carte passe à gauche)
   ===================================================================== */
[dir="rtl"] .lvtc-rc .rfield, [dir="rtl"] .lvtc-rc .rdt-cell,
[dir="rtl"] .lvtc-rc .sh-row, [dir="rtl"] .lvtc-rc .rinput{ text-align:right; }
[dir="rtl"] .lvtc-rc .rnote, [dir="rtl"] .lvtc-rc .rcgv, [dir="rtl"] .lvtc-rc .resv-error{ border-left:0; border-right:3px solid var(--gold); }
[dir="rtl"] .lvtc-rc .resv-error{ border-right-color:#c0392b; }
[dir="rtl"] .lvtc-rc .resv-error ul{ padding-left:0; padding-right:16px; }
[dir="rtl"] .lvtc-rc .rdt-a{ margin-right:0; margin-left:2px; }
[dir="rtl"] .lvtc-rc .offer-badge{ right:auto; left:-1px; }
[dir="rtl"] .lvtc-modal-close{ right:auto; left:0; }
@media (max-width:560px){ [dir="rtl"] .lvtc-modal-close{ left:10px; right:auto; } }
