/**
 * Homepage refonte — alignée maquette Figma (node 7401-214)
 */

.page-template-template-home.d4a-home--v2,
.d4a-home--v2 .d4a-home {
    --d4a-blue: #025b94;
    --d4a-green: #05e49c;
    --d4a-kpi-green: #58aa47;
    --d4a-light: #f7f9fd;
    --d4a-border: #dde6f1;
    --d4a-text: #2e3454;
    --d4a-track: #e6edf5;
    --d4a-vignette: #dde8f2;
    --d4a-chip-bg: #eaf2f8;
    /* Conteneurs & espacements (standards) */
    --d4a-container-max: 90rem; /* 1440px */
    --d4a-container-padding: 3rem; /* 48px */
    --d4a-section-y: 5rem; /* 80px */
    --d4a-gap-lg: 3rem; /* 48px */
    --d4a-gap-xl: 4rem; /* 64px */
}

@media (min-width: 768px) {
    .page-template-template-home.d4a-home--v2,
    .d4a-home--v2 .d4a-home {
        --d4a-container-padding: 4rem; /* 64px */
    }
}

@media (max-width: 767px) {
    .page-template-template-home.d4a-home--v2,
    .d4a-home--v2 .d4a-home {
        --d4a-container-padding: 1.5rem; /* 24px — moitié du 3rem mobile */
    }
}

/* Conteneur horizontal partagé (homepage) */
.d4a-home--v2 .home-hero__inner,
.d4a-home--v2 .home-diagnostics__container,
.d4a-home--v2 .home-news-innovations__container {
    width: 100%;
    max-width: var(--d4a-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--d4a-container-padding);
    padding-right: var(--d4a-container-padding);
    box-sizing: border-box;
}

body.d4a-home--v2 #headerwrap {
    padding-left: var(--d4a-container-padding) !important;
    padding-right: var(--d4a-container-padding) !important;
}

body.d4a-home--v2 #header {
    max-width: var(--d4a-container-max);
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/* Header + login (Figma Navbar — 93px, login #025b94)                        */
/* -------------------------------------------------------------------------- */

body.d4a-home--v2 #primary.site-main {
    padding-top: 0;
}

body.d4a-home--v2 > header {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 0 rgba(2, 91, 148, 0.08);
}

body.d4a-home--v2 #headerwrap {
    height: 93px;
}

body.d4a-home--v2 #header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    height: 93px;
}

body.d4a-home--v2 #logo {
    width: auto;
    flex: 0 0 240px;
    max-width: 240px;
    display: flex;
    align-items: center;
}

body.d4a-home--v2 #header ul.menu > li > a,
body.d4a-home--v2.page-template-template-home #header ul.menu > li > a {
    display: inline-flex !important;
    align-items: center;
    align-self: stretch;
    box-sizing: border-box;
    color: #2a2b2c !important;
    background: transparent !important;
    text-transform: none !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    padding: 0 16px !important;
    min-height: 100%;
    height: auto;
}

body.d4a-home--v2 #header ul.menu > li.current-menu-item > a,
body.d4a-home--v2 #header ul.menu > li.current_page_item > a,
body.d4a-home--v2 #header ul.menu > li.current-menu-ancestor > a,
body.d4a-home--v2 #header ul.menu > li.current-menu-item > a strong,
body.d4a-home--v2 #header ul.menu > li.current_page_item > a strong,
body.d4a-home--v2 #header ul.menu > li.current-menu-ancestor > a strong {
    color: #fff !important;
    background: #025b94 !important;
}

body.d4a-home--v2 #header ul.menu > li.current-menu-item,
body.d4a-home--v2 #header ul.menu > li.current_page_item,
body.d4a-home--v2 #header ul.menu > li.current-menu-ancestor {
    display: flex;
    align-items: stretch;
    background: transparent;
}

body.d4a-home--v2 #header ul.menu > li > a strong {
    display: inline;
    font-weight: inherit;
}

body.d4a-home--v2 #logo img {
    max-height: 40px;
    width: auto;
}

@media (min-width: 1026px) {
    body.d4a-home--v2 #header .header-actions--bar {
        align-self: stretch;
        display: flex;
        align-items: center;
    }

    body.d4a-home--v2 #header .header-actions--bar .btn-home-login {
        margin: 0 !important;
    }
}

body.d4a-home--v2 .menu-item-login a.btn-home-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 0 12px;
    padding: 8px 20px !important;
    font-weight: 400;
    font-size: 16px !important;
    line-height: 1.5;
    color: #fff !important;
    background: var(--d4a-blue) !important;
    border: none;
    border-radius: 2px;
    text-decoration: none !important;
    float: none;
    text-transform: none;
    white-space: nowrap;
}

body.d4a-home--v2 .btn-home-login__icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

body.d4a-home--v2 .btn-home-login__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

body.d4a-home--v2 .menu-item-login a.btn-home-login:hover,
body.d4a-home--v2 .menu-item-login a.btn-home-login:focus {
    color: #fff !important;
    background: #014a78 !important;
}

body.d4a-home--v2 #header .menu-item-legacy-login {
    display: none !important;
}

@media (min-width: 1026px) {
    body.d4a-home--v2 #header .pagenav.home {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        align-self: stretch;
        justify-content: flex-end;
        gap: 32px;
        float: none;
        width: auto;
        max-width: none;
        flex: 1;
        min-width: 0;
        margin: 0;
        height: 100%;
    }

    body.d4a-home--v2 #header .pagenav.home .menu {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-end;
        gap: 0;
        float: none;
        height: 100%;
    }

    body.d4a-home--v2 #header .pagenav.home .menu > li {
        display: flex;
        align-items: stretch;
    }

    body.d4a-home--v2 .burger-menu {
        display: none !important;
    }
}

@media (max-width: 1025px) {
    body.d4a-home--v2 #headerwrap {
        height: 60px;
    }

    body.d4a-home--v2 #header {
        height: 60px;
        gap: 12px;
        align-items: center;
    }

    body.d4a-home--v2 #logo {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        padding-right: 12px;
    }

    body.d4a-home--v2 #logo a {
        width: auto;
    }

    body.d4a-home--v2 #logo img {
        max-height: 36px;
        width: auto;
        max-width: 100%;
    }

    body.d4a-home--v2 .burger-menu {
        display: flex !important;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 0;
    }

    body.d4a-home--v2 #logo,
    body.d4a-home--v2 .burger-menu {
        position: relative;
        z-index: 1004;
    }

    body.d4a-home--v2 #header .pagenav.home .menu > li > a {
        display: block !important;
        width: 100%;
        min-height: 0;
        padding: 14px 16px !important;
        text-align: left;
    }

    body.d4a-home--v2 #header .pagenav.home .menu > li {
        display: block;
        width: 100%;
    }

    body.d4a-home--v2 #header .pagenav.home .menu-item-login {
        display: block;
        width: 100%;
        margin-top: 16px;
        text-align: center;
    }

    body.d4a-home--v2 .menu-item-login a.btn-home-login {
        width: 100%;
        justify-content: center;
    }

    body.d4a-home--v2 .home-hero--figma {
        margin-top: 60px;
    }
}

/* -------------------------------------------------------------------------- */
/* Hero (Figma Frame 43 — 461px)                                              */
/* -------------------------------------------------------------------------- */

.d4a-home--v2 .home-hero--figma {
    position: relative !important;
    box-sizing: border-box;
    height: 461px;
    min-height: 461px;
    max-height: 461px;
    display: flex;
    align-items: center;
    padding-top: var(--d4a-section-y) !important;
    padding-bottom: var(--d4a-section-y) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    margin-top: 93px;
    overflow: hidden;
    isolation: isolate;
    z-index: 2;
    background-color: #3d3d3d;
}

.d4a-home--v2 .home-hero__media-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.d4a-home--v2 .home-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
    max-width: none;
}

.d4a-home--v2 .home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.28) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.d4a-home--v2 .home-hero--has-video .home-hero__overlay {
    background: rgba(0, 0, 0, 0.4);
}

.d4a-home--v2 .home-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 0;
}

.d4a-home--v2 .home-hero__content {
    max-width: 860px;
    color: #fbfbfb;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.d4a-home--v2 .home-hero__title {
    margin: 0;
    color: #fbfbfb !important;
    font-family: sofia, sans-serif !important;
    font-size: 52px !important;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    max-width: 850px;
}

.d4a-home--v2 .home-hero__text,
.d4a-home--v2 .home-hero__text p {
    margin: 0;
    color: #fbfbfb !important;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 860px;
}

.d4a-home--v2 .home-hero__cta-wrap {
    margin-top: 32px;
}

.d4a-home--v2 .home-hero__cta {
    display: inline-flex;
    padding: 12px 28px;
    background: var(--d4a-green);
    color: #fff !important;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none !important;
}

/* -------------------------------------------------------------------------- */
/* Logos producers                                                            */
/* -------------------------------------------------------------------------- */

.d4a-home--v2 .home-producers-logos {
    position: relative;
    z-index: 3;
    padding: 40px 0 !important;
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--d4a-border);
}

.d4a-home--v2 .home-producers-marquee {
    width: 100%;
    overflow: hidden;
}

.d4a-home--v2 .home-producers-marquee__track {
    display: flex;
    width: max-content;
    animation: home-producers-marquee var(--marquee-duration, 50s) linear infinite;
    will-change: transform;
}

.d4a-home--v2 .home-producers-marquee__group {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-shrink: 0;
}

.d4a-home--v2 .home-producers-logos__item {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d4a-home--v2 .home-producers-logos__link,
.d4a-home--v2 .home-producers-logos__item img {
    display: block;
    max-height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@keyframes home-producers-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .d4a-home--v2 .home-producers-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .d4a-home--v2 .home-producers-marquee__group[aria-hidden="true"] {
        display: none;
    }
}

.d4a-home--v2 .home-diagnostics,
.d4a-home--v2 #home-diagnostics {
    position: relative;
    z-index: 3;
    padding: var(--d4a-section-y) 0 !important;
    background: var(--d4a-light) !important;
}

/* -------------------------------------------------------------------------- */
/* Legacy overrides                                                           */
/* -------------------------------------------------------------------------- */

/* Neutralise le padding legacy (style.css) sauf sections refonte v2 */
.d4a-home--v2.page-template-template-home section:not(.home-hero--figma):not(.home-producers-logos):not(.home-diagnostics):not(.home-news-innovations):not(.home-regulatory),
.d4a-home--v2 .page-template-template-home section:not(.home-hero--figma):not(.home-producers-logos):not(.home-diagnostics):not(.home-news-innovations):not(.home-regulatory) {
    padding: 0 !important;
    position: static !important;
}

.d4a-home--v2 .home_title,
.d4a-home--v2 .innovations__list,
.d4a-home--v2 .aq-posts-block,
.d4a-home--v2 .one_third,
.d4a-home--v2 .home-legacy-sections {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Diagnostics (Figma Stats / 54 / v2)                                        */
/* -------------------------------------------------------------------------- */

.d4a-home--v2 .home-diagnostics__intro {
    position: static !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--d4a-gap-xl);
    align-items: start;
    margin-bottom: var(--d4a-gap-lg);
    width: auto !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
}

.d4a-home--v2 .home-diagnostics__title {
    margin: 0;
    color: var(--d4a-blue) !important;
    font-family: sofia, sans-serif !important;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.d4a-home--v2 .home-diagnostics__lead {
    margin: 0;
    color: var(--d4a-blue);
    font-size: 18px;
    line-height: 1.5;
}

.d4a-home--v2 .home-diagnostics__body {
    display: flex;
    gap: var(--d4a-gap-lg);
    align-items: flex-start;
    margin-bottom: var(--d4a-gap-lg);
}

.d4a-home--v2 .home-diagnostics__kpis {
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
}

.d4a-home--v2 .home-diagnostics__kpi {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.d4a-home--v2 .home-diagnostics__kpi-accent {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--d4a-kpi-green);
}

.d4a-home--v2 .home-diagnostics__kpi-value {
    font-family: Roboto, sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--d4a-kpi-green);
}

.d4a-home--v2 .home-diagnostics__kpi-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--d4a-text);
}

.d4a-home--v2 .home-diagnostics__viz {
    flex: 1;
    display: flex;
    gap: 32px;
    min-width: 0;
}

.d4a-home--v2 .home-diagnostics__card {
    flex: 1;
    min-width: 0;
    height: 360px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--d4a-border);
    border-radius: 6px;
    box-shadow: 0 16px 38px -12px rgba(2, 91, 148, 0.16);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.d4a-home--v2 .home-diagnostics__card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--d4a-blue);
}

.d4a-home--v2 .home-diagnostics__species-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.d4a-home--v2 .home-diagnostics__species-row-link {
    display: grid;
    grid-template-columns: 24px 150px 1fr 44px;
    gap: 12px;
    align-items: center;
    color: inherit !important;
    text-decoration: none !important;
}

.d4a-home--v2 .home-diagnostics__species-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.d4a-home--v2 .home-diagnostics__species-icon--empty {
    display: block;
    background: var(--d4a-track);
    border-radius: 4px;
}

.d4a-home--v2 .home-diagnostics__species-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--d4a-text);
    line-height: 1.2;
}

.d4a-home--v2 .home-diagnostics__species-track {
    display: block;
    height: 10px;
    background: var(--d4a-track);
    border-radius: 2px;
    overflow: hidden;
}

.d4a-home--v2 .home-diagnostics__species-bar {
    display: block;
    height: 100%;
    background: var(--d4a-blue);
    border-radius: 2px;
}

.d4a-home--v2 .home-diagnostics__species-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--d4a-blue);
    text-align: right;
}

.d4a-home--v2 .home-diagnostics__treemap {
    flex: 1;
    display: flex;
    gap: 4px;
    min-height: 0;
}

.d4a-home--v2 .home-diagnostics__treemap-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.d4a-home--v2 .home-diagnostics__treemap-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    padding: 8px 10px 9px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none !important;
    min-height: 48px;
}

.d4a-home--v2 .home-diagnostics__treemap-tile.is-light {
    color: var(--d4a-blue);
}

.d4a-home--v2 .home-diagnostics__treemap-name {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.12;
}

.d4a-home--v2 .home-diagnostics__treemap-meta {
    font-size: 9.5px;
    opacity: 0.9;
}

.d4a-home--v2 .home-diagnostics__cta {
    text-align: center;
}

.d4a-home--v2 .home-diagnostics__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--d4a-blue);
    color: #fff !important;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none !important;
}

.d4a-home--v2 .home-diagnostics__cta-btn:hover {
    background: #014a78;
}

/* -------------------------------------------------------------------------- */
/* News + innovations                                                         */
/* -------------------------------------------------------------------------- */

.d4a-home--v2 .home-news-innovations {
    position: relative;
    z-index: 3;
    padding: var(--d4a-section-y) 0 !important;
    background: #fff !important;
}

.d4a-home--v2 .home-news-innovations__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--d4a-gap-lg);
    align-items: start;
}

.d4a-home--v2 .home-news-innovations__col {
    min-width: 0;
}

.d4a-home--v2 .home-news-innovations__heading {
    margin: 0 0 24px;
    min-height: 88px;
    color: var(--d4a-blue) !important;
    font-family: sofia, sans-serif !important;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.d4a-home--v2 .home-news-innovations__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.d4a-home--v2 .home-news-card,
.d4a-home--v2 .home-innovation-card {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--d4a-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px -8px rgba(2, 91, 148, 0.1);
}

.d4a-home--v2 .home-news-card__media,
.d4a-home--v2 .home-innovation-card__media {
    flex: 0 0 160px;
    width: 160px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d4a-vignette);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none !important;
}

.d4a-home--v2 .home-news-card__media img,
.d4a-home--v2 .home-innovation-card__media img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.d4a-home--v2 .home-news-card__body,
.d4a-home--v2 .home-innovation-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.d4a-home--v2 .home-news-card__chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--d4a-kpi-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 11px;
}

.d4a-home--v2 .home-news-card__title,
.d4a-home--v2 .home-innovation-card__title {
    margin: 0;
    font-size: 16px !important;
    line-height: 1.2;
}

.d4a-home--v2 .home-news-card__title a,
.d4a-home--v2 .home-innovation-card__title a {
    color: var(--d4a-blue) !important;
    text-decoration: none !important;
}

.d4a-home--v2 .home-news-card__excerpt,
.d4a-home--v2 .home-innovation-card__excerpt {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--d4a-text);
}

.d4a-home--v2 .home-news-card__link,
.d4a-home--v2 .home-innovation-card__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--d4a-blue) !important;
    text-decoration: none !important;
}

.d4a-home--v2 .home-innovation-card__producer {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--d4a-kpi-green);
}

.d4a-home--v2 .home-innovation-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.d4a-home--v2 .home-innovation-card__chip {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--d4a-chip-bg);
    color: var(--d4a-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 11px;
}

.d4a-home--v2 .home-news-innovations__more {
    display: inline-block;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--d4a-blue) !important;
    text-decoration: none !important;
}

/* -------------------------------------------------------------------------- */
/* Mapping réglementaire (Figma Frame 45)                                     */
/* -------------------------------------------------------------------------- */

.d4a-home--v2 .home-regulatory {
    position: relative;
    z-index: 3;
    background: #fff;
    padding: 0 !important;
}

.d4a-home--v2 .home-regulatory__layout {
    display: flex;
    align-items: stretch;
    min-height: 540px;
    background: #fff;
}

.d4a-home--v2 .home-regulatory__content {
    flex: 1 1 50%;
    max-width: none;
    background: var(--d4a-light);
    padding: var(--d4a-section-y) var(--d4a-container-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.125rem;
}

.d4a-home--v2 .home-regulatory__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.d4a-home--v2 .home-regulatory__eyebrow-line {
    width: 28px;
    height: 2px;
    background: var(--d4a-kpi-green);
    flex-shrink: 0;
}

.d4a-home--v2 .home-regulatory__eyebrow-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--d4a-kpi-green);
}

.d4a-home--v2 .home-regulatory__title {
    margin: 0;
    color: var(--d4a-blue) !important;
    font-family: sofia, sans-serif !important;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.d4a-home--v2 .home-regulatory__description {
    margin: 0;
    color: var(--d4a-blue);
    font-size: 18px;
    line-height: 1.5;
}

.d4a-home--v2 .home-regulatory__cta {
    display: inline-flex;
    align-self: flex-start;
    padding: 14px 30px;
    background: var(--d4a-blue);
    color: #fff !important;
    border-radius: 3px;
    font-size: 16px;
    text-decoration: none !important;
}

.d4a-home--v2 .home-regulatory__visual {
    flex: 1 1 50%;
    max-width: none;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--d4a-light);
    min-height: 540px;
}

.d4a-home--v2 .home-regulatory__illustration {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    object-position: center right;
}

.d4a-home--v2 .home-regulatory__layout--no-visual .home-regulatory__content {
    flex: 1;
    max-width: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .d4a-home--v2 .home-diagnostics__intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .d4a-home--v2 .home-diagnostics__body {
        flex-direction: column;
    }

    .d4a-home--v2 .home-diagnostics__kpis {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .d4a-home--v2 .home-diagnostics__kpi {
        flex: 1 1 140px;
    }

    .d4a-home--v2 .home-diagnostics__viz {
        flex-direction: column;
        width: 100%;
    }

    .d4a-home--v2 .home-diagnostics__card {
        height: auto;
        min-height: 320px;
    }
}

@media (max-width: 991px) {
    .d4a-home--v2 .home-news-innovations__layout {
        grid-template-columns: 1fr;
    }

    .d4a-home--v2 .home-news-innovations__heading {
        font-size: 32px !important;
    }

    .d4a-home--v2 .home-diagnostics__kpis {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 24px;
    }

    .d4a-home--v2 .home-diagnostics__kpi {
        flex: none;
        width: 100%;
    }
}

/* Neutralise les styles legacy homepage qui cassent la refonte */
body.d4a-home--v2.page-template-template-home .menu > li:not(.current-menu-item):not(.current_page_item):not(.current-menu-ancestor) > a,
body.d4a-home--v2.page-template-template-home-php .menu > li:not(.current-menu-item):not(.current_page_item):not(.current-menu-ancestor) > a {
    color: #2a2b2c !important;
}

body.d4a-home--v2.page-template-template-home .menu > li.current-menu-item > a,
body.d4a-home--v2.page-template-template-home-php .menu > li.current-menu-item > a,
body.d4a-home--v2.page-template-template-home .menu > li.current_page_item > a,
body.d4a-home--v2.page-template-template-home-php .menu > li.current_page_item > a {
    color: #fff !important;
    background: #025b94 !important;
}

body.d4a-home--v2.page-template-template-home .home-hero__media,
body.d4a-home--v2.page-template-template-home-php .home-hero__media,
body.d4a-home--v2 .home-hero__media-wrap video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

@media (max-width: 1199px) {
    .d4a-home--v2 .home-hero__title {
        font-size: 40px !important;
    }

    .d4a-home--v2 .home-hero__text,
    .d4a-home--v2 .home-hero__text p {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .d4a-home--v2 .home-hero--figma {
        margin-top: 72px;
        height: auto;
        min-height: 360px;
        max-height: none;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .d4a-home--v2 .home-hero__title {
        font-size: 28px !important;
    }

    .d4a-home--v2 .home-hero__content {
        gap: 24px;
    }

    .d4a-home--v2 .home-regulatory__layout {
        flex-direction: column;
        min-height: 0;
    }

    .d4a-home--v2 .home-regulatory__content {
        flex: none;
        max-width: none;
        padding: 3rem var(--d4a-container-padding);
    }

    .d4a-home--v2 .home-regulatory__visual {
        min-height: 280px;
    }

    .d4a-home--v2 .home-regulatory__illustration {
        min-height: 280px;
        width: 100%;
        object-position: center;
    }

    .d4a-home--v2 .home-diagnostics,
    .d4a-home--v2 #home-diagnostics,
    .d4a-home--v2 .home-news-innovations {
        padding: 3rem 0 !important;
    }

    .d4a-home--v2 .home-diagnostics__title,
    .d4a-home--v2 .home-news-innovations__heading {
        font-size: 28px !important;
    }

    .d4a-home--v2 .home-news-card,
    .d4a-home--v2 .home-innovation-card {
        flex-direction: column;
    }

    .d4a-home--v2 .home-news-card__media,
    .d4a-home--v2 .home-innovation-card__media {
        flex: none;
        width: 100%;
        min-height: 160px;
    }

    .d4a-home--v2 .home-diagnostics__species-row-link {
        grid-template-columns: 24px 1fr 44px;
        grid-template-rows: auto auto;
    }

    .d4a-home--v2 .home-diagnostics__species-name {
        grid-column: 2;
    }

    .d4a-home--v2 .home-diagnostics__species-track {
        grid-column: 1 / -1;
    }

    .d4a-home--v2 .home-diagnostics__species-count {
        grid-column: 3;
        grid-row: 1;
    }
}
