/* ----------- Styles communs à toute la page ----------- */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    margin: 30px 0;
    font-size: 30px;
    color: #2C3E50;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #34495E;
    padding-bottom: 10px;
    display: inline-block;
}

/* ----------- Styles pour la page d'accueil et les cartes ----------- */
.page-accueil .conteneur {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.page-accueil .carte {
    width: 273px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    cursor: pointer;
    min-height: 310px;
}

.page-accueil .carte:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-accueil .carte img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-accueil .carte p {
    font-size: 16px;
    font-weight: 600;
    color: #34495E;
    margin: 0;
    line-height: 1.4;
}

.page-accueil a {
    text-decoration: none;
    color: inherit;
}

/* ----------- Styles pour les filtres (page voiture.php) ----------- */
.filtres-conteneur {
    background-color: #f8f9fa;
    padding: 25px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filtres-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filtre-groupe label {
    font-weight: bold;
    margin-right: 5px;
    color: #555;
}

.filtre-groupe input[type="text"],
.filtre-groupe select {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 25px;
    font-size: 1rem;
    min-width: 200px;
    background-color: #fff;
}

.filtre-groupe button {
    padding: 12px 25px;
    border: none;
    background-image: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
}