/* ============================================================
   NEOFLUX — Slider Pro "Editorial"
   css/slider.css
   ============================================================ */

/* ── Wrapper ── */
.sl-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: #000;
    user-select: none;
    padding: 0px;
}

/* ── Trait rouge vertical gauche ── */
.sl-redline {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent 0%, #D42F2F 30%, #D42F2F 70%, transparent 100%);
    z-index: 20;
}

/* ── Label vertical gauche ── */
.sl-side-label {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
}

/* ── Slides ── */
.sl-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.sl-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1.1s;
}

.sl-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.sl-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 6s ease-out;
}

.sl-slide.is-active .sl-img {
    transform: scale(1);
}

/* ── Overlay directionnel ── */
.sl-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.15) 100%),
        linear-gradient(to top,    rgba(212,47,47,0.18) 0%, transparent 45%),
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 30%);
    z-index: 1;
}

/* ── Grand numéro décoratif ── */
.sl-deco-num {
    position: absolute;
    right: 4%;
    bottom: 8%;
    font-size: clamp(14rem, 25vw, 22rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.035);
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s;
    font-family: 'Poppins', sans-serif;
}

/* ── Contenu ── */
.sl-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 7rem 0 8rem; /* 7rem compense le header fixe ~89px */
}

.sl-inner {
    max-width: 720px;
    padding-left: 2rem;
}

/* Animations entrée */
.sl-inner.animate-in .sl-badge    { animation: slUp 0.7s ease-out 0.15s both; }
.sl-inner.animate-in .sl-title    { animation: slUp 0.7s ease-out 0.3s  both; }
.sl-inner.animate-in .sl-sub      { animation: slUp 0.7s ease-out 0.45s both; }
.sl-inner.animate-in .sl-actions  { animation: slUp 0.7s ease-out 0.6s  both; }
.sl-inner.animate-in .sl-stats    { animation: slUp 0.7s ease-out 0.75s both; }

@keyframes slUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ── */
.sl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(212, 47, 47, 0.15);
    border: 1px solid rgba(212, 47, 47, 0.45);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(8px);
}

.sl-badge-dot {
    width: 6px; height: 6px;
    background: #D42F2F;
    border-radius: 50%;
    animation: slPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes slPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.6); }
}

/* ── Titre ── */
.sl-title {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 1.4rem;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* ── Sous-titre ── */
.sl-sub {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 2.4rem;
}

/* ── Boutons ── */
.sl-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.sl-btn-primary {
    background: #D42F2F;
    color: #ffffff;
    border-color: #D42F2F;
}

.sl-btn-primary:hover {
    background: #b52525;
    border-color: #b52525;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 47, 47, 0.45);
}

.sl-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.sl-btn-primary:hover .sl-btn-arrow {
    transform: translateX(3px);
}

.sl-btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.sl-btn-ghost:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.08);
}

/* ── Stats ── */
.sl-stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.sl-stat {
    display: flex;
    flex-direction: column;
    padding: 0 2rem 0 0;
}

.sl-stat-n {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.sl-stat-l {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.sl-stat-div {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    margin-right: 2rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   BARRE INFÉRIEURE
══════════════════════════════════════════════ */
.sl-bottom {
    position: absolute;
    bottom: 3px; /* juste au-dessus de la barre de progress */
    left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem 1.2rem 4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

/* Compteur 01 / 03 */
.sl-counter {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.sl-curr {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    min-width: 2.5rem;
    transition: opacity 0.3s;
}

.sl-slash {
    font-size: 1rem;
    color: rgba(255,255,255,0.3);
    margin: 0 0.1rem;
}

.sl-tot {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* Dots */
.sl-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sl-dot {
    width: 28px; height: 3px;
    background: rgba(255,255,255,0.25);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s;
}

.sl-dot.is-active {
    width: 48px;
    background: #D42F2F;
}

/* Flèches navigation */
.sl-nav {
    display: flex;
    gap: 0.5rem;
}

.sl-arrow {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sl-arrow:hover {
    background: #D42F2F;
    border-color: #D42F2F;
    transform: scale(1.08);
}

/* ── Barre de progression ── */
.sl-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 21;
}

.sl-progress-fill {
    height: 100%;
    width: 0;
    background: #D42F2F;
}

.sl-progress-fill.is-running {
    animation: slProgress 5s linear forwards;
}

@keyframes slProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sl-wrap      { min-height: 600px; }
    .sl-side-label { display: none; }
    .sl-deco-num  { display: none; }
    .sl-title     { font-size: 2.2rem; }
    .sl-sub       { font-size: 1rem; }
    .sl-inner     { padding-left: 0; }
    .sl-content   { padding: 5rem 0 7rem; }
    .sl-stats     { gap: 0; }
    .sl-stat      { padding-right: 1.2rem; }
    .sl-stat-n    { font-size: 1.4rem; }
    .sl-stat-div  { margin-right: 1.2rem; }
    .sl-bottom    { padding: 1rem 1.5rem; }
    .sl-curr      { font-size: 1.6rem; }
    .sl-btn       { padding: 0.8rem 1.6rem; font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .sl-stats    { flex-wrap: wrap; gap: 1rem; }
    .sl-stat-div { display: none; }
    .sl-stat     { padding: 0; }
    .sl-actions  { flex-direction: column; }
    .sl-btn      { width: 100%; justify-content: center; }
}
