/* Styles personnalisés pour L'Office du Déménagement */

/* Variables CSS */
:root {
    --primary-color: #228B22;
    --primary-dark: #006400;
    --secondary-color: #FF8C00;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
}

/* Styles généraux */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Gradient pour les sections hero */
.hero-gradient {
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.9) 0%, rgba(0, 100, 0, 0.9) 100%);
}

/* Animations */
.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Animations de chargement et scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de chargement de la page */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Mode sombre pour le loader */
.dark .page-loader {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo {
    width: 192px;
    height: auto;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleFloat 3s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.dark .loader-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Styles pour le texte du loader */
.loader-content .text-green-600 {
    color: #059669;
}

.dark .loader-content .text-green-600 {
    color: #10b981;
}

.loader-content .text-gray-500 {
    color: #6b7280;
}

.dark .loader-content .text-gray-500 {
    color: #9ca3af;
}

/* Animation des éléments au scroll avec délais */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .animate-on-scroll {
        transform: translateY(0);
        transition: opacity 0.8s ease-out;
    }
    .stat-counter {
        transform: scale(1);
        transition: opacity 0.8s ease-out;
    }
}

/* Styles pour les champs anti-spam invisibles */
.hny-847, .hny-271, .hny-998, .ktb-432, .ajw-765, .zp9-123, .mxr-456, .qvt-789 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}
    .service-card-animate {
        transform: translateY(0) scale(1);
        transition: opacity 1.2s ease-out;
    }
    .premium-section-fade {
        transform: translateY(0);
        transition: opacity 1.5s ease-out;
    }
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* Animation des statistiques */
.stat-counter {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s ease-out;
}

.stat-counter.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation des cartes de service */
.service-card-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1.2s ease-out;
}

.service-card-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation très douce pour la section Service Premium */
.premium-section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.5s ease-out;
}

.premium-section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation du hero */
.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: titleSlideIn 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: titleSlideIn 1s ease-out 0.7s forwards;
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation des badges */
.badge-animate {
    opacity: 0;
    transform: scale(0.8);
    animation: badgePopIn 0.6s ease-out forwards;
}

.badge-animate:nth-child(1) {
    animation-delay: 0.9s;
}

.badge-animate:nth-child(2) {
    animation-delay: 1.1s;
}

.badge-animate:nth-child(3) {
    animation-delay: 1.3s;
}

@keyframes badgePopIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation des boutons */
.button-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: buttonSlideIn 0.8s ease-out 1.5s forwards;
}

@keyframes buttonSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes de service */
.service-card {
    transition: all 0.6s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 8px -5px rgba(0, 0, 0, 0.03);
}

/* Cartes de témoignages */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
}

/* Boutons personnalisés */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #FF7F00;
    border-color: #FF7F00;
    transform: translateY(-2px);
}

/* Navigation sticky */
.navbar-sticky {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Correction navbar - éviter débordement horizontal */
nav {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

/* Container navbar responsive */
nav .container {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Formulaires */
.form-control {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
    outline: none;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

/* Calculateur de volume */
.calculator-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.room-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.room-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.1);
}

.room-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(34, 139, 34, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-padding-sm {
        padding: 40px 0;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
}

/* Utilitaires */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* FAQ Styles */
.faq-toggle {
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background-color: #f8fafc;
}

.faq-content {
    transition: all 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

/* Gradient radial pour les icônes de thème */
.bg-gradient-radial {
    background-image: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Classes Tailwind personnalisées pour les gradients radiaux */
.from-blue-100 {
    --tw-gradient-from: #dbeafe;
    --tw-gradient-to: rgb(219 234 254 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-purple-50 {
    --tw-gradient-to: rgb(250 245 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), #faf5ff, var(--tw-gradient-to);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.hover\:from-blue-200:hover {
    --tw-gradient-from: #bfdbfe;
    --tw-gradient-to: rgb(191 219 254 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:via-purple-100:hover {
    --tw-gradient-to: rgb(243 232 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), #f3e8ff, var(--tw-gradient-to);
}

/* Mode sombre */
.dark .dark\:from-gray-700 {
    --tw-gradient-from: #374151;
    --tw-gradient-to: rgb(55 65 81 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .dark\:via-gray-600 {
    --tw-gradient-to: rgb(75 85 99 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), #4b5563, var(--tw-gradient-to);
}

.dark .dark\:hover\:from-gray-600:hover {
    --tw-gradient-from: #4b5563;
    --tw-gradient-to: rgb(75 85 99 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark .dark\:hover\:via-gray-500:hover {
    --tw-gradient-to: rgb(107 114 128 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), #6b7280, var(--tw-gradient-to);
}
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Augmentation de la taille de police pour mobile uniquement */
@media (max-width: 640px) {
    /* Titres principaux */
    h1 {
        font-size: 1.375rem !important; /* 22px - encore plus grand */
    }
    
    h2 {
        font-size: 1.5rem !important; /* 24px - encore plus grand */
    }
    
    h3 {
        font-size: 1.25rem !important; /* 20px - encore plus grand */
    }
    
    h4 {
        font-size: 1.125rem !important; /* 18px - encore plus grand */
    }
    
    /* Texte de base */
    p {
        font-size: 1rem !important; /* 16px au lieu de 15px */
    }
    
    /* Texte des boutons */
    .btn, button, a[class*="bg-"] {
        font-size: 1rem !important; /* 16px au lieu de 15px */
    }
    
    /* Texte des badges et petits éléments */
    .text-xs {
        font-size: 0.875rem !important; /* 14px au lieu de 13px */
    }
    
    .text-sm {
        font-size: 1rem !important; /* 16px au lieu de 15px */
    }
    
    .text-base {
        font-size: 1.125rem !important; /* 18px au lieu de 16px */
    }
    
    .text-lg {
        font-size: 1.25rem !important; /* 20px au lieu de 19px */
    }
    
    .text-xl {
        font-size: 1.5rem !important; /* 24px au lieu de 21px */
    }
    
    .text-2xl {
        font-size: 1.875rem !important; /* 30px au lieu de 26px */
    }
    
    .text-3xl {
        font-size: 2.25rem !important; /* 36px au lieu de 32px */
    }
    
    .text-4xl {
        font-size: 2.75rem !important; /* 44px au lieu de 40px */
    }
    
    /* Éléments spécifiques de la page d'accueil */
    .hero-title {
        font-size: 2.25rem !important; /* 36px - encore plus grand */
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important; /* 18px - encore plus grand */
        line-height: 1.4 !important;
    }
    
    /* Statistiques */
    .stat-counter {
        font-size: 3rem !important; /* 48px - encore plus grand pour les chiffres */
    }
    
    /* Cartes de service */
    .service-card h3 {
        font-size: 1.25rem !important; /* 20px - encore plus grand */
    }
    
    .service-card p {
        font-size: 1rem !important; /* 16px - encore plus grand */
        line-height: 1.5 !important;
    }
    
    /* Témoignages */
    .testimonial-card h4 {
        font-size: 1.125rem !important; /* 18px - encore plus grand */
    }
    
    .testimonial-card p {
        font-size: 1rem !important; /* 16px - encore plus grand */
    }
    
    /* FAQ */
    .faq-toggle {
        font-size: 1.125rem !important; /* 18px - encore plus grand */
    }
    
    /* Navigation mobile */
    nav a {
        font-size: 1rem !important; /* 16px - encore plus grand */
    }
}