/* Corps général */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #d0e7ff, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.msn-window {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    width: 400px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #0078d7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pop-up Modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-height: 80vh; /* Limite la hauteur du pop-up à 80% de la hauteur de l'écran */
    overflow-y: auto; /* Permet de faire défiler le contenu si nécessaire */
}

.modal-content {
    padding: 20px;
    text-align: center;
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    color: #0078d7;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 15px;
    text-align: center;
}

.modal-button {
    background-color: #0078d7;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #005bb5;
}

.msn-header {
    font-size: 20px;
    font-weight: bold;
    color: #0078d7;
    margin-bottom: 20px;
}

.profile-image img {
    display: block;
    margin: 0 auto 15px;
    width: 80px;
    height: 80px;
}

.input-field {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.button {
    background-color: #0078d7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.button:hover {
    background-color: #005bb5;
}

.cancel-button {
    background-color: #e0e0e0;
    color: #333;
}

.cancel-button:hover {
    background-color: #cfcfcf;
}

.footer {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin-top: 15px;
}

.footer a {
    color: #0078d7;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Spinner overlay */
.loading-spinner {
    display: none; /* Masqué initialement */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0078d7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#background-iframe {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: -1; /* Place derrière les autres éléments */
}
