/* ===== MODERN MERCHAND SECTION - MOBILE FIRST ===== */
.modern-merchand-section {
    position: relative;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.merchand-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.merchand-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile-first slides container */
.merchand-slides-container {
    position: relative;
    height: auto;
    min-height: 500px;
    overflow: visible;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 10px;
}

.merchand-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(30px);
    padding: 30px 20px;
}

.merchand-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* Background colors for slides */
.merchand-slide[data-slide="1"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.merchand-slide[data-slide="2"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.merchand-slide[data-slide="3"] {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
}

.merchand-slide[data-slide="4"] {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

/* MOBILE-FIRST SLIDE CONTENT */
.slide-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.slide-text {
    order: 2; /* Texte en premier sur mobile */
}

.slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #0f172a;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.feature-item i {
    width: 18px;
    color: #4361ee;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item span {
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* Buttons optimisés mobile */
.slide-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.slide-actions .btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.slide-actions .btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.slide-actions .btn-secondary {
    background: white;
    color: #4361ee;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Visual content pour mobile */
.slide-visual {
    order: 1; /* Image en premier sur mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-svg {
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 180px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

/* Navigation mobile optimisée */
.merchand-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #4361ee;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchand-arrow.prev {
    left: 5px;
}

.merchand-arrow.next {
    right: 5px;
}

/* Navigation dots mobile */
.merchand-navigation {
    position: relative;
    margin-top: 40px;
    bottom: auto;
    left: auto;
    transform: none;
}

.nav-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin: 0 20px;
}

.nav-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #4361ee;
    transform: scale(1.2);
}

/* Cacher les éléments flottants sur mobile */
.floating-element {
    display: none;
}

/* Background elements simplifiés pour mobile */
.background-elements {
    display: none;
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) {
    .modern-merchand-section {
        padding: 60px 0;
    }

    .merchand-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .merchand-container {
        padding: 0 20px;
    }

    .merchand-slides-container {
        margin: 0;
        border-radius: 20px;
        min-height: 550px;
    }

    .merchand-slide {
        padding: 40px;
    }

    .slide-content {
        gap: 40px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-actions {
        flex-direction: row;
        gap: 16px;
    }

    .slide-actions .btn {
        width: auto;
        min-width: 160px;
    }

    .visual-container {
        max-width: 350px;
        height: 250px;
    }

    .modern-svg {
        max-width: 300px;
        max-height: 220px;
    }

    .merchand-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .merchand-arrow.prev {
        left: -25px;
    }

    .merchand-arrow.next {
        right: -25px;
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
    .modern-merchand-section {
        padding: 80px 0;
    }

    .merchand-slides-container {
        height: 600px;
        min-height: 600px;
    }

    .slide-content {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .slide-content.reverse {
        flex-direction: row-reverse;
    }

    .slide-text {
        order: unset;
        flex: 1;
        padding-right: 40px;
    }

    .slide-content.reverse .slide-text {
        padding-right: 0;
        padding-left: 40px;
    }

    .slide-visual {
        order: unset;
        flex: 1;
        margin-bottom: 0;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .visual-container {
        max-width: 450px;
        height: 350px;
    }

    .modern-svg {
        max-width: 400px;
        max-height: 300px;
    }

    /* Réactiver les éléments flottants sur desktop */
    .floating-element {
        display: flex;
        position: absolute;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        padding: 10px;
        animation: float 6s ease-in-out infinite;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: #4361ee;
    }

    .floating-1 {
        top: 20px;
        right: -20px;
        width: 50px;
        height: 50px;
        animation-delay: 1s;
    }

    .floating-2 {
        bottom: 40px;
        left: -15px;
        width: 45px;
        height: 45px;
        animation-delay: 2s;
    }

    /* Réactiver les éléments de fond sur desktop */
    .background-elements {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
    }

    .bg-circle {
        position: absolute;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(108, 99, 255, 0.05) 100%);
        animation: float 8s ease-in-out infinite;
    }

    .circle-1 {
        width: 150px;
        height: 150px;
        top: 10%;
        right: 5%;
    }

    .circle-2 {
        width: 120px;
        height: 120px;
        bottom: 20%;
        left: 5%;
        animation-delay: 2s;
    }

    .merchand-navigation {
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    .nav-dots {
        margin: 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* Support tactile amélioré */
@media (hover: none) and (pointer: coarse) {
    .merchand-arrow {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid rgba(255, 255, 255, 0.8);
    }

    .slide-actions .btn {
        padding: 16px 24px; /* Plus grand pour le tactile */
    }
}