:root {
    --primary: #1d8dcc;
    --primary-dark: #0077b6;
    --secondary: #f8f9fa;
    --accent: #ffd60a;
    --bg: #f9f8f6;
}

.bg-primary     { background-color: var(--primary) !important; }
.bg-primary-50  { background-color: #e5f6fd !important; } /* ou ajusté à ta palette claire */
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.text-primary   { color: var(--primary) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.border-primary { border-color: var(--primary) !important; }


html, body {
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Correction pour animations/transitions qui débordent */
[data-aos], .aos-animate, .animated, .transition, .before-after-slider {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}


.gradient-bg {
    background: var(--primary);
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#navbar{
    background-color: var(--bg) !important;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.service-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 152, 235, 0.2);
}

.before-after {
    position: relative;
    overflow: hidden;
}

.before-after img {
    transition: all 0.5s ease;
}

.before-after:hover .after-image {
    opacity: 1;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.sticky-nav .main_menu {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}


.hero-overlay {
    background: linear-gradient(rgba(0, 152, 235, 0.7), rgba(0, 119, 182, 0.8));
}

.btn-primary {
    background: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 152, 235, 0.3);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 152, 235, 0.1);
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 152, 235, 0.05);
}

.mobile-menu {
    background-color: var(--bg) !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index:999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 16rem; /* h-64 */
    overflow: hidden;
    cursor: ew-resize;
  }
  .before-after-slider img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    pointer-events: none;
  }
  .before-after-slider .after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.1s;
  }
  .before-after-slider .slider-bar {
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    height: 100%; width: 4px;
    background: #0098eb;
    z-index: 2;
    border-radius: 2px;
    box-shadow: 0 0 0 2px #fff;
  }
  .before-after-slider {
    position: relative;
    width: 100%;
    height: 16rem;
    overflow: hidden;
    cursor: ew-resize;
  }
  .before-after-slider .before-label,
  .before-after-slider .after-label {
    pointer-events: none;
    user-select: none;
  }
  .whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}