/* ============================================
   MODAL + TOAST - Ajout au panier
   ============================================ */

/* ===== OVERLAY ===== */
.article-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.article-modal-overlay.active {
    display: flex;
}

/* ===== MODAL ===== */
.article-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.article-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}
.article-modal-close:hover { background: #e5e7eb; }

.article-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.article-modal-img {
    width: 90px; height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    background: #f9f9f9;
}
.article-modal-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}
.article-modal-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2563eb;
}

/* ===== OPTIONS ===== */
.article-modal-options {
    margin-bottom: 1.5rem;
}
.article-modal-option-group {
    margin-bottom: 1.2rem;
}
.article-modal-option-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}
.article-modal-option-values {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.article-modal-option-value {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a2e;
}
.article-modal-option-value:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.article-modal-option-value.selected {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ===== QUANTITÉ ===== */
.article-modal-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.article-modal-qty button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-modal-qty button:hover { background: #f3f4f6; border-color: #2563eb; }
.article-modal-qty input {
    width: 60px; height: 40px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

/* ===== BOUTON AJOUTER ===== */
.article-modal-add-btn {
    width: 100%;
    padding: 0.85rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.article-modal-add-btn:hover { background: #2563eb; }
.article-modal-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.article-modal-add-btn svg { width: 18px; height: 18px; }

/* ===== TOAST ===== */
.article-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a1a2e;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.article-toast.show {
    transform: translateX(0);
}
.article-toast svg {
    width: 20px; height: 20px;
    color: #10b981;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .article-modal {
        padding: 1.5rem;
        border-radius: 14px 14px 0 0;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        max-width: 100%;
        animation: modalSlideUp 0.3s ease;
    }
    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .article-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
        justify-content: center;
    }
}