* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    color: #333;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #111;
    color: white;
    padding: 10px 40px;
}

header .logo {
    font-size: 1.3em;
    font-weight: bold;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ffcc00;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar input {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
}

.search-bar button {
    background: #ffcc00;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* HERO */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    transition: 0.5s;
    /* filter: brightness(20%); */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    color: white;
    transform: translateY(-50%);
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero img:hover {
    filter: brightness(20%);
    transition: 0.5s;
}

/* A PROPOS */
.apropos {
    padding: 50px 10%;
    background-color: #f3f3f3;
    line-height: 1.8;
}

.apropos h2 {
    text-align: center;
    margin-bottom: 20px;
}

.apropos p {
    margin-bottom: 1em;
}

/* VÉHICULES */
.vehicules {
    padding: 50px 10%;
}

.vehicules h2 {
    text-align: center;
    margin-bottom: 30px;
}

.vehicule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vehicule-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.vehicule-card:hover {
    transform: translateY(-10px);
}

.vehicule-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.vehicule-card h3 {
    margin: 10px 0 5px;
}

.prix {
    display: block;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 10px;
}

/* CONTACT */
footer {
    background-color: #222;
    color: white;
    padding: 40px 10%;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.infos h3, p {
    margin-bottom: 10px;
}

.infos, .formulaire {
    flex: 1;
    min-width: 250px;
}

.infos a {
    color: #ffcc00;
    text-decoration: none;
}

.formulaire form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formulaire input, .formulaire textarea {
    padding: 8px;
    border: none;
    border-radius: 4px;
}

.formulaire button {
    background: #ffcc00;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.map {
    flex: 1;
    min-width: 250px;
}

footer .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .contact-container {
        flex-direction: column;
    }
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-switch button {
    background: none;
    border: 1px solid #555;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch button:hover {
    background-color: #ffcc00;
    color: black;
}
