/* ── Linov Slider ─────────────────────────────────────────────────────────── */

:root {
    --ls-speed: 600ms;
    --ls-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ls-accent: #F28C28;
    --ls-radius: 0px;
}

/* Conteneur principal */
#linovslider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    line-height: 0;          /* évite le gap sous l'image */
}

/* Piste — les slides sont côte à côte */
.linovslider-track {
    display: flex;
    transition: transform var(--ls-speed) var(--ls-ease);
    will-change: transform;
}

/* Slide individuel */
.linovslider-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

/* Lien cliquable pleine surface */
.linovslider-link {
    display: block;
    position: relative;
    width: 100%;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    outline-offset: -3px;
}

/* Image pleine largeur */
.linovslider-img {
    width: 100%;
    height: 45vh !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: var(--ls-radius);
}

/* Dégradé bas-gauche */
.linovslider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.28) 38%,
        transparent 65%
    );
    border-radius: var(--ls-radius);
}

/* Contenu texte — bas gauche */
.linovslider-content {
    position: absolute;
    bottom: clamp(20px, 4vh, 48px);
    left: clamp(16px, 4vw, 56px);
    line-height: 1;
}

/* Logo — positionné à droite */
.linovslider-icon-wrap {
    position: absolute;
    right: clamp(20px, 5vw, 72px);
    bottom: clamp(20px, 4vh, 48px);
    display: flex;
    align-items: flex-end;
}

/* Spécificité #linovslider pour surpasser .elementor img { height: auto } */
#linovslider .linovslider-icon {
    display: block;
    height: clamp(60px, 8vw, 110px);
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.linovslider-title {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
    text-shadow: none;
}

/* Bouton Découvrir — outline blanc */
.linovslider-btn {
    display: inline-block;
    padding: 9px 24px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1.5px solid #fff;
    border-radius: 0;
    transition: background 200ms, color 200ms;
    line-height: 1.5;
    white-space: nowrap;
}

.linovslider-link:hover .linovslider-btn,
.linovslider-link:focus-visible .linovslider-btn {
    background: #fff;
    color: #111;
}

/* ── Flèches ─────────────────────────────────────────────────────────────── */

.linovslider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 200ms, border-color 200ms, transform 200ms;
    padding: 0;
}

.linovslider-arrow svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.linovslider-prev { left: clamp(12px, 2vw, 28px); }
.linovslider-next { right: clamp(12px, 2vw, 28px); }

.linovslider-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* ── Points ──────────────────────────────────────────────────────────────── */

.linovslider-dots {
    position: absolute;
    bottom: clamp(10px, 2vw, 18px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.linovslider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 250ms, border-color 250ms, transform 250ms;
}

.linovslider-dot.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.25);
}

.linovslider-dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.45);
}

/* ── Accessibilité — focus visible ───────────────────────────────────────── */

.linovslider-arrow:focus-visible,
.linovslider-dot:focus-visible {
    outline: 3px solid var(--ls-accent);
    outline-offset: 2px;
}

/* ── Réduction de mouvement ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .linovslider-track {
        transition: none;
    }
    .linovslider-btn {
        transition: none;
    }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .linovslider-arrow {
        width: 38px;
        height: 38px;
    }
    .linovslider-arrow svg {
        width: 18px;
        height: 18px;
    }
}
