/* =========================
   GLOBAL
========================= */
.sx-hidden {
    display: none !important;
}

/* =========================
   MODAL
========================= */
#sx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.sx-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.sx-box {
    position: relative;
    background: white;
    width: 400px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
}

/* =========================
   STEPS
========================= */
.sx-step {
    display: none;
}

.sx-step.active {
    display: block;
}

/* =========================
   PREVIEW
========================= */
.sx-preview-box img {
    width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}

/* =========================
   CAMERA
========================= */
#sx-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: none;
}

#sx-capture-btn {
    margin-top: 10px;
}

/* =========================
   SCAN
========================= */
.sx-scan-container {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

#sx-preview-scan {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* animation scan */
.sx-scan-bar {
    position: absolute;
    width: 100%;
    height: 80px;
    top: -80px;
    background: linear-gradient(
            to bottom,
            transparent,
            rgba(0,255,200,0.6),
            transparent
    );
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% { top: -80px; }
    100% { top: 100%; }
}

/* progress */
.sx-progress-box {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 18px;
}

/* =========================
   RESULT IMAGE
========================= */
.sx-result-wrapper {
    text-align: center;
}

.sx-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.sx-img,
.sx-img-main {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}



/* animation pulse clean */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* =========================
   CARDS / CAROUSEL
========================= */
.sx-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.sx-card {
    min-width: 220px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
}

/* DOT propre */
.sx-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
}

.sx-dot::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
    opacity: 0.2;
}
/* couleurs */
.sx-dot.acne { color: #ff3b3b; }
.sx-dot.pores { color: #00d4ff; }
.sx-dot.redness { color: #ff8c42; }
.sx-dot.wrinkles { color: #a855f7; }

/* =========================
   PRODUCTS
========================= */
.sx-product {
    border: 1px solid #eee;
    padding: 10px;
    margin: 10px;
}
.sx-products-row {
    display: flex;
}
.sx-step-block {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}