/* Simulateur Photovoltaïque - Styles */

.simulateur-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.formspree-contact-form-container {
    position: relative;
    min-height: 600px;
    background-color: white !important;
}

.simulateur-form {
    background-color: white;
}

/* Gestion des étapes du formulaire */
.simulateur-form {
    position: relative;
    overflow: hidden;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background-color: white;
}

.form-step.active {
    position: relative;
    pointer-events: auto;
    background-color: white;
}

/* Indicateur de progression */
.progress-step {
    transition: all 0.3s ease;
}

.progress-circle {
    transition: all 0.3s ease;
}

.progress-line {
    transition: all 0.3s ease;
}

/* Boutons de choix */
.btn-choice {
    transition: all 0.3s ease;
    background-color: white !important;
}

.btn-choice.selected {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

.btn-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f9fafb !important;
}

/* Toggle de mode de consommation */
.mode-toggle {
    transition: all 0.3s ease;
}

.mode-toggle.active {
    background-color: #3b82f6 !important;
    color: white !important;
}

/* Modes de consommation */
.consumption-mode {
    transition: all 0.3s ease;
}

.consumption-mode.hidden {
    display: none;
}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    transition: all 0.3s ease;
    background-color: white !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus {
    border-color: #3b82f6;
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); */
    background-color: white !important;
}

/* Équipements */
.equipment-qty {
    transition: all 0.3s ease;
}

.equipment-qty:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Boutons */
.btn-next,
.btn-prev {
    transition: all 0.3s ease;
}

.btn-next:hover,
.btn-prev:hover {
    transform: translateY(-2px);
}

/* Résultats */
.simulateur-results {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .simulateur-container {
        padding: 10px;
    }
    
    .formspree-contact-form-container {
        padding: 20px !important;
    }
    
    .form-step {
        padding: 0;
    }
    
    .btn-next,
    .btn-prev {
        width: 100%;
    }
}

/* Animations supplémentaires */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utilitaires */
.text-danger {
    color: #ef4444;
}

/* Amélioration des cartes de résultats */
.result-puissance,
.result-production,
.result-economies,
.result-investissement {
    font-weight: 700;
}

/* Style pour les alertes */
.bg-blue-50 {
    background-color: #eff6ff !important;
    opacity: 1 !important;
}

.bg-yellow-50 {
    background-color: #fefce8 !important;
    opacity: 1 !important;
}

.border-blue-100 {
    border-color: #dbeafe !important;
}

.border-yellow-200 {
    border-color: #fef08a !important;
}

/* S'assurer que les backgrounds des cartes sont opaques */
.bg-gray-50 {
    background-color: #f9fafb !important;
    opacity: 1 !important;
}

.bg-gray-100 {
    background-color: #f3f4f6 !important;
    opacity: 1 !important;
}

.bg-white {
    background-color: white !important;
    opacity: 1 !important;
}

/* Amélioration de la lisibilité */
.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

/* Effets de survol sur les boutons de choix */
.btn-choice svg {
    transition: all 0.3s ease;
}

.btn-choice:hover svg {
    transform: scale(1.1);
}

/* Animation pour les résultats */
.result-puissance,
.result-production,
.result-economies,
.result-investissement {
    animation: countUp 0.8s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles pour les étiquettes des champs */
label {
    font-weight: 600;
    color: #1f2937 !important;
    opacity: 1 !important;
}

/* S'assurer que les textes sont bien visibles */
.text-gray-800 {
    color: #1f2937 !important;
    opacity: 1 !important;
}

.text-gray-700 {
    color: #374151 !important;
    opacity: 1 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
    opacity: 1 !important;
}

/* Style pour les petits textes d'aide */
.text-sm {
    font-size: 0.875rem;
}

/* Amélioration des espacements */
.form-group {
    margin-bottom: 1.5rem;
}

/* Style pour les inputs en lecture seule */
input[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
}

/* Amélioration de l'indicateur de progression mobile */
@media (max-width: 768px) {
    .progress-step {
        margin: 0 -5px;
    }
    
    .progress-line {
        width: 20px !important;
    }
}

/* Style pour les messages d'erreur */
.border-red-500 {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Amélioration des transitions pour les étapes */
.form-step {
    transition-property: opacity, transform;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Style pour le bouton CTA final */
a[href*="/contact"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Amélioration de l'accessibilité */
button:focus,
input:focus,
a:focus {
    outline: none;
    /* outline-offset: 2px; */
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Style pour les grilles de résultats */
.grid {
    display: grid;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

/* Amélioration des ombres */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Amélioration des bordures arrondies */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* Style pour les badges et icônes */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* Amélioration des couleurs de texte pour les résultats */
.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-orange-600 {
    color: #ea580c;
}

.text-purple-600 {
    color: #9333ea;
}

.text-yellow-600 {
    color: #ca8a04;
}

/* Amélioration des couleurs de fond */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Style pour les dégradés */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-green-50 {
    --tw-gradient-to: #f0fdf4;
}
