/* ========================================
   ROUBLA SERVICE - CSS PRINCIPAL
======================================== */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ========================================
   NAVBAR
======================================== */

.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea !important;
}

.navbar-brand:hover {
    color: #5568d3 !important;
}

.navbar-nav .nav-link {
    color: #212529 !important;
    margin: 0 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
    transform: translateY(-2px);
}

.navbar-light .navbar-toggler {
    border-color: #667eea;
}

.dropdown-menu {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: #212529;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #667eea;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons .btn {
    margin: 10px;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ========================================
   CARDS
======================================== */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ========================================
   OFFRES & LOGEMENTS
======================================== */

.offre-card, .logement-card {
    transition: all 0.3s;
    cursor: pointer;
}

.offre-card:hover, .logement-card:hover {
    border-color: var(--primary-color);
}

.badge-custom {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ========================================
   FORMS
======================================== */

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ========================================
   FOOTER - BLANC & VERT
======================================== */

.footer {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 3rem 0 1rem 0;
    margin-top: 5rem;
    border-top: 4px solid #28a745;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer h5 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer .text-muted {
    color: #6c757d !important;
}

.footer a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #28a745;
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: #28a745;
    color: #ffffff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    color: #ffffff;
    padding-left: 1.2rem;
}

.footer .border-secondary {
    border-color: #dee2e6 !important;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer i {
    margin-right: 0.5rem;
    color: #28a745;
}

.footer-bottom {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

/* ========================================
   DASHBOARD
======================================== */

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.quick-action-btn {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    background: white;
    border: 2px solid #e5e7eb;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
}

/* ========================================
   UTILITIES
======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========================================
   CATÉGORIES POPULAIRES
======================================== */

.category-btn {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    padding: 12px 15px;
    font-size: 0.95rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn i {
    font-size: 1.3rem;
    min-width: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.category-btn:hover i {
    color: white !important;
}