@font-face {
    font-family: 'Peugeot';
    src: url('./fonts/PeugeotNew-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
    overflow-x: hidden;
}


 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            
        }

        body {
           font-family: 'Peugeot', sans-serif;
            line-height: 1.6;
            color: #333;
           
        }

        :root {
            --primary-color: #c3002f;
            --primary-hover: #a0001f;
        }

        /* Navbar Styles */
        .navbar {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 1rem 2rem;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo img {
            height: 50px;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .mobile-menu {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .mobile-menu span {
            width: 25px;
            height: 3px;
            background: #333;
            margin: 3px 0;
            transition: 0.3s;
        }

        /* Hero Section - Carousel */
        .hero-section {
            margin-top: 80px;
            position: relative;
            height: 500px;
            overflow: hidden;
        }

        .carousel-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .carousel-slide.active {
            opacity: 1;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-controls {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            transition: background 0.3s;
        }

        .carousel-controls:hover {
            background: rgba(0,0,0,0.7);
        }

        .prev-btn {
            left: 20px;
        }

        .next-btn {
            right: 20px;
        }

        .carousel-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: background 0.3s;
        }

        .dot.active {
            background: white;
        }

        /* Virtual Visit Section */
        .virtual-visit {
            padding: 4rem 0;
            background: #f8f9fa;
        }

        .virtual-visit .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .virtual-visit h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #333;
            text-align: left;
            position: relative;
        }

        .section-underline {
            width: 16.66%; /* Half of 33.33% */
            height: 8px; /* Doubled height */
            background: var(--primary-color);
            margin-bottom: 2rem;
        }

        .virtual-visit iframe {
            width: 100%;
            max-width: 800px;
            height: 450px;
            border: none;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: block;
            margin: 0 auto;
        }

        /* Brands Section */
        .brands-section {
            padding: 4rem 2rem;
        }

        .brands-section .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .brands-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #333;
            text-align: left;
        }

        .brands-container {
            display: grid; /* Changed to grid */
            grid-template-columns: repeat(3, 1fr); /* Three columns */
            justify-content: center;
            gap: 2rem;
            margin-top: 3rem;
        }

        .brand-item img {
            width: 100%; /* Make images fill their grid column */
            height: auto;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .brand-item img:hover {
            transform: translateY(-5px);
        }

        /* Info Section */
        .info-section {
            padding: 4rem 2rem;
            background: #f8f9fa;
        }

        .info-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
            align-items: stretch;
        }

        .info-card {
            background: white;
            padding: 2.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
        }

        .info-card h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #333;
            text-align: left;
            position: relative;
        }

        .card-underline {
            width: 16.66%; /* Half of 33.33% */
            height: 8px; /* Doubled height */
            background: var(--primary-color);
            margin-bottom: 1.5rem;
        }

        .info-card p {
            margin-bottom: auto;
            line-height: 1.8;
            color: #666;
            flex-grow: 1;
        }

        .read-more-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            padding: 0.8rem 1.5rem;
            border-radius: 50px; /* Rounded button */
            transition: background 0.3s;
            font-weight: 500;
            align-self: flex-start;
            margin-top: 2rem;
        }

        .read-more-btn:hover {
            background: var(--primary-hover);
        }

        /* Experience Section */
        .experience-section {
            padding: 4rem 2rem;
            background-color: #1f2937
;
        }

        .experience-section .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .experience-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #ffffff;
            text-align: left;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .experience-card {
            background: white;
            padding: 2.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            text-align: center;
        }

        .experience-card:hover {
            transform: translateY(-5px);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            color: white;
            font-size: 24px;
        }

        .experience-card h4 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #333;
        }

        .experience-card p {
            margin-bottom: 1.5rem;
            color: #666;
            line-height: 1.6;
        }

        .card-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 50px; /* Rounded button */
            cursor: pointer;
            font-weight: 500;
            transition: background 0.3s;
       font-family: 'Peugeot', sans-serif;
        }

        .card-btn:hover {
            background: var(--primary-hover);
        }

        /* Trust Section */
        .trust-section {
            padding: 4rem 2rem;
            background: #f8f9fa;
        }

        .trust-section .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .trust-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #333;
            text-align: left;
        }

        .logo-carousel {
            overflow: hidden;
            position: relative;
            margin-top: 3rem;
        }

        .logo-track {
            display: flex;
            animation: scroll 20s linear infinite;
            gap: 3rem;
        }

        .logo-item {
            min-width: 150px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .logo-item img {
            max-width: 120px;
            max-height: 60px;
            object-fit: contain;
        }

        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Footer */
        .footer {
            background: #1f2937;
;
            color: white;
            padding: 3rem 2rem 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-column h4 {
            margin-bottom: 1rem;
            color: white;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.5rem;
        }

        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-column ul li a:hover {
            color: var(--primary-color);
        }

        .footer-column .logo img { /* Adjust footer logo size */
            max-width: 100%;
            height: auto;
            max-height: 100px; /* Example max height */
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: transparent;
            border: 1px solid white;
            color: white;
            border-radius: 50%;
            text-decoration: none;
            transition: background 0.3s;
        }

        .social-links a:hover {
            background: var(--primary-hover);
        }

        .footer-bottom {
            border-top: 1px solid #555;
            margin-top: 2rem;
            padding-top: 1rem;
            text-align: center;
            color: #ccc;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu {
                display: flex;
            }

            .info-container {
                grid-template-columns: 1fr;
            }

            .brands-container {
                grid-template-columns: 1fr; 
                width: 100%;
                    position: relative;
    height: auto;
            }

            .brand-item img {
                display: block;
    max-width: 100%;
    height: auto;
            }

            .section-underline,
            .card-underline {
                width: 33.33%; /* Adjust for smaller screens */
            }
        }

        .car-grid-2 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            margin-bottom: 50px;
        }

        .car-card-2 {
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 10px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .car-card-2:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .car-image-2 {
            width: 100%;
            height: 150px;
            object-fit: contain;
            margin-bottom: 20px;
        }

        .car-name-2 {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .car-grid-2 a {
    text-decoration: none; 
    color: inherit;        
    display: block;        
}

/* Amélioration de la navigation mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Animation du menu hamburger */
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* 2. Sections responsives */
@media (max-width: 768px) {
    /* Container général */
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        height: 300px;
    }
    
    .carousel-controls {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    /* Titres */
    h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .section-underline {
        width: 60px;
        margin: 0 auto 2rem;
    }
    
    /* Virtual Visit */
    .virtual-visit {
        padding: 2rem 0;
    }
    
    .virtual-visit iframe {
        height: 250px;
        margin: 0 1rem;
    }
    
    /* Sections générales */
    .brands-section,
    .info-section,
    .experience-section,
    .news-section,
    .trust-section {
        padding: 2rem 1rem;
    }
    
    /* Grille des marques */
    .brands-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Cards d'information */
    .info-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .card-underline {
        width: 40px;
        margin: 0 auto 1.5rem;
    }
    
    /* Experience cards */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .experience-card {
        padding: 2rem;
    }
    
    /* Grille des voitures */
    .car-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .car-image-2 {
        height: 120px;
    }
    
    .car-name-2 {
        font-size: 1rem;
    }
    
    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Video container */
    .video-container {
        margin: 0 1rem;
    }
    
    .video-container video {
        border-radius: 10px;
    }
    
    /* Boutons */
    .read-more-btn,
    .card-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

/* 3. Pour les très petits écrans */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Hero */
    .hero-section {
        height: 250px;
        margin-top: 70px;
    }
    
    /* Titres encore plus petits */
    h2 {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .info-card,
    .experience-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.3rem;
    }
    
    .experience-card h4 {
        font-size: 1.3rem;
    }
    
    /* Grille des voitures en une colonne sur très petits écrans */
    .car-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Virtual visit iframe plus petit */
    .virtual-visit iframe {
        height: 200px;
    }
    
    /* Footer social links plus petits */
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}