/* modal-alert.css - Styles pour le modal alert animé */

/* Overlay du modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Container du modal */
.modal-container {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.4s ease;
    overflow: hidden;
    position: relative;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Header du modal avec dégradé */
.modal-header {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #059669 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,50 1000,100 0,100"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Body du modal */
.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 15px;
}

.modal-body .highlight {
    background: linear-gradient(135deg, #f97316, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.modal-info-box {
    background: linear-gradient(135deg, #fff5f0 0%, #f0f9f0 100%);
    border-left: 4px solid #f97316;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.modal-info-box p {
    margin: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-info-box i {
    color: #059669;
    font-size: 1rem;
}

/* Footer du modal */
.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #f97316, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.modal-btn-secondary {
    background: #e0e0e0;
    color: #555;
}

.modal-btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

/* Checkbox "Ne plus afficher" */
.modal-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.modal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f97316;
}

/* Animation de fermeture */
.modal-overlay.hide .modal-container {
    transform: scale(0.7) translateY(50px);
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: none;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation d'entrée pour le contenu */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.show .modal-body,
.modal-overlay.show .modal-footer {
    animation: slideInUp 0.6s ease 0.2s both;
}