/**
 * Styles pour la page de panier — Redesign Premium
 * @author Shawn Dutil
 */

/* ===========================
   LAYOUT
=========================== */
.page-panier {
    display: flex;
    justify-content: center;
    padding: 64px 32px;
    background: var(--creme);
    min-height: calc(100vh - var(--navbar-h));
    width: 100%;
}

.panier-container {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===========================
   TITRE
=========================== */
.panier-container > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--vert-profond);
    text-align: center;
    margin: 0 0 12px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.panier-container > h2 i {
    font-size: 1.6rem;
    color: var(--or);
}

.panier-container > h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--or), transparent);
    margin: 16px auto 0;
}

/* ===========================
   PANIER VIDE
=========================== */
.panier-vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 64px 0 80px;
    text-align: center;
}

.panier-vide p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #888;
}

.btn-retour-produit {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--vert-profond);
    background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
    padding: 14px 36px;
    border-radius: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-retour-produit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
}

/* ===========================
   SECTION COMMANDE
=========================== */
.commande-section {
    width: 100%;
    background: var(--vert-profond);
    border-radius: 2px;
    border-left: 3px solid var(--or);
    padding: 28px 32px;
    margin-bottom: 32px;
    text-align: center;
}

.commande-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: var(--or-clair);
    margin: 0 0 10px 0;
}

.commande-section p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 20px 0;
}

.btn-contact {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--vert-profond);
    background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
    padding: 12px 32px;
    border-radius: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.5);
}

/* ===========================
   LISTE DE PRODUITS
=========================== */
.panier-produits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* ===========================
   MESSAGES
=========================== */
.messages-panier {
    width: 100%;
}

.message-success {
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #edf7ed;
    color: #2d6a2d;
    border-left: 3px solid #4caf50;
    padding: 12px 18px;
    border-radius: 2px;
}

.message-erreur {
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdf0f0;
    color: #8b2020;
    border-left: 3px solid #e53935;
    padding: 12px 18px;
    border-radius: 2px;
}

/* ===========================
   CARTE PRODUIT
=========================== */
.panier-produit {
    background: #fff;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    transition: box-shadow 0.25s ease, border-bottom-color 0.25s ease;
}

.panier-produit:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--or);
}

.panier-produit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Image + description côte à côte */
.panier-produit-image {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.image-container { flex-shrink: 0; }

.imageProduit {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Description */
.description_produit_panier {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nom_produit_panier {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-lien-nom-panier {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.btn-lien-nom-panier h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--vert-profond);
    padding-bottom: 6px;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.btn-lien-nom-panier h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--or);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-lien-nom-panier:hover h3 { color: var(--vert-moyen); }
.btn-lien-nom-panier:hover h3::after { transform: scaleX(1); }

/* Dimensions */
.dimensions_produit_panier {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dimensions_produit_panier p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #777;
    text-transform: uppercase;
    margin: 0;
}

/* Liste description */
.liste_description_panier {
    padding-left: 16px;
    margin: 0;
}

.liste_description_panier li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Quantité */
.form-modif-quantite p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vert-profond);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.input-quantite {
    width: 64px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vert-profond);
    background: var(--creme);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    padding: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-quantite:focus {
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* ===========================
   BOUTON SUPPRIMER
=========================== */
.form-supprimer-article { flex-shrink: 0; }

.btn-supprimer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c0392b;
    background: transparent;
    border: 1px solid rgba(192, 57, 43, 0.25);
    border-radius: 2px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-supprimer:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .page-panier { padding: 40px 16px; }

    .panier-produit {
        flex-direction: column;
        align-items: stretch;
    }

    .form-supprimer-article {
        display: flex;
        justify-content: flex-end;
    }

    .imageProduit { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
    .panier-produit-image { flex-direction: column; align-items: center; }
    .imageProduit { width: 100%; max-width: 220px; height: auto; }
    .dimensions_produit_panier { flex-direction: column; gap: 4px; }
    .commande-section { padding: 24px 20px; }
}