/* --- Variables de Design (Pratique pour changer les couleurs vite fait) --- */
:root {
    --bg-card: #1e1e24;
    --bg-body: #121214;
    --text-main: #ffffff;
    --text-muted: #a0a0a9;
    --accent-color: #ff3e3e;
    /* Rouge Racing */
    --border-radius: 12px;
}

/* --- Style de la Card --- */
.car-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    /* Taille idéale pour une grille */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #2d2d35;
}

/* Effet au survol */
.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 62, 62, 0.15);
    /* Halo rouge discret */
    border-color: #3d3d45;
}

/* --- Conteneur Image & Tag --- */
.car-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Évite de déformer la photo de la caisse */
    transition: transform 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
    /* Zoom léger sur la voiture au survol */
}

/* Le fameux Tag */
.car-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Exemples de couleurs alternatives pour d'autres tags */
.car-tag.supercar {
    background-color: #f59e0b;
}

/* Orange */
.car-tag.hypercar {
    background-color: #8b5cf6;
}

/* Violet */
.car-tag.track-toy {
    background-color: #ef4444;
}

/* Rouge */

/* --- Corps de la Card --- */
.car-content {
    padding: 20px;
}

.car-title {
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.car-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 20px 0;
}

/* --- Grille des Stats --- */
.car-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background-color: #151518;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- Bouton --- */
.car-btn {
    display: block;
    text-align: center;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-color);
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.car-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}