/* --- 1. FOND BLANC UNIFORME --- */
body,
main,
section {
    background-color: #ffffff !important;
}

.demo-header {
    padding-top: 160px;
    padding-bottom: 4rem;
}

/* --- 2. BADGE & TITRES --- */
.badge-pill-soft {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    padding: 0.6em 1.2em;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-transform: uppercase;
}

/* --- 3. LAPTOP MOCKUP (Cadre Vidéo) --- */
.laptop-mockup {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 18px;
    background: #1a1d21;
    padding: 12px 12px 0 12px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}
.laptop-screen {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    background-color: #000;
    aspect-ratio: 16 / 9;
}
.laptop-base {
    height: 20px;
    background: #e9ecef;
    border-radius: 0 0 20px 20px;
    position: relative;
    margin-top: -1px;
}
.laptop-base::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 12px;
    background: #ced4da;
    border-radius: 0 0 10px 10px;
}

/* --- 4. INTERACTIVE STEPS --- */
.step-item {
    padding: 1.5rem;
    border-left: 3px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    outline: none;
}
.step-item:hover {
    background-color: #f8faff;
    opacity: 0.8;
}
.step-item.active {
    border-left-color: #0d6efd;
    opacity: 1;
    background-color: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border-radius: 0 12px 12px 0;
}
.step-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.img-preview-box {
    position: relative;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden; /* Empêche les débordements */
}

.preview-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions de l'image (ordinateur ou écran) sans la couper */
    padding: 2rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.preview-image.active {
    opacity: 1;
}

@media (max-width: 991px) {
    .step-item {
        border-left: none;
        border-top: 3px solid #e9ecef;
        padding: 1rem 0;
        border-radius: 0 !important;
    }
    .step-item.active {
        border-top-color: #0d6efd;
        box-shadow: none;
        background: transparent;
    }
    /* Sur mobile, on réduit les marges de l'image pour qu'elle prenne plus de place */
    .img-preview-box {
        margin-top: 2rem;
        aspect-ratio: 4 / 3;
    }
    .preview-image {
        padding: 0.5rem;
    }
}

/* --- 5. CARROUSEL MODÈLES --- */
.carousel-track-container {
    overflow: hidden;
    padding: 10px 0;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 24px; /* Espace entre les cartes. Pour 3 cartes, il y a 2 espaces (48px total) */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ✅ LA MAGIE EST ICI : 3 cartes affichées en permanence */
.carousel-card-item {
    /* 100% de la largeur, moins les 2 gaps de 24px (=48px), divisé par 3 */
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
}

.site-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eee !important;
    transition: border-color 0.3s ease;
    box-shadow: none !important;
}

.site-card:hover {
    border-color: #0d6efd;
    transform: none;
}

.card-img-container {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 19px 19px 0 0;
}

.card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px 19px 0 0;
}

.carousel-nav button {
    transition: all 0.2s ease;
}
.carousel-nav button:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Sur mobile on reste sur 1 carte à la fois */
@media (max-width: 991px) {
    .carousel-track-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .carousel-card-item {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
    }
    .carousel-nav {
        display: none !important;
    }
}

/* --- 6. CTA FINAL --- */
.btn-cta-premium {
    background-color: #ffffff;
    color: #0b5ed7;
    font-weight: 800;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: inline-block;
}
.btn-cta-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: #0b5ed7;
    background-color: #ffffff;
}

.cta-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 30px;
    padding: 5rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(13, 110, 253, 0.4);
}
.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}
.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 5%;
}
