/*
 * ========================================================
 * [ÉTAT : FINAL] Date : 21-05-2026 20:03:00
 * FICHIER : recapitulatif.css
 * RÔLE : Feuille de style du récapitulatif de mise de côté
 * Auteurs : Yvan Dubé & Gemini (IA Collaboratrice)
 * =========================================================
 */

/* ==========================================================================
   1. MESSAGES D'ERREUR (SÉLECTION VIDE)
   ========================================================================== */
.empty-selection-msg {
    text-align: center;
    margin-top: 50px;
}

.btn-retour-catalogue {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--couleur-primaire);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    margin-top: 15px;
    transition: var(--transition-rapide);
    font-weight: bold;
}

.btn-retour-catalogue:hover {
    background-color: var(--couleur-primaire-hover);
    color: white;
}

/* ==========================================================================
   2. DISPOSITION GÉNÉRALE
   ========================================================================== */
.recap-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Essentiel pour que le sticky fonctionne */
    margin-top: 20px;
    padding: 0 15px; /* Évite que le contenu touche les bords de l'écran */
}

/* Colonne de gauche (liste des articles) */
.articles-section {
    flex: 1; /* Prend tout l'espace disponible */
}

/* Colonne de droite (Total + Formulaire de contact) */
.sidebar-section {
    width: 380px; 
    position: sticky;
    top: 90px; /* Distance du haut de l'écran lors du défilement, ajusté pour la bannière */
}

/* ==========================================================================
   3. LISTE DES ARTICLES (LIGNES ZÉBRÉES)
   ========================================================================== */
.article-item {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    padding: 15px;
    border-bottom: 1px solid var(--couleur-bordure);
    gap: 20px; 
}

/* Effet zébré sur les lignes paires */
.article-item:nth-child(even) {
    background-color: var(--couleur-grise-pale);
}

.article-item:hover {
    background-color: #f1f1f1;
}

.item-info-groupe {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1; 
}

.col-price {
    font-weight: bold;
    min-width: 80px;
    text-align: right;
    white-space: nowrap; 
}

/* ==========================================================================
   4. SECTION TOTAL ET FORMULAIRE (SIDEBAR)
   ========================================================================== */
.total-box {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: white;
    border: 2px solid #333; 
    border-radius: var(--radius);
    font-size: 1.2rem; 
    margin-bottom: 20px;
}

.contact-client-box {
    padding: 20px;
    background-color: var(--couleur-grise-pale);
    border: 2px solid var(--couleur-primaire);
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-client-box h3 {
    margin-top: 0;
    color: var(--couleur-primaire);
}

.mode-employe-msg {
    color: #0056b3; /* Bleu indicatif pour le mode staff */
    font-size: 0.85em; 
    margin-bottom: 10px;
    margin-top: -10px; /* Rapproche le message du titre */
}

.form-champs-client {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-champs-client input {
    padding: 10px;
    border: 1px solid var(--couleur-bordure);
    border-radius: var(--radius);
    font-family: inherit;
}

/* Style spécifique pour le gros bouton de confirmation */
.btn-confirmer {
    width: 100%;
    height: 50px;
    font-size: 16px;
    max-width: 100%; /* Surcharge la limite de 160px de global.css pour ce bouton précis */
    margin-top: 20px;
    cursor: pointer;
}

/* ==========================================================================
   5. RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 950px) {
    .recap-content-wrapper {
        flex-direction: column;
    }
    .sidebar-section {
        width: 100%;
        position: static;
    }
}