/* ==========================================================================
   Voxeel Admin Console — Dark Metallic Override Layer
   Loaded AFTER the bundled Tailwind build; wins via specificity + !important
   where required. Do not edit the minified bundle.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-base: #070405;
  --bg-raised: #0e080a;
  --bg-card: #140b0d;
  --bg-elevated: #180c0e;
  --text: #ede4ce;
  --text-muted: rgba(237, 228, 206, 0.58);
  --text-dim: rgba(237, 228, 206, 0.42);
  --gold: #c89015;
  --gold-deep: #6a4a10;
  --gold-light: #e9c571;
  --metallic: linear-gradient(135deg, #7a5814 0%, #c89015 40%, #e9c571 55%, #c89015 70%, #7a5814 100%);
  --metallic-soft: linear-gradient(135deg, rgba(122, 88, 20, 0.9) 0%, rgba(200, 144, 21, 0.9) 50%, rgba(122, 88, 20, 0.9) 100%);
  --border-rest: rgba(200, 144, 21, 0.12);
  --border-hover: rgba(200, 144, 21, 0.35);
  --border-strong: rgba(200, 144, 21, 0.55);
  --wine: #6b1f2a;
  --wine-soft: rgba(107, 31, 42, 0.18);
  --copper: #a05a2c;
  --serif: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --sans: "Inter", "Sora", ui-sans-serif, system-ui, sans-serif;

  color-scheme: dark;
}

/* Base canvas ------------------------------------------------------------- */
html,
body,
#root {
  background-color: var(--bg-base) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(200, 144, 21, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(200, 144, 21, 0.045), transparent 60%),
    linear-gradient(180deg, #000 0%, #050505 100%) !important;
}

/* Selection + focus ------------------------------------------------------- */
::selection {
  background: rgba(200, 144, 21, 0.3);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* Scrollbars -------------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) var(--bg-raised);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-raised);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7a5814, #c89015);
  border-radius: 8px;
  border: 2px solid var(--bg-raised);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c89015, #e9c571);
}

/* ==========================================================================
   Tailwind surface overrides
   The bundle uses bg-white heavily for cards and bg-ink (#1b1f2a) for
   dark/primary buttons. We re-skin both to dark + gold.
   ========================================================================== */

.bg-white,
.bg-gray-50,
.bg-gray-100,
.bg-slate-50,
.bg-neutral-50,
.bg-neutral-100 {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
}

.bg-white\/50,
.bg-white\/60,
.bg-white\/70,
.bg-white\/80,
.bg-white\/90 {
  background-color: rgba(13, 13, 13, 0.72) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text) !important;
}

.bg-white\/20,
.bg-white\/30 {
  background-color: rgba(200, 144, 21, 0.12) !important;
  color: var(--text) !important;
}

/* Dark surfaces already dark in intent — re-tone to match our base */
.bg-gray-900,
.bg-slate-900,
.bg-neutral-900,
.bg-black,
.bg-ink {
  background-color: var(--bg-raised) !important;
  color: var(--text) !important;
}

/* Pastel status tint chips -> darker translucent over tinted borders */
.bg-emerald-50 { background-color: rgba(16, 185, 129, 0.08) !important; }
.bg-blue-50    { background-color: rgba(59, 130, 246, 0.08) !important; }
.bg-cyan-50    { background-color: rgba(6, 182, 212, 0.08) !important; }
.bg-amber-100  { background-color: rgba(200, 144, 21, 0.12) !important; }
.bg-red-50     { background-color: rgba(239, 68, 68, 0.08) !important; }
.bg-rose-100   { background-color: rgba(244, 63, 94, 0.1) !important; }
.bg-emerald-100{ background-color: rgba(16, 185, 129, 0.12) !important; }
.bg-blue-100   { background-color: rgba(59, 130, 246, 0.12) !important; }
.bg-green-100  { background-color: rgba(34, 197, 94, 0.12) !important; }
.bg-red-100    { background-color: rgba(239, 68, 68, 0.12) !important; }
.bg-gray-200   { background-color: rgba(237, 228, 206, 0.08) !important; }

/* Typography -------------------------------------------------------------- */
.text-black,
.text-gray-900,
.text-slate-900,
.text-neutral-900,
.text-ink,
.text-ink\/70 {
  color: var(--text) !important;
}

.text-white {
  color: var(--text) !important;
}

.text-gray-400,
.text-gray-500,
.text-gray-600,
.text-gray-700,
.text-slate-500,
.text-slate-600,
.text-muted {
  color: var(--text-muted) !important;
}

/* Status text nudged to readable on dark */
.text-emerald-600, .text-emerald-700 { color: #34d399 !important; }
.text-blue-500, .text-blue-600, .text-blue-700 { color: #93c5fd !important; }
.text-cyan-700 { color: #67e8f9 !important; }
.text-amber-700 { color: var(--gold-light) !important; }
.text-red-500, .text-red-600, .text-red-700 { color: #fca5a5 !important; }
.text-rose-600, .text-rose-700 { color: #fda4af !important; }
.text-green-700 { color: #86efac !important; }
.text-accent { color: var(--gold) !important; }

/* Borders ----------------------------------------------------------------- */
.border,
.border-t,
.border-b,
.border-l,
.border-r,
.border-b-2 {
  border-color: var(--border-rest) !important;
}

.border-gray-200,
.border-gray-300,
.border-slate-200,
.border-neutral-200,
.border-black,
.border-black\/10,
.border-black\/20,
.border-ink,
.border-ink\/10 {
  border-color: var(--border-rest) !important;
}

.border-blue-200, .border-blue-500 { border-color: rgba(59, 130, 246, 0.35) !important; }
.border-emerald-200 { border-color: rgba(16, 185, 129, 0.35) !important; }
.border-cyan-200    { border-color: rgba(6, 182, 212, 0.35) !important; }
.border-red-200     { border-color: rgba(239, 68, 68, 0.35) !important; }
.border-accent,
.border-accent\/20  { border-color: var(--border-hover) !important; }

/* Headings: metallic gradient text ---------------------------------------- */
h1, h2 {
  font-family: var(--serif) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--metallic);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

h3, h4 {
  font-family: var(--serif) !important;
  color: var(--text) !important;
  font-weight: 600;
}

h5, h6 {
  color: var(--text) !important;
  letter-spacing: 0.02em;
}

/* Links ------------------------------------------------------------------- */
a {
  color: var(--text);
  transition: color 160ms ease;
}
a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Buttons — primary CTAs get metallic gradient
   ========================================================================== */

.bg-blue-500,
.bg-blue-600,
.bg-indigo-500,
.bg-indigo-600,
.bg-primary,
button.bg-ink,
.rounded-2xl.bg-ink,
.rounded-xl.bg-ink,
a.bg-ink {
  background: var(--metallic) !important;
  background-size: 200% 200% !important;
  color: #0b0a05 !important;
  border: 1px solid var(--border-strong) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-position 400ms ease, box-shadow 200ms ease, transform 120ms ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(200, 144, 21, 0.15),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

.bg-blue-500:hover,
.bg-blue-600:hover,
.bg-indigo-500:hover,
.bg-indigo-600:hover,
.bg-primary:hover,
button.bg-ink:hover,
.rounded-2xl.bg-ink:hover,
.rounded-xl.bg-ink:hover,
a.bg-ink:hover {
  background-position: 100% 0 !important;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(244, 211, 94, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.65);
}

.bg-blue-500:active,
.bg-blue-600:active,
button.bg-ink:active,
.rounded-2xl.bg-ink:active { transform: translateY(0); }

/* Accent teal buttons -> brushed gold */
.bg-accent {
  background: var(--metallic-soft) !important;
  color: #0b0a05 !important;
  border: 1px solid var(--border-strong) !important;
}
.bg-accent\/10 { background-color: rgba(200, 144, 21, 0.08) !important; color: var(--text) !important; }
.bg-accent\/20 { background-color: rgba(200, 144, 21, 0.15) !important; color: var(--text) !important; }
.bg-accent2\/20 { background-color: rgba(200, 144, 21, 0.1) !important; color: var(--text) !important; }

/* Gradient backgrounds inside avatars/badges */
.bg-gradient-to-br.from-accent,
.bg-gradient-to-r.from-accent {
  background: var(--metallic) !important;
  color: #0b0a05 !important;
}

/* ==========================================================================
   Form fields
   ========================================================================== */

input,
textarea,
select {
  background-color: var(--bg-raised) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-rest) !important;
  caret-color: var(--gold) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-hover) !important;
}

input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(200, 144, 21, 0.2) !important;
  background-color: #0a0a0a !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim) !important;
  opacity: 1;
}

/* Tailwind placeholder utility */
.placeholder\:text-muted::placeholder { color: var(--text-dim) !important; }

/* Checkbox/radio accents */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--gold);
}

/* Buttons (generic) default background follow metallic only when explicit */
button:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   Cards, panels, shadows
   ========================================================================== */

.shadow-sm,
.shadow,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl,
.shadow-lift {
  box-shadow:
    0 1px 0 rgba(200, 144, 21, 0.06) inset,
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

/* Card-like combos: dark card + gold border */
.rounded-2xl.bg-white,
.rounded-3xl.bg-white,
.rounded-xl.bg-white,
.rounded-lg.bg-white,
.rounded-2xl.bg-white\/70,
.rounded-2xl.bg-white\/80,
.rounded-3xl.bg-white\/70,
.rounded-3xl.bg-white\/80 {
  background-color: var(--bg-card) !important;
  border-color: var(--border-rest) !important;
  color: var(--text) !important;
}

/* Hover lift on cards that already transition */
.group.rounded-2xl:hover,
.rounded-2xl.bg-white:hover {
  border-color: var(--border-hover) !important;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  color: var(--text);
  border-color: var(--border-rest) !important;
}
thead {
  background-color: var(--bg-raised) !important;
}
th {
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-bottom: 1px solid var(--border-hover) !important;
}
td {
  border-bottom: 1px solid var(--border-rest) !important;
}
tbody tr:hover {
  background-color: rgba(200, 144, 21, 0.04) !important;
}

/* ==========================================================================
   Modals, dialogs, drawers
   Detect common patterns: role=dialog, .modal, fixed inset-0 panels
   ========================================================================== */

[role="dialog"],
[role="alertdialog"],
.modal,
dialog {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-hover) !important;
  box-shadow:
    0 0 0 1px rgba(200, 144, 21, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.8) !important;
}

/* Full-screen backdrops frequently use fixed inset-0 bg-black/bg-white overlays */
.fixed.inset-0.bg-black,
.fixed.inset-0.bg-black\/40,
.fixed.inset-0.bg-black\/50,
.fixed.inset-0.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.72) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Misc polish
   ========================================================================== */

hr {
  border-color: var(--border-rest) !important;
}

code, kbd, pre, samp {
  background-color: rgba(200, 144, 21, 0.06);
  color: var(--gold-light);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
pre {
  padding: 1rem;
  border: 1px solid var(--border-rest);
  overflow-x: auto;
}

/* Uppercase labels - tighten with gold tint */
.uppercase.tracking-\[0\.14em\] {
  color: var(--gold) !important;
  opacity: 0.75;
}

/* Soft backdrop blobs in auth screens: re-tint from teal/orange to gold */
.bg-accent\/20.blur-3xl,
.bg-accent2\/20.blur-3xl {
  background-color: rgba(200, 144, 21, 0.18) !important;
}

/* Disabled states */
button:disabled,
[aria-disabled="true"],
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* =====================================================================
   Grand Cru button overhaul — solid, readable, no animation dimming
   ===================================================================== */

/* Any primary/accent button (Tailwind + shadcn + custom) -> solid gold */
button.bg-primary,
button.bg-indigo-500, button.bg-indigo-600, button.bg-indigo-700,
button.bg-blue-500, button.bg-blue-600, button.bg-blue-700,
button.bg-violet-500, button.bg-violet-600, button.bg-violet-700,
button.bg-black, button.bg-gray-900, button.bg-ink,
.btn-primary, .btn-primary button,
[data-variant="primary"], [data-variant="default"] {
  background: #c89015 !important;
  color: #0a0405 !important;
  border: 1px solid #d6a336 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(200, 144, 21, 0.28), inset 0 1px 0 rgba(255, 240, 210, 0.28), inset 0 -2px 0 rgba(90, 65, 16, 0.35) !important;
  animation: none !important;
  position: relative;
  overflow: hidden;
  text-shadow: none !important;
}
button.bg-primary:hover,
button.bg-indigo-600:hover, button.bg-blue-600:hover, button.bg-blue-700:hover,
button.bg-violet-600:hover,
button.bg-black:hover, button.bg-gray-900:hover, button.bg-ink:hover,
.btn-primary:hover {
  background: #d6a336 !important;
  color: #0a0405 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(200, 144, 21, 0.42), inset 0 1px 0 rgba(255, 240, 210, 0.42), inset 0 -2px 0 rgba(90, 65, 16, 0.35) !important;
}

/* Secondary / outline buttons -> gold outline */
button.bg-white, button.bg-transparent,
.btn-secondary, .btn-outline, [data-variant="outline"] {
  background: transparent !important;
  color: #e9c571 !important;
  border: 1px solid rgba(200, 144, 21, 0.55) !important;
  font-weight: 600 !important;
}
button.bg-white:hover, .btn-secondary:hover, .btn-outline:hover {
  background: rgba(200, 144, 21, 0.1) !important;
  color: #ede4ce !important;
  border-color: #c89015 !important;
}

/* Destructive / danger buttons -> wine burgundy */
button.bg-red-500, button.bg-red-600, button.bg-rose-500, button.bg-rose-600,
[data-variant="destructive"] {
  background: #6b1f2a !important;
  color: #ede4ce !important;
  border: 1px solid #8a2c38 !important;
}
button.bg-red-600:hover, [data-variant="destructive"]:hover {
  background: #8a2c38 !important;
}

/* Text color fixes for buttons that had white text on newly-dark bg */
button.text-white:not(.bg-red-600):not(.bg-red-500) { color: #ede4ce !important; }

/* =======================================================================
   GRAND CRU — additional dashboard overrides for app.voxeel.ai SPA
   Covers Tailwind + shadcn patterns once user is authenticated
   ======================================================================= */

/* Sidebar-like navigation (common Tailwind pattern) */
aside, nav[class*="sidebar"], div[class*="sidebar"] {
    background: #0a0607 !important;
    border-color: rgba(200, 144, 21, 0.12) !important;
}

/* Top navigation bar */
header, nav[class*="topbar"], div[class*="topbar"], div[class*="app-bar"] {
    background: rgba(10, 6, 7, 0.92) !important;
    border-bottom: 1px solid rgba(200, 144, 21, 0.14) !important;
}

/* Typography inside dashboard */
h1, h2, h3, h4 { font-family: "Cormorant Garamond", Georgia, serif !important; font-weight: 500 !important; color: #ede4ce !important; letter-spacing: -0.01em !important; }

/* Tailwind bg-gray-* and bg-slate-* normalization */
[class*="bg-gray-50"], [class*="bg-gray-100"], [class*="bg-slate-50"], [class*="bg-slate-100"],
[class*="bg-neutral-50"], [class*="bg-neutral-100"], [class*="bg-zinc-50"], [class*="bg-zinc-100"],
[class*="bg-stone-50"], [class*="bg-stone-100"], .bg-white\/5, .bg-white\/10, .bg-white\/20 {
    background-color: #140b0d !important;
    color: #ede4ce !important;
}
[class*="bg-gray-200"], [class*="bg-slate-200"] { background-color: #180c0e !important; }
[class*="bg-gray-800"], [class*="bg-slate-800"], [class*="bg-neutral-800"], [class*="bg-zinc-800"] { background-color: #140b0d !important; }
[class*="bg-gray-900"], [class*="bg-slate-900"], [class*="bg-neutral-900"], [class*="bg-zinc-900"] { background-color: #0a0607 !important; }

/* Text colors remap */
[class*="text-gray-900"], [class*="text-slate-900"], [class*="text-black"], [class*="text-neutral-900"] { color: #ede4ce !important; }
[class*="text-gray-500"], [class*="text-gray-600"], [class*="text-slate-500"], [class*="text-slate-600"] { color: rgba(237, 228, 206, 0.6) !important; }
[class*="text-blue-"], [class*="text-indigo-"], [class*="text-violet-"] { color: #e9c571 !important; }

/* Borders */
[class*="border-gray-"], [class*="border-slate-"], [class*="border-neutral-"] {
    border-color: rgba(200, 144, 21, 0.14) !important;
}

/* Stats + metric displays */
[class*="text-3xl"][class*="font-bold"], [class*="text-4xl"][class*="font-bold"],
[class*="text-5xl"][class*="font-bold"] {
    background: linear-gradient(135deg, #7a5814 0%, #c89015 40%, #e9c571 55%, #c89015 70%, #7a5814 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Pills / chips */
[class*="rounded-full"][class*="bg-"] {
    border: 1px solid rgba(200, 144, 21, 0.2) !important;
}

/* Inputs / textareas */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], textarea, select {
    background: #0e080a !important;
    color: #ede4ce !important;
    border: 1px solid rgba(200, 144, 21, 0.22) !important;
}
input:focus, textarea:focus, select:focus {
    border-color: #c89015 !important;
    box-shadow: 0 0 0 3px rgba(200, 144, 21, 0.16) !important;
}

/* Dialog / modal / drawer */
[role="dialog"] > div, [class*="Dialog"], [class*="Drawer"], [class*="Modal"] {
    background: #140b0d !important;
    border: 1px solid rgba(200, 144, 21, 0.22) !important;
}

/* App.voxeel.ai: any remaining teal/orange from bundled Tailwind tokens */
[class*="bg-teal"], [class*="bg-cyan"], [class*="bg-orange"] {
    background: #c89015 !important;
    color: #0a0405 !important;
}
[class*="text-teal"], [class*="text-cyan"], [class*="text-orange"] {
    color: #c89015 !important;
}

/* ============================================================
   URGENT FIXES — tout élément encore lumineux sur voxeel.ai
   ============================================================ */

/* Guide page — blocs .feature-box en blanc pur + .step-note bleu pâle */
.feature-box, .features-grid .feature-box,
.step-note, .note-box, .info-box,
.benefit-box, .highlight-box, .tip-box, .warning-box,
.guide-card .box, .tutorial-box,
div[style*="background: #ffffff"], div[style*="background:#ffffff"],
div[style*="background: #fff"], div[style*="background:#fff"] {
    background: #140b0d !important;
    color: #ede4ce !important;
    border: 1px solid rgba(200, 144, 21, 0.14) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4) !important;
}
.feature-box *, .step-note *, .note-box *,
.benefit-box *, .highlight-box *, .tip-box * {
    color: #ede4ce !important;
}
.feature-box h3, .feature-box h4, .feature-box .title,
.step-note strong, .note-box strong,
.benefit-box h3, .benefit-box h4,
.highlight-box h3, .highlight-box h4 {
    color: #e9c571 !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
}
.feature-box p, .step-note p, .note-box p {
    color: rgba(237, 228, 206, 0.75) !important;
}

/* Any element with inline white bg */
[style*="background-color: white"], [style*="background-color:#fff"],
[style*="background-color: #fff"], [style*="background-color: rgb(255"],
[style*="background: rgb(255, 255, 255)"] {
    background-color: #140b0d !important;
    background: #140b0d !important;
    color: #ede4ce !important;
}

/* Any white-ish bg used by guide/landing sections */
section.features-section, section.benefits-section, section.highlights-section,
section.tutorial-section, section.steps-section {
    background: #070405 !important;
    color: #ede4ce !important;
}

/* Light bluish tint catches (rgb 232 244 248 etc.) */
[style*="rgb(232, 244"], [style*="rgb(240, 244"], [style*="rgb(235, 238"],
.light-bg, .bg-blue-light, .bg-info-light {
    background: #0e080a !important;
    color: #ede4ce !important;
    border: 1px solid rgba(200, 144, 21, 0.14) !important;
}

/* =============================================================
   Ghost buttons — plus visibles
   ============================================================= */

/* Rendre les boutons "ghost" / outline plus évidents */
.btn-ghost, .btn--ghost, .btn-outline, .btn-outline-primary, .btn-outline-light,
.btn-secondary, a.btn--ghost, button.btn--ghost {
    background: rgba(200, 144, 21, 0.06) !important;
    border: 1.5px solid rgba(200, 144, 21, 0.55) !important;
    color: #e9c571 !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s ease !important;
}
.btn-ghost:hover, .btn--ghost:hover, .btn-outline:hover, .btn-outline-primary:hover,
.btn-secondary:hover, a.btn--ghost:hover, button.btn--ghost:hover {
    background: rgba(200, 144, 21, 0.14) !important;
    border-color: #c89015 !important;
    color: #ede4ce !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Any remaining rgb(255,255,255) backgrounds across templates */
*[style*="background-color: rgb(255"], *[style*="background: rgb(255"] {
    background-color: #140b0d !important;
    background: #140b0d !important;
}

/* Body html fallback */
html, body {
    background: #070405 !important;
    color: #ede4ce !important;
}

/* ===== Wine-label style buttons override — applies to all Voxeel primary CTAs ===== */

.btn-primary, .btn.btn-primary, button.btn-primary,
.bg-primary, button.bg-primary,
.btn-login, button.btn-login,
.btn-register, button.btn-register,
.btn-download, button.btn-download,
.cta-button, button.cta-button,
[data-variant="primary"], [data-variant="default"] {
    background: linear-gradient(135deg, #1c0f13 0%, #2a1418 50%, #1c0f13 100%) !important;
    color: #e9c571 !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    border: 1px solid #c89015 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(200, 144, 21, 0.32), 0 0 0 1px rgba(200, 144, 21, 0.18) !important;
    text-shadow: 0 0 12px rgba(200, 144, 21, 0.28) !important;
    position: relative;
    overflow: hidden;
    animation: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-primary::before, .btn.btn-primary::before, button.btn-primary::before,
.bg-primary::before, .btn-login::before, .btn-register::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 197, 113, 0.32), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-primary:hover, .btn.btn-primary:hover, button.btn-primary:hover,
.bg-primary:hover,
.btn-login:hover, .btn-register:hover, .btn-download:hover,
.cta-button:hover {
    background: linear-gradient(135deg, #2a1418 0%, #3a1c22 50%, #2a1418 100%) !important;
    color: #f4d58a !important;
    border-color: #e9c571 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(233, 197, 113, 0.45), 0 0 0 1px rgba(233, 197, 113, 0.35) !important;
}

.btn-primary:hover::before, .btn-login:hover::before, .btn-register:hover::before,
.cta-button:hover::before {
    left: 130%;
}

/* Nav inscription button in site nav */
.nav-register, a.nav-register {
    background: linear-gradient(135deg, #1c0f13 0%, #2a1418 50%, #1c0f13 100%) !important;
    color: #e9c571 !important;
    border: 1px solid #c89015 !important;
    font-weight: 600 !important;
    animation: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(200, 144, 21, 0.3) !important;
    text-shadow: 0 0 10px rgba(200, 144, 21, 0.22) !important;
}
.nav-register:hover {
    background: linear-gradient(135deg, #2a1418 0%, #3a1c22 50%, #2a1418 100%) !important;
    color: #f4d58a !important;
    border-color: #e9c571 !important;
    transform: translateY(-1px);
}

/* ===================================================================
   Raffinements luxe "Grand Cru" — filigrane, ornements, états hover
   =================================================================== */

/* Voxeel logo : tone-shift bleu vers or via filtre (élégance + cohérence) */
.navbar-brand img,
img[src*="/images/logo.png"],
a[class*="brand"] img {
    filter: sepia(1) saturate(4) hue-rotate(1deg) brightness(0.9);
}

/* Section dividers — ornement or central */
section + section,
.section + .section {
    position: relative;
}

/* Gold filigree on hero headlines - corner flourishes */
.hero, .hero-section, section.hero {
    position: relative;
}
.hero::before {
    pointer-events: none;
}

/* Add ornamental corners to CTA-band / featured cards */
.cta-band, .cta-band--dark, [class*="cta-"] {
    position: relative;
}
.cta-band::before, .cta-band::after {
    pointer-events: none;
}

/* Refined hover glow on primary accent buttons */
.btn--accent:hover, .btn-primary:hover, .btn-login:hover, .btn-register:hover,
.cta-button:hover {
    animation: none !important;
}

/* Link hover — gold underline grows */
main a:not(.btn):not(.btn-primary):not(.btn--accent):not(.nav-link):not(.card):not(.site-nav__link):not([class*="btn"]):not([class*="card"]) {
    position: relative;
    color: #e9c571;
    transition: color 0.2s ease;
}
main a:not(.btn):not(.btn-primary):not(.btn--accent):not(.nav-link):not(.card):not([class*="btn"]):not([class*="card"]):hover {
    color: #f4d58a;
}

/* Card hover — subtle burgundy lift */
.card:hover, .team-card:hover, .testimonial:hover, .process-step:hover, .faq-item:hover {
    border-color: rgba(200, 144, 21, 0.45) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 144, 21, 0.18) !important;
}

/* Eyebrow — add a subtle dot after the gold line */
.eyebrow::after {
    content: ' ●';
    color: rgba(200, 144, 21, 0.5);
    font-size: 0.65em;
    margin-left: 6px;
    vertical-align: middle;
}

/* Section head underline */
.section__head, .section-header, .hero__grid--center {
    position: relative;
}

/* First letter dropcap for long-form prose */
.prose > p:first-of-type::first-letter,
.legal-section > p:first-of-type::first-letter,
.article-body > p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 3.2em;
    font-weight: 500;
    float: left;
    line-height: 0.85;
    padding: 4px 10px 0 0;
    background: linear-gradient(135deg, #7a5814 0%, #c89015 40%, #e9c571 55%, #c89015 70%, #7a5814 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtle parchment noise overlay (optional — very low opacity) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.25;
    pointer-events: none;
    z-index: 9999;
}

/* Dark input focus : glow with gold + subtle inner shine */
input:focus, textarea:focus, select:focus, .form__input:focus, .form-control:focus {
    background: #180c0e !important;
    border-color: #c89015 !important;
    box-shadow: 0 0 0 3px rgba(200, 144, 21, 0.18), inset 0 1px 0 rgba(200, 144, 21, 0.14) !important;
    outline: none !important;
}

/* Form labels — slight gold accent */
label, .form__label, .form-label {
    color: rgba(237, 228, 206, 0.78) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
}

/* Hr separator with gold filigree */
hr {
    border: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(200, 144, 21, 0.35), transparent) !important;
    margin: 2rem 0 !important;
    position: relative;
}

/* Selection more luxurious */
::selection { background: rgba(200, 144, 21, 0.35); color: #ede4ce; text-shadow: 0 0 10px rgba(200, 144, 21, 0.5); }

/* Badge polish */
.badge, .tag, [class*="badge-"] {
    border: 1px solid rgba(200, 144, 21, 0.28) !important;
    background: rgba(200, 144, 21, 0.08) !important;
    color: #e9c571 !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
}

/* Avatar / images inside dark cards - subtle warm tint */
.testimonial__avatar, .team-card__avatar, .author-avatar {
    background: transparent !important;
    border: 1px solid #c89015 !important;
    color: #e9c571 !important;
}

/* Pricing "featured" card - gold foil gradient border */
.pricing-card.featured, .pricing-plan.featured, .plan-featured, .plan-card[class*="featured"] {
    position: relative;
    background: linear-gradient(135deg, #180c0e 0%, #221014 50%, #180c0e 100%) !important;
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
}
.pricing-card.featured::before,
.pricing-plan.featured::before,
.plan-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #7a5814 0%, #c89015 40%, #e9c571 55%, #c89015 70%, #7a5814 100%);
    border-radius: inherit;
    z-index: -1;
    padding: 1px;
}

/* Placeholder colors */
::placeholder { color: rgba(237, 228, 206, 0.28) !important; font-style: italic !important; }

/* Table polish */
table thead th, .table thead th {
    background: #0a0607 !important;
    color: #e9c571 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(200, 144, 21, 0.28) !important;
}

/* Caret / arrow after gold CTAs */
.btn--accent::after, .btn-primary::after {
    display: none;
}
