/* Réalisé par Dylan Borcard */
/* Version du 12.03.2026 */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("../Images/hand.png") 16 16, auto;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #e8e8e8;
    min-width: 320px;
}

/* --- BANNIÈRE --- */
.bannière {
    height: auto;
    min-height: 40px;
    background: #000000;
    color: rgba(170, 160, 160, 0.57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 1.8vw, 18px);
    padding: 8px 12px;
    text-align: center;
    line-height: 1.3;
}

/* --- BARRE DE NAVIGATION --- */
.barre-nav {
    height: 55px;
    background: #c5c5c5;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: clamp(6px, 3vw, 100px);
    border-bottom: 4px solid #e8c800;
}

.boutons-nav {
    display: flex;
    flex-shrink: 0;
    gap: 3px;
}

.bouton-nav,
.btn-home-reload {
    width: 36px;
    height: 36px;
    background: #a0a0a0;
    border: 1px solid #787878;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    text-decoration: none;
}

.btn-home-reload {
    background: #efeeee;
}

.address-bar {
    flex: 1;
    min-width: 0;
    height: 40px;
    background: #ffffff;
    border: 3px solid #999;
    border-radius: 4px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-size: clamp(11px, 1.8vw, 18px);
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #e8e8e8;
    border: 1px solid #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #555;
}

/* --- HEADER --- */
.header {
    background-image: url("../Images/sssa.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: clamp(200px, 28vw, 700px);
    width: 100%;
}

/* --- BARRE FILTRE JAUNE --- */
.filter-bar {
    background: #e8c800;
    padding: clamp(12px, 2vw, 20px) clamp(15px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-title {
    font-size: clamp(16px, 3vw, 28px);
    font-weight: normal;
    color: #1a1a1a;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #1a1a1a;
    color: #ffffff;
    font-size: clamp(11px, 1.5vw, 14px);
    padding: 10px clamp(14px, 2vw, 24px);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

.filter-arrow {
    color: #e8c800;
    font-weight: bold;
}

/* --- GRILLE VOITURES --- */
.cars-section {
    padding: clamp(15px, 3vw, 30px) clamp(12px, 4vw, 40px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 20px);
    background: #e8e8e8;
}

/* --- CARTE VOITURE --- */
.car-card {
    background: #ffffff;
    border: 1px solid #cccccc;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.car-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    gap: 8px;
}

.card-tag {
    font-size: clamp(8px, 1.1vw, 11px);
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    line-height: 1.3;
}

.card-icon {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.card-image {
    background: #f0f0f0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 6px;
}

.card-name {
    font-size: clamp(10px, 1.4vw, 13px);
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.card-price {
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: bold;
    background: #e8c800;
    padding: 4px 10px;
    color: #1a1a1a;
}

/* --- RESPONSIVE --- */

@media screen and (max-width: 900px) {
    .cars-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .cars-section {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 400px) {
    .boutons-nav .bouton-nav:nth-child(2) {
        display: none;
    }

    .bannière {
        font-size: 9px;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        justify-content: center;
    }
}