/* ═══════════════════════════════════════════════════════════════════════════
   DEMO MODE — Landing publique + age gate + banner sticky + floutage prix
   Réutilise les tokens de homepage.css (--gold, --bg-main, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. LANDING /demo.php ─────────────────────────────────────────────── */

body.page-demo-landing {
  background: #1a1a1a;
  color: #e8e0d0;
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
  overflow-x: hidden;
}

.demo-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}

.dl-hero {
  max-width: 720px;
  text-align: center;
  z-index: 1;
}

.dl-logo {
  display: flex;
  justify-content: center;
  color: var(--gold, #c9a84c);
  margin-bottom: 36px;
}
.dl-logo .logo-svg { width: 160px; height: auto; display: block; }

.dl-eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin-bottom: 28px;
}
.dl-dash {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--gold, #c9a84c);
  opacity: 0.7;
}

.dl-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 22px;
}
.dl-title-italic {
  display: block;
  font-style: italic;
  color: var(--gold, #c9a84c);
  font-weight: 400;
  margin-top: 4px;
}

.dl-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(232, 224, 208, 0.85);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Lang switcher landing */
.dl-lang-switch {
  display: inline-flex;
  gap: 14px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 100px;
}
.dl-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}
.dl-flag:hover { opacity: 0.95; }
.dl-flag.is-active { opacity: 1; box-shadow: 0 2px 0 var(--gold, #c9a84c); }
.dl-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTA fallback (visible si seed manquant) */
.dl-cta-wrap { margin-top: 36px; }
.dl-cta-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--gold, #c9a84c);
  color: #1a1a1a;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 10px 24px -10px rgba(201, 168, 76, 0.55);
}
.dl-cta-btn:hover {
  background: #e0c070;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(201, 168, 76, 0.7);
}

/* ─── 2. AGE GATE MODAL ────────────────────────────────────────────────── */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.12);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.age-gate-card {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 12px;
  padding: 44px 36px 34px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.06),
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(201, 168, 76, 0.12);
  animation: ageGateReveal 0.6s cubic-bezier(.2, .6, .2, 1);
}

@keyframes ageGateReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.age-gate-logo {
  display: flex;
  justify-content: center;
  color: var(--gold, #c9a84c);
  margin-bottom: 22px;
}
.age-gate-logo .logo-svg { width: 130px; height: auto; }

.age-gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  color: #e8e0d0;
  margin: 0 0 14px;
  letter-spacing: 0.005em;
}

.age-gate-sub {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(232, 224, 208, 0.6);
  margin: 0 0 28px;
  font-style: italic;
}

.age-gate-actions { margin-bottom: 14px; }

.age-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  white-space: nowrap;        /* libellé toujours sur une seule ligne (desktop & mobile) */
  max-width: 100%;
  background: var(--gold, #c9a84c);
  color: #1a1a1a;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 10px 24px -10px rgba(201, 168, 76, 0.55);
}
.age-gate-btn:hover {
  background: #e0c070;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(201, 168, 76, 0.7);
}

.age-gate-link {
  display: inline-block;
  color: rgba(232, 224, 208, 0.55);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
  transition: color 0.22s ease;
}
.age-gate-link:hover { color: var(--gold, #c9a84c); }

/* ─── 3. STICKY DEMO BANNER (sur toutes les pages du dashboard quand demo) ─ */

.demo-banner {
  /* ⚠ Banner NON-sticky volontairement (avant : position: fixed).
     Raison : le sticky/fixed banner créait un overlap avec .app-header
     (sticky lui aussi) — quel que soit le calcul de top (var, JS, !important),
     les 2 stickys finissaient par se chevaucher au scroll. Pattern standard
     e-com : announcement bar scroll-out (cf. Shopify, Stripe). */
  position: relative;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.42);
  color: #e8e0d0;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.demo-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.demo-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.42);
  color: var(--gold, #c9a84c);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
}
.demo-banner-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #c9a84c);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
  animation: demoBannerPulse 2.4s ease-in-out infinite;
}
@keyframes demoBannerPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.demo-banner-text {
  color: rgba(232, 224, 208, 0.85);
  font-size: 12px;
}
.demo-banner-text strong { color: var(--gold, #c9a84c); font-weight: 500; }

.demo-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--gold, #c9a84c);
  color: #1a1a1a;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.22s ease;
}
.demo-banner-cta:hover {
  background: #e0c070;
  transform: translateY(-1px);
}

/* Icône loupe dans le banner — accès rapide recherche */
.demo-banner-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.30);
  color: var(--gold, #c9a84c);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.demo-banner-search-btn:hover {
  background: rgba(201, 168, 76, 0.20);
  border-color: var(--gold, #c9a84c);
  transform: translateY(-1px);
}

/* ─── 6. SEARCH MODAL ──────────────────────────────────────────────────── */

.demo-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}
.demo-search-modal[hidden] { display: none; }

.demo-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  cursor: pointer;
}

.demo-search-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
  border: 1px solid rgba(201, 168, 76, 0.30);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 240, 200, 0.06);
  animation: dsmReveal 0.32s cubic-bezier(.2, .6, .2, 1);
}
@keyframes dsmReveal {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-search-icon { color: var(--gold, #c9a84c); flex-shrink: 0; }
.demo-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #e8e0d0;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.demo-search-input::placeholder { color: rgba(232, 224, 208, 0.4); }
.demo-search-close {
  background: transparent;
  border: 0;
  color: rgba(232, 224, 208, 0.5);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}
.demo-search-close:hover { color: var(--gold, #c9a84c); }

.demo-search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.4) rgba(0, 0, 0, 0.3);
}
.demo-search-empty {
  text-align: center;
  padding: 28px;
  color: rgba(232, 224, 208, 0.4);
  font-style: italic;
  font-size: 13px;
  margin: 0;
}

.demo-search-section { padding: 8px 0; }
.demo-search-section-title {
  padding: 6px 18px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
}
.demo-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  border-left: 2px solid transparent;
  color: #e8e0d0;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.demo-search-item[hidden],
.demo-search-section[hidden] { display: none; }
.demo-search-item:hover {
  background: rgba(201, 168, 76, 0.06);
  border-left-color: var(--gold, #c9a84c);
}
/* Vignette bouteille à gauche de chaque cuvée */
.demo-search-thumb {
  flex: 0 0 28px;
  width: 28px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-search-thumb-img {
  max-width: 24px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}
.demo-search-item strong {
  display: block;
  flex: 1;
  min-width: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 15px;
  color: #e8e0d0;
  margin: 0;
}
.demo-search-snippet {
  display: block;
  font-size: 12px;
  color: rgba(232, 224, 208, 0.55);
  line-height: 1.5;
  margin-top: 2px;
}
.demo-search-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(201, 168, 76, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: var(--gold, #c9a84c);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
}
.demo-search-item--coll strong { color: var(--gold, #c9a84c); }

/* ─── 7. DIAPORAMA DÉMO (modale plein-cadre, images only) ─────────────── */

.demo-slideshow {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-slideshow[hidden] { display: none; }

.demo-slideshow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.1);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  cursor: pointer;
}

/* Conteneur aux DIMENSIONS FIXES — on ne montre QUE les images, recadrées. */
.demo-slideshow-frame {
  position: relative;
  width: min(92vw, 680px);
  aspect-ratio: 1 / 1;
  max-height: 82vh;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid rgba(201, 168, 76, 0.4);
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 240, 200, 0.07);
  animation: dexReveal 0.5s cubic-bezier(.2, .6, .2, 1);
}
@keyframes dexReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2 calques empilés → crossfade. object-fit: cover = recadrage SANS déformer. */
.demo-slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.85s ease;
  will-change: opacity;
}
.demo-slideshow-img.is-visible {
  opacity: 1;   /* crossfade pur, sans zoom */
}

.demo-slideshow-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: rgba(232, 224, 208, 0.72);
  cursor: pointer;
  border-radius: 9px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.22s ease;
}
.demo-slideshow-close:hover {
  color: var(--gold, #c9a84c);
  border-color: var(--gold, #c9a84c);
  background: rgba(12, 12, 12, 0.85);
}

.demo-slideshow-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
}
.demo-slideshow-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold, #c9a84c), #e0c070);
}

@media (prefers-reduced-motion: reduce) {
  .demo-slideshow-img { transition: opacity 0.4s ease; }
  .demo-slideshow-frame { animation: none; }
}

/* Banner non-sticky → pas de padding-top body, pas de top override sur le
   header. Le banner prend sa place dans le flow vertical (avant .app),
   scroll out naturellement avec le reste du contenu. Le .app-header reste
   sticky avec son `top: 0` natif et se colle au top du viewport au scroll
   sans aucune chance de chevauchement. */

/* ─── Flash messages (demo cleared / already logged in / etc.) ───────────── */
.demo-flash {
  margin: 18px auto;
  max-width: 800px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(126,184,110,0.10) 0%, rgba(126,184,110,0.04) 100%);
  border: 1px solid rgba(126,184,110,0.35);
  border-left: 4px solid #7eb86e;
  border-radius: 6px;
  color: #d8e8d0;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  animation: demoFlashFadeIn 0.5s ease forwards;
}
@keyframes demoFlashFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 4. CHECKOUT BLOCK (cart en mode démo) ────────────────────────────── */

.demo-checkout-block {
  text-align: center;
  padding: 22px 18px 24px;
  background: linear-gradient(180deg, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.02) 100%);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 8px;
  position: relative;
}
.demo-checkout-block::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #c9a84c), transparent);
}
.demo-checkout-icon { font-size: 28px; margin-bottom: 8px; }
.demo-checkout-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--gold, #c9a84c);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.demo-checkout-sub {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(232, 224, 208, 0.75);
  margin: 0 0 16px;
  max-width: 340px;
  margin-inline: auto;
}

/* ─── 5. FLOUTAGE DES PRIX ──────────────────────────────────────────────── */

.price--demo {
  /* Le placeholder text "€---,--" est dans le DOM, mais flouté pour donner
     l'effet d'un prix masqué tout en gardant la grid layout stable. */
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  cursor: help;
  position: relative;
  transition: filter 0.22s ease;
  color: var(--gold, #c9a84c) !important;
  font-weight: 500;
}
.price--demo:hover {
  filter: blur(3px);
}
.price--demo::after {
  /* Petit "lock" 🔒 superposé pour signaler que c'est verrouillé */
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  font-size: 0.85em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.price--demo:hover::after {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   TOOLTIPS DÉMO CUSTOM — même esprit que les bouteilles du header (§19).
   Les éléments .demo-tip[data-demo-tip] (prix masqués .price-demo-wrap, concierge
   en démo…) sont survolés ; script.js affiche un TOOLTIP FLOTTANT unique en
   position:fixed posé sur <body> → il échappe à l'overflow de .app-main ET au
   header sticky, se recadre dans le viewport et bascule au-dessus/en dessous.
   (On n'utilise plus ::after/::before sur .demo-tip, qui restaient prisonniers de
   l'overflow → texte clippé sous le header ou hors de la fenêtre.)
   ════════════════════════════════════════════════════════════════════════════ */
.price-demo-wrap { display: inline-block; }

.demo-float-tip {
  position: fixed;
  top: 0; left: 0;                  /* position exacte posée par script.js */
  z-index: 9000;                    /* au-dessus du header sticky (100) */
  width: max-content;
  max-width: 240px;
  background: var(--bg-main);
  color: var(--text-primary);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 5px;
  padding: 7px 11px;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.demo-float-tip.is-visible { opacity: 1; }
.demo-float-tip-arrow {
  position: absolute;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
/* tooltip AU-DESSUS de l'élément → flèche en bas, pointe vers le bas */
.demo-float-tip:not(.is-below) .demo-float-tip-arrow {
  bottom: -6px;
  border-top: 6px solid rgba(201,168,76,.35);
}
/* tooltip EN DESSOUS (basculé près du header) → flèche en haut, pointe vers le haut */
.demo-float-tip.is-below .demo-float-tip-arrow {
  top: -6px;
  border-bottom: 6px solid rgba(201,168,76,.35);
}

/* ─── Boutons de mutation neutralisés en démo (account.php : profil / adresse /
   mot de passe). Le blocage réel est côté serveur (demo_block_if_demo) ; ceci
   n'est que l'indice visuel. La classe .demo-tip (posée par le script inline
   d'account.php) déclenche le tooltip de conversion au survol. ───────────── */
body.demo-mode .ac-btn-demo-locked {
  opacity: .5;
  cursor: not-allowed;
}
body.demo-mode .ac-btn-demo-locked:hover {
  transform: none;   /* neutralise le lift/hover doré habituel du .ac-btn */
}

/* ─── Toast de conversion démo (account.php : clic/tap sur un bouton neutralisé).
   Feedback ACTIF partout (le tooltip .demo-tip ne se déclenche qu'au survol,
   donc inutile sur tactile) + CTA vers create.php. Créé à la volée par le script
   inline d'account.php. Centré bas, s'adapte au viewport (pas de breakpoint). ── */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 9500;                       /* au-dessus du tooltip flottant (9000) */
  width: max-content;
  max-width: min(92vw, 440px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-main);
  border: 1px solid rgba(201,168,76,.45);
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}
.demo-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.demo-toast-msg {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}
.demo-toast-cta {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 9px;
  transition: color .18s ease, letter-spacing .18s ease;
}
.demo-toast-cta:hover {
  color: #e6cd86;
  letter-spacing: .06em;
}

/* ─── 5b. FILET DE SÉCURITÉ — flou des prix non-passés par fmt_eur_demo() ─
   Cible les classes les plus communes utilisées pour les prix dans le site.
   Sans toucher au DOM, on garantit qu'aucun prix réel n'est visible en démo.

   ⚠ .metric-value (analytics.php) sans .gold : EXCLU (= bouteilles cumulées
   = métrique d'engagement, non sensible, OK en clair même en démo).

   ⚠ .metric-value.gold (Dépense totale / Croissance) : flou RENFORCÉ à 16px
   parce que le texte est très grand (32–48px Cormorant Garamond gold) et
   reste lisible derrière un blur 5px. À cette taille typo il faut taper
   ≥ 14px pour vraiment dissoudre les chiffres. */
body.demo-mode .lc-card-price,
body.demo-mode .ft-card-price,
body.demo-mode .col-card-price,
body.demo-mode .product-price,
body.demo-mode .tier-price,
body.demo-mode .acc-card-price,
body.demo-mode .accessory-price,
body.demo-mode [data-blur-demo],
body.demo-mode .price:not(.price--demo) {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  cursor: help;
  transition: filter 0.22s ease;
}
body.demo-mode .lc-card-price:hover,
body.demo-mode .ft-card-price:hover,
body.demo-mode .col-card-price:hover,
body.demo-mode .product-price:hover,
body.demo-mode .tier-price:hover {
  filter: blur(3px);
}

/* Flou renforcé spécifique au texte XXL gold des KPI cards analytics.
   Le filter blur(16px) est calibré pour qu'à 32–48px de font-size les
   chiffres deviennent visuellement illisibles, sans pour autant faire
   disparaître le bloc (l'opacity et la couleur gold restent perçues). */
body.demo-mode .metric-value.gold {
  filter: blur(16px);
  -webkit-filter: blur(16px);
  user-select: none;
  cursor: help;
  transition: filter 0.22s ease;
}
body.demo-mode .metric-value.gold:hover {
  filter: blur(10px);
  -webkit-filter: blur(10px);
}

/* ─── 5. ENCART "TESTER EN DÉMO" SUR connexion.php ─────────────────────── */

.login-demo-card {
  position: relative;
  margin-top: 28px;
  padding: 22px 24px;
  min-height: 160px;
  border: 1px solid rgba(201, 168, 76, 0.30);
  border-radius: 10px;
  overflow: hidden;
  /* Vignoble au soleil couchant + voile sombre pour la lisibilité du texte */
  background:
    linear-gradient(105deg,
      rgba(20, 15, 7, 0.90) 0%,
      rgba(22, 17, 9, 0.74) 42%,
      rgba(24, 19, 10, 0.34) 100%),
    url('img/decorations/master-invitation-gardet.jpg') center / cover no-repeat;
}
/* Filet or au sommet de la carte */
.login-demo-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #c9a84c), transparent);
  z-index: 3;
}

.login-demo-content {
  position: relative;
  z-index: 2;
  max-width: 66%;
  text-align: left;
}

.login-demo-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--gold, #c9a84c);
  margin: 0 0 6px;
  letter-spacing: 0.005em;
}
.login-demo-sub {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(232, 224, 208, 0.82);
  margin: 0 0 16px;
  line-height: 1.55;
}

/* Bouton démo — seul élément doté d'un effet au survol */
.login-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.55);
  border-radius: 100px;
  color: var(--gold, #c9a84c);
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;         /* libellé toujours sur une seule ligne */
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.login-demo-btn .ldb-arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.22s ease;
}
.login-demo-btn:hover {
  background: var(--gold, #c9a84c);
  border-color: var(--gold, #c9a84c);
  color: #1b1407;
  transform: translateY(-1px);
}
.login-demo-btn:hover .ldb-arrow {
  transform: translateX(3px);
}
.login-demo-btn:focus-visible {
  outline: 2px solid rgba(255, 240, 180, 0.7);
  outline-offset: 3px;
}

/* ─── Bouteilles en escalier — bas escamoté derrière le liseré inférieur ─── */
.login-demo-bottles {
  position: absolute;
  right: 14px;
  /* Décalage négatif : avec overflow:hidden sur la carte, le bas des
     bouteilles (et son liseré blanc) est coupé net au bord interne du
     liseré or → elles semblent « plantées » derrière la bordure. */
  bottom: -4px;
  z-index: 1;
  display: flex;
  align-items: flex-end; /* fonds alignés → sommets en escalier */
  gap: 20px;
  pointer-events: none;
}
.login-demo-bottles .ldb {
  display: block;
  width: auto;
  /* Ombre douce d'ancrage au sol (suit la silhouette, peinte derrière l'image). */
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.99));
}
.ldb--1 { height: 90px; }   /* Brut Tradition — sort le moins */
.ldb--2 { height: 120px; }   /* Brut Rosé — intermédiaire */
.ldb--3 { height: 150px; }  /* Brut Réserve Premier Cru — sort le plus */

@media (max-width: 640px) {
  .login-demo-card { min-height: 142px; }
  .login-demo-content { max-width: 60%; }
  /* Bouton compacté : le libellé (nowrap) tient sur une ligne dans la zone
     contenu réduite, sans déborder sur les bouteilles décoratives. */
  .login-demo-btn { padding: 9px 14px; font-size: 10px; letter-spacing: 0.06em; gap: 6px; }
  .ldb--1 { height: 60px; }
  .ldb--2 { height: 80px; }
  .ldb--3 { height: 100px; }
}
@media (max-width: 380px) {
  .login-demo-content { max-width: 56%; }
  .ldb--1 { height: 50px; }
  .ldb--2 { height: 66px; }
  .ldb--3 { height: 84px; }
}

/* ── 5c. Passerelle B2C (bas de sidebar, mode démo uniquement) ──────────────
   Discret par construction : ce fichier n'est chargé QUE si $_isDemo, donc un
   client réel ne télécharge même pas ces règles. Ton or sourd au repos, l'or
   plein n'apparaît qu'au survol — il ne doit pas capter l'œil avant le menu. */
.sb-b2c{
  display:flex; align-items:flex-start; gap:8px;
  margin:16px 8px 4px; padding:11px 9px;
  border:1px solid rgba(201,168,76,.20); border-radius:10px;
  background:linear-gradient(180deg, rgba(201,168,76,.075), rgba(201,168,76,.03));
  text-decoration:none; transition:border-color .2s ease, background .2s ease, transform .2s ease;
}
.sb-b2c:hover{
  border-color:rgba(201,168,76,.55);
  background:linear-gradient(180deg, rgba(201,168,76,.14), rgba(201,168,76,.06));
  transform:translateY(-1px);
}
.sb-b2c-badge{
  flex:0 0 auto; align-self:center;
  font-family:'Cormorant Garamond',serif; font-size:17px; line-height:1;
  color:var(--gold,#c9a84c); letter-spacing:.01em; white-space:nowrap; font-weight: bold;
}
.sb-b2c-body{display:flex; flex-direction:column; gap:3px; min-width:0;}
.sb-b2c-title{
  font-family:'Jost',sans-serif; font-size:11px; line-height:1.3;
  color:#e2dbcb; letter-spacing:.01em;
}
.sb-b2c-line{font-family:'Jost',sans-serif; font-size:10.5px; color:#918b80; line-height:1.4;}
.sb-b2c-code{
  font-family:ui-monospace,monospace; font-size:10px; letter-spacing:.06em;
  color:var(--gold,#c9a84c); background:rgba(201,168,76,.10);
  border:1px dashed rgba(201,168,76,.42); border-radius:4px; padding:1px 5px;
  white-space:nowrap;
}
.sb-b2c-go{
  font-family:'Jost',sans-serif; font-size:10.5px; letter-spacing:.05em;
  color:var(--gold,#c9a84c); opacity:.85; margin-top:2px;
}
.sb-b2c:hover .sb-b2c-go{opacity:1;}
@media (prefers-reduced-motion: reduce){ .sb-b2c{transition:none;} .sb-b2c:hover{transform:none;} }

/* Code promo copiable au clic (dans le lien B2C → le JS stoppe la navigation). */
.sb-b2c-code{cursor:pointer; user-select:all; transition:background .18s ease, border-color .18s ease, color .18s ease;}
.sb-b2c-code:hover{background:rgba(201,168,76,.20); border-color:rgba(201,168,76,.75);}
.sb-b2c-code:focus-visible{outline:2px solid rgba(201,168,76,.8); outline-offset:2px;}
.sb-b2c-code.is-copied{background:rgba(201,168,76,.9); border-style:solid; border-color:#c9a84c; color:#1b1407;}
