/* =============================================================
   Slideshow SMO v2.0 — Design moderne & professionnel
   Compatible Joomla 6 — SINE2 2026
   ============================================================= */

/* ---- BASE ---- */
.mod-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0d0d;
    line-height: 1;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

/* ---- TRACK ---- */
.mod-slideshow__track {
    display: flex;
    height: 100%;
    will-change: transform;
}

/* ---- SLIDES ---- */
.mod-slideshow__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ---- BACKGROUND IMAGE ---- */
.mod-slideshow__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.mod-slideshow--ken-burns .mod-slideshow__slide.is-active .mod-slideshow__bg {
    transform: scale(1.12);
}

/* ---- COLOUR OVERLAY ---- */
.mod-slideshow__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Bottom gradient — improves readability of controls */
.mod-slideshow__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ---- CONTENT AREA ---- */
.mod-slideshow__content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 88px;
}

.mod-slideshow__inner {
    max-width: 840px;
    width: 100%;
}

.mod-slideshow__content--left   .mod-slideshow__inner { margin-right: auto; }
.mod-slideshow__content--center .mod-slideshow__inner { margin: 0 auto; text-align: center; }
.mod-slideshow__content--right  .mod-slideshow__inner { margin-left: auto; text-align: right; }

/* ---- TEXT ENTRANCE ANIMATIONS ---- */
.mod-slideshow__eyebrow,
.mod-slideshow__title,
.mod-slideshow__btn {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mod-slideshow__slide.is-active .mod-slideshow__eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}
.mod-slideshow__slide.is-active .mod-slideshow__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.42s;
}
.mod-slideshow__slide.is-active .mod-slideshow__btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.60s;
}

/* ---- EYEBROW (subtitle) ---- */
.mod-slideshow__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.mod-slideshow__eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--color-primary, #1ab5c4);
    flex-shrink: 0;
    border-radius: 1px;
}

.mod-slideshow__content--center .mod-slideshow__eyebrow { justify-content: center; }
.mod-slideshow__content--right  .mod-slideshow__eyebrow { justify-content: flex-end; }

.mod-slideshow__content--right .mod-slideshow__eyebrow::before {
    order: 2;
}

.mod-slideshow__eyebrow-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-primary, #1ab5c4);
    line-height: 1;
}

/* ---- TITLE ---- */
.mod-slideshow__title {
    font-size: clamp(1.9rem, 4.8vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 34px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* ---- CTA BUTTON ---- */
.mod-slideshow__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 44px 15px 36px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.35s ease;
    outline-offset: 3px;
}

.mod-slideshow__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary, #1ab5c4);
    transform: translateX(-102%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.mod-slideshow__btn-label,
.mod-slideshow__btn-arrow {
    position: relative;
    z-index: 1;
}

.mod-slideshow__btn-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.mod-slideshow__btn:hover,
.mod-slideshow__btn:focus-visible {
    color: #ffffff;
    border-color: var(--color-primary, #1ab5c4);
    text-decoration: none;
    outline-color: var(--color-primary, #1ab5c4);
}

.mod-slideshow__btn:hover::before,
.mod-slideshow__btn:focus-visible::before {
    transform: translateX(0);
}

.mod-slideshow__btn:hover .mod-slideshow__btn-arrow,
.mod-slideshow__btn:focus-visible .mod-slideshow__btn-arrow {
    transform: translateX(5px);
}

/* ---- NAVIGATION ARROWS ---- */
.mod-slideshow__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.mod-slideshow__arrow:hover {
    background: var(--color-primary, #1ab5c4);
    border-color: var(--color-primary, #1ab5c4);
    transform: translateY(-50%) scale(1.06);
}

.mod-slideshow__arrow:focus-visible {
    outline: 2px solid var(--color-primary, #1ab5c4);
    outline-offset: 2px;
}

.mod-slideshow__arrow--prev { left: 28px; }
.mod-slideshow__arrow--next { right: 28px; }

/* ---- DOT NAVIGATION ---- */
.mod-slideshow__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mod-slideshow__dot {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
    transition:
        width  0.38s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease;
}

.mod-slideshow__dot.is-active {
    width: 48px;
    background: var(--color-primary, #1ab5c4);
}

.mod-slideshow__dot:focus-visible {
    outline: 2px solid var(--color-primary, #1ab5c4);
    outline-offset: 2px;
}

/* ---- SLIDE COUNTER ---- */
.mod-slideshow__counter {
    position: absolute;
    bottom: 24px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}

.mod-slideshow__counter-current {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.mod-slideshow__counter-sep {
    display: block;
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* ---- PROGRESS BAR ---- */
.mod-slideshow__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-primary, #1ab5c4);
    z-index: 15;
    transition: none;
}

/* ================================================================
   TRANSITION EFFECTS
   ================================================================ */

/* Fade */
.mod-slideshow--fade .mod-slideshow__track  {
    display: block;
    position: relative;
}
.mod-slideshow--fade .mod-slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}
.mod-slideshow--fade .mod-slideshow__slide.is-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* Zoom */
.mod-slideshow--zoom .mod-slideshow__slide.is-entering .mod-slideshow__bg {
    animation: smo-zoom-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes smo-zoom-in {
    from { transform: scale(1.16); }
    to   { transform: scale(1.04); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
    .mod-slideshow__content { padding: 0 64px; }
}

@media (max-width: 992px) {
    .mod-slideshow__content { padding: 0 44px; }
    .mod-slideshow__title   { margin-bottom: 26px; }
}

@media (max-width: 768px) {
    .mod-slideshow__content  { padding: 0 24px; }
    .mod-slideshow__arrow    { display: none; }
    .mod-slideshow__counter  { display: none; }
    .mod-slideshow__dots     { bottom: 22px; }
    .mod-slideshow__dot      { width: 18px; }
    .mod-slideshow__dot.is-active { width: 36px; }
}

@media (max-width: 480px) {
    .mod-slideshow__content  { padding: 0 18px; }
    .mod-slideshow__eyebrow  { margin-bottom: 14px; }
    .mod-slideshow__title    { font-size: 1.65rem; margin-bottom: 20px; }
    .mod-slideshow__btn      { padding: 13px 30px 13px 24px; font-size: 10px; }
}

/* ================================================================
   REDUCED MOTION — respect prefers-reduced-motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .mod-slideshow__bg,
    .mod-slideshow__eyebrow,
    .mod-slideshow__title,
    .mod-slideshow__btn,
    .mod-slideshow__btn::before,
    .mod-slideshow__arrow,
    .mod-slideshow__dot,
    .mod-slideshow--fade .mod-slideshow__slide {
        transition: none !important;
        animation: none !important;
    }
}
