/* =====================================================================
   Responsive — points de rupture Bootstrap 5 (1400 / 1200 / 992 / 768 / 576)
   Chargé en dernier (après custom.css).
   ===================================================================== */

/* ---------------------------------------------------------------- ≤ 1399 */
@media (max-width: 1399.98px) {
    .site-header nav ul {
        gap: 26px;
    }

    .header-actions {
        gap: 20px;
    }

    .site-header-in {
        padding-left: 30px;
    }

    .hero-title {
        font-size: 4.25rem;
    }

    .network-cards li {
        min-height: 0;
    }
}

/* ---------------------------------------------------------------- ≤ 1199 : menu mobile */
@media (max-width: 1199.98px) {
    :root {
        --header-h: 84px;
    }

    .site-header,
    .site-header--home {
        padding: 12px 16px 0;
    }

    .site-header--home {
        padding-top: 42px;
    }

    .site-header-in {
        min-height: 68px;
        padding: 10px 12px 10px 24px;
    }

    .site-header.site-scroll .site-header-in {
        min-height: 72px;
        padding: 10px 0;
    }

    .site-logo img {
        width: 150px;
    }

    /* numéro toujours visible à côté du hamburger */
    .header-phone-m,
    .header-phone-m:link,
    .header-phone-m:visited {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        margin-right: -12px;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 999px;
        background: var(--c-green);
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        white-space: nowrap;
        transition: background-color .6s var(--ease-out);
    }

    .header-phone-m:hover,
    .header-phone-m:focus-visible {
        background: var(--c-teal);
        color: #fff;
    }

    .header-phone-m .ic {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        padding: 0 13px;
        border: 0;
        border-radius: 50%;
        background: var(--c-green);
        cursor: pointer;
        position: relative;
        z-index: 130;
        transition: background-color .5s var(--ease-out);
    }

    .nav-toggle:hover {
        background: var(--c-teal);
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform .5s var(--ease-out), opacity .3s ease;
    }

    .nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header-collapse {
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        border-radius: 24px;
        background: var(--grad-network);
        box-shadow: 0 8px 40px rgba(0, 0, 0, .4);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility .5s;
        z-index: 120;
    }

    .nav-open .header-collapse {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .site-header nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header nav>ul>li {
        border-bottom: 1px dashed rgba(250, 248, 245, .4);
    }

    .site-header nav a,
    .menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
    }

    .site-header nav a br,
    .menu-top br {
        display: none;
    }

    .menu-caret {
        width: 14px;
        height: 14px;
        margin: 0;
    }

    .has-sub.is-open .menu-caret {
        transform: rotate(180deg);
    }

    .submenu {
        overflow: hidden;
        max-height: 0;
        padding-left: 14px;
        transition: max-height .6s var(--ease-out);
    }

    .has-sub.is-open .submenu {
        max-height: 420px;
    }

    .site-header .submenu a {
        padding: 9px 0;
        text-transform: none;
        font-size: 1rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        margin-top: 20px;
    }

    .header-actions .btn {
        flex: 1 1 200px;
    }

    .lang-current {
        flex-direction: row;
    }

    .lang-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(14, 42, 55, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .5s var(--ease-out), visibility .5s;
    }

    .nav-open .nav-scrim {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero--home {
        height: auto;
        min-height: 760px;
    }

    .hero-swiper {
        width: 100%;
        max-width: none;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 200px 32px 130px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero--intern {
        height: auto;
        min-height: 410px;
    }

    .hero--intern .hero-content {
        align-items: center;
        padding: 140px 24px 40px;
    }

    .reassurance--row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reassurance--row .reassurance-t {
        width: 100%;
        text-align: center;
    }

    .reassurance--row .reassurance-t em {
        display: inline;
        padding: 0;
    }

    /* Contenu */
    h1,
    .h1 {
        font-size: 3rem;
    }

    h2,
    .h2 {
        font-size: 2.5rem;
    }

    .network-body {
        flex-direction: column;
        align-items: stretch;
    }

    .network-visual {
        flex-basis: auto;
        min-height: 320px;
        order: 2;
    }

    .network-visual img {
        left: 50%;
        bottom: -60px;
        width: 300px;
        transform: translateX(-50%);
    }

    .network-visual .btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 10px;
    }

    .steps li:nth-child(3)::before {
        display: none;
    }

    .benefits-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }

    .benefits-list li:nth-child(4)::before {
        display: none;
    }

    .reals-filters {
        justify-content: center;
        padding: 0;
    }

    .reals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-cards {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 16px 40px;
    }

    .hero--contact {
        margin-bottom: 0;
        overflow: hidden;
    }

    .hero--contact .hero-content {
        padding-top: 150px;
        padding-bottom: 40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 420px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-news {
        border-right: 0;
        border-bottom: 1px dashed rgba(250, 248, 245, .6);
    }

    .site-footer {
        padding: 0 24px 24px;
    }
}

/* ---------------------------------------------------------------- ≤ 991 */
@media (max-width: 991.98px) {

    .intro,
    .network,
    .steps-section,
    .page-std {
        padding-top: 70px;
    }

    .network,
    .steps-section {
        padding-bottom: 70px;
    }

    .split>[class*="col-"]+[class*="col-"] {
        margin-top: 30px;
    }

    .split .photo-tall,
    .seo-block .split .photo {
        /* min-height: 460px; */
        min-height: 100%;
        flex: 0 0 auto;
    }

    .photos-trio,
    .benefits-last .photos-trio {
        min-height: 520px;
    }

    .benefits-row .col-lg-6+.col-lg-6 {
        margin-top: 30px;
    }

    .home-blog .blog-list {
        grid-template-columns: 1fr 1fr;
    }

    .network-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sectors-slider .swiper-slide {
        width: 380px;
        height: 360px;
    }

    .sectors-slider .swiper-slide-active {
        width: 460px;
    }

    .footer-cols {
        flex-wrap: wrap;
    }

    .footer-social {
        flex-direction: row;
        width: 100%;
    }
}

/* ---------------------------------------------------------------- ≤ 767 */
@media (max-width: 767.98px) {
    body {
        font-size: 1rem;
    }

    h1,
    .h1 {
        font-size: 2.375rem;
    }

    h2,
    .h2 {
        font-size: 2rem;
    }

    .chapo,
    .benefits-lead,
    .steps-lead {
        font-size: 1.1875rem;
        line-height: 1.5;
    }

    .t-eyebrow {
        font-size: 1rem;
        letter-spacing: .08em;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-eyebrow {
        font-size: 1.125rem;
    }

    .link-pill {
        font-size: 1rem;
    }

    .hero-marquee li {
        font-size: 1.125rem;
    }

    .photos-duo {
        min-height: 420px;
        --duo-gap: 14px;
    }

    .photos-trio {
        gap: 14px;
    }

    .iso-badge {
        transform: scale(.72);
    }

    .partners {
        padding: 12px 18px;
        border-radius: 40px;
    }

    .partners img {
        height: 54px;
    }

    .network-box,
    .seo-block-in,
    .soft-box {
        padding: 30px 20px;
    }

    .benefits .soft-box {
        padding: 30px 20px 0;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .steps li::before {
        display: none;
    }

    .benefits-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .benefits-list li::before {
        display: none;
    }

    .reals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .home-blog .blog-list {
        grid-template-columns: 1fr;
    }

    .sector-chip-t {
        font-size: 1.25rem;
        line-height: 26px;
    }

    .sectors-slider .swiper-slide,
    .sectors-slider .swiper-slide-active {
        width: 82vw;
        height: 340px;
    }

    .contact-intro {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .contact-page .contact-form .form-row+.form-row {
        margin-top: 0;
    }

    .contact-page .contact-form .form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-page .contact-form .btn-contact.btn {
        font-size: 1rem;
        min-height: 70px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-news-in,
    .footer-legal,
    .footer-top {
        padding: 30px 24px;
    }

    .footer-cols {
        padding: 30px 12px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        text-align: center;
    }

    .media-modal {
        padding: 12px;
    }
}

/* ---------------------------------------------------------------- ≤ 575 */
@media (max-width: 575.98px) {
    .site-header-in {
        padding-left: 18px;
    }

    .site-logo img {
        width: 130px;
    }

    /* petit écran : numéro sans pastille pour tenir entre le logo et le hamburger */
    .site-header-in {
        gap: 10px;
    }

    .header-phone-m,
    .header-phone-m:link,
    .header-phone-m:visited {
        gap: 5px;
        margin-right: 0;
        padding: 0;
        background: none;
        color: var(--c-green);
        font-size: .875rem;
    }

    .header-phone-m:hover,
    .header-phone-m:focus-visible {
        background: none;
        color: #fff;
    }

    .header-phone-m .ic {
        width: 16px;
        height: 16px;
    }

    .nav-toggle {
        flex: 0 0 auto;
    }
}

@media (max-width: 374.98px) {
    .site-header,
    .site-header--home {
        padding-left: 10px;
        padding-right: 10px;
    }

    .site-header-in {
        padding-left: 14px;
        padding-right: 10px;
    }

    .site-logo img {
        width: 108px;
    }

    .header-phone-m,
    .header-phone-m:link,
    .header-phone-m:visited {
        font-size: .8125rem;
    }

    .hero-content {
        padding: 170px 16px 120px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .reassurance {
        width: 100%;
    }

    .reassurance-t {
        font-size: 1.625rem;
    }

    .reassurance-list {
        gap: 12px;
    }

    .reassurance-list li {
        min-width: 0;
        font-size: .9375rem;
        line-height: 19px;
    }

    .reassurance-list li+li {
        padding-left: 12px;
    }

    .reassurance-list img {
        height: 52px;
    }

    .reassurance .btn-call {
        font-size: .9375rem;
        line-height: 22px;
        padding: 10px 10px 10px 18px;
    }

    .photos-duo {
        min-height: 340px;
    }

    .photos-trio,
    .benefits-last .photos-trio {
        min-height: 420px;
    }

    .iso-badge {
        transform: scale(.6);
    }

    .partners {
        flex-wrap: wrap;
        justify-content: center;
    }

    .partners li {
        flex: 0 0 45%;
        padding: 6px 0;
    }

    .partners li+li {
        border-left: 0;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .sector-chip-img {
        flex-basis: 90px;
        width: 90px;
        height: 66px;
    }

    .sector-card-bar {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 1.125rem;
    }

    .contact-card>a,
    .contact-card>div {
        height: auto;
    }

    .contact-card img {
        height: 56px;
    }

    .contact-page .contact-form .captcha img {
        margin: 0 auto;
    }

    .btn.btn-pill {
        font-size: 1rem;
        min-height: 58px;
    }

    .photo-tall .btn-pill {
        left: 16px;
        bottom: 16px;
    }
}

/* Gouttière mobile 16px + boutons pilule sur une ligne */
@media (max-width: 767.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-page .contact-form .row {
        --bs-gutter-x: 24px;
    }
    html {
        font-size: 14px;
    }
}

.btn.btn-pill {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .hero--home .hero-content.container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
