/* =================================================================
   EACB — Page d'accueil
   Mobile first, s'appuie sur la grille et les utilitaires Bootstrap 5.
   Tout est préfixé .eh- et limité à .eacb-home : aucun impact sur
   les autres pages du thème.
   ================================================================= */

.eacb-home {
    --eh-blue: #18527F;      /* couleur du club */
    --eh-navy: #0A2A42;      /* fond sombre */
    --eh-ink: #0D1F2D;       /* texte */
    --eh-yellow: #FFCE2E;    /* bande du volant, lignes, boutons */
    --eh-mist: #EDF2F6;      /* fond clair */
    --eh-muted: #51667A;
    --eh-line: 3px;          /* épaisseur des lignes de terrain */
    --eh-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --eh-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    font-family: var(--eh-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--eh-ink);
    background: #fff;
    overflow-x: clip;
}

.eacb-home p { font-family: var(--eh-body); color: inherit; }
.eacb-home img { max-width: 100%; }

.eacb-home :focus-visible {
    outline: 3px solid var(--eh-yellow);
    outline-offset: 3px;
}

/* ---------- Titres ---------- */
.eacb-home .eh-h2 {
    font-family: var(--eh-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 7vw, 3.4rem);
    line-height: 1;
    letter-spacing: .005em;
    color: inherit;
    margin: 0 0 .75rem;
    text-wrap: balance;
}

.eacb-home .eh-intro {
    font-size: 1.0625rem;
    color: var(--eh-muted);
    max-width: 34rem;
    margin: 0 0 2rem;
}

/* ---------- Sections ---------- */
.eh-sec { padding: 4rem 0; }
.eh-sec--mist { background: var(--eh-mist); }
.eh-sec--court { background: var(--eh-blue); color: #fff; }
.eacb-home .eh-sec--court .eh-intro { color: #C9DCEA; }

@media (min-width: 992px) {
    .eh-sec { padding: 6.5rem 0; }
}

/* ---------- Boutons ---------- */
.eacb-home .eh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: .75rem 1.6rem;
    font-family: var(--eh-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    color: var(--eh-ink);
    background: var(--eh-yellow);
    border: 2px solid var(--eh-yellow);
    border-radius: 6px;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.eacb-home .eh-btn:hover { transform: translateY(-2px); background: #fff; border-color: #fff; color: var(--eh-ink); }
.eacb-home .eh-btn:active { transform: translateY(0); }

.eacb-home .eh-btn--line { background: transparent; border-color: #fff; color: #fff; }
.eacb-home .eh-btn--line:hover { background: #fff; color: var(--eh-ink); }

.eacb-home .eh-btn--blue { background: var(--eh-blue); border-color: var(--eh-blue); color: #fff; }
.eacb-home .eh-btn--blue:hover { background: var(--eh-navy); border-color: var(--eh-navy); color: #fff; }

/* =================================================================
   HERO
   ================================================================= */
.eh-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(46rem, 92svh);
    padding: 0 0 5.5rem;
    color: #fff;
    background-color: var(--eh-navy);
    background-image:
        linear-gradient(180deg, rgba(10, 42, 66, .55) 0%, rgba(10, 42, 66, .78) 55%, var(--eh-navy) 100%),
        var(--eh-hero-img, none);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* la trajectoire occupe le haut du hero sur mobile */
.eh-hero__flight {
    position: absolute;
    top: 1rem;
    left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    pointer-events: none;
}

.eh-hero__trail {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: .1 15;
    opacity: .55;
}

.eh-shuttle {
    offset-path: path("M-20 470 C150 150 420 30 600 110 C690 150 740 300 760 480");
    offset-rotate: auto;
    offset-distance: 61%;
    animation: eh-fly 2.2s cubic-bezier(.16, .8, .3, 1) .25s both;
}

@keyframes eh-fly {
    from { offset-distance: 2%; }
    to   { offset-distance: 61%; }
}

.eh-hero__inner { position: relative; z-index: 1; }

.eacb-home .eh-hero__title {
    font-family: var(--eh-display);
    font-weight: 900;
    font-size: clamp(3.6rem, 19vw, 8.5rem);
    line-height: .86;
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.25rem;
}

.eacb-home .eh-hero__lead {
    font-size: 1.125rem;
    line-height: 1.5;
    max-width: 30rem;
    color: #E3EDF4;
    margin: 0 0 1.75rem;
}

@media (min-width: 992px) {
    .eh-hero { align-items: center; min-height: min(48rem, 88svh); padding: 5rem 0 7rem; }
    .eh-hero__flight { top: 0; left: auto; right: 0; width: 62%; height: 100%; }
    .eacb-home .eh-hero__lead { font-size: 1.25rem; }
}

/* =================================================================
   INFOS DU CLUB — panneau qui chevauche le hero
   ================================================================= */
.eh-board { position: relative; z-index: 2; margin-top: -3.25rem; background: linear-gradient(var(--eh-blue), var(--eh-blue)) 0 3.25rem / 100% 100% no-repeat; }

.eh-board__panel {
    background: var(--eh-ink);
    color: #fff;
    border-left: 8px solid var(--eh-yellow);
    border-radius: 4px;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 18px 40px -18px rgba(4, 20, 33, .8);
}

.eacb-home .eh-board__title {
    font-family: var(--eh-display);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--eh-yellow);
    margin: 0 0 .6rem;
}

.eh-board__content { font-size: .9375rem; line-height: 1.55; }
.eacb-home .eh-board__content p { margin: 0 0 .25rem; color: #fff; }
.eh-board__content strong, .eh-board__content b { color: var(--eh-yellow); }
.eh-board__content a { color: var(--eh-yellow); }

@media (min-width: 768px) {
    .eh-board__panel { display: flex; gap: 2rem; align-items: baseline; padding: 1.5rem 2rem; }
    .eacb-home .eh-board__title { flex: none; margin: 0; }
}

/* =================================================================
   LE TERRAIN — chaque profil est une zone de service
   ================================================================= */
.eh-court {
    display: grid;
    grid-template-columns: minmax(0, 1fr);   /* minmax(0, …) : un contenu large ne peut plus élargir le terrain */
    border: var(--eh-line) solid #fff;
}

.eh-zone { padding: 1.75rem 1.5rem 2rem; min-width: 0; overflow-wrap: break-word; }
.eh-zone + .eh-zone { border-top: var(--eh-line) solid #fff; }

.eacb-home .eh-zone__title {
    font-family: var(--eh-display);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
    color: #fff;
    margin: 0 0 .6rem;
}

.eacb-home .eh-zone__text { margin: 0; color: #DCE8F1; max-width: 32rem; }

/* le filet : bande jaune + mailles */
.eh-court__net {
    grid-column: 1 / -1;
    height: 22px;
    border-top: 5px solid var(--eh-yellow);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 6px),
        var(--eh-navy);
}

@media (min-width: 768px) {
    .eh-court { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-zone { padding: 2.5rem 2.25rem 3rem; }
    .eh-zone + .eh-zone { border-top: 0; border-left: var(--eh-line) solid #fff; }
    .eacb-home .eh-zone__title { font-size: 2.25rem; }
}

/* =================================================================
   SÉANCES D'ESSAI — tableau de score 2 / 0
   ================================================================= */
.eh-score {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    gap: .5rem 1rem;
    justify-items: center;
    align-items: center;
    margin: 1rem 0 1.75rem;
}

/* les deux points du tableau de score : 0 : 2 */
.eh-score__sep {
    width: 14px;
    height: 56px;
    background: radial-gradient(circle 7px at 50% 7px, var(--eh-blue) 98%, transparent) , radial-gradient(circle 7px at 50% calc(100% - 7px), var(--eh-blue) 98%, transparent);
}

.eh-score__digit {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(6rem, 30vw, 9rem);
    aspect-ratio: 4 / 5;
    font-family: var(--eh-display);
    font-weight: 900;
    font-size: clamp(5.5rem, 30vw, 8rem);
    line-height: 1;
    color: var(--eh-yellow);
    background: var(--eh-ink);
    border-radius: 8px;
}
/* charnière du tableau à volets */
.eh-score__digit::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 3px;
    background: #fff;
    opacity: .9;
    transform: translateY(-50%);
}

.eh-score__label { font-weight: 600; font-size: .9375rem; color: var(--eh-ink); }

.eh-prose { max-width: 34rem; overflow-wrap: break-word; }
/* contenu saisi dans l'éditeur : rien ne dépasse, et la police reste celle du site */
.eh-prose img, .eh-prose iframe, .eh-prose video { max-width: 100%; height: auto; }
.eh-prose table { display: block; max-width: 100%; overflow-x: auto; }
.eacb-home .eh-prose :where(em, span, strong, b, li, td, th) { font-family: inherit; }
.eacb-home .eh-prose p { margin: 0 0 1rem; }
.eacb-home .eh-prose p:last-child { margin-bottom: 0; }

/* ---------- Photos ---------- */
.eh-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 14px 14px 0 var(--eh-blue);
}
.eh-photo--tall { aspect-ratio: 4 / 5; box-shadow: -14px 14px 0 var(--eh-yellow); }
@media (max-width: 991.98px) {
    .eh-photo, .eh-photo--tall { width: calc(100% - 14px); aspect-ratio: 4 / 3; }
    .eh-photo--tall { margin-left: 14px; }
}

/* emplacement vide : lignes de terrain en attendant la photo */
.eh-photo--empty {
    background:
        linear-gradient(#fff, #fff) 50% 0 / 3px 100% no-repeat,
        linear-gradient(#fff, #fff) 0 30% / 100% 3px no-repeat,
        linear-gradient(#fff, #fff) 0 70% / 100% 3px no-repeat,
        var(--eh-blue);
    opacity: .9;
}

/* =================================================================
   ÉVÉNEMENTS — défilement horizontal au pouce sur mobile
   ================================================================= */
.eh-events {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: .75rem;
    margin: 0 -.75rem;
    padding: 0 .75rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.eh-event {
    flex: 0 0 82%;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border-bottom: 5px solid var(--eh-blue);
}

.eh-event__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.eh-event__body { padding: 1.25rem 1.25rem 1.5rem; }

.eacb-home .eh-event__title {
    font-family: var(--eh-display);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--eh-ink);
    margin: 0 0 .5rem;
}
.eacb-home .eh-event__text { margin: 0; font-size: .9375rem; color: var(--eh-muted); }

@media (min-width: 768px) {
    .eh-events {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 1.5rem;
        overflow: visible;
        margin: 0;
        padding: 0;
    }
}

/* =================================================================
   POURQUOI NOUS
   ================================================================= */
.eh-reasons { margin: 0; }

.eh-reason {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--eh-mist);
}
.eh-reason:last-child { padding-bottom: 0; }

.eh-reason__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.15rem;
    color: #fff;
    background: var(--eh-blue);
    border-radius: 50%;
}

.eacb-home .eh-reason__title {
    font-family: var(--eh-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.05;
    color: var(--eh-ink);
    margin: 0 0 .35rem;
}
.eacb-home .eh-reason__text { margin: 0; color: var(--eh-muted); max-width: 32rem; }

/* =================================================================
   DERNIER APPEL
   ================================================================= */
.eh-last { background: var(--eh-navy); color: #fff; padding: 3.5rem 0; border-top: 5px solid var(--eh-yellow); }

.eacb-home .eh-last__title {
    font-family: var(--eh-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 9vw, 4rem);
    line-height: .95;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.5rem;
}
@media (min-width: 992px) {
    .eacb-home .eh-last__title { margin: 0; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    .eh-shuttle { animation: none; }
    .eacb-home .eh-btn { transition: none; }
    .eacb-home .eh-btn:hover { transform: none; }
}
