: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;
    background: #f3f4f6;
}

.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.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 video {
    background: #000
}

.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);
}