/* =======================
   PANIER PAGE
======================= */
.container {
    padding: 1rem 1rem 4rem;
    text-align: center;
}
/*
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* ============================
   CART ITEM (nouvelle version)
=============================== */

.cart-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;

    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 1.5rem;

    align-items: start;
}

/* --- Colonne gauche --- */
.cart-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cart-left h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.cart-left p {
    font-size: 1rem;
    color: #475569;
    margin: 0;
}


.cart-left img {
    width: 100px;
    height: 100px;
    object-fit: cover;     /* remplit le cadre proprement */
    border-radius: .5rem;
    margin-top: .4rem;
}
/* --- Colonne milieu (UL seulement) --- */
.cart-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-middle ul li {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

/* --- Colonne droite --- */
.cart-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
	margin-right: 3rem;
}

.totalProduitHT {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    color: #1e293b;
    margin-bottom: 1rem;
}

.cart-right form {
    text-align: right;
}

.cart-right form button {
    background-color: #ef4444;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-right form button:hover {
    background-color: #b91c1c;
}



/* ============================
   TOTAL GLOBAL
=============================== */

.total {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    max-width: 270px;
    margin-left: auto;
    margin-top: 1rem;
    text-align: right;
}

.total p {
    font-size: 1.05rem;
    color: #334155;
    margin: 0.4rem 0;
}

.btn-secondary {
    background: linear-gradient(to right, #2563eb, #5295fd);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(82, 149, 253, 0.35);
}

.btn-secondary:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #1e40af, #2563eb);
}

/* ============================
   RESPONSIVE (mobile)
=============================== */

@media (max-width: 900px) {
    .cart-item {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .totalProduitHT,
    .cart-right form {
        text-align: left;
    }


    .total {
        margin: 1.5rem auto;
        text-align: center;
    }
}


/*
|     25% gauche     |               50% milieu               |     25% droite     |
|       nom          |                liste UL                |              total |
|       desc         |                                        |                    |
|       img          |                                        |             bouton |
*/