.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid #056877;
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}


@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

.error-visible {
    display: block;
    animation: shake 0.5s; /* Animation de secousse en 0.5s */
}

.error-invisible {
    display: none;
}

#form-error {
	display: none;
}

.error-box {
    display: flex;
    align-items: center;
    background-color: #ffebeb;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 10px;
    border-radius: 5px;
    max-width: 600px;
    font-family: Arial, sans-serif;
    margin: 10px 0px;
    animation: shake 0.5s; /* Animation de secousse en 0.5s */
}
.error-icon {
    margin-right: 10px;
    font-size: 20px;
}

.alert-container {
    background-color: #ffcc00;
    color: #333;
    border-left: 6px solid #d9534f;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}
.alert-container h2 {
    font-size: 18px;
    margin-top: 0;
}
.alert-container p {
    margin: 10px 0;
    font-size: 14px;
}
.alert-container .highlight {
    font-weight: bold;
    color: #d9534f;
}
.alert-container .important {
    color: #d9534f;
    font-weight: bold;
}

input, select, textarea {
    font-size: 16px !important;
}

button { touch-action: manipulation; }