/* ============================================
   PROCESS SLIDER - Slider interactif de photos
   ============================================ */

.process-slider {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Zone d'affichage */
.process-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f0f;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Conteneur des slides */
.process-slider__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide individuel — pas de transition, switch immédiat */
.process-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.process-slider__slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.process-slider__slide img,
.process-slider__slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Label de l'étape */
.process-slider__label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.75);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 5;
}

/* Compteur */
.process-slider__counter {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--secondary);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    z-index: 5;
}

/* Contrôles */
.process-slider__controls {
    padding: 1.25rem 2rem 1.5rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input range */
.process-slider__input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.process-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.2);
}

.process-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.3);
}

.process-slider__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.2);
}

.process-slider__input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.3);
}

.process-slider__input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

.process-slider__input::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
}

/* Dots */
.process-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.process-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    padding: 0;
}

.process-slider__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.process-slider__dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 140, 66, 0.5);
}

/* Flèches — toujours visibles */
.process-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 10;
}

.process-slider__nav:hover {
    background: rgba(255, 140, 66, 0.2);
    border-color: var(--accent);
}

.process-slider__nav--prev { left: 0.75rem; }
.process-slider__nav--next { right: 0.75rem; }

.process-slider__nav::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.process-slider__nav--prev::after {
    border-width: 6px 8px 6px 0;
    border-color: transparent var(--primary) transparent transparent;
    margin-right: 2px;
}

.process-slider__nav--next::after {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent var(--primary);
    margin-left: 2px;
}

/* Variantes de ratio */
.process-slider--portrait .process-slider__viewport {
    aspect-ratio: 9/16;
    max-height: 600px;
}

.process-slider--square .process-slider__viewport {
    aspect-ratio: 1/1;
    max-height: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .process-slider__viewport {
        aspect-ratio: 4/3;
    }

    .process-slider__controls {
        padding: 1rem;
    }

    .process-slider__nav {
        width: 34px;
        height: 34px;
    }
}
