/* Variables */
:root {
    --primary-color: #1967d2;
    --secondary-color: #198754;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
/* Désactive le préloader une fois la page chargée */
body.loaded .preloader {
    display: none;
}

.js-loading {
    overflow: hidden;
    height: 100vh;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sections */
section {
    padding: 10px;
}

.bg-light {
    background-color: #f9f9f9 !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: #222 !important;
}

/* Typography */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

.divider {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 0 auto 30px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    font-size: 0.9rem;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    padding: 0px 0;
}

.hero-slide {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 30px;
    max-width: 700px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Car Item Styles */
.car-item {
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.car-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.car-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.car-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-item:hover .car-img-container img {
    transform: scale(1.05);
}

.car-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.car-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.car-specs {
    padding: 0;
    margin: 15px 0;
}

.car-specs li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.car-specs i {
    margin-right: 8px;
    color: var(--primary-color);
}

.price-container {
    margin: 20px 0;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.financement {
    color: #666;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('/assets/img/counter-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.counter-item {
    padding: 20px;
    text-align: center;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.counter-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Choose Us */
.benefit-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 127, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.benefit-icon i {
    color: var(--primary-color);
    font-size: 2rem;
}

.benefit-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.benefit-text {
    color: #666;
}

/* Brands Section */
.brand-item {
    transition: var(--transition);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.brand-item img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Testimonials */
.testimonial-content {
    transition: var(--transition);
    padding: 30px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.rating {
    font-size: 1.2rem;
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    position: relative;
    padding: 20px 0;
    font-style: italic;
    color: #555;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Footer */
.footer-area {
    background: #222;
    color: rgba(255,255,255,0.7);
}

.footer-area h5 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-area h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-area a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-area a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    background: #111;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    transition: var(--transition);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e67300;
    border-color: #e67300;
    transform: translateY(-3px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Utilities */
.py-80 {
    padding: 80px 0;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section, .hero-slide {
        height: auto;
        min-height: 600px;
        padding: 0px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .py-80 {
        padding: 60px 0;
    }
    
    .counter-value {
        font-size: 2.5rem;
    }
}


html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
}

body.js-loading {
    overflow: hidden;
    height: 100vh;
}

 Ajoutez ceci dans votre fichier CSS principal 
.navbar-nav .nav-link {
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: none;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #e9ecef;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}


/* Ajoutez ceci dans votre fichier CSS */
.reserve-btn {
    background-color: #1967d2;
    border-color: #1967d2;
    color: #212529;
}

.reserve-btn:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* Adaptez la largeur des boutons */
.card-footer .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 110px;
    margin: 2px;
}