/* =============================================================
   VINDALE · effets globaux (toutes pages)
   - Curseur lumineux
   - Boutons magnétiques (héritent .magnetic ou auto-mark)
   - Header animé au scroll
   - Transition d'entrée de page
   - Éblouissement dynamique sur cartes
   - Modale auth Google / invité
   - Widget ticketing flottant
   - Thème Aurora ⇄ Forêt
   ============================================================= */

/* ============= Variables thème (Aurora par défaut) ============= */
body {
  --brand-1: #0071E3;
  --brand-2: #BF5AF2;
  --brand-3: #FF375F;
  --brand-mid: #BF5AF2;
  --brand-glow-rgb: 0,113,227;
  --brand-tint-rgb: 191,90,242;
}
body.theme-green {
  --brand-1: #0A7C36;
  --brand-2: #34C759;
  --brand-3: #9DE38B;
  --brand-mid: #34C759;
  --brand-glow-rgb: 10,124,54;
  --brand-tint-rgb: 52,199,89;
}

/* ============= Logo Vindale ============= */
.v-logo-mark { display: inline-block; flex-shrink: 0; transition: transform .4s cubic-bezier(.2,.6,.2,1); }
a:hover .v-logo-mark { transform: rotate(-6deg) scale(1.06); }
/* Le `var(...)` agit comme fallback si <defs id="vBrandGrad"> n'est pas encore injecté */
.v-logo-mark .v-logo-v    { stroke: url(#vBrandGrad) var(--brand-2, #BF5AF2); }
.v-logo-mark .v-logo-dale { stroke: url(#vBrandGrad) var(--brand-2, #BF5AF2); opacity: .6; }

/* ============= Bouton bascule thème ============= */
.v-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: inherit;
  color: rgba(29,29,31,0.7);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.v-theme-toggle:hover { background: rgba(0,0,0,0.07); color: #1D1D1F; transform: translateY(-1px); }
.v-theme-toggle .v-theme-aurora,
.v-theme-toggle .v-theme-forest {
  transition: opacity .35s cubic-bezier(.2,.6,.2,1), transform .35s cubic-bezier(.2,.6,.2,1);
}
.v-theme-toggle[data-theme="aurora"] .v-theme-aurora { display: inline-block; }
.v-theme-toggle[data-theme="aurora"] .v-theme-forest { display: none; }
.v-theme-toggle[data-theme="green"]  .v-theme-aurora { display: none; }
.v-theme-toggle[data-theme="green"]  .v-theme-forest { display: inline-block; color: #34C759; }
.v-theme-toggle:active { transform: scale(.94); }

/* ============= Thème Forêt — overrides globaux ============= */
/* Toutes les pages utilisent les classes Tailwind compilées via CDN.
   On override les couleurs critiques via sélecteurs ciblés. */

body.theme-green .grad-text,
body.theme-green .grad-text-anim {
  background: linear-gradient(135deg, #0A7C36 0%, #34C759 25%, #9DE38B 50%, #34C759 75%, #0A7C36 100%) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Tailwind couleurs custom (accent = blue, ink, etc.) */
body.theme-green .text-accent       { color: #34C759 !important; }
body.theme-green .bg-accent         { background-color: #34C759 !important; }
body.theme-green .border-accent     { border-color: #34C759 !important; }
body.theme-green .ring-accent       { --tw-ring-color: #34C759 !important; }
body.theme-green .from-accent\/10   { --tw-gradient-from: rgba(52,199,89,0.10) !important; }
body.theme-green .via-accent\/10    { --tw-gradient-via: rgba(52,199,89,0.10) !important; }
body.theme-green .to-accent\/10     { --tw-gradient-to: rgba(52,199,89,0.10) !important; }
body.theme-green .bg-accent\/10     { background-color: rgba(52,199,89,0.10) !important; }
body.theme-green .bg-accent\/30     { background-color: rgba(52,199,89,0.30) !important; }
body.theme-green .bg-accent\/40     { background-color: rgba(52,199,89,0.40) !important; }
body.theme-green .bg-accent\/60     { background-color: rgba(52,199,89,0.60) !important; }
body.theme-green a.pill-link        { color: #34C759 !important; }
body.theme-green .pill-link         { color: #34C759 !important; }

/* Pink/purple → green nuances */
body.theme-green .bg-pink-400\/25,
body.theme-green .bg-pink-400\/10,
body.theme-green .bg-pink-500\/30,
body.theme-green .bg-pink-500\/15,
body.theme-green .bg-pink-500\/10,
body.theme-green .bg-pink-500\/60   { background-color: rgba(157,227,139,0.25) !important; }
body.theme-green .bg-purple-400\/20,
body.theme-green .bg-purple-500\/15,
body.theme-green .bg-purple-500\/10,
body.theme-green .bg-purple-500\/60 { background-color: rgba(10,124,54,0.18) !important; }

/* Hero mesh & blobs */
body.theme-green .hero-mesh {
  background:
    radial-gradient(at 20% 20%, rgba(10,124,54,0.18) 0px, transparent 50%),
    radial-gradient(at 80% 30%, rgba(52,199,89,0.18) 0px, transparent 50%),
    radial-gradient(at 60% 90%, rgba(157,227,139,0.18) 0px, transparent 50%),
    radial-gradient(at 30% 70%, rgba(52,199,89,0.10) 0px, transparent 50%) !important;
}

/* Boutons primaires : gradient hover + ombre */
body.theme-green .btn-primary::before {
  background: linear-gradient(135deg, #0A7C36, #34C759, #9DE38B) !important;
}
body.theme-green .btn-primary:hover { box-shadow: 0 18px 36px -10px rgba(52,199,89,0.45) !important; }

/* SVG sparkles & stars (les fills hardcodés) */
body.theme-green svg[fill="#0071E3"]   { fill: #0A7C36 !important; }
body.theme-green svg[fill="#BF5AF2"]   { fill: #34C759 !important; }
body.theme-green svg[fill="#FF375F"]   { fill: #9DE38B !important; }
body.theme-green svg[stroke="#0071E3"] { stroke: #0A7C36 !important; }
body.theme-green svg[stroke="#BF5AF2"] { stroke: #34C759 !important; }
body.theme-green svg[stroke="#FF375F"] { stroke: #34C759 !important; }
body.theme-green svg [fill="#0071E3"]  { fill: #0A7C36 !important; }
body.theme-green svg [fill="#BF5AF2"]  { fill: #34C759 !important; }
body.theme-green svg [fill="#FF375F"]  { fill: #9DE38B !important; }

/* Sélection texte */
body.theme-green ::selection { background: #34C759 !important; color: #fff !important; }

/* Curseur lumineux */
body.theme-green .v-cursor-glow {
  background: radial-gradient(circle, rgba(52,199,89,0.16) 0%, rgba(157,227,139,0.06) 35%, transparent 65%);
}

/* Pulse-ring + dot pulse */
body.theme-green .pulse-ring { animation: pulseRingGreen 3.6s ease-in-out infinite; }
@keyframes pulseRingGreen {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
  50%     { box-shadow: 0 0 0 14px rgba(52,199,89,0); }
}

/* Spotlight cartes en thème vert */
body.theme-green .v-spotlight::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(52,199,89,0.22),
    rgba(157,227,139,0.13) 35%,
    rgba(10,124,54,0.07) 55%,
    transparent 70%
  );
}
body.theme-green .v-spotlight.bg-ink::before,
body.theme-green .v-spotlight[class*="bg-ink"]::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(52,199,89,0.55),
    rgba(157,227,139,0.32) 35%,
    rgba(10,124,54,0.16) 55%,
    transparent 70%
  );
}

/* Inputs focus */
body.theme-green .input-row:focus-within {
  border-color: #34C759 !important;
  box-shadow: 0 12px 24px -10px rgba(52,199,89,0.25) !important;
}

/* === Modale auth en thème vert === */
body.theme-green .v-modal::before {
  background: radial-gradient(circle, rgba(10,124,54,0.20), transparent 70%);
}
body.theme-green .v-modal::after {
  background: radial-gradient(circle, rgba(157,227,139,0.20), transparent 70%);
}
body.theme-green .v-modal-icon { background: linear-gradient(135deg, #0A7C36, #34C759 50%, #9DE38B); box-shadow: 0 14px 30px -8px rgba(52,199,89,0.4); }
body.theme-green .v-auth-btn:hover { border-color: rgba(52,199,89,0.4); }
body.theme-green .v-auth-btn.email-cta:hover { background: #34C759; border-color: #34C759; }
body.theme-green .v-auth-btn.guest { color: #34C759; }
body.theme-green .v-auth-input:focus { border-color: #34C759; box-shadow: 0 0 0 3px rgba(52,199,89,0.12); }
body.theme-green .v-auth-fineprint a { color: #34C759; }

/* User pill */
body.theme-green .v-user-pill .v-avatar { background: linear-gradient(135deg, #0A7C36, #34C759); }

/* Ticket fab (en bas à droite) */
body.theme-green .v-ticket-fab {
  background: linear-gradient(135deg, #0A7C36, #34C759 60%, #9DE38B);
  box-shadow: 0 18px 40px -10px rgba(52,199,89,0.5);
  animation: vFabPulseGreen 3s ease-in-out infinite;
}
@keyframes vFabPulseGreen {
  0%, 100% { box-shadow: 0 18px 40px -10px rgba(52,199,89,0.5), 0 0 0 0 rgba(52,199,89,0.4); }
  50%      { box-shadow: 0 18px 40px -10px rgba(52,199,89,0.5), 0 0 0 16px rgba(52,199,89,0); }
}
body.theme-green .v-ticket-fab:hover { box-shadow: 0 24px 50px -10px rgba(52,199,89,0.65); }
body.theme-green .v-ticket-header {
  background: linear-gradient(135deg, #0A2014 0%, #0F2D1A 100%);
}
body.theme-green .v-ticket-header::before {
  background: radial-gradient(circle at 80% -10%, rgba(52,199,89,0.6), transparent 50%),
              radial-gradient(circle at 20% 110%, rgba(157,227,139,0.4), transparent 50%);
}
body.theme-green .v-ticket-header-avatar { background: linear-gradient(135deg, #0A7C36, #34C759); }
body.theme-green .v-ticket-login-cta {
  background: linear-gradient(to right, rgba(52,199,89,0.06), rgba(157,227,139,0.06));
  color: #0A7C36;
  border-bottom-color: rgba(52,199,89,0.18);
}
body.theme-green .v-ticket-login-cta button { color: #0A7C36; }
body.theme-green .v-msg.you {
  background: linear-gradient(135deg, #0A7C36, #34C759);
  box-shadow: 0 6px 14px -4px rgba(52,199,89,0.35);
}
body.theme-green .v-ticket-quick button:hover { background: #34C759; border-color: #34C759; }
body.theme-green .v-ticket-input:focus { border-color: #34C759; }
body.theme-green .v-ticket-send:hover { background: #34C759; }

/* Header auth trigger */
body.theme-green .v-auth-trigger:hover { color: #1D1D1F; }


/* ============= Page enter ============= */
@keyframes vPageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
body.v-page-enter {
  animation: vPageEnter .65s cubic-bezier(.2,.6,.2,1) both;
}

/* ============= Curseur lumineux ============= */
.v-cursor-glow {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.14) 0%, rgba(191,90,242,0.06) 35%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  opacity: 0;
  mix-blend-mode: multiply;
  will-change: transform;
}
@media (max-width: 768px), (pointer: coarse) {
  .v-cursor-glow { display: none; }
}

/* ============= Header au scroll ============= */
#siteHeader > div { transition: box-shadow .35s ease, background-color .35s ease; will-change: box-shadow; }
#siteHeader > div > div { transition: padding .35s ease; }
body.v-scrolled #siteHeader > div {
  box-shadow: 0 10px 32px -12px rgba(0,0,0,0.14);
  background-color: rgba(255,255,255,0.92);
}
body.v-scrolled #siteHeader > div > div {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

/* ============= Éblouissement dynamique cartes ============= */
/* Utilise ::before pour ne pas entrer en conflit avec .glare::after déjà défini par les pages */
.v-spotlight { position: relative; }
.v-spotlight::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0,113,227,0.22),
    rgba(191,90,242,0.13) 35%,
    rgba(255,55,95,0.07) 55%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.v-spotlight:hover::before { opacity: 1; }
.v-spotlight.bg-ink::before,
.v-spotlight[class*="bg-ink"]::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0,113,227,0.55),
    rgba(191,90,242,0.32) 35%,
    rgba(255,55,95,0.16) 55%,
    transparent 70%
  );
}

/* ============= Modale auth ============= */
.v-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,15,20,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.v-modal-backdrop.open { display: flex; animation: vBackdropIn .35s ease both; }
@keyframes vBackdropIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes vModalIn { from { opacity: 0; transform: translateY(20px) scale(.96) } to { opacity: 1; transform: none } }

.v-modal {
  background: #fff;
  border-radius: 28px;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem 1.75rem;
  position: relative;
  animation: vModalIn .45s cubic-bezier(.2,.6,.2,1) both;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.35);
}
.v-modal::before {
  content: '';
  position: absolute; top: -120px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,113,227,0.20), transparent 70%);
  pointer-events: none;
}
.v-modal::after {
  content: '';
  position: absolute; bottom: -140px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,55,95,0.16), transparent 70%);
  pointer-events: none;
}
.v-modal > * { position: relative; }

.v-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: #86868B;
  background: transparent; border: none;
  transition: background .25s, color .25s, transform .35s;
  z-index: 2;
}
.v-modal-close:hover { background: #F5F5F7; color: #1D1D1F; transform: rotate(90deg); }

.v-modal-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #0071E3, #BF5AF2 50%, #FF375F);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(0,113,227,0.4);
}
.v-modal h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1D1D1F;
}
.v-modal .lead {
  text-align: center;
  color: #86868B;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.v-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #1D1D1F;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0.7rem;
  font-family: inherit;
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .25s, border-color .25s, background .25s;
}
.v-auth-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0,0,0,0.18); border-color: rgba(0,113,227,0.4); }
.v-auth-btn.email-cta { background: #1D1D1F; color: #fff; border-color: #1D1D1F; }
.v-auth-btn.email-cta:hover { background: #0071E3; border-color: #0071E3; }
.v-auth-btn.guest { background: transparent; color: #0071E3; border: none; font-weight: 500; }
.v-auth-btn.guest:hover { box-shadow: none; transform: none; text-decoration: underline; }

.v-auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: #86868B;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 1.1rem 0;
}
.v-auth-divider::before, .v-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08);
}
.v-auth-input {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  outline: none;
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.v-auth-input:focus { border-color: #0071E3; box-shadow: 0 0 0 3px rgba(0,113,227,0.12); transform: translateY(-1px); }
.v-auth-fineprint {
  text-align: center;
  font-size: 0.7rem;
  color: #86868B;
  margin-top: 0.85rem;
  line-height: 1.5;
}
.v-auth-fineprint a { color: #0071E3; text-decoration: underline; }

.v-auth-error {
  background: rgba(255,55,95,0.08);
  color: #B3001B;
  border: 1px solid rgba(255,55,95,0.18);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.3rem 0 0.7rem;
  text-align: left;
}

.v-code-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.55em;
  font-weight: 600;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  padding: 0.9rem 1rem;
  text-indent: 0.275em; /* compense le letter-spacing du dernier caractère */
}
.v-code-input::placeholder {
  letter-spacing: 0.45em;
  color: rgba(0,0,0,0.18);
  font-weight: 500;
}

.v-code-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0.4rem 0 0.2rem;
}
.v-link-btn {
  background: none;
  border: none;
  color: #0071E3;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
  font-family: inherit;
  transition: opacity .2s;
}
.v-link-btn:hover { text-decoration: underline; }
.v-link-btn:disabled { opacity: 0.5; cursor: default; text-decoration: none; }

body.theme-green .v-link-btn { color: #34C759; }
body[class*="theme-"]:not(.theme-green) .v-link-btn { color: var(--brand-1); }

/* Header user pill */
.v-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 13px;
  color: rgba(29,29,31,0.7);
  font-family: inherit;
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.v-auth-trigger:hover { color: #1D1D1F; background: rgba(0,0,0,0.04); }
.v-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: #F5F5F7;
  font-size: 12px;
  color: #1D1D1F;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .25s, transform .25s;
}
.v-user-pill:hover { background: #ECECEE; transform: translateY(-1px); }
.v-user-pill .v-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0071E3, #BF5AF2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* User dropdown */
.v-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 60px -20px rgba(0,0,0,0.22);
  padding: 8px;
  display: none;
  z-index: 50;
  animation: vMenuIn .25s cubic-bezier(.2,.6,.2,1) both;
  border: 1px solid rgba(0,0,0,0.05);
}
@keyframes vMenuIn { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.v-user-menu.open { display: block; }
.v-user-menu-head {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 4px;
}
.v-user-menu-head .name { font-size: 13px; font-weight: 600; color: #1D1D1F; }
.v-user-menu-head .email { font-size: 11px; color: #86868B; }
.v-user-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: none; border: none;
  font-size: 13px;
  color: #1D1D1F;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  font-family: inherit;
  transition: background .2s;
}
.v-user-menu-item:hover { background: #F5F5F7; }
.v-user-menu-item.logout { color: #FF375F; }

/* ============= Ticketing ============= */
.v-ticket-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071E3, #BF5AF2 60%, #FF375F);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 90;
  border: none;
  box-shadow: 0 18px 40px -10px rgba(0,113,227,0.5);
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s;
  animation: vFabPulse 3s ease-in-out infinite;
}
.v-ticket-fab:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 24px 50px -10px rgba(0,113,227,0.65); }
@keyframes vFabPulse {
  0%, 100% { box-shadow: 0 18px 40px -10px rgba(0,113,227,0.5), 0 0 0 0 rgba(0,113,227,0.4); }
  50%      { box-shadow: 0 18px 40px -10px rgba(0,113,227,0.5), 0 0 0 16px rgba(0,113,227,0); }
}
.v-ticket-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: #FF375F;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: none;
  place-items: center;
  border: 2px solid #fff;
}
.v-ticket-badge.show { display: grid; }

.v-ticket-panel {
  position: fixed;
  bottom: 6rem; right: 1.5rem;
  width: min(384px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 8rem));
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 89;
  border: 1px solid rgba(0,0,0,0.05);
  transform-origin: bottom right;
}
.v-ticket-panel.open {
  display: flex;
  animation: vPanelIn .42s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes vPanelIn {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.v-ticket-header {
  background: linear-gradient(135deg, #1D1D1F 0%, #2A2A2D 100%);
  color: #fff;
  padding: 1.05rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.v-ticket-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(0,113,227,0.6), transparent 50%),
              radial-gradient(circle at 20% 110%, rgba(191,90,242,0.4), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}
.v-ticket-header > * { position: relative; }
.v-ticket-header h4 { font-size: 0.95rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.v-ticket-header .v-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.v-ticket-header .v-status::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 3px rgba(52,199,89,0.25);
  animation: vDot 2.4s ease-in-out infinite;
}
@keyframes vDot { 0%,100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.25) } 50% { box-shadow: 0 0 0 8px rgba(52,199,89,0) } }
.v-ticket-header-info { flex: 1; min-width: 0; }
.v-ticket-header-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071E3, #BF5AF2);
  display: grid; place-items: center;
  font-size: 0.92rem; font-weight: 600;
  flex-shrink: 0;
}
.v-ticket-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
  flex-shrink: 0;
}
.v-ticket-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.v-ticket-login-cta {
  padding: 0.7rem 1rem;
  background: linear-gradient(to right, rgba(0,113,227,0.06), rgba(191,90,242,0.06));
  font-size: 0.78rem;
  color: #0071E3;
  border-bottom: 1px solid rgba(0,113,227,0.12);
  text-align: center;
  flex-shrink: 0;
}
.v-ticket-login-cta button {
  background: none; border: none; color: #0071E3;
  font-weight: 600; cursor: pointer; font-size: 0.78rem;
  text-decoration: underline;
  font-family: inherit;
}

.v-ticket-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(to bottom, #FBFBFD, #F5F5F7);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.v-msg {
  max-width: 82%;
  padding: 0.62rem 0.92rem;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: vMsgIn .35s cubic-bezier(.2,.6,.2,1) both;
  word-wrap: break-word;
}
@keyframes vMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.v-msg.them {
  background: #fff;
  color: #1D1D1F;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.06);
}
.v-msg.you {
  background: linear-gradient(135deg, #0071E3, #2876e8);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 14px -4px rgba(0,113,227,0.35);
}
.v-typing {
  display: flex; gap: 4px;
  padding: 0.7rem 1rem;
  background: #fff;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.06);
  animation: vMsgIn .25s ease both;
}
.v-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #86868B;
  animation: vTypingDot 1.2s infinite ease-in-out;
}
.v-typing span:nth-child(2) { animation-delay: .15s }
.v-typing span:nth-child(3) { animation-delay: .3s }
@keyframes vTypingDot {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.v-ticket-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 1.2rem 0.7rem;
  background: #F5F5F7;
  flex-shrink: 0;
}
.v-ticket-quick button {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.74rem;
  color: #1D1D1F;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.v-ticket-quick button:hover { background: #0071E3; color: #fff; border-color: #0071E3; transform: translateY(-1px); }

.v-ticket-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: #fff;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.v-ticket-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #F5F5F7;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
  transition: border-color .25s, background .25s;
}
.v-ticket-input:focus { border-color: #0071E3; background: #fff; }
.v-ticket-send {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #1D1D1F;
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
  flex-shrink: 0;
}
.v-ticket-send:hover { background: #0071E3; transform: translateY(-1px) scale(1.05); }
.v-ticket-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
  .v-ticket-fab { bottom: 1rem; right: 1rem; width: 54px; height: 54px; }
  .v-ticket-panel { bottom: 5.2rem; right: 1rem; left: 1rem; width: auto; height: min(540px, calc(100vh - 6.5rem)); }
}

/* =============================================================
   ✨ DESIGN LAB — Thèmes de couleurs étendus
   Couleurs définies en variables sur body, puis appliquées par
   des sélecteurs génériques qui surchargent les couleurs hardcodées.
   ============================================================= */

/* ----- VARIABLES PAR THÈME ----- */
body.theme-vinted {
  --brand-1: #09B1BA; --brand-2: #007782; --brand-3: #5BCEC4;
  --brand-mid: #09B1BA; --brand-glow-rgb: 9,177,186; --brand-tint-rgb: 91,206,196;
  --brand-1-rgb: 9,177,186; --brand-2-rgb: 0,119,130; --brand-3-rgb: 91,206,196;
}
body.theme-sunset {
  --brand-1: #F1641E; --brand-2: #FF8A4C; --brand-3: #FFB347;
  --brand-mid: #FF8A4C; --brand-glow-rgb: 241,100,30; --brand-tint-rgb: 255,138,76;
  --brand-1-rgb: 241,100,30; --brand-2-rgb: 255,138,76; --brand-3-rgb: 255,179,71;
}
body.theme-noir {
  --brand-1: #C9A86A; --brand-2: #E8D4A8; --brand-3: #8B6F3E;
  --brand-mid: #C9A86A; --brand-glow-rgb: 201,168,106; --brand-tint-rgb: 232,212,168;
  --brand-1-rgb: 201,168,106; --brand-2-rgb: 232,212,168; --brand-3-rgb: 139,111,62;
}
body.theme-crimson {
  --brand-1: #E11D48; --brand-2: #F43F5E; --brand-3: #FB7185;
  --brand-mid: #F43F5E; --brand-glow-rgb: 225,29,72; --brand-tint-rgb: 251,113,133;
  --brand-1-rgb: 225,29,72; --brand-2-rgb: 244,63,94; --brand-3-rgb: 251,113,133;
}
body.theme-ocean {
  --brand-1: #0A4A8B; --brand-2: #1E6BCB; --brand-3: #4FA9E0;
  --brand-mid: #1E6BCB; --brand-glow-rgb: 10,74,139; --brand-tint-rgb: 79,169,224;
  --brand-1-rgb: 10,74,139; --brand-2-rgb: 30,107,203; --brand-3-rgb: 79,169,224;
}
body.theme-rose {
  --brand-1: #E84393; --brand-2: #B983E6; --brand-3: #FCC2D7;
  --brand-mid: #B983E6; --brand-glow-rgb: 232,67,147; --brand-tint-rgb: 252,194,215;
  --brand-1-rgb: 232,67,147; --brand-2-rgb: 185,131,230; --brand-3-rgb: 252,194,215;
}
body.theme-mono {
  --brand-1: #1D1D1F; --brand-2: #4A4A4D; --brand-3: #86868B;
  --brand-mid: #4A4A4D; --brand-glow-rgb: 29,29,31; --brand-tint-rgb: 134,134,139;
  --brand-1-rgb: 29,29,31; --brand-2-rgb: 74,74,77; --brand-3-rgb: 134,134,139;
}
body.theme-y2k {
  --brand-1: #FF38B0; --brand-2: #6B5BFF; --brand-3: #20E3D5;
  --brand-mid: #6B5BFF; --brand-glow-rgb: 255,56,176; --brand-tint-rgb: 32,227,213;
  --brand-1-rgb: 255,56,176; --brand-2-rgb: 107,91,255; --brand-3-rgb: 32,227,213;
}

/* ----- OVERRIDES GÉNÉRIQUES (appliqués à tout thème non-aurora) ----- */
body[class*="theme-"]:not(.theme-green) .grad-text,
body[class*="theme-"]:not(.theme-green) .grad-text-anim {
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
body[class*="theme-"]:not(.theme-green) .text-accent { color: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) .bg-accent { background-color: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) .border-accent { border-color: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) .ring-accent { --tw-ring-color: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) .from-accent\/10 { --tw-gradient-from: rgba(var(--brand-1-rgb),0.10) !important; }
body[class*="theme-"]:not(.theme-green) .via-accent\/10 { --tw-gradient-via: rgba(var(--brand-1-rgb),0.10) !important; }
body[class*="theme-"]:not(.theme-green) .to-accent\/10 { --tw-gradient-to: rgba(var(--brand-1-rgb),0.10) !important; }
body[class*="theme-"]:not(.theme-green) .bg-accent\/10 { background-color: rgba(var(--brand-1-rgb),0.10) !important; }
body[class*="theme-"]:not(.theme-green) .bg-accent\/30 { background-color: rgba(var(--brand-1-rgb),0.30) !important; }
body[class*="theme-"]:not(.theme-green) .bg-accent\/40 { background-color: rgba(var(--brand-1-rgb),0.40) !important; }
body[class*="theme-"]:not(.theme-green) .bg-accent\/60 { background-color: rgba(var(--brand-1-rgb),0.60) !important; }
body[class*="theme-"]:not(.theme-green) a.pill-link,
body[class*="theme-"]:not(.theme-green) .pill-link { color: var(--brand-1) !important; }

/* Pink/purple → brand-2/3 nuances */
body[class*="theme-"]:not(.theme-green) .bg-pink-400\/25,
body[class*="theme-"]:not(.theme-green) .bg-pink-400\/10,
body[class*="theme-"]:not(.theme-green) .bg-pink-500\/30,
body[class*="theme-"]:not(.theme-green) .bg-pink-500\/15,
body[class*="theme-"]:not(.theme-green) .bg-pink-500\/10,
body[class*="theme-"]:not(.theme-green) .bg-pink-500\/60 { background-color: rgba(var(--brand-3-rgb),0.30) !important; }
body[class*="theme-"]:not(.theme-green) .bg-purple-400\/20,
body[class*="theme-"]:not(.theme-green) .bg-purple-500\/15,
body[class*="theme-"]:not(.theme-green) .bg-purple-500\/10,
body[class*="theme-"]:not(.theme-green) .bg-purple-500\/60 { background-color: rgba(var(--brand-2-rgb),0.20) !important; }
body[class*="theme-"]:not(.theme-green) .text-purple-500 { color: var(--brand-2) !important; }
body[class*="theme-"]:not(.theme-green) .text-pink-500 { color: var(--brand-3) !important; }

/* Hero mesh gradients */
body[class*="theme-"]:not(.theme-green) .hero-mesh {
  background:
    radial-gradient(at 20% 20%, rgba(var(--brand-1-rgb),0.18) 0px, transparent 50%),
    radial-gradient(at 80% 30%, rgba(var(--brand-2-rgb),0.18) 0px, transparent 50%),
    radial-gradient(at 60% 90%, rgba(var(--brand-3-rgb),0.14) 0px, transparent 50%),
    radial-gradient(at 30% 70%, rgba(var(--brand-1-rgb),0.10) 0px, transparent 50%) !important;
}

/* Bouton primaire */
body[class*="theme-"]:not(.theme-green) .btn-primary::before {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3)) !important;
}
body[class*="theme-"]:not(.theme-green) .btn-primary:hover {
  box-shadow: 0 18px 36px -10px rgba(var(--brand-1-rgb),0.45) !important;
}

/* SVG colors hardcodées */
body[class*="theme-"]:not(.theme-green) svg [fill="#0071E3"]   { fill: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) svg [fill="#BF5AF2"]   { fill: var(--brand-2) !important; }
body[class*="theme-"]:not(.theme-green) svg [fill="#FF375F"]   { fill: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg [fill="#34C759"]   { fill: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg[fill="#0071E3"]    { fill: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) svg[fill="#BF5AF2"]    { fill: var(--brand-2) !important; }
body[class*="theme-"]:not(.theme-green) svg[fill="#FF375F"]    { fill: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg[fill="#34C759"]    { fill: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg [stroke="#0071E3"] { stroke: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) svg [stroke="#BF5AF2"] { stroke: var(--brand-2) !important; }
body[class*="theme-"]:not(.theme-green) svg [stroke="#FF375F"] { stroke: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg [stroke="#34C759"] { stroke: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg[stroke="#0071E3"]  { stroke: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) svg[stroke="#BF5AF2"]  { stroke: var(--brand-2) !important; }
body[class*="theme-"]:not(.theme-green) svg[stroke="#FF375F"]  { stroke: var(--brand-3) !important; }
/* CRUCIAL : les <linearGradient> des anneaux orbitaux du hero utilisent
   stop-color, qu'il faut aussi rebrand. */
body[class*="theme-"]:not(.theme-green) svg stop[stop-color="#0071E3"] { stop-color: var(--brand-1) !important; }
body[class*="theme-"]:not(.theme-green) svg stop[stop-color="#BF5AF2"] { stop-color: var(--brand-2) !important; }
body[class*="theme-"]:not(.theme-green) svg stop[stop-color="#FF375F"] { stop-color: var(--brand-3) !important; }
body[class*="theme-"]:not(.theme-green) svg stop[stop-color="#34C759"] { stop-color: var(--brand-3) !important; }
/* Pour le thème vert aussi (qui n'avait pas ces overrides) */
body.theme-green svg stop[stop-color="#0071E3"] { stop-color: #0A7C36 !important; }
body.theme-green svg stop[stop-color="#BF5AF2"] { stop-color: #34C759 !important; }
body.theme-green svg stop[stop-color="#FF375F"] { stop-color: #9DE38B !important; }
body.theme-green svg stop[stop-color="#34C759"] { stop-color: #9DE38B !important; }

/* Sélection */
body[class*="theme-"]:not(.theme-green) ::selection { background: var(--brand-1) !important; color: #fff !important; }

/* Cursor glow */
body[class*="theme-"]:not(.theme-green) .v-cursor-glow {
  background: radial-gradient(circle, rgba(var(--brand-1-rgb),0.16) 0%, rgba(var(--brand-2-rgb),0.06) 35%, transparent 65%);
}

/* Pulse ring */
body[class*="theme-"]:not(.theme-green) .pulse-ring { animation: pulseRingDyn 3.6s ease-in-out infinite; }
@keyframes pulseRingDyn {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  50%     { box-shadow: 0 0 0 14px rgba(0,0,0,0); }
}

/* Spotlight */
body[class*="theme-"]:not(.theme-green) .v-spotlight::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--brand-1-rgb),0.22),
    rgba(var(--brand-2-rgb),0.13) 35%,
    rgba(var(--brand-3-rgb),0.07) 55%,
    transparent 70%
  );
}
body[class*="theme-"]:not(.theme-green) .v-spotlight.bg-ink::before,
body[class*="theme-"]:not(.theme-green) .v-spotlight[class*="bg-ink"]::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--brand-1-rgb),0.55),
    rgba(var(--brand-2-rgb),0.32) 35%,
    rgba(var(--brand-3-rgb),0.16) 55%,
    transparent 70%
  );
}

/* Inputs */
body[class*="theme-"]:not(.theme-green) .input-row:focus-within {
  border-color: var(--brand-1) !important;
  box-shadow: 0 12px 24px -10px rgba(var(--brand-1-rgb),0.25) !important;
}

/* Modale auth */
body[class*="theme-"]:not(.theme-green) .v-modal::before {
  background: radial-gradient(circle, rgba(var(--brand-1-rgb),0.20), transparent 70%);
}
body[class*="theme-"]:not(.theme-green) .v-modal::after {
  background: radial-gradient(circle, rgba(var(--brand-3-rgb),0.20), transparent 70%);
}
body[class*="theme-"]:not(.theme-green) .v-modal-icon {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));
  box-shadow: 0 14px 30px -8px rgba(var(--brand-1-rgb),0.4);
}
body[class*="theme-"]:not(.theme-green) .v-auth-btn:hover { border-color: rgba(var(--brand-1-rgb),0.4); }
body[class*="theme-"]:not(.theme-green) .v-auth-btn.email-cta:hover { background: var(--brand-1); border-color: var(--brand-1); }
body[class*="theme-"]:not(.theme-green) .v-auth-btn.guest { color: var(--brand-1); }
body[class*="theme-"]:not(.theme-green) .v-auth-input:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(var(--brand-1-rgb),0.12); }
body[class*="theme-"]:not(.theme-green) .v-auth-fineprint a { color: var(--brand-1); }

/* User pill */
body[class*="theme-"]:not(.theme-green) .v-user-pill .v-avatar { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }

/* Ticket fab */
body[class*="theme-"]:not(.theme-green) .v-ticket-fab {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 60%, var(--brand-3));
  box-shadow: 0 18px 40px -10px rgba(var(--brand-1-rgb),0.5);
  animation: vFabPulseDyn 3s ease-in-out infinite;
}
@keyframes vFabPulseDyn { 0%,100% { box-shadow: 0 18px 40px -10px rgba(0,0,0,0); } 50% { box-shadow: 0 18px 40px -10px rgba(0,0,0,0); } }
body[class*="theme-"]:not(.theme-green) .v-ticket-fab:hover { box-shadow: 0 24px 50px -10px rgba(var(--brand-1-rgb),0.65); }
body[class*="theme-"]:not(.theme-green) .v-ticket-header {
  background: linear-gradient(135deg, #1A1A1F 0%, #2A2A2D 100%);
}
body[class*="theme-"]:not(.theme-green) .v-ticket-header::before {
  background: radial-gradient(circle at 80% -10%, rgba(var(--brand-1-rgb),0.6), transparent 50%),
              radial-gradient(circle at 20% 110%, rgba(var(--brand-2-rgb),0.4), transparent 50%);
}
body[class*="theme-"]:not(.theme-green) .v-ticket-header-avatar { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
body[class*="theme-"]:not(.theme-green) .v-ticket-login-cta {
  background: linear-gradient(to right, rgba(var(--brand-1-rgb),0.06), rgba(var(--brand-2-rgb),0.06));
  color: var(--brand-1);
  border-bottom-color: rgba(var(--brand-1-rgb),0.18);
}
body[class*="theme-"]:not(.theme-green) .v-ticket-login-cta button { color: var(--brand-1); }
body[class*="theme-"]:not(.theme-green) .v-msg.you {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 6px 14px -4px rgba(var(--brand-1-rgb),0.35);
}
body[class*="theme-"]:not(.theme-green) .v-ticket-quick button:hover { background: var(--brand-1); border-color: var(--brand-1); }
body[class*="theme-"]:not(.theme-green) .v-ticket-input:focus { border-color: var(--brand-1); }
body[class*="theme-"]:not(.theme-green) .v-ticket-send:hover { background: var(--brand-1); }

/* =============================================================
   ✨ HERO WORDMARK — le grand « Vindale » sur la home, qui prend
   exactement le même design que le wordmark choisi (en grand).
   Le JS injecte le SVG dans .v-hero-wordmark.
   ============================================================= */
.v-hero-wordmark {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.v-hero-wordmark svg {
  height: clamp(64px, 12vw, 132px);
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.06));
  animation: vHeroLogoIn .8s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes vHeroLogoIn {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   ✨ LOGO header/footer — le SVG dans .v-logo-mark contient TOUT
   le wordmark (icône + mot "Vindale" + déco). On masque le span
   "Vindale" hérité (puisque le wordmark est dans le SVG).
   ============================================================= */
.v-logo-mark {
  width: auto !important;
  display: inline-block;
  transition: transform .4s cubic-bezier(.2,.6,.2,1);
  flex-shrink: 0;
}
header .v-logo-mark { height: 24px; }
footer .v-logo-mark { height: 22px; }
.v-logo-mark + span { display: none !important; }

/* Quand on change de wordmark, mini shimmer */
.v-logo-mark.v-logo-flash { animation: vLogoFlash .7s ease; }
@keyframes vLogoFlash {
  0% { transform: scale(.92) rotate(-6deg); opacity: 0.4; }
  60% { transform: scale(1.06) rotate(3deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* Animations subtiles selon data-anim */
.v-logo-mark[data-anim="float"] svg { animation: vMarkFloat 4s ease-in-out infinite; transform-origin: center; }
@keyframes vMarkFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.v-logo-mark[data-anim="pulse"] svg { animation: vMarkPulse 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes vMarkPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* =============================================================
   ✨ DESIGN LAB — Panel UI flottant (gauche bas)
   ============================================================= */
.v-design-fab {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  color: #1D1D1F;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 88;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.18);
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s, background .25s;
}
.v-design-fab:hover { transform: scale(1.06) rotate(12deg); box-shadow: 0 22px 42px -12px rgba(0,0,0,0.22); }
.v-design-fab svg { transition: transform .4s cubic-bezier(.2,.6,.2,1); }
.v-design-fab:hover svg { transform: rotate(45deg); }

.v-design-panel {
  position: fixed;
  bottom: 5.5rem; left: 1.5rem;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 7rem));
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 87;
  transform-origin: bottom left;
}
.v-design-panel.open { display: flex; animation: vDesignIn .42s cubic-bezier(.2,.6,.2,1) both; }
@keyframes vDesignIn {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.v-design-head {
  padding: 1rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 0.7rem;
  flex-shrink: 0;
}
.v-design-head h4 { font-size: 0.95rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; flex: 1; }
.v-design-head .v-design-sub { font-size: 0.72rem; color: #86868B; margin-top: 1px; }
.v-design-head-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-1, #0071E3), var(--brand-2, #BF5AF2), var(--brand-3, #FF375F));
  display: grid; place-items: center;
  color: #fff;
}
.v-design-close {
  background: none; border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: #86868B;
  transition: background .25s, color .25s, transform .35s;
}
.v-design-close:hover { background: #F5F5F7; color: #1D1D1F; transform: rotate(90deg); }

.v-design-body { overflow-y: auto; padding: 0.5rem 0.5rem 1rem; flex: 1; }

.v-design-section {
  padding: 0.7rem 0.7rem 0.4rem;
}
.v-design-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #86868B;
  font-weight: 600;
  padding: 0 0.3rem 0.55rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.v-design-section-title svg { width: 13px; height: 13px; }

/* Theme swatches grid */
.v-design-themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v-design-theme {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #F5F5F7;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  padding: 0;
}
.v-design-theme:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.15); }
.v-design-theme.active { border-color: #1D1D1F; }
.v-design-theme.active::after {
  content: '✓'; position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: #1D1D1F;
  color: #fff;
  font-size: 11px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
}
.v-design-theme .swatch-grad {
  position: absolute; inset: 0;
}
.v-design-theme .swatch-name {
  position: absolute;
  bottom: 4px; left: 4px; right: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

/* Wordmarks dans le panneau — chaque carte montre le wordmark complet (large) */
.v-design-logos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.v-design-logo {
  position: relative;
  background: #F5F5F7;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .25s;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.v-design-logo:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.18); }
.v-design-logo:active { transform: translateY(0) scale(.99); }
.v-design-logo.active {
  border-color: #1D1D1F;
  background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.18);
}
.v-design-logo.active::after {
  content: '✓';
  position: absolute;
  top: 6px; right: 8px;
  width: 18px; height: 18px;
  background: #1D1D1F;
  color: #fff;
  font-size: 11px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  z-index: 2;
}
.v-design-logo-preview {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.v-design-logo-preview svg {
  height: 100%;
  width: auto;
  max-width: 100%;
}
.v-design-logo-name {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #86868B;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
}
.v-design-logo-theme-dot {
  position: absolute;
  top: 6px; left: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

/* Reset btn */
.v-design-reset {
  width: calc(100% - 1.4rem);
  margin: 0.4rem 0.7rem 0.2rem;
  padding: 0.55rem;
  background: #F5F5F7;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.78rem;
  color: #86868B;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.v-design-reset:hover { background: #ECECEE; color: #1D1D1F; }

/* Hide old simple toggle */
.v-theme-toggle { display: none !important; }

@media (max-width: 480px) {
  .v-design-fab { bottom: 1rem; left: 1rem; width: 48px; height: 48px; }
  .v-design-panel { bottom: 4.8rem; left: 1rem; right: 1rem; width: auto; }
}

/* =============================================================
   ✨ MODALE COMPLÉTION DE PROFIL (post-Google)
   ============================================================= */
.v-profile-modal {
  max-width: 480px;
  padding-top: 1.75rem;
}
.v-profile-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071E3, #BF5AF2 50%, #FF375F);
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 30px -8px rgba(0,113,227,0.4);
  overflow: hidden;
  position: relative;
}
.v-profile-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid #fff;
  pointer-events: none;
}
.v-profile-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.v-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.v-profile-field { display: flex; flex-direction: column; gap: 4px; }
.v-profile-field-full { grid-column: 1 / -1; }
.v-profile-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #86868B;
  font-weight: 600;
  padding-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v-profile-opt {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(134,134,139,0.7);
  font-size: 0.68rem;
}
.v-profile-field .v-auth-input { margin-bottom: 0; }
.v-profile-field .v-auth-input[readonly] {
  background: #F5F5F7;
  color: #86868B;
  cursor: not-allowed;
}

/* Theme overrides for profile avatar */
body.theme-green .v-profile-avatar {
  background: linear-gradient(135deg, #0A7C36, #34C759 50%, #9DE38B);
  box-shadow: 0 14px 30px -8px rgba(52,199,89,0.4);
}
body[class*="theme-"]:not(.theme-green) .v-profile-avatar {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));
  box-shadow: 0 14px 30px -8px rgba(var(--brand-1-rgb), 0.4);
}

@media (max-width: 480px) {
  .v-profile-fields { grid-template-columns: 1fr; }
}
