/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 95px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Blog Cards Hover Effects - Remove date translation */
.blog-grid .card:hover .blog-date,
.blog-grid .card:hover .author,
.blog-wrapper .card:hover .blog-date,
.blog-wrapper .card:hover .author,
.blog-grid .card:hover .blog-date-bottom,
.blog-wrapper .card:hover .blog-date-bottom {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.blog-grid .card .blog-date,
.blog-grid .card .author,
.blog-wrapper .card .blog-date,
.blog-wrapper .card .author,
.blog-grid .card .blog-date-bottom,
.blog-wrapper .card .blog-date-bottom {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Remove all transform effects on card hover for date elements */
.grid-item .card:hover .author,
.grid-item .card:hover .blog-date,
.grid-item .card:hover .blog-date-bottom,
.grid-item .card:hover span,
.grid-item .card:hover i {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Ensure stable position for all date/author elements */
.card .blog-date-bottom,
.card .author,
.card .blog-date {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Cloudflare Turnstile Styles */
.cf-turnstile {
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.cf-turnstile.is-invalid {
    border: 2px solid #dc3545;text-shadow: 8px 1px 15px black;
    border-radius: 4px;
    padding: 2px;
}

/* Mini Quote Cloudflare Turnstile specific styles */
.bg-very-light-gray .cf-turnstile {
    max-width: calc(100% + 20px) !important;
    width: calc(100% + 30px) !important;
    transform: scale(0.85);
    transform-origin: left center;
}

/* Ensure the turnstile widget doesn't overflow in smalRrl containers */
.contact-form-style-01 .cf-turnstile {
    max-width: 100% !important;
    width: 100% !important;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 576px) {
    .bg-very-light-gray .cf-turnstile {
        transform: scale(0.75);
        transform-origin: left center;
    }
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 3px 3px 5px #666;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Adjust clients swiper pagination to sit a bit lower (provide extra space and nudge bullets) */
.clients-swiper {
    position: relative;
    padding-bottom: 28px; 
}
.clients-swiper .swiper-pagination {
    position: absolute; 
    left: 50%;
    bottom: 6px !important; 
    transform: translate(-50%, 6px); 
    z-index: 10;
    width: auto;
    text-align: center;
}

/* ensure bullets are inline and centered */
.clients-swiper .swiper-pagination .swiper-pagination-bullets {
    display: inline-block;
}

/* Slider text shadow for better visibility */
.slider-text-shadow {
    opacity: 0.95;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1), 
                 0 0 12px rgba(0, 0, 0, 1), 
                 0 0 25px rgba(0, 0, 0, 0.8), 
                 -2px -2px 4px rgba(0, 0, 0, 0.9), 
                 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* nos-metiers slider sizing tweaks */
.nos-metiers-hero {
    padding-left: 25px;
    padding-right: 25px;
    box-sizing: border-box;
}

.nos-metiers-hero .swiper {
    max-width: calc(100% - 50px);
    margin: 0 auto;
    min-height: 520px;
}

.nos-metiers-hero .swiper-slide {
    min-height: 520px;
    max-height: 720px;
}

.nos-metiers-hero .swiper-slide .container {
    height: 100%;
}

/* center the slider headline text */
.nos-metiers-hero .swiper-slide .row {
    justify-content: center;
    align-items: center;
    min-height: 520px;
    height: 100%;
}

.nos-metiers-hero .swiper-slide .col-xxl-7 {
    text-align: center;
}

.nos-metiers-hero .swiper-slide .col-xxl-7 h1 {
    margin: 0 auto;
    max-width: 680px;
}

@media (max-width: 768px) {
    .nos-metiers-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nos-metiers-hero .swiper,
    .nos-metiers-hero .swiper-slide {
        min-height: 420px;
    }
}

/* Keep page titles on single line */
.page-title-big-typography h1 {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .page-title-big-typography h1 {
        white-space: normal;
        font-size: 2rem;
    }
}
/* Client logos perfect center alignment */
.client-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
}

.client-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.client-box img {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-black {
    filter: brightness(0) saturate(100%) contrast(100%);
}

/* Title Text Shadow for Service Pages */
.text-shadow-small {
    text-shadow: 8px 1px 15px black !important;
}

/* Override for animated titles */
.page-title-big-typography h1.text-shadow-small {
    text-shadow: 8px 1px 15px black !important;
}
