:root {
    --total-items: 1;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url("/assets/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    padding: 40px;
}

/* Titre */
h1 {
    text-align: center;
    font-size: 2.3em;
    color: white;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* Conteneur des cartes */
#concessionnaire {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* --- Carte principale --- */
.Concessionnaires {
    width: 380px;
    padding: 25px;

    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);  /* Noir transparent */
    backdrop-filter: blur(12px);      /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.15);

    color: white;

    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.Concessionnaires:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Nom */
.nom {
    font-size: 1.6em;
    font-weight: 700;
    color: #4db8ff;
    margin-bottom: 10px;
}

/* Description */
.description {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* Bouton Détails */
.btn-details {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    padding: 8px 14px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-details:hover {
    background: rgba(255,255,255,0.25);
}

/* Zone des détails (cachée au début) */
.details {
    margin-top: 15px;
    padding-top: 10px;

    border-top: 1px solid rgba(255,255,255,0.15);
    display: none;

    animation: fadeIn 0.3s ease;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
