* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222222;
    line-height: 1.5;
}

/* En-tête et navigation */
header {
    background-color: #d81717;
    color: white;
    text-align: center;
    padding: 25px 15px;
}

header h1 { font-size: 36px; margin: 0 0 5px; }
header p { color: #eeeeee; margin: 0; }

nav {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
}

nav a:hover { background-color: rgba(0, 0, 0, 0.25); }
nav a.actif { background-color: #111111; }

/* Contenu */
main { width: 90%; max-width: 1100px; margin: auto; }

section {
    background-color: white;
    margin: 25px 0;
    padding: 25px;
    border-radius: 8px;
}

h2 { color: #111111; text-align: center; margin-top: 0; }
h3 { color: #222222; }
.centre { text-align: center; }

/* Bannière d'accueil */
.banniere {
    background-color: #222222;
    color: white;
    text-align: center;
    margin: 0;
    padding: 40px 20px;
    border-radius: 0;
}

.banniere img { width: 100%; max-width: 280px; height: auto; border-radius: 8px; }
.banniere h2 { color: white; font-size: 36px; margin: 20px 0 10px; }
.banniere p { font-size: 18px; margin: 0 0 15px; }

/* Boutons */
.bouton {
    display: inline-block;
    background-color: #e60000;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.bouton:hover { background-color: #aa0000; }

/* Liste des marques (accueil) */
.liste-marques {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
}

.liste-marques li {
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: bold;
}

/* Cartes produits */
.produits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.produits-4 { grid-template-columns: repeat(4, 1fr); }

.carte {
    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.carte img { width: 100%; height: 200px; object-fit: contain; }
.prix { color: #e60000; font-size: 20px; font-weight: bold; }

/* Marques */
.marques { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.carte-marque {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

/* Formulaire */
.formulaire form { display: flex; flex-direction: column; }
.formulaire label { margin-top: 15px; margin-bottom: 5px; font-weight: bold; }

.formulaire input,
.formulaire textarea {
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.formulaire input:focus,
.formulaire textarea:focus { outline: 2px solid #e60000; border-color: #e60000; }

.formulaire button {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 14px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.formulaire button:hover { background-color: #aa0000; }

/* Pied de page */
footer {
    background-color: #222222;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer h2 { color: #ffffff; margin-bottom: 20px; }
.footer-info { margin-bottom: 20px; line-height: 1.8; }
.footer-info p { margin: 0; }
.footer-info a { color: white; text-decoration: none; }
.footer-info a:hover { color: #ff6666; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #555555; padding-top: 15px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .produits, .produits-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .produits, .produits-4, .marques { grid-template-columns: 1fr; }
    header h1 { font-size: 28px; }
    .banniere h2 { font-size: 26px; }
    section { padding: 18px; }
}
