/* ============================
   Variables du thème
   ============================ */
:root {
    /* Couleurs du thème */
    --wp--preset--color--primary-color: #09174A;
    --wp--preset--color--learn-more-color: #0D9EEF;
    --wp--preset--color--accent-color: #9FABBB99;
    --wp--preset--color--black-color: #141414;
    --wp--preset--color--light-background-color: #E8EBEF;
    --wp--preset--color--gray-color: #D4D4D4;
    --wp--preset--color--white-color: #FFFFFF;
    --wp--preset--color--yellow-color: #CDFB17;
    
    /* Variables personnalisées */
    --transition-default: all 0.3s ease-in-out;
    --border-radius-button: 26px;
    --font-family-roboto: 'Roboto', sans-serif;
    --z-index-modal: 999999;
    --z-index-header: 100;
    --z-index-mobile-menu: 9999;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family-roboto);
}

body {
    height: 100vh;
    height: -webkit-fill-available;
    font-weight: 400;
}

/* ============================
   Styles généraux
   ============================ */

body h1.wp-block-kadence-advancedheading,
body h2.wp-block-kadence-advancedheading,
body h3.wp-block-kadence-advancedheading {
    padding-top: 0;
    margin-top: 0;
}

/* WordPress block button applique un effet de transition et transforme le curseur en pointeur. */
.wp-block-button__link {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.kb-button.btn-search-top-nav {
    border: none;
}

body .wp-site-blocks {
    display: grid;
    min-height: initial;
    grid-template-rows: auto;
    height: auto;
    min-height: 100vh;
    z-index: 10;
}

body .wp-site-blocks header {
    grid-area: 1 / 1 / 2 / 2;
    z-index: 30;
}

body .wp-site-blocks main {
    grid-area: 1 / 1 / 3 / 2;
    z-index: 20;
}

body .wp-site-blocks main .entry-content {
    --wp--preset--spacing--60: 0;
}

/* Footer image alignment fix */
.entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
    position: relative;
    overflow: hidden;
}

body .wp-site-blocks footer {
    grid-area: 3 / 1 / 4 / 2;
    z-index: 20;
    margin-block-start: 0;

/* ============================
   Social icons (inline SVG)
   ============================ */
.wstyler-social-icons {
    --wstyler-social-color: var(--wp--preset--color--white-color);
    --wstyler-social-hover-color: var(--wp--preset--color--yellow-color);
    --wstyler-social-size: 24px;
    --wstyler-social-gap: var(--wp--preset--spacing--20, 12px);
    --wstyler-social-justify: flex-start;
    --wstyler-social-width: auto;
    --wstyler-social-flex: 0 0 auto;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: var(--wstyler-social-justify) !important;
    gap: var(--wstyler-social-gap) !important;
    width: var(--wstyler-social-width);
    flex: var(--wstyler-social-flex);
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.wstyler-social-icons .wstyler-social-icons__item {
    display: flex;
    align-items: center;
    width: auto !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
}

.wstyler-social-icons .wstyler-social-icons__link {
    color: var(--wstyler-social-color) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}

.wstyler-social-icons .wstyler-social-icons__link:hover,
.wstyler-social-icons .wstyler-social-icons__link:focus-visible {
    color: var(--wstyler-social-hover-color);
}

.wstyler-social-icons .wstyler-social-icons__svg {
    width: auto;
    height: var(--wstyler-social-size);
    display: block;
}

/* Make icons follow link color */
.wstyler-social-icons .wstyler-social-icons__svg path,
.wstyler-social-icons .wstyler-social-icons__svg circle,
.wstyler-social-icons .wstyler-social-icons__svg rect,
.wstyler-social-icons .wstyler-social-icons__svg polygon,
.wstyler-social-icons .wstyler-social-icons__svg polyline,
.wstyler-social-icons .wstyler-social-icons__svg ellipse {
    fill: currentColor !important;
}

/* Only apply stroke color to elements that already use stroke */
.wstyler-social-icons .wstyler-social-icons__svg [stroke] {
    stroke: currentColor !important;
}

/* Preserve explicit fill="none" when present */
.wstyler-social-icons .wstyler-social-icons__svg [fill="none"] {
    fill: none !important;
}
}

.kb-button.no-animation:not(.kb-btn-global-inherit) {
    transition: none;
}

/* ============================
   En-tête (Header)
   ============================ */

.header-top-banner nav.wp-block-navigation ul li a:hover {
    color: #9fabbb;
}

/* En-tête collant (sticky) */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-index-header);
}

header.sticky .header-top-banner {
    display: none;
}

header.sticky .header-main-desktop {
    background-color: var(--wp--preset--color--white-color);
}

header.sticky .header-main-desktop>.kt-row-column-wrap {
    padding: 0;
}

.logo-mobile-header a {
    display: flex;
    align-items: center;
    align-content: center;
}

.kb-row-layout-wrap.header-main-content .kt-row-column-wrap.kt-tab-layout-inherit {
    grid-template-columns: auto auto auto;
}

@media screen and (max-width: 1025px) {
    .kb-row-layout-wrap.header-main-content .kt-row-column-wrap.kt-tab-layout-inherit {
        grid-template-columns: auto auto;
    }
}

body .jet-mobile-menu__template-content .kb-row-layout-wrap.one-col .kt-row-column-wrap {
    grid-template-columns: auto;
}

/* ============================
   Fil d'Ariane (Breadcrumb)
   ============================ */

ol.breadcrumb {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-family-roboto);
}

ol.breadcrumb a {
    text-decoration: none;
}

ol.breadcrumb a:hover {
    color: #CDFB17;
}

/* ============================
   Menu de navigation (Jet Mega Menu)
   ============================ */

/* Menu desktop */
.jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-mega-container__inner {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    border-radius: 0 0 8px 8px;
}

/* Menu mobile - Toggle button */
body .jet-mobile-menu__toggle {
    /*color: var(--wp--preset--color--white-color);*/
}

/* Menu mobile - Largeur du conteneur */
body .jet-mobile-menu__container {
    width: 100%;
}

/* Menu mobile - Z-index des éléments */
body .jet-mobile-menu__toggle-icon,
body .header-main-mobile .logo-mobile-header,
body .header-main-mobile .wp-block-kadence-singlebtn,
body .header-main-mobile .kb-advanced-image-link,
body .header-main-mobile .header-mobile-logo,
body .header-main-mobile .header-mobile-logo figure,
body .open-search-modal {
    z-index: var(--z-index-mobile-menu);
}

body .jet-mobile-menu-cover {
    display: none;
}

body .jet-mega-menu.jet-mega-menu--layout-horizontal.jet-mega-menu--roll-up .jet-mega-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

body .jet-mobile-menu__instance--slide-out-layout .jet-mobile-menu__container .jet-mobile-menu__container-inner {
    padding: 0;
    background-color: var(--wp--preset--color--primary-color);
    width: 100vw;
    top: 85px;
    bottom: 0;
    position: fixed;
    overflow: scroll;
}

body.admin-bar header:not(.sticky) .jet-mobile-menu__instance--slide-out-layout .jet-mobile-menu__container .jet-mobile-menu__container-inner {
    top: 126px;
}

body .jet-mobile-menu__controls {
    border-bottom: 1px solid var(--wp--preset--color--primary-color);
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #fff;
    flex-direction: row-reverse;
}

body .jet-mobile-menu__controls .jet-mobile-menu__breadcrumbs {
    justify-content: flex-end;
}

body .jet-mobile-menu__body {
    margin: 0 10px 10px;
    padding: 0;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list {
    justify-content: center;
    column-gap: 24px;
}

body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item .jet-mega-menu-item__inner {
    padding: 0;
}

body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item .jet-mega-menu-item__inner .jet-mega-menu-item__link {
    text-decoration: none;
}

body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item .jet-mega-menu-item__inner .jet-mega-menu-item__link .jet-mega-menu-item__title .jet-mega-menu-item__label {
    color: var(--wp--preset--color--primary-color);
    font-family: var(--font-family-roboto);
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    text-transform: uppercase;
    text-decoration: none;
}

/* Sous-menu de navigation */
body .jet-mega-menu-mega-container__inner .kt-row-column-wrap .wp-block-kadence-column nav.wp-block-navigation ul li a {
    color: var(--wp--preset--color--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-family-roboto);
}

body .jet-mega-menu-mega-container__inner .kt-row-column-wrap .wp-block-kadence-column:nth-child(2) nav.wp-block-navigation ul li a {
    font-size: 22px;
    font-weight: 600;
}

body .jet-mega-menu-mega-container__inner .kt-row-column-wrap .wp-block-kadence-column:nth-child(3) nav.wp-block-navigation ul li a {
    font-size: 16px;
    font-weight: 500;
}

body .jet-mega-menu-mega-container__inner .kt-row-column-wrap .wp-block-kadence-column nav.wp-block-navigation ul li a:hover {
    color: var(--wp--preset--color--cyan-bluish-gray);
}

body .jet-mega-menu.jet-mega-menu--animation-fade.jet-mega-menu--layout-horizontal .jet-mega-menu-list .jet-mega-menu-mega-container,
body .jet-mega-menu.jet-mega-menu--animation-fade.jet-mega-menu--layout-horizontal .jet-mega-menu-list .jet-mega-menu-sub-menu {
    transition: none;
}

/* Espacement des icônes sociales dans le menu */
body .jet-mega-menu-mega-container__inner .kt-row-column-wrap .wp-block-kadence-column .wp-block-social-links {
    gap: 10px;
}

/* Séparateur vertical entre les colonnes */
body .jet-mega-menu-mega-container__inner .kt-row-column-wrap .wp-block-kadence-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -2rem;
    height: 100%;
    width: 1px;
    background: #9FABBB;
    display: block;
    margin: auto;
    bottom: 0;
}

/* Ligne de soulignement des éléments de menu */
body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item .jet-mega-menu-item__inner .jet-mega-menu-item__link .jet-mega-menu-item__title .jet-mega-menu-item__label::after {
    content: "";
    width: 100%;
    height: 5px;
    display: block;
    background-color: var(--wp--preset--color--white-color);
}

body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item.jet-mega-current-menu-item .jet-mega-menu-item__inner .jet-mega-menu-item__link .jet-mega-menu-item__title .jet-mega-menu-item__label::after,
body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item.current-menu-ancestor .jet-mega-menu-item__inner .jet-mega-menu-item__link .jet-mega-menu-item__title .jet-mega-menu-item__label::after,
body .jet-mega-menu.jet-mega-menu--layout-horizontal .jet-mega-menu-container .jet-mega-menu-list .jet-mega-menu-item .jet-mega-menu-item__inner .jet-mega-menu-item__link:hover .jet-mega-menu-item__title .jet-mega-menu-item__label::after {
    content: "";
    width: 100%;
    height: 5px;
    display: block;
    background-color: var(--wp--preset--color--primary-color);
    animation: line-animation 0.3s ease-in-out forwards;
}

/* Animation de ligne */
@keyframes line-animation {
    0% { width: 0; }
    100% { width: 100%; }
}

body .jet-mega-menu-mega-container__inner .kb-row-layout-wrap.wp-block-kadence-rowlayout .kt-row-column-wrap {
    grid-template-columns: repeat(3, 1fr);
}

.jet-mobile-menu__controls .jet-mobile-menu__breadcrumbs .jet-mobile-menu__breadcrumb .breadcrumb-label {
    font-family: var(--font-family-roboto);
    font-size: 14px;
    font-weight: 600;
}

/* ============================
   Menu mobile Jet
   ============================ */

body .jet-mobile-menu .jet-mobile-menu__container .jet-mobile-menu__container-inner .jet-mobile-menu__body .jet-mobile-menu__item {
    padding: 0;
}

body .jet-mobile-menu .jet-mobile-menu__container .jet-mobile-menu__container-inner .jet-mobile-menu__body .jet-mobile-menu__item:not(:last-child) {
    padding: 0 0 30px 0;
}

body .jet-mobile-menu .jet-mobile-menu__container .jet-mobile-menu__container-inner .jet-mobile-menu__body .mobile-link {
    text-decoration: none;
}

body .jet-mobile-menu .jet-mobile-menu__container .jet-mobile-menu__container-inner .jet-mobile-menu__body .mobile-link .jet-menu-name {
    color: var(--wp--preset--color--primary-color);
    font-family: var(--font-family-roboto);
    font-size: 24px;
    font-weight: 600;
    line-height: 26px;
    text-decoration: none;
}

body .jet-mobile-menu .jet-dropdown-arrow svg {
    height: 14px;
}

body .header-main-content .wp-block-kadence-advancedbtn .kb-btnwstyler__header_c21f0e-a8.kb-button,
.header-main-content .icon-mobile-contact-menu {
    padding: 0;
    margin: 0;
}

body .wp-block-kadence-advancedbtn .btn-search-top-nav .kb-svg-icon-wrap svg {
    width: 30px;
    height: 40px;
}

body .jet-mobile-menu__toggle-icon svg {
    width: 25px;
}

body .jet-mobile-menu__controls:not(.jet-mobile-menu__controls:has(.jet-mobile-menu__breadcrumbs))+.jet-mobile-menu__body .jet-mobile-menu__items {
    height: calc(100svh - 135px);
    padding: 20px;
}

body .jet-mobile-menu__items {
    height: calc(100svh - 191px);
    padding: 20px;
}

body.admin-bar header:not(.sticky) .jet-mobile-menu__controls:not(.jet-mobile-menu__controls:has(.jet-mobile-menu__breadcrumbs))+.jet-mobile-menu__body .jet-mobile-menu__items {
    height: calc(100svh - 176px);
    padding: 20px;
}

body.admin-bar header:not(.sticky) .jet-mobile-menu__items {
    height: calc(100svh - 233px);
    padding: 20px;
}

body .jet-mobile-menu__template-content nav ul li a {
    color: var(--wp--preset--color--primary-color);
    font-family: var(--font-family-roboto);
    font-size: 24px;
    font-weight: 600;
    line-height: 26px;
    text-decoration: none;
}

/* Bouton de navigation mobile */
body .jet-mobile-menu__items .jet-mobile-menu__item.mobile-nav-btn {
    align-items: center;
}

body .jet-mobile-menu__items .jet-mobile-menu__item.mobile-nav-btn a.mobile-link {
    background: #CDFB17;
    /* border supprimée pour laisser le contrôle au builder */
    border-radius: var(--border-radius-button);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    font-size: 13px;
    font-family: var(--font-family-roboto);
    font-weight: 700;
    text-transform: capitalize;
    color: #fff;
    line-height: 22px;
    transition: var(--transition-default);
}

body .jet-mobile-menu__items .jet-mobile-menu__item.mobile-nav-btn a.mobile-link:hover {
    background: #fff;
}

body .jet-mobile-menu__items .jet-mobile-menu__item.mobile-nav-btn a.mobile-link .jet-menu-label {
    font-size: 13px;
    font-family: var(--font-family-roboto);
    font-weight: 700;
    text-transform: capitalize;
    color: #fff;
    line-height: 22px;
}

body .jet-mobile-menu__items .jet-mobile-menu__item.mobile-nav-btn a.mobile-link:hover .jet-menu-label {
    color: #CDFB17;
}

/* ============================
   Menu Mega Sub
   ============================ */

.mega-sub-menu .mega-menu-row .mega-menu-column:first-child .mega-menu-item.widget_custom_html .custom-html-widget {
    font-size: 26px;
    line-height: 31px;
    font-weight: 500;
    color: var(--wp--preset--color--primary-color);
    width: 100%;
    max-width: 260px;
}

.mega-sub-menu .mega-menu-row .mega-menu-column:first-child .mega-menu-item.widget_custom_html a {
    background-color: var(--wp--preset--color--primary-color);
    /* border-color supprimée pour laisser le contrôle au builder */
    border-radius: 26px;
    border-style: solid;
    border-width: 1px;
    color: var(--wp--preset--color--white-color);
    font-family: var(--font-family-roboto);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 18px;
    padding: 15px 28px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
    display: inline-block;
}

.mega-sub-menu .mega-menu-row .mega-menu-column:first-child .mega-menu-item.widget_custom_html a:hover {
    background-color: var(--wp--preset--color--white-color);
    /* border-color supprimée pour laisser le contrôle au builder */
    color: var(--wp--preset--color--primary-color);
}

/* ============================
   Menu mobile / Offcanvas
   ============================ */

/* Masquer le bouton X dans la première étape du menu mobile */
.jet-mobile-menu__controls:not(.jet-mobile-menu__controls:has(.jet-mobile-menu__breadcrumbs)) {
    display: none;
}

.header-main-mobile .custom-html-widget {
    display: none;
}

/* Correction overflow pour les blocs Kadence */
.wp-block-kadence-rowlayout {
    overflow: visible !important;
}

/* Masquer les flèches du menu déroulant Max Mega Menu */
.mega-indicator {
    display: none !important;
}

.header-top-banner nav .wp-block-navigation-item a.wp-block-navigation-item__content {
    color: var(--wp--preset--color--primary-color);
    text-decoration: none;
    margin-top: 10px;
}

.header-top-banner nav .wp-block-navigation-item a.wp-block-navigation-item__content:after {
    content: "";
    display: block;
    width: 100%;
    height: 7px;
    margin-top: 10px;
}

.header-top-banner nav .wp-block-navigation-item:nth-child(2) a.wp-block-navigation-item__content:after {
    background-color: var(--wp--preset--color--primary-color);
}

/* Supprimer les lignes de soulignement colorées du header-top-banner */
body.page-template-page-landing .header-top-banner nav .wp-block-navigation-item:nth-child(2) a.wp-block-navigation-item__content:after {
    background-color: transparent;
}


.header-top-banner nav .wp-block-navigation-item:first-child a.wp-block-navigation-item__content:after,
.header-top-banner nav .wp-block-navigation-item:last-child a.wp-block-navigation-item__content:after {
    background-color: transparent;
}

/* Soulignement animé pour les éléments de menu actifs */
.header-top-banner .mega-menu-wrap>.mega-menu>.mega-menu-item.mega-current-menu-item>.mega-menu-link::after,
.header-top-banner .mega-menu-wrap>.mega-menu>.mega-menu-item:hover>.mega-menu-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background-color: var(--wp--preset--color--primary-color);
    animation: line-animation 0.3s ease-in-out forwards;
}

/* Séparateur entre colonnes */
@media (min-width: 768px) {
    .wstyler-cell-separator .kt-row-column-wrap .wp-block-kadence-column:not(:last-child):before {
        content: "";
        position: absolute;
        top: 0;
        right: -16px;
        /* col gap 32px */
        height: 100%;
        width: 1px;
        background: var(--wp--preset--color--primary-color);
    }
}


/* Header Table sur deux lignes */
/* responsive tablet entre 970px a 768px */
@media only screen and (min-width: 768px) and (max-width: 970px) {
    .wp-block-kadence-rowlayout.header-main-content .kt-row-column-wrap.kt-has-3-columns.kb-theme-content-width {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr auto;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        grid-template-columns: 1fr 1fr;
    }

    .wp-block-kadence-rowlayout.header-main-content .kt-row-column-wrap.kt-has-3-columns.kb-theme-content-width .kadence-columnwstyler__header_432c4f-30 {
        grid-area: 1 / 1 / 2 / 2;
    }

    .wp-block-kadence-rowlayout.header-main-content .kt-row-column-wrap.kt-has-3-columns.kb-theme-content-width .kadence-columnwstyler__header_eb4d8c-25 {
        grid-area: 2 / 1 / 3 / 3;
    }

    .wp-block-kadence-rowlayout.header-main-content .kt-row-column-wrap.kt-has-3-columns.kb-theme-content-width .kadence-columnwstyler__header_0a5622-58 {
        grid-area: 1 / 2 / 2 / 3;
    }
}

/* align center the gallery block */
.gallery-center-content ul {
    justify-content: center;
}

body .wp-block-kadence-advancedgallery .kadence-blocks-gallery-item .kb-gallery-figure img {
    margin: auto;
    right: 0;
}

/* */
.hero-home-page {
    align-items: start;
    justify-items: stretch;
    align-content: center;
}

.section-popup-video .kt-inside-inner-col {
    height: 100%;
}

.hero-home-page .section-popup-video .kt-inside-inner-col .wp-block-kadence-advancedbtn.btn-row {
    height: 100%;
}


/**
 * Cacher le lien du modal en définissant la propriété d'affichage sur "none", ce qui cache le lien.
 */
.wp-block-kadence-modal .kt-blocks-modal-link {
    display: none;
}

/* splide slider change color */

.kb-splide {
    --splide-pagination-background: var(--wp--preset--color--primary-color);
}

.kt-blocks-carousel .splide__pagination__page.is-active {
    background-color: var(--splide-pagination-background);
}

.kt-blocks-carousel .kt-carousel-dotstyle-outlinedark .splide__pagination__page {
    box-shadow: inset 0 0 0 1px var(--splide-pagination-background);
}

.kt-blocks-carousel .kt-carousel-dotstyle-outlinedark .splide__pagination__page.is-active {
    box-shadow: inset 0 0 0 8px var(--splide-pagination-background);
}

.kb-splide .splide__pagination__page {
    background: var(--splide-pagination-background);
}

.kb-splide .splide__pagination__page.is-active {
    background: var(--splide-pagination-background);
    opacity: 1;
}

.kb-splide.splide--nav>.splide__slider>.splide__track>.splide__list>.splide__slide.is-active,
.kb-splide.splide--nav>.splide__track>.splide__list>.splide__slide.is-active {
    border: 3px solid var(--splide-pagination-background);
}

/* Bouton */
.pdf-open-btn {
    justify-content: space-between;
    text-align: left;
}

body .wp-block-kadence-advancedbtn.kb-buttons-wrap:has(a.pdf-open-btn) {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-open-btn span.kt-btn-inner-text {
    max-width: 80%;
}

/* Yoast Breadcrumbs */

.yoast-breadcrumbs {
    color: var(--wp--preset--color--white-color);
}

.yoast-breadcrumbs a {
    text-decoration: none;
}

.yoast-breadcrumbs a:hover {
    color: var(--wp--preset--color--yellow-color);
}


/* */

:root {
    --glightbox-nav-color: #fff;
}


.goverlay {
    background: rgba(0, 0, 0, 0.9);
}

/* Table border */
.dataTable thead,
#table_1>thead>tr {
    border-bottom: 1px solid var(--wp--preset--color--primary-color);
}

#table_1>thead>tr>th:first-child {
    padding-left: 0;
}

#table_1>tbody>tr>td.column-sku {
    padding-left: 0;
}


/* Modification des listes dans les columns */
body main .kt-inside-inner-col ul {
    /*font-size: 15px;*/
    /*line-height: 21px;*/
    /*font-weight: 400;*/
    /*padding-left: 20px;*/
    /*margin-top: 16px;*/
}

body .kt-inside-inner-col ul.no-bullet {
    list-style: none;
    padding: 0;
}

/* Specifications - Table */

.specifications table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.specifications table tr td {
    border-bottom: 1px solid #D9D9D9;
    /* Ajoutez cette ligne */
    color: var(--wp--preset--color--primary-color);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 0;
}

.specifications table tr td:first-child {
    padding-left: 0;
}

.specifications table tr td:last-child {
    padding-right: 0;
}

/* Supprimez la bordure du dernier élément pour éviter une double bordure */
.specifications table tr:last-child td {
    border-bottom: none;
}


.specifications table tr:not(:last-child) {
    padding: 10px 0;
    border-bottom: 1px solid #D9D9D9;
}

/* Slider - Specificaitons */

.slider-specifications {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    font-size: 20px;
    line-height: 22px;
}

.slider-specification-row {
    display: flex;
    flex-direction: column;
}

.slider-specification-col.label {
    color: #204E94;
}

.slider-specification-col.value {
    color: #121212;
}

/* Kadence block past carousel */
.kb-splide .splide__arrow {
    top: 125px;
    width: 45px;
    height: 45px;
    border-radius: 100%;
}

.kb-splide .splide__arrow svg {
    width: 19px;
    height: 19px;
    fill: var(--wp--preset--color--primary-color);
}

body .wp-block-kadence-postgrid .kadence-post-image {
    border-bottom: 1px solid #9FABBB;
}

.kt-blocks-post-grid-item .entry-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wp-block-kadence-postgrid.test-sieves-accessoires article.kt-blocks-post-grid-item {
    border-radius: 20px;
}

.wp-block-kadence-postgrid.test-sieves-accessoires article.kt-blocks-post-grid-item .kt-blocks-post-grid-item-inner {
    background-color: var(--wp--preset--color--white-color);
}

/* ============================
   Bouton Learn More dans le carrousel
   ============================ */
.kb-splide a.kt-blocks-post-readmore {
    background-color: var(--wp--preset--color--primary-color);
    border: none;
    border-radius: var(--border-radius-button);
    color: var(--wp--preset--color--white-color);
    font-family: var(--font-family-roboto);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    padding: 15px 28px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-default);
}

.kb-splide a.kt-blocks-post-readmore:hover {
    background-color: var(--wp--preset--color--white-color);
    color: var(--wp--preset--color--primary-color);
}

/* Edit kadence block */

/* Tabs */

.kt-tabs-content-wrap {
    transition: all 0.5s ease-in-out;
}

/* Infobox align */
.wp-block-kadence-infobox .kt-blocks-info-box-media-align-right.pdf-open-btn {
    align-items: flex-end;
    justify-content: space-between;
}

/* Ebook PDF styling */
.wp-block-kadence-infobox.ebook .kt-blocks-info-box-media-align-right {
    align-items: flex-end;
    justify-content: space-between;
    max-width: 591px;
}

/* fix problem info box hover on box */
body .wp-block-kadence-infobox.ebook .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore.info-box-link:not(:hover) {
    color: #fff;
    background: #204E94;
    /* border-color supprimée pour laisser le contrôle au builder */
}

body .wp-block-kadence-infobox.recruiters .kt-blocks-info-box-link-wrap:hover .kt-blocks-info-box-learnmore.info-box-link:not(:hover) {
    color: #ffffff;
    background: #09174A;
    border-color: #09174A;
}

@media screen and (max-width: 768px) {
    .wp-block-kadence-infobox.ebook .kt-blocks-info-box-media-align-right {
        flex-direction: column-reverse;
        align-content: center;
        align-items: center;
        max-width: 280px;
    }
}

/* Search modal */

#searchModal {
    font-size: 38px;
    line-height: 1.2;
    text-align: center;
    color: #fff;
}

@media screen and (max-width: 768px) {
    #searchModal {
        font-size: 24px;
    }
}

#searchModal a {
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: #fff;
}

form.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    justify-content: center;
    align-content: center;
    justify-items: center;
    background-color: var(--wp--preset--color--white-color);
    box-shadow: none;
    border: 2px solid var(--wp--preset--color--white-color);
    border-radius: 26px;
    padding: 0;
    overflow: hidden;
    margin-top: 32px;
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
    form.search-form {
        margin-top: 16px;
    }
}

.input-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 10px;
    width: -webkit-fill-available;
}

.input-icons svg {
    width: 100%;
    max-width: 30px;
}

.icon {
    padding: 10px;
    color: green;
    min-width: 50px;
    text-align: center;
}

.input-field {
    width: 100%;
    padding: 10px;
    text-align: center;
}

form.search-form [type="submit"] {
    display: block;
    height: 100%;
    background-color: transparent;
    color: var(--wp--preset--color--primary-color);
    border-radius: 0 26px 26px 0;
    width: 50px;
    border: none;
    font-size: 18px;
    text-transform: uppercase;
    padding: 6px 19px 6px 0px;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
}

form.search-form [type="submit"]:hover {
    color: var(--wp--preset--color--yellow-color);
    transition: all 0.3s ease-in-out;
}

form.search-form [type="submit"] svg {
    width: 24px;
}

form.search-form .search-field {
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    background-color: transparent;
    outline: none;
}

form.search-form .search-field:focus {
    border: none;
    outline: none;
}

/* Modal */

.gslide-media {
    align-items: center;
}

.gslide-media.gslide-inline .ginlined-content .spacing {
    height: 0;
}

@media screen and (max-width: 768px) {
    .gslide-media {
        align-items: flex-start;
    }

    .gslide-media.gslide-inline .ginlined-content .spacing {
        height: 120px;
        min-height: 120px;
        display: block;
    }
}

.gslide-inline {
    background-color: transparent;
}

.gslide-inline .ginlined-content {
    height: fit-content;
}

.glightbox-container .gclose {
    opacity: 1;
}

.glightbox-container .gclose svg {
    width: 25px;
}

.glightbox-mobile .goverlay {
    background: rgba(0, 0, 0, 0.9);
}

.glightbox-container .gclose,
.glightbox-container .gnext,
.glightbox-container .gprev {
    background-color: transparent;
}

.glightbox-container .gclose:hover,
.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
    background-color: transparent;
}

body:not(.wp-admin):not(.block-editor-iframe__body) .fadein img,
body:not(.wp-admin):not(.block-editor-iframe__body) .fadein svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.8s ease-in-out;
}

body:not(.wp-admin):not(.block-editor-iframe__body) .fadein img.loaded,
body:not(.wp-admin):not(.block-editor-iframe__body) .fadein svg.loaded {
    transform: scale(1);
}

body:not(.wp-admin):not(.block-editor-iframe__body) figure a>img {
    transition: all 0.3s ease-in-out;
}

body:not(.wp-admin):not(.block-editor-iframe__body) main .wp-block-kadence-image figure a:hover>img {
    transform: scale(1.05);
    transform-origin: center;
}

@media (max-width: 768px) {

    /* Ajoutez un espace en bas de chaque bloc d'information */
    .wp-block-kadence-infobox {
        margin-bottom: 30px;
    }
}

/* Job Manager */

.job-manager-application-wrapper .application .application_button,
.single_job_listing .application .application_button {
    background-color: var(--wp--preset--color--primary-color);
    color: var(--wp--preset--color--white-color);
    font-family: var(--font-family-roboto);
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
    text-transform: uppercase;
    padding: 15px 28px;
    border-radius: 26px;
    border: 1px solid var(--wp--preset--color--primary-color);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.job-manager-application-wrapper .application .application_button:hover,
.single_job_listing .application .application_button:hover {
    background-color: var(--wp--preset--color--white-color);
    color: var(--wp--preset--color--primary-color);
    text-decoration: none;
}

/* Job listing */

body main .kt-inside-inner-col ul.job_listings {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

body .job_listings li.job_listing {
    border: 1px solid var(--wp--preset--color--primary-color);
    border-radius: 8px;
    padding: 20px;
    display: grid;
    gap: 0 20px;
    grid-template-columns: auto auto;
    grid-template-areas:
        "title view-job"
        "desc view-job"
        "location view-job";
    grid-template-rows: auto auto auto;
    align-items: start;
    justify-items: stretch;
}

body main .kt-inside-inner-col .job_listings > h3 {
    font-size: 30px;
    line-height: 36px;
    color: var(--wp--preset--color--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* responsive mobile vertical */

@media screen and (max-width: 768px) {
    body .job_listings li.job_listing {
        grid-template-columns: auto;
        grid-template-areas:
            "title"
            "desc"
            "location"
            "view-job";
        grid-template-rows: auto auto auto auto;
        align-items: start;
        justify-items: start;
    }
}

body .job_listings li.job_listing h3.title {
    margin: 0;
    padding: 0;
    grid-area: title;
    font-size: 24px;
}

body .job_listings li.job_listing h3.title a {
    margin: 0;
    padding: 0;
}

body .job_listings li.job_listing .desc {
    margin: 0;
    padding: 0;
    grid-area: desc;
}

body .job_listings li.job_listing .btn-view-job {
    background-color: var(--wp--preset--color--primary-color);
    border: 1px solid var(--wp--preset--color--primary-color);
    border-radius: 26px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-family-roboto);
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    display: flex;
    grid-area: view-job;
}

body .job_listings li.job_listing .btn-view-job:focus,
body .job_listings li.job_listing .btn-view-job:hover {
    background-color: var(--wp--preset--color--white-color);
    color: var(--wp--preset--color--primary-color);
}

@media screen and (max-width: 768px) {
    body .job_listings li.job_listing .btn-view-job {
        margin-top: 10px;
    }
}

body .job_listings li.job_listing .location {
    grid-area: location;
    display: flex;
    margin: 10px 0 0;
    gap: 0;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

body .job_listings li.job_listing .location::before {
    background-image: url(../images/icon-map.svg);
    display: inline-block;
    width: 16px;
    height: 25px;
    margin-right: 10px;
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
}

.rp4wp-related-job_listing>ul li.job_listing a:focus,
.rp4wp-related-job_listing>ul li.job_listing a:hover,
.rp4wp-related-job_listing>ul li.no_job_listings_found a:focus,
.rp4wp-related-job_listing>ul li.no_job_listings_found a:hover,
ul.job_listings li.job_listing a:focus,
ul.job_listings li.job_listing a:hover,
ul.job_listings li.no_job_listings_found a:focus,
ul.job_listings li.no_job_listings_found a:hover {
    background-color: inherit;
}

/* Spec table horizontal responsive */

.wstyler-table-horizontal-title {
    font-size: 24px;
    line-height: 28px;
    color: var(--wp--preset--color--primary-color);
    margin-bottom: 10px;
}

.wstyler-table-horizontal {
    border-collapse: collapse;
    display: table;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    width: 100%;
}

.wstyler-table-horizontal .row {
    border-bottom: 1px solid #E8EBEF;
    display: table-row;
}

.wstyler-table-horizontal .row:last-child {
    border-bottom: none;
}

.wstyler-table-horizontal .row.header {
    color: #9FABBB;
}

.wstyler-table-horizontal .row .cell {
    display: table-cell;
    vertical-align: bottom;
    padding: 10px;
}

.wstyler-table-horizontal .row.header .cell {
    vertical-align: bottom;
    padding-bottom: 20px;
}

.wstyler-table-horizontal .row.header .cell:first-child {
    min-width: 140px;
}

.wstyler-table-horizontal .row.header .cell:nth-child(2) {
    min-width: 120px;
}

@media screen and (max-width: 900px) {

    .wstyler-table-horizontal,
    .wstyler-table-horizontal .row,
    .wstyler-table-horizontal .row .cell {
        display: block;
    }

    .wstyler-table-horizontal .row {
        padding: 10px 0;
    }

    .wstyler-table-horizontal .row.header,
    .wstyler-table-horizontal .row .cell {
        padding: 6px 0;
    }

    .wstyler-table-horizontal .row.header .cell {
        display: none;
    }

    .wstyler-table-horizontal .row .cell:before {
        color: var(--wp--preset--color--primary-color);
        content: attr(data-title);
        display: block;
        font-size: 10px;
        font-weight: bold;
        line-height: 10px;
        margin-bottom: 3px;
        min-width: 98px;
        text-transform: uppercase;
    }

}

/* Table single product */

body .wp-block-table.table-single-product {
    border-collapse: collapse;
    width: 100%;
}

body .wp-block-table.table-single-product th {
    background-color: #F8F9FA;
    color: #9FABBB;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-transform: uppercase;
    padding: 10px;
    text-align: left;
}

body .wp-block-table.table-single-product td {
    border-bottom: 1px solid #E8EBEF;
    color: #121212;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    padding: 10px;
}

body .wp-block-table.table-single-product tr:last-child td {
    border-bottom: none;
}

/* Table single product responsive */

@media screen and (max-width: 900px) {
    body .wp-block-table.table-single-product {
        display: block;
    }

    body .wp-block-table.table-single-product th,
    body .wp-block-table.table-single-product td {
        display: block;
        padding: 10px 0;
    }

    body .wp-block-table.table-single-product th {
        display: none;
    }

    body .wp-block-table.table-single-product td:before {
        color: #9FABBB;
        content: attr(data-title);
        display: block;
        font-size: 10px;
        font-weight: bold;
        line-height: 10px;
        margin-bottom: 3px;
        text-transform: uppercase;
    }
}

/* *** Contact Page *** */

/* people  */

body .wp-block-kadence-advancedgallery.people .kb-gallery-ul.kb-gallery-type-grid figcaption.kadence-blocks-gallery-item__caption {
    font-size: 26px;
    font-weight: 600;
    line-height: 34px;
    text-align: left;
    color: #09174A;
}

body .wp-block-kadence-advancedgallery.people .kb-gallery-ul.kb-gallery-type-grid figcaption.kadence-blocks-gallery-item__caption span {
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #09174A;
}

/* testimonials */

.testimonials .kt-row-column-wrap .wp-block-kadence-column .kt-inside-inner-col {
    display: flex;
    flex-direction: column;
}

.testimonials .kt-row-column-wrap .wp-block-kadence-column .kt-inside-inner-col .wp-block-kadence-advancedheading:nth-child(3) {
    flex-grow: 1;
}

/* Footer */

footer h3 a,
footer nav.wp-block-navigation ul.wp-block-navigation li.wp-block-navigation-link a {
    text-decoration: none;
    line-height: 1.2em;
}

footer h3 a:hover,
footer nav.wp-block-navigation ul.wp-block-navigation li.wp-block-navigation-link a:hover {
    color: #9fabbb;
}


:root {
    --hsf-font-size: 14px;
    --hsf-color: #333333;
    --hsf-background-color: #ffffff;
    --hsf-border-color: #d1d5db;
    --hsf-border-radius: 4px;
    --hsf-border-width: 1px;
    --hsf-border-style: solid;
    --hsf-padding: 12px 16px;
    --hsf-button-color: #ffffff;
    --hsf-button-background-color: #9FABB2;
    --hsf-button-hover-background: #8a979e;
    --hsf-button-padding: 12px 24px;
    --hsf-error-color: #dc2626;
    --hsf-row-spacing: 20px; /* Réduit pour un espacement plus cohérent avec l'image */
    --hsf-label-color: #374151;
    --hsf-required-color: #dc2626;
    --hsf-dropdown-bg: #f9fafb;
    --hsf-focus-border: #3b82f6;
    --hsf-focus-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    --hsf-navy-blue: #1a365d;
}

/* Container principal */
.hs-custom-style {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* Espacement entre les champs */
.hs-dependent-field {
    margin-bottom: var(--hsf-row-spacing);
}

/* Disposition en grille pour prénom/nom */
.hs_firstname,
.hs_lastname {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
    margin-bottom: var(--hsf-row-spacing);
}

.hs_firstname {
    margin-right: 16px;
}

/* Disposition en grille pour email/téléphone */
.hs_email,
.hs_0-2\/phone {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
    margin-bottom: var(--hsf-row-spacing);
}

.hs_upload_drawings_or_any_other_relevant_files {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    margin-bottom: var(--hsf-row-spacing);
}

.hs_0-2\/name {
    display: inline-block;
    vertical-align: top;
    margin-bottom: var(--hsf-row-spacing);
    width: 100%;
}

.hs_email {
    margin-right: 16px;
}

/* Labels */
.hs-form-field label {
    font-family: var(--hsf-font-family);
    font-size: var(--hsf-font-size);
    font-weight: 500;
    color: var(--hsf-label-color);
    display: block;
    margin-bottom: 8px;
}

/* Indicateur requis */
.hs-form-required {
    color: var(--hsf-required-color);
    font-weight: normal;
    margin-left: 2px;
}

/* Champs d'entrée génériques */
.hs-input {
    font-family: var(--hsf-font-family);
    font-size: var(--hsf-font-size);
    color: var(--hsf-color);
    background-color: var(--hsf-background-color);
    border: var(--hsf-border-width) var(--hsf-border-style) var(--hsf-border-color);
    border-radius: var(--hsf-border-radius);
    padding: var(--hsf-padding);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.hs-input:hover {
    border-color: #9ca3af;
}

.hs-input:focus {
    border-color: var(--hsf-focus-border);
    box-shadow: var(--hsf-focus-shadow);
    outline: none;
}

/* Champs dropdown avec espacement */
.hs-form-field select,
select.hs-input {
    cursor: pointer;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: var(--hsf-border-width) var(--hsf-border-style) var(--hsf-border-color);
    border-radius: var(--hsf-border-radius);
    font-family: var(--hsf-font-family);
    font-size: var(--hsf-font-size);
    color: var(--hsf-color);
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin-bottom: var(--hsf-row-spacing);
}

select.hs-input:hover {
    border-color: #9ca3af;
}

select.hs-input:focus {
    border-color: var(--hsf-focus-border);
    box-shadow: var(--hsf-focus-shadow);
    outline: none;
}

/* Section radio avec images */
.hs_images_contact_form {
    text-align: center;
    margin-bottom: var(--hsf-row-spacing);
}

.hs_images_contact_form .inputs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Cacher les boutons radio mais garder les images */
.hs_images_contact_form input[type="radio"] {
    display: none;
}

.hs_images_contact_form img {
    object-fit: cover;
    border: 3px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

/* Cacher les puces de <li> explicitement */
.hs_images_contact_form__wire_mesh___filters_ .inputs-list,
.hs-images_contact_form__other_ .inputs-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hs_images_contact_form__wire_mesh___filters_ .inputs-list li,
.hs-images_contact_form__other_ .inputs-list li {
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Cacher complètement l'input radio */
.hs_images_contact_form__wire_mesh___filters_ input[type="radio"],
.hs-images_contact_form__other_ input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

 

/* Zone de texte */
textarea.hs-input {
    resize: vertical;
    min-height: 100px;
    font-family: var(--hsf-font-family);
}

/* Messages d'erreur */
.hs-error-msgs {
    color: var(--hsf-error-color);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 400;
}

/* Bouton de soumission */
.hs_submit {
    text-align: right;
    margin-top: 30px;
}

.btn-primary {
    font-family: var(--hsf-font-family);
    font-size: var(--hsf-font-size);
    font-weight: 600;
    color: var(--hsf-button-color);
    background-color: var(--hsf-button-background-color);
    border-radius: var(--hsf-border-radius);
    padding: var(--hsf-button-padding);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-primary:hover {
    background-color: var(--hsf-button-hover-background);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(159, 171, 178, 0.3);
}

.btn-primary[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hs-custom-style {
        padding: 20px 0;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    /* En mobile, revenir à la disposition verticale */
    .hs_firstname,
    .hs_lastname,
    .hs_email,
    .hs_0-2\/phone {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: var(--hsf-row-spacing);
    }
    
    .hs_images_contact_form .inputs-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hs_submit {
        text-align: center;
    }
    
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .hs_images_contact_form img {
        width: 60px;
        height: 60px;
    }
}

/* Aspect ratio pour les slides Kadence */
.wp-block-kadence-slider .kb-advanced-slide-inner-wrap {
    aspect-ratio: 1;
}

/* === Flèches du carrousel blog === */
.blog-posts .splide__arrows .splide__arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 999 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
}

/* Couleur icône des flèches du carrousel blog */
.blog-posts .splide__arrows .splide__arrow svg {
    fill: #09174A !important; /* bleu du site */
    width: 100%;
    height: 100%;
}

/* Position desktop des flèches */
.blog-posts .splide__arrows .splide__arrow.splide__arrow--prev {
    left: -2.5rem !important;
}
.blog-posts .splide__arrows .splide__arrow.splide__arrow--next {
    right: -2.5rem !important;
}

/* ============================
Modal clean (Wstyler)
============================ */
.wstyler-clean-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.wstyler-clean-modal .entry-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    overflow-y: auto;
    max-height: 90%;
    box-sizing: border-box;
}

/* Correction du layout flex pour le contenu du modal */
.wstyler-modal-content .wp-block-group__inner-container,
.wstyler-modal-content .entry-content {
    flex: 1 1 auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.wstyler-modal-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Bouton de fermeture du modal */
.wstyler-clean-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #09174A;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    z-index: 9;
    border-radius: 50%;
}

/* ============================
Modal overlay
============================ */
.wstyler-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.8) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.wstyler-modal.wstyler-modal-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================
Modal content
============================ */
.wstyler-modal-content {
    background: white !important;
    padding: 30px 30px 0 30px !important; /* plus de padding en bas */
    border-radius: 8px !important;
    max-width: 500px !important;
    width: 90% !important;
    position: relative !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    animation: modalFadeIn 0.3s ease !important;
}

/* ============================
Bouton d'ouverture du modal
============================ */
.wstyler-modal-trigger {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #09174A;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
}
.wstyler-modal-trigger:hover {
    background: #005a87;
}

/* ============================
Bouton de fermeture du modal (autre version)
============================ */
.wstyler-modal-close {
    position: sticky !important;
    top: 10px !important;
    margin-left: auto !important;
    right: 15px !important;
    float: right !important;
    z-index: 100 !important;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.wstyler-modal-close:hover {
    background: #f0f0f0 !important;
}

/* ============================
Contenu interne / blocs WordPress
============================ */
.wstyler-modal .entry-content,
.wstyler-modal .wp-block-group__inner-container {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.6;
}

/* Titres */
.wstyler-modal .wp-block-heading,
.wstyler-modal h1, .wstyler-modal h2, .wstyler-modal h3, 
.wstyler-modal h4, .wstyler-modal h5, .wstyler-modal h6 {
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Paragraphes */
.wstyler-modal .wp-block-paragraph,
.wstyler-modal p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Images */
.wstyler-modal .wp-block-image,
.wstyler-modal .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Galeries et blocs de mise en page */
.wstyler-modal .wp-block-gallery,
.wstyler-modal .wp-block-media-text,
.wstyler-modal .wp-block-columns {
    margin-bottom: 2rem;
}

/* Citations */
.wstyler-modal .wp-block-quote {
    border-left: 4px solid #09174A;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

/* Listes */
.wstyler-modal .wp-block-list,
.wstyler-modal ul, .wstyler-modal ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Boutons */
.wstyler-modal .wp-block-button .wp-block-button__link {
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: inline-block;
}

/* Colonnes responsive */
.wstyler-modal .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

/* Flèches rondes Kadence Advanced Slider avec icône blanche et sans transparence */
.kb-splide.kb-slider-group-arrows .splide__arrows .splide__arrow {
    border-radius: 50% !important;
    background-color: #000 !important; /* fond noir */
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.3s ease !important;
    opacity: 1 !important;
}

.kb-splide.kb-slider-group-arrows .splide__arrows .splide__arrow svg {
    fill: #fff !important; /* flèche blanche */
    width: 16px !important;
    height: 16px !important;
}

.kb-splide.kb-slider-group-arrows .splide__arrows .splide__arrow:hover {
    background-color: #333 !important; /* fond plus clair au survol */
}

/* ============================
Animation du modal
============================ */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================
Styles globaux des boutons
============================ */

/* État par défaut de tous les boutons */
.wp-block-button__link,
.kb-button,
.kb-btn {
    background-color: #CDFB17;
    /* border supprimée pour laisser le contrôle au builder Kadence */
    color: #001F47;
    transition: all 0.3s ease;
    font-family: var(--font-family-roboto);
    padding: 16px 28px;
}

/* État hover de tous les boutons */
.wp-block-button__link:hover,
.kb-button:hover,
.kb-btn:hover {
    background-color: #E8FF8C;
    color: #5880BE;
}

/* ============================
   Landing Page Haver & Boecker - Alignement colonnes
   ============================ */

/* Desktop/Tablet : Grille synchronisée (image, paragraphe, listes, bouton) */
@media (min-width: 768px) {
    .kb-row-layout-id14123_d35ee2-f9 > .kt-row-column-wrap {
        grid-template-rows: auto auto 1fr auto !important;
    }

    .kb-row-layout-id14123_d35ee2-f9 > .kt-row-column-wrap > .wp-block-kadence-column {
        grid-row: 1 / -1;
        display: grid;
        grid-template-rows: subgrid;
    }

    .kb-row-layout-id14123_d35ee2-f9 > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 1 / -1;
    }

    .kb-row-layout-id14123_d35ee2-f9 > .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .wp-block-kadence-advancedbtn {
        align-self: end;
    }
}

/* ============================
   Landing Page Footer Haver & Boecker
   ============================ */

.landing-footer {
    position: relative !important;
    overflow: hidden !important;
}

/* Cibler spécifiquement l'image du footer avec toutes les classes */
.landing-footer .kb-image14123_ba96c8-fe.o-footer__bgimage,
.landing-footer figure.o-footer__bgimage,
figure.kb-image14123_ba96c8-fe.o-footer__bgimage {
    position: absolute !important;
    bottom: -200px !important;
    right: -180px !important;
    z-index: 999 !important;
}

.landing-footer .kb-image14123_ba96c8-fe.o-footer__bgimage img,
.landing-footer figure.o-footer__bgimage img,
figure.kb-image14123_ba96c8-fe.o-footer__bgimage img {
    opacity: 0.1 !important;
    width: 500px !important;
    height: auto !important;
    max-width: none !important;
    display: block !important;
}

/* Assurer que le contenu est au-dessus */
.landing-footer .kt-row-column-wrap,
.landing-footer .wp-block-kadence-column,
.landing-footer .kt-inside-inner-col {
    position: relative !important;
    z-index: 1 !important;
}

footer a {
    color: unset;
}

body .wp-site-blocks .main {
    grid-area: 1 / 1 / 3 / 2;
    z-index: 20;
    margin-block-start: 0 !important;
}

a[itemscope] {
    color: unset;
}

header,
header *,
header *::before,
header *::after {
  font-family: Roboto, sans-serif;  
}


footer,
footer *,
footer *::before,
footer *::after {
  box-sizing: unset !important;
  font-family: Roboto, sans-serif;  
}

/* Cacher les p générés automatiquement dans la sidebar */
.page__sidebar-nav p {
    display:none;
}

#project-list,
#project-list * ,
#project-list *::before,
#project-list *::after {
  box-sizing: border-box;
}

.page__sidebar,
.page__sidebar * ,
.page__sidebar *::before,
.page__sidebar *::after {
  box-sizing: border-box;
}

.caroussel__slide,
.caroussel__slide * ,
.caroussel__slide *::before,
.caroussel__slide *::after {
  box-sizing: border-box;
}

.card-listing,
.card-listing * ,
.card-listing *::before,
.card-listing *::after {
  box-sizing: border-box;
}

.wp-block-glutenblocks-column,
.wp-block-glutenblocks-column * ,
.wp-block-glutenblocks-column *::before,
.wp-block-glutenblocks-column *::after {
  box-sizing: border-box;
}

.application-footer-attachement,
.application-footer-attachement * ,
.application-footer-attachement *::before,
.application-footer-attachement *::after {
  box-sizing: border-box;
}
