/* 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: 8px;
    border: 1px solid #888;
    width: 100%;
    max-width: 640px;
    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;
}

/* Styles for icon buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    vertical-align: middle;
}

.btn-icon:hover {
    background-color: #f0f0f0;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}