/* =====================================================
   PAGE NOS CLIENTS
===================================================== */

.clients-page {
    width: 100%;
    overflow: hidden;
}

/* =========================================
   HERO NOS CLIENTS
========================================= */

.clients-page .clients-hero {
    width: 100%;
    height: 560px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 58% 42%;
    background: #080808;
    overflow: hidden;
}

.clients-hero-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.clients-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s ease;
}

.clients-hero-image:hover img {
    transform: scale(1.03);
}

.clients-hero-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 85%, rgba(8, 8, 8, 0.92) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.65) 100%);
}

.clients-scroll {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 300px;
    height: 80px;
    background: rgba(25, 25, 25, 0.90);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 35px;
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.scroll-icon {
    width: 25px;
    height: 35px;
    border: 2px solid white;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    font-size: 13px;
}

.clients-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 65px;
    background: #080808;
    color: white;
}

/* Icône décorative en filigrane, dans le bloc noir */
.clients-hero-content--has-icon {
    position: relative;
    overflow: hidden;
}

.clients-hero-content--has-icon > *:not(.split-hero-icon-decor) {
    position: relative;
    z-index: 1;
}

.clients-label {
    display: block;
    color: #e30613;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.clients-cover-title {
    margin: 0 0 20px;
    color: white;
    font-size: clamp(2.3rem, 3.2vw, 4.2rem);
    line-height: 1.05;
    font-weight: 900;
    max-width: 600px;
}

.clients-cover-title .highlight-red {
    color: #e30613;
}

.clients-cover-paragraph {
    max-width: 560px;
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.clients-hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 10px;
}

.hero-stat-card {
    min-height: 130px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    background: #1c1c1c;
}

.hero-stat-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    color: #e30613;
    font-size: 0.9rem;
}

.hero-stat-card strong {
    display: block;
    color: white;
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 7px;
}

.hero-stat-card span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
}

/* =========================================
   PARTENAIRES
========================================= */

.clients-partners {
    background: #f7f7f7;
    padding: 90px 0 110px;
}

.clients-partners-inner {
    width: min(1250px, 90%);
    margin: 0 auto;
}

.partners-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 30px;
    padding: 12px 18px;
    background: #fff1e0;
    color: #7a4a00;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.partners-hint svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #d9770a;
}

.partners-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 60px;
    align-items: stretch;
}

.partners-copy {
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.partners-title {
    margin: 12px 0 20px;
    color: #111;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
}

.partners-red-line {
    width: 42px;
    height: 3px;
    background: #e30613;
    margin-bottom: 25px;
}

.partners-text {
    margin: 0 0 28px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 700;
}

.partners-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 8px;
    background: #e30613;
    color: white;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease;
}

.partners-button:hover {
    transform: translateY(-3px);
    background: #b90510;
}

.partner-card {
    min-height: 105px;
    padding: 18px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card img {
    width: 100%;
    max-width: 125px;
    max-height: 65px;
    object-fit: contain;
}

.partner-card--clickable {
    border: none;
    font: inherit;
    cursor: pointer;
    width: 100%;
}

.partner-card--clickable:focus-visible {
    outline: 2px solid #e30613;
    outline-offset: 2px;
}

/* Toast flottant : client sans réalisation publiée */
.client-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    width: min(420px, 90vw);
    background: #111;
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.client-toast strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.client-toast p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Logos : grille fixe de 3 lignes x 5 colonnes, paginée par groupes de 15 */
.partners-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partners-scroll-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #222;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.partners-scroll-btn:hover {
    background: #f5f5f5;
    transform: scale(1.08);
}

.partners-scroll-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.partners-pages-viewport {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.partners-pages-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.partners-pages-track::-webkit-scrollbar {
    display: none;
}

.partners-pages-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.partners-page {
    flex: 0 0 100%;
    width: 100%;
    align-self: flex-start;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 105px;
    gap: 14px;
}

@media (max-width: 1000px) {
    .clients-page .clients-hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .clients-hero-image {
        height: 480px;
    }

    .clients-hero-content {
        padding: 60px 40px;
    }

    .partners-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .partners-copy {
        max-width: 600px;
    }
}

@media (max-width: 700px) {
    .clients-hero-image {
        height: 380px;
    }

    .clients-hero-content {
        padding: 45px 25px;
    }

    .clients-hero-stats-row {
        grid-template-columns: 1fr;
    }

    .hero-stat-card {
        min-height: 95px;
    }

    .clients-partners {
        padding: 60px 0 70px;
    }

    .partners-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-card {
        min-height: 100px;
    }

    .partners-scroll-btn {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .clients-scroll {
        width: 230px;
        height: 65px;
        padding: 0 20px;
    }
}

@media (max-width: 450px) {
    .partners-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .partner-card {
        padding: 12px;
    }

    .partner-card img {
        max-width: 100px;
        max-height: 55px;
    }
}
