/* Variables par défaut (écrasées par Elementor via --chs-*) */
.chs {
    --chs-h: 520px;
    --chs-panel-w: 38%;
    --chs-panel-h: auto;
    --chs-panel-off: 4%;
    --chs-panel-voff: 4%;
    --chs-badge-top: 72px;
    --chs-badge-right: 24px;
    --chs-badge-size: 72px;
    --chs-dot-size: 10px;
    --chs-dot-radius: 9999px;
    --chs-dot-bg: rgba(255,255,255,.6);
    --chs-dot-bg-active: #fff;
}

/* Layout de base */
.chs {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    --chs-tx: 0;
    --chs-ty: 0;
}
.chs .chs__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.chs .chs__track {
    display: flex;
    height: 100%;
    transition: transform .5s ease;
    will-change: transform;
}
.chs .chs__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}
.chs .chs__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.chs .chs__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* panneau (bloc bleu) */
.chs .chs__panel {
    position: absolute;
    color: #fff;
    width: 38%;
    min-height: auto;
    z-index: 2;
    pointer-events: auto;
    box-sizing: border-box;
    transform: translate(var(--chs-tx), var(--chs-ty));
}

/* Alignement vertical */
.chs.chs--v-middle .chs__panel {
    top: 50%;
    bottom: auto;
    --chs-ty: -50%;
}
.chs.chs--v-top .chs__panel {
    top: 0;
    bottom: auto;
    --chs-ty: 0;
}
.chs.chs--v-bottom .chs__panel {
    bottom: 0;
    top: auto;
    --chs-ty: 0;
}

/* Alignement horizontal */
.chs.chs--pos-left .chs__panel {
    left: 0;
    right: auto;
    --chs-tx: 0;
}
.chs.chs--pos-center .chs__panel {
    left: 50%;
    right: auto;
    --chs-tx: -50%;
}
.chs.chs--pos-right .chs__panel {
    right: 0;
    left: auto;
    --chs-tx: 0;
}




/* contenu du panneau : padding défini par Elementor + nav fixée en bas */
.chs .chs__panel-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.chs .chs__title {
    margin: 0;
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(28px, 4vw, 56px);
}
.chs .chs__text {
    margin: 0;
    font-size: clamp(14px, 1.6vw, 18px);
    opacity: .95;
}
.chs .chs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    color: #2c3e50;
}

/* BADGE (image) — haut-droit DU SLIDE (dans l'image) */
.chs .chs__badge {
    position: absolute;
    top: var(--chs-badge-top);
    right: var(--chs-badge-right);
    width: var(--chs-badge-size);
    height: auto;
    z-index: 3;
    pointer-events: none;
}
.chs .chs__badge img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Icônes sous le bouton — FIXÉES en bas à droite du bloc bleu */
/* Icônes sous le bouton */
.chs .chs__panel-navrow {
    position: absolute;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    bottom: var(--chs-panel-nav-bottom, 16px);
}

/* Côté gauche / droite */
.chs.chs--picto-right .chs__panel-navrow {
    right: 0;
    left: auto;
}
.chs.chs--picto-left .chs__panel-navrow {
    left: 0;
    right: auto;
}

/* Sous le bloc (en-dehors) */
.chs.chs--picto-outside .chs__panel-navrow {
    bottom: calc(-1 * var(--chs-panel-nav-bottom, 16px));
}

/* Boutons pictos */
.chs .chs__panel-dotnav {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
}

/* Icône FA ou SVG à l’intérieur */
.chs .chs__panel-dotnav i,
.chs .chs__panel-dotnav svg {
    width: 1em;
    height: 1em;
    display: inline-block;
}


.chs .chs__panel-dotnav {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* Flèches latérales */
.chs .chs__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: none;
    background: rgba(0,0,0,.35);
    color: #fff;
    cursor: pointer;
}
.chs .chs__nav--prev { left: 10px; }
.chs .chs__nav--next { right: 10px; }

/* Dots */
.chs .chs__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex !important;
    gap: 10px;
    z-index: 5;
    pointer-events: auto;
}
.chs .chs__dots .chs__dot {
    width: var(--chs-dot-size);
    height: var(--chs-dot-size);
    border-radius: var(--chs-dot-radius);
    background: var(--chs-dot-bg);
    display: block;
    padding: 0;
    line-height: 0;
    border: none;
    cursor: pointer;
}
.chs .chs__dots .chs__dot[aria-current="true"] {
    background: var(--chs-dot-bg-active);
}
