 .container-chariot {
    margin-left: 161px;
    margin-top: 65px;
    margin-bottom: 80px;
}

:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-success: #27ae60;
    --color-light: #f8f9fa;
    --color-border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}


#display-total-cdf {
 
    white-space: nowrap;        /* Empêche le retour à la ligne */
    overflow: hidden;           /* Cache le débordement */
    text-overflow: ellipsis;    /* Si trop long → ... */
    font-variant-numeric: tabular-nums;
    -webkit-text-size-adjust: 100%; /* Fix iOS WebView */
    text-size-adjust: 100%;
}
.container-chariot h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

/* --- Grille Responsive --- */
.panier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.section-devise {
    background: white;
    border-radius: var(--radius);
    padding: 5px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.section-devise h3 {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    color: var(--color-primary);
    justify-content: space-between;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 0px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reduc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.reduc-tag {
    background: #f0f8ff;
    border: 1px solid #d0e7ff;
    color: #2c5282;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.section-usd h3 {
    border-color: var(--text-color);
}

.section-cdf h3 {
    border-color: var(--text-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reduc-badge {
    background: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
    margin-left: auto;
    animation: fadeIn 0.3s ease;
}

/* --- Carte Article --- */
.card-article {
    display: flex;
    gap: 16px;
    background: white;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
}

.card-article:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
}

.article-img img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 2. Zone centrale (NOM + Sélecteur + Livraison en dessous) */
.article-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.controls-row {
    margin: 0 !important; /* Retire les marges qui cassent l'alignement */
}

/* Livraison en bas à gauche de la zone centrale */
.meta-row {
    margin-top: 5px;
}

/* Aligne NOM et Sélecteur sur la même ligne si besoin, 
   ou les empile selon tes préférences */
.article-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-title {
    margin: 0;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.4;
}

.btn-remove {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    transition: var(--transition);
}
.btn-remove {
    position: absolute !important;
    top: 5px;
    right: 8px;
    margin: 0;
    z-index: 10;
}
.btn-remove:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* --- Contrôles Quantité --- */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.qty-control {
    display: flex;
    background: var(--color-light);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.qty-control button {
    border: none;
    background: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-primary);
    transition: var(--transition);
    width: 36px;
}

.qty-control button:hover {
    background: var(--color-light);
}

.qty-control input {
    width: 40px;
    border: none;
    text-align: center;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.line-total {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-color);
}

/* --- Badges --- */
.preorder-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.preorder-badge.full {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
}

.reduc-badge {
    background: var(--color-success);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
    margin-left: auto;
}

/* --- Formulaire Checkout --- */
.checkout-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 20px;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.checkout-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.close-checkout {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: var(--transition);
}

.close-checkout:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.address-fields {
    display: flex;
    gap: 12px;
}

.totals-summary {
    background: var(--color-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
}

.total-row:first-child {
    color: var(--color-success);
    font-weight: 600;
}

.total-row:last-child {
    color: var(--color-secondary);
    font-weight: 600;
}

/* --- Boutons Paiement --- */
.btn-pay {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-usd {
    background: var(--color-success);
    color: white;
}

.btn-cdf {
    background: var(--color-secondary);
    color: white;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-pay:active {
    transform: translateY(0);
}

/* --- Bouton Flottant Mobile --- */
.btn-float-mobile {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-float-mobile:hover {
    transform: scale(1.1);
    background: var(--color-secondary);
}

.badge-total {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Panier Vide --- */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-back:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .panier-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-section {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container-chariot {
    margin-left: 0px !important;
    margin-top: 0px !important;
}
    .panier-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-devise {
        padding: 16px;
    }

    .checkout-section {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        z-index: 1002;
        animation: slideIn 0.3s ease-out;
        max-height: 85vh;
        overflow-y: auto;
    }

    .checkout-section.active {
        display: block;
    }

    .close-checkout {
        display: block;
    }

    .btn-float-mobile {
        display: flex;
    }

    .address-fields {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container-chariot {
        padding: 15px;
    }
    
    .card-article {
        text-align: center;
        flex-direction: row !important;
    }

    .article-img img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    }

    .controls-row {
        flex-direction: column;
        gap: 15px;
    }

    .qty-control {
        align-self: center;
    }
}

/* Reset et Conteneur */
.empty-cart-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-color);
}

/* Illustration Layout */
.illustration-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

/* Le Chariot (SVG pour la précision) */
.cart-svg svg {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

/* Le Mannequin CSS */
.mannequin {
    position: relative;
    width: 60px;
    height: 130px;
}

.head {
    width: 30px;
    height: 30px;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    margin: 0 auto;
}

.body {
    width: 35px;
    height: 50px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    margin: 5px auto 0;
    background: #eef2f3;
}

.arm {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #2c3e50;
    top: 45px;
}

.arm-left {
    left: -20px;
    transform: rotate(-30deg);
    /* Main qui montre le panier */
}

.arm-right {
    right: -20px;
    transform: rotate(30deg);
}

.leg {
    position: absolute;
    width: 2px;
    height: 40px;
    background: #2c3e50;
    bottom: 0;
}

.leg-left {
    left: 20px;
}

.leg-right {
    right: 20px;
}

/* Textes */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 15px 0 30px;
}

.arrow-down {
    display: block;
    font-size: 1.5rem;
    color: #008080;
    animation: bounce 2s infinite;
}

/* Bouton vert dégradé */
.btn-shopping {
    background: none;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-shopping:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 128, 128, 0.4);
}

/* Animation de la flèche */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


