:root {
    --bg: #ffffff;
    --muted: #6b7280;
    --accent: #62b029;
    --container-max: 1100px;
}

/* Styles réutilisables pour le carrousel */
.ISICarousel {
    position: relative;
    width: 100%;
    height: inherit;
    min-height: 320px;
}

.ISICarousel .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.ISICarousel .slide picture {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.ISICarousel .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.ISICarousel .slide img,
.ISICarousel .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ISICarousel .slide--video video {
    object-fit: contain;
    background: #000;
}

.ISICarousel video {
    background: #000
}

.ISICarousel .carousel-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    border: 0;
    border-radius: 999px;
    width: 96px;
    height: 96px;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 24, 37, 0.9), rgba(48, 93, 44, 0.86));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.38);
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ISICarousel .carousel-video-play__icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    text-indent: 4px;
}

.ISICarousel .carousel-video-play:hover {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
}

.ISICarousel .carousel-video-play:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.ISICarousel .slide--video.is-playing .carousel-video-play {
    display: none !important;
}

.ISICarousel .carousel-volume {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.ISICarousel .carousel-volume-trigger {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 15, 23, 0.75);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28);
    transition: transform .18s ease, background-color .18s ease;
}

.ISICarousel .carousel-volume-trigger:hover {
    transform: translateY(-1px);
    background: rgba(8, 15, 23, 0.9);
}

.ISICarousel .carousel-volume-icon {
    font-size: 18px;
    line-height: 1;
}

.ISICarousel .carousel-volume-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 2px);
    min-width: 30px;
    padding: 8px 8px;
    border-radius: 10px;
    background: rgba(8, 15, 23, 0.88);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.33);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease;
}

.ISICarousel .carousel-volume:hover .carousel-volume-panel,
.ISICarousel .carousel-volume:focus-within .carousel-volume-panel,
.ISICarousel .carousel-volume.is-open .carousel-volume-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ISICarousel .carousel-volume-value {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ISICarousel .carousel-volume-range {
    -webkit-appearance: slider-vertical;
    appearance: auto;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 18px;
    height: 116px;
    accent-color: #62b029;
    cursor: pointer;
}

@media screen and (max-width: 720px) {
    .ISICarousel .carousel-video-play {
        width: 84px;
        height: 84px;
    }

    .ISICarousel .carousel-video-play__icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .ISICarousel .carousel-volume {
        right: 10px;
        bottom: 10px;
    }

    .ISICarousel .carousel-volume-range {
        height: 96px;
    }
}

.ISICarousel .carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8px;
}

/* Controls (prev/next) */
.ISICarousel .carousel-controls button {
    background: rgba(8, 15, 23, 0.48);
    color: #fff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 20;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: .95;
    font-weight: 700;
}

.ISICarousel .carousel-controls button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.24);
    outline: 3px solid rgba(98, 176, 41, 0.18);
    outline-offset: 4px;
}

.ISICarousel .carousel-controls button:active {
    transform: translateY(0) scale(.98);
}

.ISICarousel .carousel-controls button[disabled] {
    opacity: .45;
    pointer-events: none
}

/* specific styling for prev/next for easier click area on small screens */
.ISICarousel .carousel-controls .prev,
.ISICarousel .carousel-controls .next {
    width: 48px;
    height: 48px;
    margin: 0 10px;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    padding: .75rem 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 3;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* base color with 0.7 alpha for subtle transparency */
    background: rgba(229, 231, 235, 0.7);
    /* #e5e7eb @ 70% */
    border: 0;
    margin: 0 5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.08);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.carousel-dots button:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
}

.carousel-dots button.active {
    /* use accent color with 0.7 alpha */
    background: rgba(98, 176, 41, 0.7);
    /* var(--accent) at 70% */
    box-shadow: 0 8px 22px rgba(98, 176, 41, 0.12);
}