@media (max-width: 1080px) {
    .cehub-shell {
        width: min(calc(100% - 36px), 960px);
    }

    .cehub-header-inner {
        min-height: 88px;
    }

    .cehub-trust {
        display: none;
    }

    .cehub-hero {
        min-height: 0;
        padding-top: 128px;
    }

    .cehub-expertise-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .cehub-feature-grid {
        gap: 28px;
    }

    .cehub-method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 28px;
    }

    .cehub-method-card:not(:last-child)::after {
        display: none;
    }

    .cehub-topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cehub-footer-grid {
        grid-template-columns: 1.35fr repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .cehub-shell {
        width: min(calc(100% - 28px), 620px);
    }

    .cehub-header-inner {
        min-height: 78px;
        justify-content: center;
    }

    .cehub-brand-copy strong {
        font-size: 21px;
    }

    .cehub-brand-copy small {
        font-size: 8px;
    }

    .cehub-hero {
        padding: 112px 0 62px;
    }

    .cehub-hero-copy {
        margin-bottom: 30px;
    }

    .cehub-hero-copy h1 {
        font-size: clamp(39px, 12vw, 55px);
    }

    .cehub-hero-lead {
        font-size: 17px;
    }

    .cehub-hero-text {
        font-size: 15px;
    }

    .cehub-language-heading {
        grid-template-columns: 44px auto 44px;
        justify-content: center;
        gap: 11px;
    }

    .cehub-language-heading h2 {
        font-size: 16px;
    }

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

    .cehub-language-card,
    .cehub-language-card.is-active {
        min-height: 0;
        padding: 22px 20px;
        transform: none;
    }

    .cehub-language-card p {
        min-height: 0;
    }

    .cehub-skyline {
        height: 180px;
    }

    .cehub-section {
        padding: 65px 0;
    }

    .cehub-section-intro h2,
    .cehub-section-heading h2 {
        font-size: 37px;
    }

    .cehub-feature-grid {
        grid-template-columns: 1fr;
    }

    .cehub-feature {
        grid-template-columns: 58px 1fr;
        gap: 15px;
    }

    .cehub-feature-icon {
        width: 58px;
        height: 58px;
    }

    .cehub-feature-icon svg {
        width: 27px;
        height: 27px;
    }

    .cehub-section-heading {
        margin-bottom: 35px;
    }

    .cehub-method-grid {
        grid-template-columns: 1fr;
    }

    .cehub-method-card {
        min-height: 0;
        padding: 34px 22px 25px;
    }

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

    .cehub-topic-card {
        min-height: 230px;
    }

    .cehub-article-grid {
        grid-template-columns: 1fr;
    }

    .cehub-responsible-box {
        grid-template-columns: 58px 1fr;
        padding: 23px 20px;
    }

    .cehub-responsible-icon {
        width: 58px;
        height: 58px;
    }

    .cehub-responsible-box .cehub-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cehub-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 26px;
    }

    .cehub-footer-brand {
        grid-column: 1 / -1;
    }

    .cehub-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 470px) {
    .cehub-topic-grid,
    .cehub-footer-grid {
        grid-template-columns: 1fr;
    }

    .cehub-footer-brand {
        grid-column: auto;
    }

    .cehub-topic-card {
        min-height: 0;
    }

    .cehub-empty-state {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cehub-empty-state > span {
        margin-inline: auto;
    }
}

/* Correction définitive mobile : boutons bleus = texte blanc */
body.cehub-page a.cehub-button.cehub-button-primary,
body.cehub-page a.cehub-button.cehub-button-primary:link,
body.cehub-page a.cehub-button.cehub-button-primary:visited,
body.cehub-page a.cehub-button.cehub-button-primary:hover,
body.cehub-page a.cehub-button.cehub-button-primary:focus,
body.cehub-page a.cehub-button.cehub-button-primary:active,
body.cehub-page a.cehub-text-link,
body.cehub-page a.cehub-text-link:link,
body.cehub-page a.cehub-text-link:visited,
body.cehub-page a.cehub-text-link:hover,
body.cehub-page a.cehub-text-link:focus,
body.cehub-page a.cehub-text-link:active,
body.cehub-page a.cehub-button.cehub-button-outline,
body.cehub-page a.cehub-button.cehub-button-outline:link,
body.cehub-page a.cehub-button.cehub-button-outline:visited,
body.cehub-page a.cehub-button.cehub-button-outline:hover,
body.cehub-page a.cehub-button.cehub-button-outline:focus,
body.cehub-page a.cehub-button.cehub-button-outline:active {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

body.cehub-page a.cehub-button.cehub-button-primary svg,
body.cehub-page a.cehub-text-link svg,
body.cehub-page a.cehub-button.cehub-button-outline svg {
    color: #ffffff;
    stroke: #ffffff;
}
