/* 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: #f0f0f0;
    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.5vw, 16px);
    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 IMAGE --- */
.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 JAUNE TITRE + PRIX --- */
.car-title-bar {
    background: #e8c800;
    padding: clamp(12px, 2vw, 20px) clamp(20px, 4vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.car-title-price {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: bold;
    color: #1a1a1a;
}

/* --- PAGE PRINCIPALE --- */
.detail-page {
    display: grid;
    grid-template-columns: clamp(240px, 38%, 450px) 1fr;
    background: #f0f0f0;
    align-items: start;
    padding: clamp(20px, 4vw, 50px) clamp(20px, 5vw, 60px);
    gap: clamp(20px, 4vw, 50px);
}

/* --- COLONNE GAUCHE --- */
.detail-left {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 28px);
}

/* --- Couleurs --- */
.colors-label {
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: bold;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: 1.4;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(4, clamp(36px, 6vw, 56px));
    gap: clamp(10px, 2vw, 18px);
}

.color-dot {
    width: clamp(36px, 6vw, 56px);
    height: clamp(36px, 6vw, 56px);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.color-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* --- Bouton BUY --- */
.buy-btn {
    width: 100%;
    padding: clamp(12px, 2vw, 18px);
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 48px;
}

.buy-btn:hover {
    background: #333333;
}

/* --- Description --- */
.car-description {
    font-size: clamp(12px, 1.5vw, 14px);
    color: #333333;
    line-height: 1.7;
}

/* --- Stats --- */
.stats-title {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.stat-label {
    color: #333333;
    font-size: clamp(11px, 1.4vw, 13px);
    width: clamp(80px, 12vw, 110px);
    flex-shrink: 0;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background: #cccccc;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: repeating-linear-gradient(90deg,
            #e8c800 0px,
            #e8c800 8px,
            transparent 8px,
            transparent 11px);
}

/* --- COLONNE DROITE --- */
.detail-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.photo-main {
    width: 100%;
    overflow: hidden;
    background: #ddd;
}

.photo-main img {
    width: 100%;
    height: clamp(180px, 28vw, 380px);
    object-fit: cover;
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.photo-small {
    overflow: hidden;
    background: #ccc;
}

.photo-small img {
    width: 100%;
    height: clamp(90px, 14vw, 190px);
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
}

/* --- RESPONSIVE --- */

@media screen and (max-width: 768px) {
    .detail-page {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .detail-right {
        order: -1;
    }
}

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

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

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