/* =====================================================
   TIBA – Correctifs ciblés (Chrome / responsive)
   ===================================================== */

/* ── 1. SLIDER : forcer la hauteur dans Chrome ──────── */
/* Le bug Chrome : avec fade:true sur Slick, le .slide-item en position:absolute
   n'a pas de hauteur calculée → les sections suivantes remontent dans le slider */

.slider,
.slider .slick-carousel,
.slider .slick-list,
.slider .slick-track {
    display: block !important;
    width: 100%;
}

/* Forcer le conteneur Slick à avoir la même hauteur que le slide actif */
.slider .slick-list {
    overflow: hidden;
}

.slider .slick-slide {
    display: block !important;
}

/* Slide item : position relative + hauteur min pour que Chrome le reconnaisse */
.slider .slide-item,
.slide-item.align-v-h {
    position: relative !important;
    min-height: 500px;
    display: flex !important;
    align-items: center;
    overflow: hidden;
}

/* Image de fond : couvre tout le slide */
.slide-item .bg-img {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.slide-item .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenu au-dessus de l'image */
.slide-item > .container,
.slide-item > .container-fluid {
    position: relative;
    z-index: 2;
}

/* La section slider ne doit jamais déborder vers le bas */
section.slider {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Sections suivantes */
section.contact-info,
section.about-layout2,
section.team-layout2,
section.work-process,
section.blog-grid,
section.services-layout1 {
    position: relative;
    z-index: 1;
    background: #fff;
}

section.work-process,
section.services-layout1 {
    background: inherit;
}

/* ── 2. Contact info boxes ── */
.contact-info .boxes-wrapper {
    margin-left: 0;
    margin-right: 0;
}

.contact-info .contact-box {
    padding: 25px 20px;
    height: 100%;
    box-sizing: border-box;
}

/* ── 3. Services carousel – heading text visible on dark bg ── */
.services-layout1 .heading-light .heading__title,
.services-layout1 .heading-light .heading__desc {
    color: #ffffff;
}

.services-layout1 .heading-light .heading__subtitle {
    color: #f0f0f0;
}

/* ── 4. Images responsive partout ── */
img { max-width: 100%; height: auto; }

/* ── 5. Photo médecin cadrée ── */
.member__img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ── 6. Image activité / article cadrée ── */
.post__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ── 7. About section layout ── */
.about-layout2 .video-banner-layout2 {
    position: relative;
    overflow: hidden;
}

.about-layout2 .video-banner-layout2 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── 8. Mobile responsive ── */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-top: 1px solid #eee;
    }
    .navbar-nav .nav__item {
        border-bottom: 1px solid #f0f0f0;
    }
    .slide-item.align-v-h {
        min-height: 360px;
    }

    /* Contact boxes stacked */
    .contact-info .contact-box {
        margin-bottom: 0;
    }

    /* About section */
    .about-layout2 .col-lg-5,
    .about-layout2 .col-lg-7 {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .slide-item.align-v-h {
        min-height: 300px;
    }

    /* Contact boxes: full width on mobile */
    .contact-info .col-sm-12 {
        margin-bottom: 0;
    }

    .post-item { margin-bottom: 24px; }
    .member    { margin-bottom: 24px; }

    /* Services carousel heading */
    .services-layout1 .heading {
        padding: 0 15px;
    }

    /* Work process section */
    .work-process.pt-130 {
        padding-top: 60px;
    }
}

@media (max-width: 575px) {
    .slide-item.align-v-h {
        min-height: 280px;
    }

    .slide__title {
        font-size: 24px !important;
    }

    .slide__desc {
        font-size: 14px;
    }

    /* Feature items wrap properly */
    .features-list .feature-item {
        margin-bottom: 10px;
    }
}
