/* ------------------------------------------------------------------
 * Police Inter partout sur les fiches case study et la page hub
 * (contenu, widgets Elementor, header / footer Elementor). Les polices
 * d'icônes (eicons, Font Awesome) sont exclues pour ne pas casser les pictos.
 * ------------------------------------------------------------------ */
body.single-onoff_case_study,
body.onoff-cs-hub-page {
    font-family: "Inter", sans-serif;
}

body.single-onoff_case_study
    .elementor
    *:not(i):not(.fa):not(.fab):not(.far):not(.fas):not([class*="eicon"]):not(
        [class*="fa-"]
    ),
body.onoff-cs-hub-page
    .elementor
    *:not(i):not(.fa):not(.fab):not(.far):not(.fas):not([class*="eicon"]):not(
        [class*="fa-"]
    ),
.onoff-cs-grid,
.onoff-cs-grid * {
    font-family: "Inter", sans-serif !important;
}

.onoff-cs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.onoff-cs-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.onoff-cs-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.onoff-cs-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onoff-cs-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.onoff-cs-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.onoff-cs-card__title a {
    color: inherit;
    text-decoration: none;
}

.onoff-cs-card__excerpt {
    margin: 0;
    color: #4b5563;
}

.onoff-cs-card__link {
    margin-top: auto;
    font-weight: 600;
    text-decoration: none;
}

.onoff-cs-card__link:hover,
.onoff-cs-card__title a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Template single Case Study (fond clair) - shortcode [onoff_case_study]
 * ------------------------------------------------------------------ */

.onoff-cs-eyebrow {
    margin: 0 0 16px;
    color: #2dd08c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.onoff-cs-herometa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5efe9;
    color: #54595f;
    font-size: 14px;
}

.onoff-cs-herometa__logo {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #e5efe9;
    border-radius: 10px;
    background: #fff;
}

.onoff-cs-herometa__logo img {
    display: block;
    width: auto;
    max-width: 120px;
    max-height: 20px;
}

/* Bandeau stats */
.onoff-cs-stats {
    border-top: 1px solid #e5efe9;
    border-bottom: 1px solid #e5efe9;
    background: #f5f8f6;
}

.onoff-cs-stats__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1280px;
    margin: 0 auto;
}

/* Colonnes = nombre de stats renseignées */
.onoff-cs-stats--count-1 .onoff-cs-stats__inner {
    grid-template-columns: minmax(0, 1fr);
}

.onoff-cs-stats--count-2 .onoff-cs-stats__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onoff-cs-stats--count-3 .onoff-cs-stats__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .onoff-cs-stats--count-3 .onoff-cs-stats__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .onoff-cs-stats--count-2 .onoff-cs-stats__inner,
    .onoff-cs-stats--count-3 .onoff-cs-stats__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.onoff-cs-stat {
    padding: 36px 28px;
    border-left: 1px solid #e5efe9;
}

.onoff-cs-stat:first-child {
    border-left: 0;
}

.onoff-cs-stat__value {
    color: #2dd08c;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.onoff-cs-stat__label {
    margin-top: 8px;
    color: #273348;
    font-size: 15px;
    line-height: 1.4;
}

.onoff-cs-stat__note {
    margin-top: 6px;
    color: #7b8f86;
    font-size: 12px;
}

/* En résumé : groupe Gutenberg avec la classe onoff-cs-summary, dans le contenu
 * (1er paragraphe = titre, liste = points clés). */
.onoff-cs-summary {
    margin: 0 0 32px;
    padding: 20px 24px;
    border: 1px solid #e5efe9;
    border-radius: 12px;
    background: #fff;
}

.onoff-cs-summary .onoff-cs-summary__title,
.onoff-cs-summary > p:first-child,
.onoff-cs-summary .elementor-widget-container > p:first-child {
    margin: 0 0 12px;
    color: #2dd08c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.onoff-cs-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.onoff-cs-summary li {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 26px;
    color: #273348;
}

.onoff-cs-summary li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2dd08c;
    font-weight: 700;
}

/* Colonne de droite sticky (même décalage que les articles : 125px, sous le header fixe).
 * Si le template utilise déjà la section #sticky-sidebar (CSS du template),
 * on ne touche à rien : rendre aussi la colonne parente sticky la collerait
 * à un autre niveau et ferait passer le sommaire sous le header. */
@media (min-width: 768px) {
    .single-onoff_case_study
        #case-content
        > .elementor-container
        > .elementor-column:last-child:not(:has(#sticky-sidebar)),
    .single-onoff_case_study
        .elementor-column:not(#sticky-sidebar .elementor-column):has(
            > .elementor-widget-wrap > .elementor-widget-table-of-contents
        ) {
        position: -webkit-sticky;
        position: sticky;
        top: var(--onoff-cs-sticky-top, 125px);
        align-self: flex-start;
        z-index: 10;
    }
}

/* Sommaire (widget Table des matières) : même style que le template des articles,
 * titre actif mis en avant au scroll (classe elementor-item-active posée par Elementor). */
.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-widget-container {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__header {
    padding: 0;
    border: 0;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__header-title {
    margin: 0 0 10px;
    color: #7b8f86;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__body {
    padding: 0;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__list-wrapper {
    margin: 0;
    padding: 0;
    border-left: 1px solid rgb(229, 239, 233);
    list-style: none;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__list-item {
    margin: 0;
    list-style: none;
}

/* Pas de puces : le trait vertical sert de repère. */
.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__list-item-text-wrapper::before,
.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__list-item-text-wrapper
    > i,
.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__list-item-text-wrapper
    > svg {
    display: none;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    .elementor-toc__list-item-text-wrapper {
    display: block;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    a.elementor-toc__list-item-text {
    display: block;
    margin-left: -1px;
    padding: 9px 0 9px 18px;
    border-left: 2px solid transparent;
    color: #7a7a7a;
    font-family: "Inter", sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition:
        border-color 0.2s,
        color 0.2s;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    a.elementor-toc__list-item-text.elementor-item-active {
    border-left-color: rgb(0, 199, 117);
    color: #54595f;
}

.single-onoff_case_study
    .elementor-widget-table-of-contents
    a.elementor-toc__list-item-text:hover {
    border-left-color: rgb(0, 199, 117);
    color: #273348;
}

/* À propos de l'entreprise (wireframe : lignes sans séparateur, trait avant Forfait) */
.onoff-cs-about {
    padding: 24px;
    border: 1px solid #e3e8e6;
    border-radius: 14px;
    background: #fff;
}

.onoff-cs-about .onoff-cs-about__title {
    margin: 0 0 16px;
    color: #5f6b67;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.onoff-cs-about__logo {
    margin-bottom: 10px;
}

.onoff-cs-about__logo img {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 25px;
}

.onoff-cs-about__list {
    margin: 0;
}

.onoff-cs-about__list > div {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.onoff-cs-about__list dt {
    margin: 0;
    color: #6b7773;
    font-weight: 400;
}

.onoff-cs-about__list dd {
    margin: 0;
    color: #1d2725;
    font-weight: 500;
    text-align: right;
}

.onoff-cs-about__list > .onoff-cs-about__plan {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #e3e8e6;
}

/* Forfait : 3 traits (gris clair, vert foncé, violet) + libellé */
.onoff-cs-plan {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.onoff-cs-plan__bars {
    display: inline-flex;
    gap: 4px;
}

.onoff-cs-plan__bars i {
    display: block;
    width: 14px;
    height: 4px;
    border-radius: 2px;
}

/* Couleurs des offres (page tarifs) : Connect bleu, Advanced turquoise, Max violet.
 * Traits remplis jusqu'au niveau du forfait (Connect 1, Advanced 2, Max 3), chacun dans la couleur de son offre ; libellé dans la couleur du forfait. */
.onoff-cs-plan {
    --onoff-cs-plan-color: #1ea5a2;
}

.onoff-cs-plan--connect {
    --onoff-cs-plan-color: #1395ea;
}

.onoff-cs-plan--advanced {
    --onoff-cs-plan-color: #1ea5a2;
}

.onoff-cs-plan--max {
    --onoff-cs-plan-color: #9d54d1;
}

.onoff-cs-plan__bars i {
    background: #dfe3e2;
}

/* Chaque trait rempli garde la couleur de son offre : 1 Connect, 2 Advanced, 3 Max. */
.onoff-cs-plan__bars i.is-active:nth-child(1) {
    background: #1395ea;
}

.onoff-cs-plan__bars i.is-active:nth-child(2) {
    background: #1ea5a2;
}

.onoff-cs-plan__bars i.is-active:nth-child(3) {
    background: #9d54d1;
}

.onoff-cs-plan__name {
    color: var(--onoff-cs-plan-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Encadré "Et chez vous ?" (colonne de droite, fond foncé) */
.onoff-cs-scta {
    margin-top: 20px;
    padding: 24px;
    border-radius: 14px;
    background: var(--e-global-color-d2adf13);
    color: #fff;
}

.onoff-cs-scta .onoff-cs-scta__eyebrow {
    margin: 0 0 10px;
    color: #2dd08c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.onoff-cs-scta__title {
    margin: 0 0 10px;
    color: #54595f;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.onoff-cs-scta__text {
    margin: 0 0 18px;
    color: #54595f;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.onoff-cs-scta__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.onoff-cs-scta__btn {
    display: block;
    padding: 13px 16px;
    border: 1px solid #2dd08c;
    border-radius: 27px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: 0.3s all;
}

.onoff-cs-scta__btn--primary,
.onoff-cs-scta__btn--primary:visited {
    background: #2dd08c;
    color: #fff !important;
}

.onoff-cs-scta__btn--primary:hover {
    background: #37eea3;
    border-color: #37eea3;
}

.onoff-cs-scta__btn--secondary,
.onoff-cs-scta__btn--secondary:visited {
    background: transparent;
    color: #2dd08c;
}

.onoff-cs-scta__btn--secondary:hover {
    background: #2dd08c;
    color: #ffffff;
}

/* Corps de l'article : citation et étapes */
.single-onoff_case_study .elementor-widget-theme-post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border: 1px solid #e5efe9;
    border-left: 3px solid #2dd08c;
    border-radius: 12px;
    background: #f5f8f6;
    color: #273348;
    font-size: 18px;
}

.single-onoff_case_study .elementor-widget-theme-post-content blockquote cite {
    display: block;
    margin-top: 12px;
    color: #7b8f86;
    font-size: 14px;
    font-style: normal;
}

.single-onoff_case_study .elementor-widget-theme-post-content ol {
    margin: 16px 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: onoff-cs-step;
}

.single-onoff_case_study .elementor-widget-theme-post-content ol > li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 32px;
    counter-increment: onoff-cs-step;
}

.single-onoff_case_study .elementor-widget-theme-post-content ol > li::before {
    content: counter(onoff-cs-step);
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #e6f8f0;
    color: #2dd08c;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.single-onoff_case_study .elementor-widget-theme-post-content figure img {
    border-radius: 12px;
}

.single-onoff_case_study .elementor-widget-theme-post-content figcaption {
    margin-top: 8px;
    color: #7b8f86;
    font-size: 13px;
    text-align: left;
}

/* CTA de fin de contenu : valeurs reprises du bloc de fin des articles
 * (dégradé vert, titre + sous-titre centrés en blanc, bouton blanc + bouton contour blanc). */
.onoff-cs-cta {
    margin: 50px auto 0;
    padding: 50px;
    border-radius: 15px;
    background-color: transparent;
    background-image: linear-gradient(180deg, #2e5144 0%, #15c576 100%);
    text-align: center;
    max-width: 1280px;
}

.onoff-cs-cta .onoff-cs-cta__title {
    margin: 0;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2em;
}

.onoff-cs-cta .onoff-cs-cta__title--second {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 300;
}

.onoff-cs-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.onoff-cs-btn {
    display: inline-block;
    padding: 14px 20px 14px 21px;
    border: 2px solid #fff;
    border-radius: 30px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: var(--e-global-typography-accent-font-weight, 500);
    line-height: 1;
    text-decoration: none;
    transition: 0.3s all;
}

.onoff-cs-btn--primary,
.onoff-cs-btn--primary:visited {
    background: #fff;
    color: #15c576;
}

.onoff-cs-btn--primary:hover,
.onoff-cs-btn--primary:focus {
    background: transparent;
    color: #fff;
}

.onoff-cs-btn--secondary,
.onoff-cs-btn--secondary:visited {
    background: transparent;
    color: #fff;
}

.onoff-cs-btn--secondary:hover,
.onoff-cs-btn--secondary:focus {
    background: #fff;
    color: #15c576;
}

@media (max-width: 767px) {
    .onoff-cs-cta {
        padding: 40px 24px;
    }

    .onoff-cs-cta .onoff-cs-cta__title {
        font-size: 32px;
    }
}

/* Carte "À la une" de la page hub : [onoff_case_studies_featured]
 * (design horizontal du wireframe, version fond clair). */
.onoff-cs-spotlight__eyebrow {
    margin: 0 0 20px;
    color: #2dd08c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.onoff-cs-spotlight__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e3e8e6;
    border-radius: 16px;
    background: #fff;
}

.onoff-cs-spotlight__body {
    display: flex;
    flex-direction: column;
    padding: 44px;
}

.onoff-cs-spotlight__client {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.onoff-cs-spotlight__client-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid #e3e8e6;
    border-radius: 12px;
    background: #f5f8f6;
}

.onoff-cs-spotlight__client-logo img {
    display: block;
    width: auto !important;
    max-width: 80% !important;
    height: auto !important;
    max-height: 80% !important;
    object-fit: contain;
}

.onoff-cs-spotlight__client-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.onoff-cs-spotlight__client-name {
    color: #1d2725;
    font-size: 15px;
    font-weight: 500;
}

.onoff-cs-spotlight__client-meta {
    color: #6b7773;
    font-size: 12.5px;
}

.onoff-cs-spotlight .onoff-cs-spotlight__title {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.onoff-cs-spotlight__title a {
    color: #1d2725;
    text-decoration: none;
}

.onoff-cs-spotlight__quote {
    margin: 0 0 28px;
    padding: 0 0 0 18px;
    border: 0;
    border-left: 2px solid #d5dcd9;
    background: none;
}

.onoff-cs-spotlight__quote p {
    margin: 0 0 12px;
    color: #4b5753;
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
}

.onoff-cs-spotlight__quote footer {
    color: #6b7773;
    font-size: 13px;
}

.onoff-cs-spotlight__quote strong {
    color: #1d2725;
    font-weight: 600;
}

.onoff-cs-spotlight__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.onoff-cs-spotlight__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onoff-cs-spotlight__stat-value {
    color: #2dd08c;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.onoff-cs-spotlight__stat-label {
    color: #6b7773;
    font-size: 12.5px;
    line-height: 1.4;
}

.onoff-cs-spotlight__link {
    margin-top: auto;
    color: #2dd08c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.onoff-cs-spotlight__link:hover {
    text-decoration: underline;
}

.onoff-cs-spotlight__media {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    border-left: 1px solid #e3e8e6;
    background: #eef3f0;
}

.onoff-cs-spotlight .onoff-cs-spotlight__media img.onoff-cs-spotlight__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Léger voile pour garder le logo blanc lisible sur la photo */
.onoff-cs-spotlight__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 40, 28, 0.15) 0%,
        rgba(10, 40, 28, 0.45) 100%
    );
}

.onoff-cs-spotlight__media-logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.onoff-cs-spotlight__media-logo img {
    display: inline-block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 70px;
    filter: brightness(0) invert(1);
}

.onoff-cs-spotlight__card:hover .onoff-cs-spotlight__image {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .onoff-cs-spotlight__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .onoff-cs-spotlight__media {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-left: 0;
        border-bottom: 1px solid #e3e8e6;
    }
}

@media (max-width: 767px) {
    .onoff-cs-spotlight__body {
        padding: 24px;
    }

    .onoff-cs-spotlight .onoff-cs-spotlight__title {
        font-size: 24px;
    }

    .onoff-cs-spotlight__stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}

/* Case study mise en avant (page hub) : [onoff_case_studies_featured] */
.onoff-cs-featured {
    display: block;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    color: #1d2725;
    text-decoration: none;
}

.onoff-cs-featured__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #1f6b47;
}

/* Image en "cover" sur tout le cadre. !important : Elementor impose
 * `.elementor img { height: auto; max-width: 100% }`, plus spécifique. */
.onoff-cs-featured .onoff-cs-featured__media img.onoff-cs-featured__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* Voile vert par-dessus la photo */
.onoff-cs-featured__media::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(45, 160, 105, 0.55) 0%, rgba(10, 70, 40, 0.85) 100%); */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.onoff-cs-featured__logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Logo client passé en blanc */
.onoff-cs-featured__logo img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    max-height: 72px;
    filter: brightness(0) invert(1);
}

.onoff-cs-featured__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
}

.onoff-cs-featured__title {
    color: #1d2725;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Stat principale sous le titre */
.onoff-cs-featured__keystat {
    color: #2dd08c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.onoff-cs-featured:hover .onoff-cs-featured__image {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .onoff-cs-featured {
        padding: 16px;
    }

    .onoff-cs-featured__title {
        font-size: 20px;
    }
}

/* Même carte en grille (widget de la page hub, "Ils en profitent aussi") :
 * tailles réduites pour 3 colonnes, fin contour pour la détacher d'un fond blanc. */
.onoff-cs-grid .onoff-cs-featured {
    /* padding: 16px; */
    padding: 0;
    /* border: 1px solid #e5efe9; */
    border: none;
    /* border-radius: 20px; */
}

.onoff-cs-grid .onoff-cs-featured__logo img {
    max-height: 44px;
}

.onoff-cs-grid .onoff-cs-featured__body {
    gap: 6px;
    padding-top: 16px;
}

.onoff-cs-grid .onoff-cs-featured__title {
    font-size: 19px;
}

.onoff-cs-grid .onoff-cs-featured__keystat {
    font-size: 14px;
}

/* ------------------------------------------------------------------
 * Widget "Case Studies" de la page hub : titre, filtres, cartes, bouton
 * ------------------------------------------------------------------ */
.onoff-cs-hub__eyebrow {
    margin: 0 0 8px;
    color: #2dd08c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.onoff-cs-hub .onoff-cs-hub__title {
    margin: 0 0 24px;
    color: #1d2725;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.onoff-cs-hub__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.onoff-cs-hub .onoff-cs-hub__filter {
    padding: 7px 16px;
    border: 1px solid #e3e8e6;
    border-radius: 999px;
    background: #fff;
    color: #4b5753;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: 0.2s all;
}

.onoff-cs-hub .onoff-cs-hub__filter:hover {
    border-color: #1f6b47;
    color: #1f6b47;
}

.onoff-cs-hub .onoff-cs-hub__filter.is-active {
    border-color: #1f6b47;
    background: #1f6b47;
    color: #fff;
}

.onoff-cs-hub__grid {
    align-items: stretch;
}

/* Carte */
.onoff-cs-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e3e8e6;
    border-radius: 14px;
    background: #fff;
}

.onoff-cs-tile[hidden] {
    display: none;
}

.onoff-cs-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e3ebe7;
}

.onoff-cs-tile .onoff-cs-tile__media img.onoff-cs-tile__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.onoff-cs-tile__media.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 30, 22, 0.35) 0%,
        rgba(10, 30, 22, 0.6) 100%
    );
}

.onoff-cs-tile__logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 60%;
    transform: translate(-50%, -50%);
    color: #1d2725;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.onoff-cs-tile__logo img {
    display: inline-block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 44px;
}

/* Logo / nom en blanc sur la photo */
.onoff-cs-tile__media.has-image .onoff-cs-tile__logo {
    color: #fff;
}

.onoff-cs-tile__media.has-image .onoff-cs-tile__logo img {
    filter: brightness(0) invert(1);
}

.onoff-cs-tile:hover .onoff-cs-tile__image {
    transform: scale(1.03);
}

.onoff-cs-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.onoff-cs-tile__sector {
    margin-bottom: 10px;
    color: #4b5753;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 11px;
}

.onoff-cs-tile .onoff-cs-tile__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.onoff-cs-tile__title a {
    color: #1d2725;
    text-decoration: none;
}

.onoff-cs-tile__excerpt {
    margin: 0 0 14px;
    color: #6b7773;
    font-size: 13px;
    line-height: 1.55;
}

.onoff-cs-tile__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.onoff-cs-tile__pills li {
    margin: 0;
    padding: 4px 10px;
    border: 1px solid #e3e8e6;
    border-radius: 999px;
    color: #4b5753;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 10.5px;
}

.onoff-cs-tile__link {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e3e8e6;
    color: #1f6b47;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.onoff-cs-tile__link:hover,
.onoff-cs-tile__title a:hover {
    text-decoration: underline;
}

/* Bouton "Voir tous les cas clients" */
.onoff-cs-hub__more {
    margin-top: 28px;
    text-align: center;
}

.onoff-cs-hub__more[hidden] {
    display: none;
}

.onoff-cs-hub .onoff-cs-hub__more-btn {
    padding: 9px 22px;
    border: 1px solid #d5dcd9;
    border-radius: 8px;
    background: #fff;
    color: #1d2725;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s all;
}

.onoff-cs-hub .onoff-cs-hub__more-btn:hover {
    border-color: #1f6b47;
    color: #1f6b47;
}

@media (max-width: 767px) {
    .onoff-cs-hub .onoff-cs-hub__title {
        font-size: 24px;
    }
}

/* Ils en profitent aussi */
.onoff-cs-related {
    padding: 72px 24px 80px;
    background: #fff;
}

.onoff-cs-related__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.onoff-cs-related__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.onoff-cs-related__title {
    margin: 0 0 6px;
    color: #273348;
    font-size: 28px;
}

.onoff-cs-related__sub {
    margin: 0;
    color: #7b8f86;
}

.onoff-cs-related__all {
    color: #2dd08c;
    font-weight: 600;
    text-decoration: none;
}

.onoff-cs-card__sector {
    color: #2dd08c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .onoff-cs-stats__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .onoff-cs-stat:nth-child(odd) {
        border-left: 0;
    }

    .onoff-cs-stat:nth-child(n + 3) {
        border-top: 1px solid #e5efe9;
    }
}

@media (max-width: 767px) {
    .onoff-cs-stats__inner {
        grid-template-columns: 1fr;
    }

    .onoff-cs-stat {
        border-left: 0;
        border-top: 1px solid #e5efe9;
    }

    .onoff-cs-stat:first-child {
        border-top: 0;
    }

    .onoff-cs-related .onoff-cs-grid {
        grid-template-columns: 1fr;
    }
}
