/* =====================================================
   SMOOTH ANIMATIONS - Déménagement Pro
   ===================================================== */

/* Global smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Smooth page transitions */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Enhanced button hover effects */
.tt_button,
.tt_primary_button,
.tt_secondary_button {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.tt_button:hover,
.tt_primary_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.35) !important;
}

.tt_button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tt_button:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth image hover effects */
.featured-image img,
.side-featured-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease !important;
}

.featured-image:hover img,
.side-featured-wrapper:hover img {
    transform: scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Enhanced card animations */
.key-icon-box,
.pss-container,
.team-member,
.pricing-table {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease !important;
}

.key-icon-box:hover,
.pss-container:hover {
    transform: translateY(-8px);
}

/* Smooth scroll reveal animations */
.kd-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.kd-animated.kd-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade animations */
.fadeIn {
    animation: smoothFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fadeInUp {
    animation: smoothFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fadeInLeft {
    animation: smoothFadeInLeft 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fadeInRight {
    animation: smoothFadeInRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes smoothFadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom animation */
.zoomIn {
    animation: smoothZoomIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes smoothZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation smooth transitions */
.navbar-default {
    transition: background-color 0.4s ease,
                box-shadow 0.4s ease,
                padding 0.4s ease !important;
}

.navbar-default.navbar-shrink {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav > li > a {
    transition: color 0.3s ease,
                background-color 0.3s ease !important;
    position: relative;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0099ff;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after {
    width: 100%;
    left: 0;
}

/* Process steps smooth animations */
.kd-process-steps .pss-item {
    transition: transform 0.4s ease;
}

.kd-process-steps .pss-item:hover {
    transform: translateY(-5px);
}

.pss-step-number {
    transition: transform 0.4s ease,
                box-shadow 0.4s ease !important;
}

.pss-item:hover .pss-step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.4);
}

/* Form inputs smooth focus */
.wpcf7-form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.2s ease !important;
}

.wpcf7-form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #0099ff !important;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15) !important;
    transform: translateY(-2px);
}

/* Back to top button */
.back-to-top {
    transition: opacity 0.4s ease,
                transform 0.4s ease,
                background-color 0.3s ease !important;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #0077cc !important;
}

/* Fixed call button animation */
.fixedbutton2 {
    animation: pulse-glow 2s infinite !important;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(0, 153, 255, 0.3);
    }
}

/* Hero section parallax-like effect */
.vc_row-has-fill {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .vc_row-has-fill {
        background-attachment: scroll;
    }
}

/* Section content stagger animation */
.feature-sections-wrapper section {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.feature-sections-wrapper section:nth-child(1) { animation-delay: 0.1s; }
.feature-sections-wrapper section:nth-child(2) { animation-delay: 0.2s; }
.feature-sections-wrapper section:nth-child(3) { animation-delay: 0.3s; }
.feature-sections-wrapper section:nth-child(4) { animation-delay: 0.4s; }

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

/* Links smooth underline */
a {
    transition: color 0.3s ease !important;
}

/* Footer links */
.footer_widget a,
#menu-additional-links a {
    transition: color 0.3s ease,
                padding-left 0.3s ease !important;
}

.footer_widget a:hover,
#menu-additional-links a:hover {
    padding-left: 5px;
    color: #0099ff !important;
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Smooth overlay transitions */
.kd-overlay {
    transition: opacity 0.5s ease !important;
}

/* Counter animations */
.kd_counter_number {
    transition: transform 0.3s ease;
}

.kd_counter_number:hover {
    transform: scale(1.05);
}

/* Icon hover effects */
.fa,
.iconsmind-Chair,
.iconsmind-Shop-2,
.iconsmind-Affiliate {
    transition: transform 0.3s ease,
                color 0.3s ease !important;
}

.key-icon-box:hover .fa,
.side-content-wrapper:hover .fa {
    transform: scale(1.2) rotate(5deg);
}

/* Mobile menu smooth */
@media (max-width: 960px) {
    #main-menu {
        transition: max-height 0.4s ease,
                    opacity 0.3s ease !important;
    }

    .navbar-toggle {
        transition: transform 0.3s ease;
    }

    .navbar-toggle:hover {
        transform: scale(1.1);
    }
}

/* Cookie alert smooth */
.cookiealert {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.5s ease !important;
}

/* Performance optimization */
.kd-animated,
.tt_button,
.featured-image img {
    will-change: transform, opacity;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =====================================================
   CONTENT STYLING - Pages Communes
   ===================================================== */

/* Content area styling */
.wpb_text_column h2 {
    color: #0099ff;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0099ff;
}

.wpb_text_column h3 {
    color: #322d53;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.wpb_text_column p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.wpb_text_column ul {
    margin: 20px 0;
    padding-left: 0;
}

.wpb_text_column ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.wpb_text_column ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0099ff;
    font-weight: bold;
}

/* Service highlight box */
.service-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid #0099ff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-highlight h3 {
    margin-top: 0 !important;
    color: #0099ff;
}

/* Blockquote testimonials */
blockquote {
    background: #f8f9fa;
    border-left: 5px solid #0099ff;
    margin: 30px 0;
    padding: 25px 30px;
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    border-radius: 0 10px 10px 0;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 60px;
    color: #0099ff;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Commune links grid */
.commune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.commune-grid a {
    display: block;
    padding: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #322d53;
    transition: all 0.3s ease;
    text-align: center;
}

.commune-grid a:hover {
    background: #0099ff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.3);
}

/* Hero section improvements */
.vc_row-has-fill .kd-overlay {
    transition: background-color 0.5s ease;
}

/* Contact form improvements */
#contact-form-box {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .wpb_text_column h2 {
        font-size: 24px;
    }

    .wpb_text_column h3 {
        font-size: 20px;
    }

    .service-highlight {
        padding: 20px;
    }

    blockquote {
        padding: 20px;
    }

    blockquote::before {
        font-size: 40px;
    }
}

/* Section separators */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #0099ff, transparent);
    margin: 40px 0;
    border: none;
}
