:root {
    --bm-home-maxw: min(1200px, 92vw);
    --bm-home-pad: clamp(24px, 6vw, 72px);
    --home-section-title: clamp(22px, 3vw, 32px);
    --home-pad-mobile: 24px;
    --home-pad-desktop: 120px;
}

/* Root wrapper */
.bm-home {
    background: #ffffff;
    color: #111111;
    position: relative;
    overflow: hidden;
    /* overlap the fixed header without removing hero from flow: */
    margin-top: calc(-1 * var(--bm-h));
}

/* Shared section head */
.home-section-head {
    margin-bottom: clamp(24px, 4vw, 36px);
}

.home-section-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: #0a76b5;
    margin-bottom: 8px;
}

/* Reveal base (shared with other pages) */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* HERO
   ------------------------------------------------------------------------- */

.home-hero {
    position: relative;
    min-height: clamp(480px, 80vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    transform: translate3d(0, 0, 0);
    filter: brightness(0.9) contrast(1.05) saturate(0.85) sepia(0.2) hue-rotate(180deg);
    will-change: transform;
}

/* Background “video / image” layer*/
.home-hero-media {
    position: absolute;
    inset: -5%;
    background-image:
        linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Hero content */
.home-hero-inner {
    width: 100%;
    max-width: var(--bm-home-maxw);
    margin-inline: auto;
    padding: clamp(32px, 7vw, 72px) var(--bm-home-pad);
}

.home-hero-title {
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
    max-width: 40rem;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Grey banner that starts at left edge of screen and ends after text */
.home-intro-band {
    position: relative;
    display: inline-block;
    background: rgba(7, 9, 13, 0.75);
    color: #ffffff;
    padding-block: 12px;
    padding-inline: 18px 32px;
    padding-left: 10px;
    margin-bottom: 28px;
}

.home-hero-subtitle {
    max-width: 45rem;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

/* Hero actions */
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: none;
    background: #145181;
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 18px);
    ;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out;
}

.home-hero-btn:hover,
.home-hero-btn:focus-visible {
    background: #0a76b5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.home-hero-link {
    font-size: clamp(14px, 1.6vw, 18px);
    ;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    opacity: 0.9;
    position: relative;
}

.home-hero-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0.7;
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 0.2s ease-out;
}

.home-hero-link:hover::after,
.home-hero-link:focus-visible::after {
    transform: scaleX(1);
}

/* Hero meta stats */
.home-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 40rem;
    padding: 12px 16px;
    background: rgba(7, 9, 13, 0.75);
    backdrop-filter: blur(16px);
}

.home-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-hero-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    opacity: 0.75;
}

.home-hero-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mission
   ------------------------------------------------------------------------- */

.home-mission {
    position: relative;
    padding: clamp(40px, 7vw, 72px) var(--bm-home-pad);
    background: #f4f5f7;
    overflow: hidden;
}

.home-mission-inner {
    max-width: var(--bm-home-maxw);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.home-mission-title {
    margin: 0 0 clamp(24px, 4vw, 32px);
    font-size: var(--home-section-title);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-mission-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(24px, 5vw, 40px);
    align-items: flex-start;
}

.home-mission-text p {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.8;
    color: #333333;
    margin-bottom: 12px;
}

.home-mission-stats {
    display: grid;
    gap: 14px;
}

.home-mission-stat {
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.home-mission-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #013E75;
    margin-bottom: 4px;
}

.home-mission-stat-label {
    font-size: 0.88rem;
    color: #444444;
}

/* Orbiting decorative shapes */
.home-mission-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Valeurs
   ------------------------------------------------------------------------- */

.home-values {
    padding: clamp(40px, 7vw, 72px) var(--bm-home-pad);
    background: #ffffff;
}

.home-values-inner {
    max-width: var(--bm-home-maxw);
    margin-inline: auto;
}

.home-values-title {
    margin: 0 0 clamp(24px, 4vw, 32px);
    font-size: var(--home-section-title);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 24px);
}

.home-value-card {
    background: #f7f8fa;
    border-radius: 14px;
    padding: 18px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out;
}

.home-value-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0, rgba(10, 118, 181, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 0.18s ease-out;
}

.home-value-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-value-icon svg {
    width: 100%;
    height: 100%;
    stroke: #013E75;
    fill: rgba(10, 118, 181, 0.1);
}

.home-value-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.home-value-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444444;
}

/* CTA
   ------------------------------------------------------------------------- */
/* Section wrapper */
.home-cta {
    padding-block: clamp(40px, 7vw, 72px);
    background: #ffffff;
}

/* Shared inner padding logic */
.home-cta-inner,
.home-cta-button-wrap {
    max-width: var(--bm-home-maxw, 1200px);
    margin-inline: auto;
}

.home-cta-inner {
    padding-inline: clamp(var(--home-pad-mobile, 24px),
            5vw,
            var(--home-pad-desktop, 120px));
}

.home-cta-title {
    margin: 0 0 clamp(24px, 4vw, 32px);
    font-size: var(--home-section-title);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Note sentence below cards */
.home-cta-text {
    margin: clamp(28px, 4vw, 36px) 0 0;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
}

/* CTA button area */
.home-cta-button-wrap {
    padding-inline: clamp(var(--home-pad-mobile, 24px),
            5vw,
            var(--home-pad-desktop, 120px));
    margin-top: clamp(12px, 2.4vw, 18px);
}

.home-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: clamp(14px, 1.6vw, 18px);
    background: #013E75;
    color: #ffffff;
    border-radius: 0;
    border: none;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-cta-button:hover,
.home-cta-button:focus-visible {
    background: #0a76b5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Reveal helper, scoped */
.home-cta .reveal {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.home-cta .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(8px);
}

/* Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .home-hero-meta {
        grid-template-columns: 1fr;
    }

    .home-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-mission-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-title {
        margin-top: 65px;
    }
}

@media (max-width: 640px) {
    .home-hero-inner {
        padding-inline: 20px;
    }

    .home-hero {
        align-items: flex-end;
    }

    .home-hero-meta {
        margin-top: 8px;
    }

    .home-values-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}