/* VIVIANO — couche de style partagée (chargée en dernier sur chaque page) */
:root {
    --accent-gold: #eab308;
    --gold-accent: #eab308;
    --bg-dark: #0a0f1d;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-white: rgba(255, 255, 255, 0.08);
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(30, 41, 59, 0.2) 0%, transparent 40%);
    color: #f3f4f6;
    -webkit-font-smoothing: antialiased;
}

/* Entrée de page douce (opacité seulement, ne bloque pas les transitions inline) */
@media (prefers-reduced-motion: no-preference) {
    body { animation: vv-enter 0.35s ease backwards; }
}
@keyframes vv-enter { from { opacity: 0; } to { opacity: 1; } }

/* Carte « verre » commune (le survol reste défini par chaque page) */
.glass-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-white);
}

/* Bouton principal commun */
.btn-gold {
    background: var(--accent-gold);
    color: #0a0f1d;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(234, 179, 8, 0.45);
}
.btn-gold:disabled { cursor: not-allowed; }

/* Lien « Retour au hub » identique partout */
.vv-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.2s ease;
}
.vv-back svg { transition: transform 0.2s ease; }
.vv-back:hover { color: var(--accent-gold); }
.vv-back:hover svg { transform: translateX(-4px); }
.vv-back--float { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 50; }

/* Curseurs de glissière : Chrome/Safari + Firefox */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px; border: 0; border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border: 0; border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
    cursor: pointer;
}
input[type="range"]::-moz-range-track {
    height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
}

/* Accessibilité */
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
::selection { background: rgba(234, 179, 8, 0.3); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(234, 179, 8, 0.3) transparent; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* En-tête de page commun : icône, titre, sous-titre, filet */
.vv-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 2.5rem; }
.vv-head__icon {
    width: 4rem; height: 4rem; margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 1.25rem; font-size: 1.75rem;
    background: rgba(234, 179, 8, 0.1); color: var(--accent-gold);
}
.vv-head h1 {
    font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em; color: #fff;
}
.vv-head p { margin-top: 0.75rem; max-width: 32rem; font-size: 1rem; line-height: 1.6; color: #94a3b8; }
.vv-head__rule { width: 3rem; height: 2px; margin-top: 1.5rem; border-radius: 999px; background: var(--accent-gold); opacity: 0.5; }

/* Utilitaires dorés utilisés par la page Crédit immo */
.bg-gold { background-color: var(--accent-gold); }
.bg-gold\/80 { background-color: rgba(234, 179, 8, 0.8); }
