/* Styles personnalisés pour Lead Magnet Diagnostic */

/* Classe pour masquer les éléments */
.hidden {
    display: none !important;
}

/* Animations personnalisées */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Transitions fluides */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Radio et checkbox personnalisés */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #2196F3;
    border-color: #2196F3;
}

/* Labels de formulaire cliquables */
label {
    cursor: pointer;
}

label:hover input[type="radio"] ~ span,
label:hover input[type="checkbox"] ~ span {
    color: #2196F3;
}

/* Utiliser les classes plutôt que :has() pour la compatibilité */
label.selected,
label input[type="radio"]:checked ~ *,
label input[type="checkbox"]:checked ~ * {
    border-color: #2196F3;
}

label.selected {
    background-color: #E3F2FD;
}

/* Boutons avec effet de hover */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

/* Barre de progression personnalisée */
#progress-bar {
    transition: width 0.5s ease-out;
}

/* Loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Questions container */
.question-item {
    animation: fadeIn 0.4s ease-in-out;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Print styles (pour le PDF) */
@media print {
    header, footer, button {
        display: none;
    }
    
    body {
        background: white;
    }
}
