/* Style pour les boutons */
.push-button {
    transition: transform 0.1s ease-in-out;
}

.push-button:active {
    transform: scale(0.95) translateY(2px);
}

.push-button:hover {
    background-color: #3b82f6;
}

.push-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.bg-gray-200.push-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.5);
}

/* Style pour les boutons désactivés */
.push-button:disabled {
    background-color: #9ca3af; /* Gris */
    color: #e5e7eb; /* Texte légèrement plus clair */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.push-button:disabled:hover {
    background-color: #9ca3af; /* Reste gris même au survol */
}

.push-button:disabled:active {
    transform: none; /* Pas d'effet d'enfoncement */
}

/* Style pour toutes les cases à cocher */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #3b82f6;
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.1s ease-in-out;
}

input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.3rem;
    top: 0.0rem;
    width: 0.5rem;
    height: 0.75rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:active {
    transform: scale(0.9);
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    outline: none;
}

/* Style pour tous les boutons radio */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.1s ease-in-out;
}

input[type="radio"]:checked {
    border-color: #3b82f6;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.2rem;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background-color: #3b82f6;
}

input[type="radio"]:active {
    transform: scale(0.9);
}

input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    outline: none;
}

/* Style pour les labels */
label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
}

label:active input[type="checkbox"],
label:active input[type="radio"] {
    transform: scale(0.9);
}

/* Animations pour les transitions entre sections */
.section-container {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.section-visible {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les boutons texte désactivés */
button[disabled].text-blue-500 {
    opacity: 0.5;
    cursor: not-allowed;
}

button[disabled].text-blue-500:hover {
    text-decoration: underline;
    color: #3b82f6; /* Reste bleu même au survol quand désactivé */
}

/* Animation pour le popup d'aide */
.help-popup {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.help-popup.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.help-popup-overlay {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.help-popup-overlay.show {
    opacity: 1;
}

/* Footer positioning */
.min-h-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Animation for the popup notification */
.animate-fade-in-out {
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.9); }
    15% { opacity: 1; transform: scale(1); }
    85% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}
