/* Overlay - fond sombre semi-transparent */
.acn-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.acn-overlay.active {
    display: block;
    opacity: 1;
}

/* Notification principale */
/* Notification principale */
.acn-notification {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    max-width: 550px;
    width: 90%;
    opacity: 0;
    transition: all 0.2s ease-out;
}

.acn-notification.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Contenu de la notification */
.acn-content {
    padding: 35px 30px;
    text-align: center;
    position: relative;
}

/* Bouton fermer (X) */
.acn-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    font-weight: 300;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.acn-close:hover {
    color: #333333;
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* Icône de succès avec checkmark */
.acn-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scaleInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

@keyframes scaleInBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Titre */
.acn-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Conteneur des informations produit */
.acn-product-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.acn-product-info:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image du produit */
.acn-product-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Détails du produit */
.acn-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Nom du produit */
.acn-product-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
    line-height: 1.4;
    display: block;
}

/* Prix du produit */
.acn-product-price {
    color: #4CAF50;
    font-size: 16px;
    font-weight: 600;
    display: block;
}

/* Quantité */
.acn-product-quantity {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

/* Conteneur des boutons */
.acn-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Styles des boutons */
.acn-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bouton "Continuer mes achats" */
.acn-btn-continue {
    background: #ffffff;
    color: #495057;
    border: 2px solid #dee2e6;
}

.acn-btn-continue:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Bouton "Voir le panier" */
.acn-btn-cart {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
}

.acn-btn-cart:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .acn-notification {
        width: 95%;
        max-width: 450px;
    }
    
    .acn-content {
        padding: 30px 25px;
    }
    
    .acn-title {
        font-size: 22px;
    }
    
    .acn-icon {
        width: 70px;
        height: 70px;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .acn-notification {
        width: 95%;
    }
    
    .acn-content {
        padding: 25px 20px;
    }
    
    .acn-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .acn-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .acn-buttons {
        flex-direction: column;
    }
    
    .acn-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .acn-product-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .acn-product-image {
        width: 80px;
        height: 80px;
    }
    
    .acn-product-details {
        align-items: center;
    }
}

/* Animation pour les petits écrans */
@media (max-width: 600px) {
    .acn-notification.active {
        transform: translate(-50%, -50%) scale(1);
    }
}