/* --- CONFIGURATION GÉNÉRALE --- */
:root {
    --zerone-dark: #0f2027;
    --zerone-mid: #203a43;
    --zerone-light: #2c5364;
    --zerone-accent: #10b981;
    --zerone-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--zerone-dark);
    overflow-x: hidden;
}

/* --- DÉGRADÉS & COULEURS --- */
.bg-zerone-gradient {
    background: var(--zerone-gradient);
}

.text-zerone-accent {
    color: var(--zerone-accent);
}

/* --- EFFET GLASSMORPHISM --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.scale-up {
    animation: scaleUp 0.4s ease-out forwards;
}

/* --- CARTES D'ANNONCES (PROPERTIES) --- */
.property-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.property-card img {
    transition: transform 0.6s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

/* --- BOUTONS PERSONNALISÉS --- */
.btn-primary {
    background: var(--zerone-gradient);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--zerone-accent);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

/* --- FORMULAIRES --- */
input, select, textarea {
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--zerone-accent) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background-color: white !important;
}

/* --- BARRE DE NAVIGATION --- */
nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--zerone-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- SCROLLBAR PERSONNALISÉE --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--zerone-mid);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zerone-accent);
}

/* --- MODAL DE PAIEMENT --- */
#paymentModal {
    backdrop-filter: blur(8px);
}

.modal-content {
    animation: scaleUp 0.3s ease-out;
}

/* --- AJOUTS POUR LE SLIDER & COOKIES (SANS RIEN ENLEVER) --- */

/* Gestion du Slider d'images sur Index */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* Effet de transition fluide pour le slider */
[id^="slider-"] {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bandeau Cookie */
#cookie-banner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Style des options des menus déroulants */
select option {
    background: white;
    color: var(--zerone-dark);
}

/* Preview images lors de la publication */
#preview-container div {
    animation: scaleUp 0.3s ease-out forwards;
}

/* Formulaire de recherche Hero */
form input::placeholder {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
}