.circuit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.circuit-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #333;
}

.circuit-card:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    /* Orange sport */
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: white;
}

.circuit-image-rect {
    width: 100%;
    max-width: 400px;

    object-fit: cover;
    aspect-ratio: 16 / 9;
    object-position: center;

    border-radius: 8px;
    border: 2px solid #333;
}



/* Circuit Modal*/
.circuit-modal-content {
    background: #151515;
    color: white;
    /* width: 95%; */
    width: 750px;
    /* max-width: 600px; */
    border-radius: 20px;
    overflow: hidden;
    /* Pour que l'image du haut suive l'arrondi */
    position: relative;
    border: 1px solid #333;
}


/* Hero Section Image */
.circuit-hero {
    position: relative;
    height: 250px;
}

.circuit-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circuit-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(21, 21, 21, 1));
}

/* Stats Bar */
.circuit-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 1;
}