/*
 * STYLES POUR EFFETS AVANCÉS - Fastclean.lu
 */

/* ========================================
   WHATSAPP BOUTON FLOTTANT
   ======================================== */

/* Container WhatsApp */
.whatsapp-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Bulle de texte */
.whatsapp-tooltip {
    background: white;
    color: #1e293b;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-container:hover .whatsapp-tooltip,
.whatsapp-container.show-tooltip .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Bouton WhatsApp */
.whatsapp-float {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Badge de notification */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid white;
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* Animation pulse du bouton */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    z-index: -1;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ========================================
   CAROUSEL DE TÉMOIGNAGES
   ======================================== */

.testimonials-section {
    padding: 6rem 0;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
}

.testimonial-rating {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    font-size: 1.1rem;
    color: var(--color-text-heading);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 212, 191, 0.9);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-accent);
    width: 32px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: var(--color-accent);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    padding: 5rem 0;
}

.stat-item {
    padding: 2rem;
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1;
    margin: 0.5rem 0;
}

/* ========================================
   SCROLL BADGE
   ======================================== */

.scroll-badge {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
}

/* ========================================
   TILT EFFECT
   ======================================== */

.glass-card,
.blog-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 80px;
        right: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .whatsapp-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .carousel-prev,
    .carousel-next {
        display: none;
    }

    .testimonial-card {
        padding: 2rem 1rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .scroll-badge {
        font-size: 0.85rem;
        bottom: 20px;
    }
}

/* ========================================
   DARK MODE ADJUSTMENTS
   ======================================== */

body.dark-mode .testimonial-card {
    background: rgba(30, 41, 59, 0.9);
}

body.dark-mode .carousel-btn {
    background: rgba(45, 212, 191, 0.8);
}

body.dark-mode .testimonial-text {
    color: #e2e8f0;
}
