/* ═══════════════════════════════════════════════════════════
   CARBOZO HERO SLIDER — carbozo-slider.css
   Variables injectées via PHP : --cz-accent, --cz-bg, --cz-height
═══════════════════════════════════════════════════════════ */

/* ─── RESET & WRAPPER ─────────────────────────────────── */
/* NOTE: Pas de overflow:hidden sur html/body — on isole le scroll au wrapper */
.cz-slider-wrapper {
    position: relative;
    width: 100%;
    height: var(--cz-height, 100vh);
    max-height: 100vh;
    overflow: hidden;       /* isolé au wrapper uniquement */
    background: var(--cz-bg, #f4f2ef);
    font-family: 'DM Sans', sans-serif;
    /* Empêche le slider de capturer les événements de scroll de la page */
    touch-action: pan-y;
}

/* ─── CURSEUR CUSTOM ──────────────────────────────────── */
.cz-cursor {
    width: 10px;
    height: 10px;
    background: var(--cz-accent, #7a0a0a);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;  /* CRITIQUE : ne capture AUCUN événement */
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease,
                width 0.3s ease,
                height 0.3s ease,
                background 0.3s ease;
    mix-blend-mode: multiply;
    will-change: left, top; /* optimisation perf */
}
.cz-cursor.cz-expand {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--cz-accent, #7a0a0a);
}

/* ─── ACCENTS DÉCORATIFS ──────────────────────────────── */
.cz-left-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--cz-accent, #7a0a0a) 35%,
        var(--cz-accent, #7a0a0a) 65%,
        transparent 100%
    );
    z-index: 20;
    pointer-events: none;
}

.cz-carbon-corner {
    position: absolute;
    width: 110px;
    height: 100%;
    left: 0; top: 0;
    opacity: 0.055;
    background-image:
        repeating-linear-gradient(45deg,  #000 0, #000 1px, transparent 0, transparent 50%),
        repeating-linear-gradient(-45deg, #000 0, #000 1px, transparent 0, transparent 50%);
    background-size: 8px 8px;
    z-index: 4;
    pointer-events: none;
}
.cz-carbon-corner.cz-right {
    left: auto;
    right: 0;
}

/* ─── SWIPER ──────────────────────────────────────────── */
.cz-swiper {
    width: 100%;
    height: 100%;
}

.cz-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--cz-bg, #f4f2ef);
}

/* ─── VISUEL CENTRAL ──────────────────────────────────── */
.cz-slide-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 55vw;
    max-width: 880px;
    z-index: 2;
    transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.7s ease;
}
.cz-slide-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.10));
}
.cz-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--cz-title-font, 'Bebas Neue', sans-serif);
    font-size: clamp(120px, 18vw, 260px);
    color: rgba(0,0,0,0.055);
    letter-spacing: -0.02em;
    user-select: none;
    line-height: 1;
}

/* ─── CONTENU TEXTE ───────────────────────────────────── */
.cz-slide-content {
    position: relative;
    z-index: 10;
    padding: 0 0 0 clamp(40px, 6vw, 100px);
    max-width: 420px;
}

/* Eyebrow */
.cz-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cz-accent, #7a0a0a);
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

/* Titre */
.cz-title {
    font-family: var(--cz-title-font, 'Bebas Neue', sans-serif);
    font-size: clamp(44px, 5.8vw, 80px);
    font-weight: var(--cz-title-weight, 400);
    text-transform: var(--cz-title-transform, uppercase);
    line-height: 1.0;
    letter-spacing: 0.08em;
    color: #0a0a0a;
    margin: 0 0 22px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

/* Divider */
.cz-divider {
    width: 32px;
    height: 1px;
    background: var(--cz-accent, #7a0a0a);
    margin-bottom: 22px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

/* Sous-titre */
.cz-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(14px, 1.35vw, 17px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
    color: #6b6358;
    margin: 0 0 42px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

/* CTA */
.cz-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cz-accent, #7a0a0a);
    text-decoration: none;
    border-bottom: 1px solid var(--cz-accent, #7a0a0a);
    padding-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.85s,
                transform 0.6s ease 0.85s,
                gap 0.3s ease;
    cursor: pointer;
}
.cz-cta:hover { gap: 22px; color: var(--cz-accent, #7a0a0a); }
.cz-cta svg { transition: transform 0.3s ease; flex-shrink: 0; }
.cz-cta:hover svg { transform: translateX(4px); }

/* ─── SLIDE ACTIVE → révèle les éléments ─────────────── */
.swiper-slide-active .cz-eyebrow,
.swiper-slide-active .cz-title,
.swiper-slide-active .cz-subtitle,
.swiper-slide-active .cz-cta {
    opacity: 1;
    transform: translateY(0);
}
.swiper-slide-active .cz-divider {
    opacity: 1;
    transform: scaleX(1);
}

/* ─── NUMÉRO FILIGRANE ────────────────────────────────── */
.cz-bg-number {
    position: absolute;
    right: 8vw;
    bottom: -0.08em;
    font-family: var(--cz-title-font, 'Bebas Neue', sans-serif);
    font-size: clamp(160px, 22vw, 320px);
    color: rgba(0,0,0,0.032);
    letter-spacing: -0.05em;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    user-select: none;
}

/* ─── PAGINATION NUMÉROTÉE ────────────────────────────── */
.cz-pagination {
    position: absolute;
    right: clamp(20px, 4vw, 56px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}
.cz-pag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.cz-pag-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #b0a99e;
    transition: color 0.3s ease, font-weight 0.3s ease;
}
.cz-pag-line {
    width: 0;
    height: 1px;
    background: var(--cz-accent, #7a0a0a);
    transition: width 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.cz-pag-item.active .cz-pag-num {
    color: #0a0a0a;
    font-weight: 400;
}
.cz-pag-item.active .cz-pag-line {
    width: 28px;
}

/* ─── SCROLL INDICATOR ────────────────────────────────── */
.cz-scroll-indicator {
    position: absolute;
    bottom: 38px;
    right: clamp(20px, 4vw, 56px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cz-scroll-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #b0a99e;
    writing-mode: vertical-rl;
}
.cz-scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--cz-accent, #7a0a0a) 0%, transparent 100%);
    animation: czScrollPulse 2s ease-in-out infinite;
}
@keyframes czScrollPulse {
    0%, 100% { transform: scaleY(1);   opacity: 1; }
    50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ─── NAVIGATION FLÈCHES ──────────────────────────────── */
.cz-nav-arrows {
    position: absolute;
    bottom: 42px;
    left: clamp(40px, 6vw, 100px);
    z-index: 20;
    display: flex;
    gap: 14px;
}
.cz-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0,0,0,0.14);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    color: #0a0a0a;
    padding: 0;
}
.cz-nav-btn:hover {
    border-color: var(--cz-accent, #7a0a0a);
    background: var(--cz-accent, #7a0a0a);
    color: #ffffff;
}

/* ─── BARRE PROGRESSION ───────────────────────────────── */
.cz-progress-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--cz-accent, #7a0a0a);
    z-index: 30;
    width: 0%;
    transition: width 0.08s linear;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .cz-slide-visual {
        width: 80vw;
        transform: translate(-50%, -50%);
        left: 50%;
        opacity: 0.25;
    }
    .cz-slide-content {
        padding: 0 24px;
        max-width: 100%;
        text-align: left;
    }
    .cz-title {
        font-size: clamp(40px, 12vw, 60px);
    }
    .cz-pagination {
        display: none;
    }
    .cz-scroll-indicator {
        display: none;
    }
    .cz-bg-number {
        display: none;
    }
}
