
:root {
    --bg-primary: #BFAE9F;
    --text-primary: #402515;
    --text-secondary: #8C6249;
    --accent: #592B11;
    --hover-bg: #402515;
    --hover-text: white;
}

.navbar {
    background-color: var(--bg-primary) !important;
    border-bottom: 2px solid var(--accent);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: bold;
}

.navbar-brand img {
    filter: brightness(0.5);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--text-secondary) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.navbar-nav .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .nav-link:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text) !important;
}

.navbar-toggler {
    border-color: var(--text-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23402515' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background-color: var(--bg-primary);
    border: 1px solid var(--accent);
}

.dropdown-item {
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--hover-text) !important;
}

.nav-item.dropdown .nav-link:after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    color: var(--text-primary);
}

.navbar {
    background-color: #F2F2F2 !important;
    color: #402515 !important;
}
.navbar-brand, .navbar-nav .nav-link {
    color: #402515 !important;
    font-weight: bold !important;
}
.navbar-nav .nav-link:hover {
    background-color: #CBA35C !important;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section .carousel-item {
    height: 100vh; /* Occupe toute la hauteur de l'écran */
    background-size: cover;
    background-position: center;
}

.hero-section .caption-content {
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    padding: 20px;
    border-radius: 10px;
}

.hero-section .carousel-caption {
    bottom: 30%;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section .carousel-caption {
        bottom: 15%;
    }
    .hero-section .caption-content h1 {
        font-size: 2rem;
    }
    .hero-section .caption-content p {
        font-size: 1rem;
    }
}


/* Featured Apartments */
.featured-apartments .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-apartments .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.featured-apartments .card-title {
    color: #2c3e50;
    font-weight: 600;
}

/* Features Section */
.feature-box {
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-box h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar + .hero-section {
    margin-top: 0 !important;
    padding-top: 4rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .search-box {
        padding: 1rem;
    }
    
    .feature-box {
        margin-bottom: 1rem;
    }
}
