/* Gestion des pages s*/
.page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
}

.page.active {
    display: block;
}

/* Gestion des onglets */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Animation du cercle du timer */
.timer-circle {
    stroke-dasharray: 566; /* 2 * π * 90 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

/* Animations et transitions supplémentaires */
.page {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Styles pour les champs invalides */
.border-red-500 {
    border-color: #ef4444 !important;
}

/* Amélioration des focus sur les inputs */
input:focus {
    outline: none;
}

/* Animation pour les boutons */
button {
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Style pour les boutons désactivés */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
    .flex.border-b {
        flex-wrap: wrap;
    }

    .flex.border-b button {
        flex: 1 1 50%;
        min-width: 50%;
    }
}

/* Style pour les messages de validation */
#validation-message {
    transition: all 0.3s ease;
}

/* Animation pour les résultats */
#results-content > div {
    animation: slideInUp 0.5s ease-out;
}

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