html {
            scroll-behavior: smooth;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        img {
            max-width: 100%;
        }

        body {
            font-family: 'Inter', sans-serif;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            text-rendering: geometricPrecision;
        }

        body.modal-open {
            overflow: hidden;
        }

        section {
            scroll-margin-top: 120px;
        }

        h1,
        h2,
        h3 {
            text-wrap: balance;
        }

        h1,
        h2,
        h3,
        p,
        a,
        button,
        span,
        .faq-panel,
        .gallery-text,
        .partner-card {
            overflow-wrap: anywhere;
        }

.hero-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%),
        linear-gradient(
            90deg,
            rgba(0,0,0,.40) 0%,
            rgba(0,0,0,.20) 45%,
            rgba(0,0,0,.08) 100%
        );
}

        /* HEADER */
        .site-header {
            transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
            background: transparent;
        }

        .nav-shell {
            margin-top: 0;
            width: 100%;
            border: none;
            border-radius: 0;
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            box-shadow: none;
            transition: background .35s ease, box-shadow .35s ease, border-radius .35s ease;
        }

        .site-header.is-scrolled {
            background: rgba(255,255,255,.96);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 1px 0 rgba(0,0,0,.06);
        }

        .nav-link {
    font-size: clamp(.95rem, 1vw, 1.08rem);
    color: rgba(255,255,255,.9);
    transition: color .25s ease, background .25s ease;
}

        .nav-link:hover {
            color: #fff;
            background: rgba(255,255,255,.12);
        }

        .site-header.is-scrolled .nav-link {
            color: rgb(38,38,38);
        }

        .site-header.is-scrolled .nav-link:hover {
            background: rgba(0,0,0,.06);
            color: #000;
        }

        .site-logo-light,
        .site-logo-dark {
            display: block;
            flex: 0 0 auto;
            width: clamp(12rem, 24vw, 18rem);
            height: auto;
            max-width: min(100%, calc(100vw - 5rem));
            object-fit: contain;
        }

        .site-logo-dark {
            display: none;
        }

        .site-header.is-scrolled .site-logo-light {
            display: none;
        }

        .site-header.is-scrolled .site-logo-dark {
            display: block;
        }

        /* MENU MOBILE */
        .mobile-menu-button {
            color: white;
            transition: color .25s ease, background .25s ease, border-color .25s ease;
        }

        .site-header.is-scrolled .mobile-menu-button {
            color: #111;
            background: rgba(0,0,0,.05);
            border-color: rgba(0,0,0,.08);
        }

        .mobile-menu {
            display: none;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            pointer-events: none;
            transition: opacity .25s ease, transform .25s ease;
        }

        .mobile-menu.is-open {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        .mobile-nav-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 14px 16px;
            border-radius: 18px;
            font-weight: 700;
            color: #111;
            background: rgba(255,255,255,.72);
            border: 1px solid rgba(0,0,0,.06);
            transition: background .2s ease, transform .2s ease;
            text-align: left;
        }

        .mobile-nav-link:hover {
            background: white;
            transform: translateX(2px);
        }
        /* FAQ */
        .faq-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height .4s ease;
        }

        .faq-item.is-open .faq-panel {
            max-height: 1200px;
        }

        .faq-icon {
            position: relative;
            width: 22px;
            height: 22px;
            flex: 0 0 auto;
        }

        .faq-icon::before,
        .faq-icon::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 18px;
            height: 2px;
            background: currentColor;
            border-radius: 999px;
            transform: translate(-50%, -50%);
            transition: transform .25s ease;
        }

        .faq-icon::after {
            transform: translate(-50%, -50%) rotate(90deg);
        }

        .faq-item.is-open .faq-icon::after {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        /* PARTNERS */
        .partner-swiper {
            padding: 8px 4px 64px;
        }

        .partner-card {
            min-height: 360px;
            transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
        }

        .partner-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 28px 70px rgba(0,0,0,.12);
            border-color: rgba(0,0,0,.12);
        }

        .partner-logo {
            height: 128px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 28px;
            background: #f6f6f6;
            text-decoration: none;
        }

        .partner-logo img {
            max-height: 74px;
            max-width: 78%;
            width: auto;
            object-fit: contain;
            transition: transform .35s ease;
        }

        .partner-card:hover .partner-logo img {
            transform: scale(1.06);
        }

        .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            opacity: .25;
            background: #111;
        }

        .swiper-pagination-bullet-active {
            opacity: 1;
        }
        /* MODALES */
        .video-modal,
        .contact-modal {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity .25s ease, visibility .25s ease;
        }

        .video-modal.is-open,
        .contact-modal.is-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .video-modal-content,
        .contact-modal-content {
            transform: scale(.96) translateY(10px);
            transition: transform .25s ease;
        }

        .video-modal.is-open .video-modal-content,
        .contact-modal.is-open .contact-modal-content {
            transform: scale(1) translateY(0);
        }

        /* REVEAL */
        [data-reveal] {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity .7s ease, transform .7s ease;
        }

        [data-reveal].is-visible {
            opacity: 1;
            transform: translateY(0);
        }
        /* MOBILE */
        @media (max-width: 640px) {
            section {
                scroll-margin-top: 105px;
            }

            .nav-shell {
                gap: 1rem;
            }

            .site-logo-light,
            .site-logo-dark {
                width: clamp(10rem, 54vw, 13rem);
                max-width: calc(100vw - 5.25rem);
            }

            .mobile-menu {
                margin-top: .25rem;
                padding-inline: 1rem;
            }

            .mobile-nav-link {
                padding: 13px 15px;
            }

            header > .relative.z-10 {
                padding-top: 7rem;
                padding-bottom: 4rem;
            }

            h1 {
                font-size: clamp(2.35rem, 11.5vw, 3.25rem);
                letter-spacing: -.04em;
            }

            h2 {
                font-size: clamp(2rem, 9vw, 2.75rem);
            }

            .hero-overlay {
                background:
                    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 38%),
                    linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.64) 100%);
            }

            .partner-card {
                min-height: auto;
                padding: 24px;
            }

            .partner-logo {
                height: 110px;
                border-radius: 22px;
            }

            .faq-trigger {
                padding: 22px;
                gap: 14px;
            }

            .faq-trigger span:first-child {
                font-size: 1rem;
                line-height: 1.35;
            }
        }

        @media (max-width: 380px) {
            .site-logo-light,
            .site-logo-dark {
                width: clamp(8.8rem, 50vw, 10.75rem);
            }

            .mobile-menu-button {
                width: 2.5rem;
                height: 2.5rem;
            }
        }

        @media (min-width: 641px) and (max-width: 1023px) {
            .site-logo-light,
            .site-logo-dark {
                width: clamp(13rem, 30vw, 15.5rem);
            }
        }

/* Historique */
.history-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(14, 165, 233, .10), transparent 28%),
        radial-gradient(circle at 22% 82%, rgba(236, 72, 153, .08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.history-card {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    background:
        radial-gradient(circle at 88% 57%, rgba(255,255,255,.92), transparent 16%),
        radial-gradient(circle at 77% 66%, rgba(249,115,22,.14), transparent 23%),
        radial-gradient(circle at 84% 34%, rgba(56,189,248,.10), transparent 28%),
        linear-gradient(180deg, #f7f7f5 0%, #e9e9e6 100%);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 30px 90px rgba(15,23,42,.08);
}

.history-card::before {
    content: "";
    position: absolute;
    right: 4%;
    bottom: 17%;
    width: min(720px, 72%);
    height: 260px;
    background:
        radial-gradient(ellipse at 64% 52%, rgba(255,255,255,.95), transparent 9%),
        repeating-radial-gradient(ellipse at 66% 52%, rgba(255,255,255,.72) 0 1px, transparent 2px 13px);
    opacity: .62;
    transform: rotate(-4deg);
    pointer-events: none;
}

.history-flow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.35fr;
    align-items: end;
    gap: clamp(1.25rem, 4vw, 3.5rem);
    position: relative;
    z-index: 1;
}

.history-flow::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 14%;
    top: 37%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 10%, rgba(255,255,255,.82) 82%, transparent);
    box-shadow: 0 0 12px rgba(255,255,255,.95), 0 0 24px rgba(255,255,255,.75);
    pointer-events: none;
}

.history-flow::after {
    content: "";
    position: absolute;
    right: 13%;
    top: 27%;
    width: 28%;
    height: 34%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.88), rgba(255,255,255,.15) 38%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.history-copy {
    position: relative;
    z-index: 2;
}

.history-step {
    position: relative;
    z-index: 2;
}

.history-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(190px, 100%);
    margin-inline: auto;
    filter: drop-shadow(0 12px 18px rgba(15,23,42,.16));
}

.history-final .history-logo-shell {
    width: min(280px, 100%);
}

.history-logo-shell img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.history-year {
    margin-top: .65rem;
    color: rgba(82,82,82,.68);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 767px) {
    .history-card {
        border-radius: 2rem;
    }

    .history-card::before {
        right: -20%;
        bottom: 28%;
        width: 100%;
        opacity: .42;
    }

    .history-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .history-flow::before,
    .history-flow::after {
        display: none;
    }

    .history-logo-shell {
        max-width: 170px;
    }

    .history-final {
        grid-column: 1 / -1;
    }
}

/* Galerie textile : evite les recouvrements sur mobile */
.gallery-grid {
    grid-auto-rows: 220px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-auto-rows: 260px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-auto-rows: auto;
    }

    .gallery-card {
        height: 220px;
    }

    .gallery-text {
        min-height: 220px;
    }

    .gallery-extra {
        margin-bottom: 1.5rem;
    }

    .gallery-extra .gallery-card {
        height: 260px;
    }

    #advantages {
        margin-top: 1.5rem;
    }
}
		
		/* Historique mobile */
@media (max-width: 767px) {

    .history-step:not(.history-final) .history-logo-shell{
        width: 120px;
    }

    .history-final .history-logo-shell{
        width: 220px;
    }

}
