﻿ 
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #eef1f6;
    color: #333;
}

/* ===============================
       TOP FILTER BAR
    =================================*/
.sidebar {
    width: 100%;
    height: 40px;
    background: #004080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: fixed;
    top: 62px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: 0.25s ease;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .filter-form select {
        padding: 6px 10px;
        border-radius: 6px;
        border: none;
        background: #f0f0f7;
        font-size: 13px;
        font-weight: 600;
        color: #004080;
        outline: none;
        transition: 0.2s ease;
    }

        .filter-form select:hover {
            background: #e6e6ef;
        }

.car-count {
    font-size: 14px;
    color: white;
}

.count-badge {
    padding: 3px 10px;
    background-color: dodgerblue;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ===============================
       GRID
    =================================*/
.car-grid {
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* ===============================
       CAR CARD
    =================================*/
.car-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #d7dce5;
}

    .car-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.05);
    }

/* ===============================
       BRAND IMAGE
    =================================*/
.brand-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: #f8f8fa;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 6px;
    margin-bottom: 12px;
    transition: transform 0.25s ease;
}

    .brand-img:hover {
        transform: scale(1.08);
    }

/* ===============================
       CAR INFORMATION
    =================================*/
.car-info {
    text-align: center;
}

    .car-info .brand {
        font-size: 16px;
        font-weight: 700;
        color: #222;
    }

    .car-info .years {
        font-size: 13px;
        color: #555;
    }

    .car-info p {
        margin: 5px 0;
    }

/* ===============================
       STATUS BADGE
    =================================*/
.status {
    margin-top: 8px;
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

    /* Status couleurs */
    .status.FREE {
        background: rgba(40, 167, 69, 0.15);
        color: #28a745;
        border: 1px solid #28a745;
    }

    .status.PREMIUM {
        background: rgba(229, 57, 53, 0.15);
        color: #e53935;
        border: 1px solid #e53935;
    }

/* ===============================
       DETAILS BUTTON
    =================================*/
.btn-details {
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: #004080;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: 0.25s ease;
}

    .btn-details:hover {
        background: #003366;
        transform: translateY(-2px);
    }

/* ===============================
       RESPONSIVE
    =================================*/
@media (max-width: 700px) {
    .car-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .brand-img {
        width: 60px;
        height: 60px;
    }
}

.disabled-btn {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-footer-msg {
    position: absolute;
    bottom: -45px;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}




    /* Couleurs des messages */
    .sidebar-footer-msg.warning {
        background: #ff8c00; /* orange pour avertissement */
    }

    .sidebar-footer-msg.success {
        background: #28a745; /* vert pour succès */
    }
 