/* Simulateur de prix - Styles CSS */
/* public/css/simulator.css */

/* Animation d'ouverture du popup */
.popup-enter {
    animation: popupEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupEnter {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Glass morphism pour le simulateur */
.glass-effect {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Effets de survol pour les cartes de projet */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Styles pour les options du simulateur */
.project-option,
.payment-option,
.deadline-option,
.feature-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-option:hover > div,
.payment-option:hover > div,
.deadline-option:hover > div,
.feature-option:hover > div {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Styles pour les checkboxes personnalisées */
.checkbox-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover .checkbox-card {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-card {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-card .checkbox-indicator {
    border-color: #3b82f6;
    background: #3b82f6;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-card .checkbox-indicator .checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkbox-card {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.checkmark {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Animation du prix total */
.price-animation {
    animation: priceUpdate 0.4s ease-out;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1.1);
        color: #059669;
    }
    100% {
        transform: scale(1);
    }
}

/* Styles pour les indicateurs radio */
.radio-indicator {
    transition: all 0.3s ease;
}

.radio-indicator div {
    transition: all 0.3s ease;
}

/* Styles pour les transitions des étapes */
.step-content {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.step-content.hidden {
    opacity: 0;
    transform: translateX(20px);
}

/* Styles spécifiques pour les boutons */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #simulator-modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .project-option > div,
    .payment-option > div,
    .deadline-option > div {
        padding: 1rem;
    }

    .feature-option > div {
        padding: 0.75rem;
    }

    .grid.gap-4 {
        gap: 0.75rem;
    }
}

/* Styles pour les éléments décoratifs */
.bg-gradient-decoration {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

/* Animation pour les confettis */
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Styles pour les messages d'état */
.simulator-loading {
    opacity: 0.6;
    pointer-events: none;
}

.simulator-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les tooltips (si nécessaire) */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus pour l'accessibilité clavier */
.project-option:focus-within > div,
.payment-option:focus-within > div,
.deadline-option:focus-within > div,
.feature-option:focus-within > div {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Styles pour les états de validation */
.form-field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.form-field-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

/* Personnalisation des scrollbars */
#simulator-content::-webkit-scrollbar {
    width: 6px;
}

#simulator-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#simulator-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#simulator-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Styles pour les badges de prix */
.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.price-badge.monthly {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Styles pour les étiquettes promotionnelles */
.promo-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    transform: rotate(12deg);
}

/* === CORRECTIONS DESIGN CHECKBOXES === */

/* Réinitialisation complète des styles checkbox */
.feature-option input[type="checkbox"]:checked + div {
    background: #f9fafb !important; /* Gris très clair au lieu du gradient bleu */
    border-color: #d1d5db !important; /* Bordure grise */
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08) !important; /* Ombre douce grise */
}

/* Hover état non sélectionné */
.feature-option:hover > div {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Hover état sélectionné */
.feature-option input[type="checkbox"]:checked + div:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

/* Checkbox indicator - état décoché */
.feature-option .checkbox-indicator {
    background: white !important;
    border-color: #d1d5db !important;
}

/* Checkbox indicator - état coché */
.feature-option input[type="checkbox"]:checked ~ div .checkbox-indicator {
    background: #4b5563 !important; /* Gris foncé */
    border-color: #4b5563 !important;
}

/* Icône checkmark visible */
.feature-option input[type="checkbox"]:checked ~ div .checkbox-indicator i {
    color: white !important;
    display: block !important;
}

/* Texte reste noir sur fond gris clair */
.feature-option input[type="checkbox"]:checked + div .font-semibold,
.feature-option input[type="checkbox"]:checked + div .text-gray-600 {
    color: #111827 !important; /* Noir pour contraste */
}

/* Styles pour le mode sombre (si implémenté) */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(31, 41, 55, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .checkbox-card,
    .bg-white {
        color: #f9fafb !important;
    }
}
