/* ==========================================================
   UW-CAROUSEL — remplace progressivement Owl Carousel
========================================================== */

.uw-carousel {
    padding-bottom: 40px;
}

/* Le bundle Swiper 11 (assets/css/vendor/swiper-bundle.min.css) ne pose plus
   min-height:inherit sur .swiper-wrapper (présent dans l'ancien thème Swiper,
   css/style.css ~L7088, fichier plus chargé). Sans cette
   règle, .intro2-carousel (min-height défini par breakpoint, carousel.css)
   ne transmet pas ce plancher à son .swiper-wrapper, qui peut alors
   s'effondrer à 0 avant que les images ne soient chargées. */
.swiper-wrapper {
    min-height: inherit;
}

.uw-carousel .swiper-pagination {
    bottom: 0;
}

.uw-carousel .swiper-pagination-bullet-active {
    background: var(--couleur);
}

/* section_carousel.inc.php / section_carousel_right.inc.php : reprend le
   débordement visuel (dernière carte partiellement visible) qui vivait sur
   .project__carousel .owl-stage-outer dans css/style.css. Owl mettait la
   marge négative sur .owl-stage-outer (un enfant), tandis que .owl-nav était
   un FRÈRE du root, non affecté. Ici .project-carousel-nav est un enfant du
   root Swiper : la marge négative doit donc rester sur .swiper-wrapper (qui
   ne contient que les diapositives), pas sur le root, sinon l'ancrage
   `right` des flèches se décale avec. Le root garde seulement overflow:
   visible, nécessaire pour que le débordement du wrapper reste visible. */
.project__carousel.swiper {
    overflow: visible;
}

.project__carousel .swiper-wrapper {
    margin-right: -120px;
}

/* section_intro2.inc.php / section_intro3.inc.php : partagent la même classe
   .intro2-carousel (déjà le cas avant migration) — repris depuis
   .intro2-carousel .owl-stage-outer/.owl-stage/.owl-prev/.owl-next de
   css/style.css, sans dupliquer entre les deux fichiers PHP. */
.intro2-carousel .swiper-wrapper {
    height: 100%;
}

.split-image-col .intro2-carousel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100% !important;
    min-height: 280px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .split-image-col .intro2-carousel {
        min-height: 400px;
    }
}

@media (min-width: 992px) {
    .section-intro-2 .intro2-carousel {
        min-height: 80vh;
    }
}

@media (max-width: 991px) {
    .section-intro-2 .row {
        flex-direction: column-reverse;
    }
}

.intro2-carousel-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.intro2-carousel-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.intro2-carousel-prev,
.intro2-carousel-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: #333 !important;
    font: 400 20px/45px 'FontAwesome' !important;
    transition: background-color 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
}

.intro2-carousel-prev:hover,
.intro2-carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

.intro2-carousel-prev {
    left: 15px !important;
}

.intro2-carousel-next {
    right: 15px !important;
}

.intro2-carousel-prev::before {
    content: '\f104' !important;
}

.intro2-carousel-next::before {
    content: '\f105' !important;
}

/* page_generique.inc.php (renderArticleCarousel + bloc niveau 2) : ce
   composant n'avait pas de flèches dédiées, il héritait du thème générique
   Owl par défaut (.owl-prev/.owl-next bruts de css/style.css) — repris ici
   à l'identique pour .article-carousel-prev/-next. */
.article-carousel-prev,
.article-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    font: 400 20px/38px 'FontAwesome';
    color: var(--couleur4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.article-carousel-prev:hover,
.article-carousel-next:hover {
    color: var(--couleur);
    background: rgba(255, 255, 255, 0.95);
}

.article-carousel-prev {
    left: 5px;
}

.article-carousel-prev::before {
    content: '\f104';
}

.article-carousel-next {
    right: 5px;
}

.article-carousel-next::before {
    content: '\f105';
}

/* fiche_technique.inc.php (#fiche_carousel) : même thème Owl générique par
   défaut, aucune surcharge dédiée dans l'original. */
.fiche-carousel-prev,
.fiche-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    font: 400 20px/38px 'FontAwesome';
    color: var(--couleur4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.fiche-carousel-prev:hover,
.fiche-carousel-next:hover {
    color: var(--couleur);
    background: rgba(255, 255, 255, 0.95);
}

.fiche-carousel-prev {
    left: 5px;
}

.fiche-carousel-prev::before {
    content: '\f104';
}

.fiche-carousel-next {
    right: 5px;
}

.fiche-carousel-next::before {
    content: '\f105';
}

/* fiche_technique.inc.php (.connexe-carousel, produits associés) : thème Owl
   générique + décalage vertical des flèches (top:44%, ratio de la carte). */
.connexe-carousel-prev,
.connexe-carousel-next {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    cursor: pointer;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    font: 400 20px/38px 'FontAwesome';
    color: var(--couleur4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.connexe-carousel-prev:hover,
.connexe-carousel-next:hover {
    color: var(--couleur);
    background: rgba(255, 255, 255, 0.95);
}

.connexe-carousel-prev {
    left: 5px;
}

.connexe-carousel-prev::before {
    content: '\f104';
}

.connexe-carousel-next {
    right: 5px;
}

.connexe-carousel-next::before {
    content: '\f105';
}

/* ── Repris de css/style.css (2026-09-29) : sections "3 colonnes" /
   "carrousel à droite" (section_carousel.inc.php, section_carousel_right.inc.php) ── */
.section-wrapper {
    min-height: 70vh;
    align-items: center;
}

.carousel-column {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.carousel-head {
    margin-bottom: 30px;
}

.project__carousel {
    transform: translateX(0);
}

.uw-carousel-section {
    overflow: hidden;
}

.project__carousel .item {
    padding: 0 6px;
}

.project-card {
    width: 100%;
}

.project-card-body {
    padding: 20px 0 0 0;
}

.image-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.image-desc {
    color: #555;
    line-height: 1.6;
}

.image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
}

.image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block !important;
    transition: transform 0.5s ease;
}

.project-card:hover .image-box img {
    transform: scale(1.06);
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--couleur);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color .3s;
}

.btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--couleur);
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
    transition: border-color .3s, color .3s, background .3s;
}

.btn-discover:hover {
    color: var(--couleur2sex);
}

.btn-discover:hover .btn-circle {
    border-color: var(--couleur2);
    color: var(--couleur2);
}

.bic-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-decoration: none;
    border-radius: 3px;
    border: 2px solid var(--couleur);
    transition: background .25s, color .25s, border-color .25s;
}

.bic-btn-solid {
    background: var(--couleur);
    color: #fff;
}

.bic-btn-solid:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

@media (max-width: 991px) {
    .section-wrapper {
        min-height: auto;
    }

    .carousel-column {
        padding: 30px 0;
    }

    .project-card {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .bic-btn {
        width: 100%;
        text-align: center;
    }
}
