/* Styles principaux pour Afinex */

:root {
    --primary-color: #01091d;
    --secondary-color: #0d6efd;
    --accent-color: #00a8ff;
    --success-color: #20c997;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #0a1a2d;
    --card-bg: #0d2139;
    --border-color: #2d3748;
    --text-light: #e9ecef;
    --text-muted: #adb5bd;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #01091d, #0d2139);
    --gradient-secondary: linear-gradient(135deg, #0d6efd, #00a8ff);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-bottom: 80px; /* Pour le bottom nav */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Navigation Bottom */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 33, 57, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 10px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.nav-item.active .nav-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.property-card {
    height: 100%;
}

.property-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-secondary);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Forms */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 10px;
    padding: 12px 15px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 255, 0.25);
    color: var(--text-light);
}

/* WhatsApp Chat */
.whatsapp-chat {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badges */
.badge-gradient {
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .bottom-nav {
        padding: 8px 0;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .whatsapp-chat {
        bottom: 90px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Property Details */
.property-details-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.property-features i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Payment Modal */
.payment-modal .modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.payment-option {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--accent-color);
    background: rgba(0, 168, 255, 0.1);
}

.payment-option i {
    font-size: 2rem;
    margin-bottom: 10px;
}