:root {
    --ba-mint: #71c2ae;
    --ba-mint-dark: #4b9f8b;
    --ba-mint-light: #eaf6f3;
    --ba-blue: #294b55;
    --ba-ink: #203f47;
    --ba-muted: #61757a;
    --ba-paper: #fff;
    --ba-soft: #f7faf9;
    --ba-rounded: "Arial Rounded MT Bold", "Arial Rounded MT", Arial, sans-serif;
}

/* ==========================================================
   BASE
   ========================================================== */

.ba-home {
    color: var(--ba-ink);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.ba-home * {
    box-sizing: border-box;
}

.ba-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ba-section {
    padding: 90px 0;
}

.ba-kicker {
    margin: 0 0 14px;
    color: var(--ba-mint);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ba-home h1,
.ba-home h2,
.ba-home h3 {
    margin-top: 0;
    font-family: var(--ba-rounded);
    line-height: 1.08;
}

.ba-home h2 {
    margin-bottom: 24px;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.ba-home p {
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================
   HERO
   ========================================================== */

.ba-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 680px;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            rgba(32, 63, 71, 0.9),
            rgba(32, 63, 71, 0.58) 48%,
            rgba(32, 63, 71, 0.18)
        ),
        url('../../images/bgd_accueil.png') center / cover no-repeat;
}

.ba-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 70px solid rgba(113, 194, 174, 0.72);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ba-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    padding: 85px 0;
}

.ba-hero h1 {
    max-width: 1050px;
    margin-bottom: 25px;
    font-size: clamp(54px, 6.2vw, 88px);
    font-weight: 800;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.ba-hero h1 span {
    color: var(--ba-mint);
}

.ba-hero__lead {
    max-width: 670px;
    margin: 0 0 34px;
    font-size: 21px;
}

.ba-presence {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 14px;
}

.ba-presence span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ba-mint);
    box-shadow: 0 0 0 6px rgba(113, 194, 174, 0.2);
}

/* ==========================================================
   BOUTONS
   ========================================================== */

.ba-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ba-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-family: var(--ba-rounded);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s;
}

.ba-button:hover {
    transform: translateY(-2px);
}

.ba-button--primary {
    color: var(--ba-ink);
    background: var(--ba-mint);
}

.ba-button--primary:hover,
.ba-button--primary:focus-visible {
    background: #82cbb9;
}

.ba-button--light {
    border-color: #fff;
    color: var(--ba-ink);
    background: #fff;
}

.ba-button--dark {
    color: #fff;
    background: var(--ba-blue);
}

.ba-button:focus-visible {
    outline: 3px solid rgba(113, 194, 174, 0.45);
    outline-offset: 3px;
}

/* ==========================================================
   PRÉSENTATION
   ========================================================== */

.ba-grid {
    display: grid;
    gap: 70px;
}

.ba-grid--intro {
    grid-template-columns: 0.9fr 1.1fr;
}

.ba-copy {
    color: var(--ba-muted);
}

.ba-copy p {
    font-size: 17px;
}

.ba-copy p:first-child {
    margin-top: 0;
}

.ba-heading-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 70px;
    margin-bottom: 45px;
}

.ba-heading-row > p {
    color: var(--ba-muted);
    font-size: 16px;
}

/* ==========================================================
   VALEURS
   ========================================================== */

.ba-values {
    background: var(--ba-soft);
}

.ba-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ba-value-card {
    min-height: 220px;
    padding: 26px;
    border: 1px solid rgba(113, 194, 174, 0.2);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(41, 75, 85, 0.06);
}

.ba-value-card span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 50%;
    color: var(--ba-ink);
    background: var(--ba-mint-light);
    font-family: var(--ba-rounded);
    font-size: 13px;
    font-weight: 800;
}

.ba-value-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.ba-value-card p {
    margin-bottom: 0;
    color: var(--ba-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* ==========================================================
   GROUPES LOCAUX
   ========================================================== */

.ba-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.ba-group-card {
    overflow: hidden;
    border: 1px solid rgba(113, 194, 174, 0.24);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(41, 75, 85, 0.08);
}

.ba-group-card__image {
    position: relative;
    min-height: 270px;
    background-position: center;
    background-size: cover;
}

.ba-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 9px 13px;
    border-radius: 20px;
    color: var(--ba-ink);
    background: #fff;
    font-family: var(--ba-rounded);
    font-size: 12px;
    font-weight: 800;
}

.ba-group-card__body {
    padding: 28px;
}

.ba-group-card__body > p:first-child {
    margin: 0 0 5px;
    color: var(--ba-mint);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ba-group-card h3 {
    margin-bottom: 10px;
    font-size: 28px;
}

.ba-group-card__body > p {
    color: var(--ba-muted);
    font-size: 15px;
}

.ba-group-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--ba-mint);
    font-family: var(--ba-rounded);
    font-weight: 800;
    text-decoration: none;
}

.ba-group-card a span {
    color: var(--ba-blue);
}

.ba-coming {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
    padding: 45px;
    border-radius: 22px;
    background: var(--ba-mint-light);
}

.ba-coming h3 {
    margin-bottom: 8px;
    font-size: 25px;
}

.ba-coming p:last-child {
    margin-bottom: 0;
    color: var(--ba-muted);
    font-size: 15px;
}

/* ==========================================================
   FONCTIONNEMENT
   ========================================================== */

.ba-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    margin-top: 50px;
}

.ba-step-grid article {
    position: relative;
    padding-left: 75px;
}

.ba-step-grid strong {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--ba-mint);
    font-family: var(--ba-rounded);
    font-size: 20px;
}

.ba-step-grid h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.ba-step-grid p {
    color: var(--ba-muted);
    font-size: 15px;
}

/* ==========================================================
   APPEL À L'ACTION
   ========================================================== */

.ba-cta {
    padding: 70px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--ba-blue), #365f69);
}

.ba-cta__content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.ba-cta h2 {
    max-width: 750px;
    margin-bottom: 10px;
    font-size: clamp(30px, 3vw, 43px);
}

.ba-cta p:last-child {
    margin-bottom: 0;
}

.ba-cta .ba-kicker {
    color: #bde8dd;
}

/* ==========================================================
   TABLETTES
   ========================================================== */

@media (max-width: 850px) {
    .ba-section {
        padding: 65px 0;
    }

    .ba-grid--intro,
    .ba-heading-row,
    .ba-coming,
    .ba-cta__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ba-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ba-step-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ba-hero {
        min-height: 600px;
    }

    .ba-hero::after {
        display: none;
    }
}

/* ==========================================================
   SMARTPHONES
   ========================================================== */

@media (max-width: 600px) {
    .ba-shell {
        width: min(calc(100% - 28px), 1180px);
    }

    .ba-section {
        padding: 52px 0;
    }

    .ba-hero {
        min-height: 570px;
    }

    .ba-hero__content {
        padding: 65px 0;
    }

    .ba-hero h1 {
        font-size: clamp(42px, 13vw, 52px);
        white-space: normal;
    }

    .ba-hero__lead {
        font-size: 18px;
    }

    .ba-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ba-button {
        width: 100%;
    }

    .ba-value-grid,
    .ba-group-grid {
        grid-template-columns: 1fr;
    }

    .ba-value-card {
        min-height: 0;
    }

    .ba-heading-row {
        margin-bottom: 28px;
    }

    .ba-coming {
        padding: 28px;
    }

    .ba-group-card__image {
        min-height: 215px;
    }

    .ba-step-grid article {
        padding-left: 66px;
    }
}

/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .ba-button {
        transition: none;
    }

    .ba-button:hover {
        transform: none;
    }
}
