/* ========================================
   STYLES DES MODALS D'URGENCE
   ======================================== */

/* Styles generaux des modals */
.modal-content {
    border-radius: 20px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.modal-header {
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    position: relative;
}

.modal-body {
    padding: 2.5rem;
}

.modal-footer {
    padding: 1.5rem 2.5rem 2rem 2.5rem;
    gap: 1rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* Bouton de fermeture ameliore */
.btn-close {
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.2rem;
    filter: brightness(0.8);
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
}

/* Icones des modals */
.modal-body .mb-4 i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Alertes stylisees */
.alert {
    border-radius: 15px !important;
    border: none !important;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404 !important;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    color: #721c24 !important;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    color: #0c5460 !important;
}

/* Boutons ameliores */
.btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.btn:active {
    transform: translateY(-1px) !important;
}

/* Boutons specifiques */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4449 100%) !important;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
}

/* Bouton d'appel special */
.btn-primary.btn-lg {
    font-size: 1.1rem !important;
    padding: 1rem 2rem !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
}

.btn-primary.btn-lg:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5) !important;
}

/* Titres et textes */
.modal-body h4 {
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 1.5rem !important;
}

.modal-body p {
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.modal-body .text-muted {
    color: #6c757d !important;
}

.modal-body .small {
    font-size: 0.875rem !important;
}

/* Grille et espacement */
.d-grid {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem;
    }
}

/* Animation d'entree du modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Effet de focus pour l'accessibilite */
.btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
}
