/* css/modals.css */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.35);
}
.modal-content {
    background-color: #fefefe; 
    margin: 10% auto; 
    padding: 18px; 
    border: 1px solid #888;
    width: 95%; 
    max-width: 420px;
    border-radius: 6px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.13); 
    animation: slideInModal 0.2s;
}

@keyframes slideInModal { 
    from {transform: translateY(-30px); opacity: 0;} 
    to {transform: translateY(0); opacity: 1;} 
}

.modal-header { 
    padding-bottom: 7px; 
    border-bottom: 1px solid #eee; 
    font-size: 1.1rem; 
    color: #0056b3; 
    margin-bottom: 10px; 
}
.modal-body { 
    padding: 7px 0; 
}
.modal-footer { 
    padding-top: 10px; 
    border-top: 1px solid #eee; 
    text-align: right; 
}
.modal-footer .btn { 
    margin-left: 0.3rem; 
}
.demo-modal {
    position: fixed; /* Position fixe pour couvrir tout l'écran */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Assure qu'elle est au-dessus de tout */
    animation: fadeInModal 0.3s;
}

.demo-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}


.demo-modal-content h3 {
    color: #d32f2f;
    margin-top: 0;
}