/* =========================================================
   Cinematic Hero Slider 61200a0d
   Toutes les valeurs visuelles (couleurs, tailles, espacements)
   viennent des contrôles Elementor. Ce fichier ne pose que la
   structure, les états et les transitions.
   ========================================================= */

.chs-61200a0d-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #000;
}

.chs-61200a0d-container *,
.chs-61200a0d-container *::before,
.chs-61200a0d-container *::after {
    box-sizing: border-box;
}

/* ---------- Scène et diapositives ---------- */

.chs-61200a0d-stage {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.chs-61200a0d-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition:
        opacity var(--chs-transition-duration, 800ms) ease,
        transform var(--chs-transition-duration, 800ms) cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear var(--chs-transition-duration, 800ms);
}

.chs-61200a0d-slide.chs-active,
.chs-61200a0d-slide.chs-out {
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
}

.chs-61200a0d-slide.chs-active {
    opacity: 1;
    z-index: 3;
}

/* Fondu enchaîné (défaut) */
.chs-transition-fade .chs-61200a0d-slide.chs-out {
    opacity: 0;
    z-index: 2;
}

/* Glissement horizontal */
.chs-transition-slide .chs-61200a0d-slide {
    transform: translateX(100%);
    opacity: 1;
}

.chs-transition-slide .chs-61200a0d-slide.chs-active {
    transform: translateX(0);
}

.chs-transition-slide[data-dir="prev"] .chs-61200a0d-slide {
    transform: translateX(-100%);
}

.chs-transition-slide[data-dir="prev"] .chs-61200a0d-slide.chs-active {
    transform: translateX(0);
}

.chs-transition-slide[data-dir="next"] .chs-61200a0d-slide.chs-out {
    transform: translateX(-100%);
    z-index: 2;
}

.chs-transition-slide[data-dir="prev"] .chs-61200a0d-slide.chs-out {
    transform: translateX(100%);
    z-index: 2;
}

/* ---------- Arrière-plan et Ken Burns ---------- */

.chs-61200a0d-bg-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.chs-61200a0d-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

.chs-61200a0d-container[data-zoom="true"] .chs-61200a0d-slide.chs-active .chs-61200a0d-bg {
    animation: chs-61200a0d-kenburns var(--chs-zoom-duration, 9000ms) linear forwards;
}

.chs-61200a0d-container.chs-paused .chs-61200a0d-slide.chs-active .chs-61200a0d-bg {
    animation-play-state: paused;
}

@keyframes chs-61200a0d-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(var(--chs-zoom-scale, 1.08)); }
}

/* ---------- Overlay ---------- */

.chs-61200a0d-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---------- Contenu ---------- */

.chs-61200a0d-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.chs-61200a0d-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    line-height: 1.4;
}

.chs-61200a0d-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: var(--slide-accent, #E63C49);
}

.chs-61200a0d-headline {
    margin: 0;
    padding: 0;
    line-height: 1.05;
}

/* Le surtitre et le titre sont des balises de titre (h3 et h2).
   On neutralise l'héritage du thème pour que les contrôles
   Typographie d'Elementor fassent autorité. */
h3.chs-61200a0d-eyebrow,
h2.chs-61200a0d-headline {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.chs-61200a0d-accent-text {
    color: var(--slide-accent, #E63C49);
}

.chs-61200a0d-subheadline {
    margin: 18px 0 0;
    padding: 0;
    line-height: 1.6;
}

.chs-61200a0d-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.chs-61200a0d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chs-61200a0d-btn-secondary {
    border-style: solid;
    border-width: 1px;
}

/* Le bouton principal suit l'accent de la diapositive au survol */
.chs-61200a0d-btn-primary.chs-accent-hover:hover,
.chs-61200a0d-btn-primary.chs-accent-hover:focus-visible {
    background-color: var(--slide-accent, #E63C49);
}

/* Le contenu de la diapositive sortante ne doit pas rester cliquable */
.chs-61200a0d-slide:not(.chs-active) .chs-61200a0d-content {
    pointer-events: none;
}

/* ---------- Flèches ---------- */

.chs-61200a0d-arrows {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
}

.chs-arrows-top-left     { top: 24px; left: 24px; }
.chs-arrows-top-right    { top: 24px; right: 24px; }
.chs-arrows-bottom-left  { bottom: 24px; left: 24px; }
.chs-arrows-bottom-right { bottom: 24px; right: 24px; }

/* Selecteurs a trois classes : les themes stylisent souvent les
   balises button avec une regle plus specifique qu'une classe seule.
   Sans ce niveau de specificite, leur padding s'ajoute a la taille
   reglee dans Elementor et le bouton refuse de maigrir. */
.chs-61200a0d-container .chs-61200a0d-arrows .chs-61200a0d-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    flex: 0 0 auto;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    /* Meme logique que pour les indicateurs. */
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.chs-61200a0d-container .chs-61200a0d-arrow svg {
    width: 46%;
    height: 46%;
    display: block;
    fill: currentColor;
    pointer-events: none;
}

.chs-61200a0d-arrow:hover {
    opacity: 0.75;
}

.chs-61200a0d-arrow[disabled] {
    opacity: 0.3;
    cursor: default;
}

.chs-61200a0d-arrow:focus-visible,
.chs-61200a0d-indicator:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---------- Indicateurs ---------- */

.chs-61200a0d-indicators {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
}

.chs-indicators-top-left     { top: 30px; left: 24px; }
.chs-indicators-top-right    { top: 30px; right: 24px; }
.chs-indicators-bottom-left  { bottom: 30px; left: 24px; }
.chs-indicators-bottom-right { bottom: 30px; right: 24px; }

.chs-61200a0d-container .chs-61200a0d-indicators .chs-61200a0d-indicator {
    position: relative;
    width: 45px;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    flex: 0 0 auto;
    /* Tout ce qui suit peut gonfler la boite : padding, bordure,
       hauteur de ligne, contraintes minimales. Certains themes les
       imposent en !important sur les balises button, il faut donc
       repondre sur le meme registre. Les dimensions elles-memes ne
       sont volontairement pas forcees ici : elles restent pilotees
       par les controles Elementor. */
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* La barre de progression porte la couleur active.
   Par défaut elle suit l'accent de la diapo en cours, sauf si
   le contrôle "Couleur active" est renseigné dans Elementor. */
.chs-61200a0d-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background-color: var(--chs-current-accent, #E63C49);
}

.chs-61200a0d-indicator.chs-active::after {
    width: 100%;
}

.chs-61200a0d-container[data-autoplay="true"] .chs-61200a0d-indicator.chs-active::after {
    width: 0;
    animation: chs-61200a0d-progress var(--chs-progress-duration, 6500ms) linear forwards;
}

.chs-61200a0d-container.chs-paused .chs-61200a0d-indicator.chs-active::after {
    animation-play-state: paused;
}

@keyframes chs-61200a0d-progress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
    .chs-61200a0d-buttons {
        gap: 10px;
    }

    .chs-arrows-top-left,
    .chs-arrows-bottom-left,
    .chs-indicators-top-left,
    .chs-indicators-bottom-left {
        left: 16px;
    }

    .chs-arrows-top-right,
    .chs-arrows-bottom-right,
    .chs-indicators-top-right,
    .chs-indicators-bottom-right {
        right: 16px;
    }
}

/* ---------- Préférence de mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
    .chs-61200a0d-slide,
    .chs-61200a0d-btn,
    .chs-61200a0d-arrow {
        transition-duration: 0.01ms !important;
    }

    .chs-61200a0d-bg,
    .chs-61200a0d-indicator::after {
        animation: none !important;
    }

    .chs-61200a0d-indicator.chs-active::after {
        width: 100%;
    }
}