/* ═══════════════════════════════════════════════════════════════════════
 * LZ Activités v3 — Design D (Diagonal Cut)
 * Couleurs : #152738 (marine) / #808186 (gris)
 * ═══════════════════════════════════════════════════════════════════════ */

.lz-act {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: #f7f8f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lz-act *,
.lz-act *::before,
.lz-act *::after {
    box-sizing: border-box;
}

.lz-act__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── HEADER ──────────────────────────────────────────────────────────── */
.lz-act__header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.lz-act__kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #808186;
    margin-bottom: 18px;
}

.lz-act__kicker::before,
.lz-act__kicker::after {
    content: '';
    width: 34px;
    height: 1px;
    background: #808186;
    display: inline-block;
}

.lz-act__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #152738;
    margin: 0 0 18px;
}

.lz-act__title-accent {
    color: #808186;
    font-style: italic;
    font-weight: 700;
    position: relative;
}

.lz-act__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 2px;
    background: #808186;
    opacity: 0.4;
}

.lz-act__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #506069;
    margin: 0;
}

/* ─── CARROUSEL CONTAINER ──────────────────────────────────────────────── */
.lz-act__carousel {
    position: relative;
}

.lz-act__viewport {
    overflow: hidden;
    padding: 10px 0;
    margin: -10px 0;
}

.lz-act__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ─── CARD (Design D — Diagonal Cut) ──────────────────────────────────── */
.lz-act__card {
    --lz-visual-start: #152738;
    --lz-visual-end: #2c4866;

    flex: 0 0 auto;
    width: 320px; /* recalculé en JS */
    height: 420px;
    background: #ffffff;
    border: 0.5px solid #e2e5e9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lz-act__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(21, 39, 56, 0.25);
}

/* ─── ZONE VISUELLE avec coupe diagonale ──────────────────────────────── */
.lz-act__card-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(135deg, var(--lz-visual-start) 0%, var(--lz-visual-end) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Image (si uploadée) — couvre la zone visuelle */
.lz-act__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.lz-act__card:hover .lz-act__card-image {
    transform: scale(1.06);
}

/* Overlay sombre quand il y a une image (pour lisibilité icône + watermark) */
.lz-act__card-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 39, 56, 0.7) 0%, rgba(21, 39, 56, 0.5) 100%);
    z-index: 2;
}

/* Numéro filigrane en arrière-plan */
.lz-act__card-watermark {
    position: absolute;
    top: 14px;
    right: 22px;
    font-family: 'Manrope', sans-serif;
    font-size: 90px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: -0.04em;
    pointer-events: none;
    z-index: 3;
}

/* Icône centrale dans cercle outline */
.lz-act__card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.35s ease, background 0.35s ease;
    position: relative;
    z-index: 4;
}

.lz-act__card-icon i,
.lz-act__card-icon svg {
    font-size: 32px;
    color: #ffffff;
    line-height: 1;
}

.lz-act__card:hover .lz-act__card-icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.15);
}

/* ─── ZONE TEXTE (sous la coupe diagonale) ────────────────────────────── */
.lz-act__card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 24px 24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lz-act__card-tag {
    display: inline-flex;
    align-self: flex-start;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #808186;
    background: rgba(128, 129, 134, 0.12);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 4px;
}

.lz-act__card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: #152738;
    margin: 0 0 4px;
}

.lz-act__card-excerpt {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #506069;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lz-act__card-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #152738;
    text-decoration: none;
    border-bottom: 2px solid #152738;
    transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lz-act__card-cta:hover {
    gap: 12px;
    color: #808186;
    border-color: #808186;
}

.lz-act__card-cta svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.lz-act__card-cta:hover svg {
    transform: translateX(3px);
}

/* ─── NAVIGATION FLÈCHES ───────────────────────────────────────────────── */
.lz-act__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.lz-act__arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #152738;
    color: #ffffff;
    border: 2px solid #152738;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.lz-act__arrow:hover {
    background: #ffffff;
    color: #152738;
    border-color: #152738;
    transform: translateY(-2px);
}

.lz-act__arrow svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.lz-act__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ─── DOTS ─────────────────────────────────────────────────────────────── */
.lz-act__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.lz-act__dot {
    width: 28px;
    height: 3px;
    background: rgba(21, 39, 56, 0.2);
    border: none;
    cursor: pointer;
    border-radius: 2px;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease;
}

.lz-act__dot.is-active {
    background: #152738;
    width: 40px;
}

.lz-act__empty {
    padding: 60px 30px;
    text-align: center;
    color: #506069;
    font-family: 'Inter', sans-serif;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lz-act {
        padding: 60px 0;
    }
    .lz-act__inner {
        padding: 0 30px;
    }
    .lz-act__header {
        margin-bottom: 40px;
    }
    .lz-act__card {
        height: 420px;
    }
    .lz-act__card-visual {
        height: 220px;
    }
    .lz-act__card-watermark {
        font-size: 90px;
    }
}

@media (max-width: 768px) {
    .lz-act {
        padding: 50px 0;
    }
    .lz-act__inner {
        padding: 0 20px;
    }
    .lz-act__header {
        margin-bottom: 32px;
    }
    .lz-act__kicker {
        font-size: 0.72rem;
    }
    .lz-act__kicker::before,
    .lz-act__kicker::after {
        width: 20px;
    }
    .lz-act__card {
        height: 420px;
    }
    .lz-act__card-visual {
        height: 220px;
    }
    .lz-act__card-watermark {
        font-size: 80px;
        top: 12px;
        right: 18px;
    }
    .lz-act__card-icon {
        width: 80px;
        height: 80px;
    }
    .lz-act__card-icon i,
    .lz-act__card-icon svg {
        font-size: 32px;
    }
    .lz-act__card-body {
        padding: 22px 24px 24px;
    }
    .lz-act__card-title {
        font-size: 1.15rem;
    }
    .lz-act__nav {
        margin-top: 28px;
    }
    .lz-act__arrow {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lz-act__track,
    .lz-act__card,
    .lz-act__card-image,
    .lz-act__card-icon,
    .lz-act__card-cta,
    .lz-act__card-cta svg,
    .lz-act__arrow,
    .lz-act__dot {
        transition: none !important;
    }
}
