/* =========================
   SOLUTIONS SECTION
   CSS isolé pour éviter les conflits
========================= */

.solutions-section {
    padding: 80px 0;
    background: #f4f4f4;
    overflow: hidden;
}

.solutions-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.solutions-title {
    text-align: center;
    font-size: 52px;
    font-weight: 800;
    color: #89a9c5;
    margin-bottom: 50px;
    line-height: 1.2;
}

.solutions-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.solutions-track {
    display: flex;
    align-items: stretch;
    gap: 30px;
    width: max-content;
    animation: solutionsScroll 28s linear infinite;
}

.solutions-carousel:hover .solutions-track {
    animation-play-state: paused;
}

.solutions-card {
    width: 320px;
    min-width: 320px;
    background: transparent;
    border-radius: 22px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    cursor: pointer;
}

.solutions-image-box {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 18px;
}

.solutions-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
    user-select: none;
    pointer-events: none;
}

.solutions-label {
    font-size: 20px;
    font-weight: 700;
    color: #586270;
    margin: 0;
    transition: color 0.35s ease;
}

/* Hover / focus / clic visuel */
.solutions-card:hover,
.solutions-card:focus-within,
.solutions-card.solutions-active {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.solutions-card:hover .solutions-image,
.solutions-card:focus-within .solutions-image,
.solutions-card.solutions-active .solutions-image {
    transform: scale(1.12);
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.12));
}

.solutions-card:hover .solutions-label,
.solutions-card:focus-within .solutions-label,
.solutions-card.solutions-active .solutions-label {
    color: #3f4c5d;
}

/* Animation lente continue */
@keyframes solutionsScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================
   DARK MODE
========================= */

body.dark .solutions-section {
    background: linear-gradient(180deg, #151515, #101010);
}

body.dark .solutions-title {
    color: #9fc0dc;
}

body.dark .solutions-card:hover,
body.dark .solutions-card:focus-within,
body.dark .solutions-card.solutions-active {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.dark .solutions-label {
    color: #d7d7d7;
}

body.dark .solutions-card:hover .solutions-label,
body.dark .solutions-card:focus-within .solutions-label,
body.dark .solutions-card.solutions-active .solutions-label {
    color: #ffffff;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 992px) {
    .solutions-section {
        padding: 70px 0;
    }

    .solutions-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .solutions-card {
        width: 260px;
        min-width: 260px;
    }

    .solutions-image-box {
        height: 180px;
    }

    .solutions-image {
        max-height: 160px;
    }

    .solutions-label {
        font-size: 18px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .solutions-section {
        padding: 60px 0;
    }

    .solutions-container {
        width: 92%;
    }

    .solutions-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .solutions-track {
        gap: 18px;
        animation-duration: 22s;
    }

    .solutions-card {
        width: 210px;
        min-width: 210px;
        padding: 14px 10px;
        border-radius: 18px;
    }

    .solutions-image-box {
        height: 140px;
        margin-bottom: 14px;
    }

    .solutions-image {
        max-height: 120px;
    }

    .solutions-label {
        font-size: 17px;
    }
}