/* ======================================================
   PAGES ÉQUIPES — PROTOTYPE FRONT
   Direction visuelle alignée sur « Le Club » et
   « Organisation »
====================================================== */

.teams-page,
.team-detail-page,
.teams-page *,
.team-detail-page *,
.teams-page *::before,
.team-detail-page *::before,
.teams-page *::after,
.team-detail-page *::after {
    box-sizing: border-box;
}

.teams-page,
.team-detail-page {
    background:
        linear-gradient(
            180deg,
            #f7faf8 0%,
            #ffffff 100%
        );
}

.teams-page svg,
.team-detail-page svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ======================================================
   HERO — IDENTIQUE AU DESIGN SYSTEM INSTITUTIONNEL
====================================================== */

.teams-hero {
    position: relative;

    padding:
        clamp(3.5rem, 7vw, 6rem)
        0
        clamp(2.75rem, 5vw, 4rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 168, 84, 0.15),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #08140f 0%,
            #0d261a 58%,
            #07331e 100%
        );

    color: var(--color-white);
}

.teams-hero::after {
    position: absolute;
    right: -110px;
    bottom: -175px;

    width: 360px;
    height: 360px;

    content: "";

    border: 1px solid rgba(0, 168, 84, 0.15);
    border-radius: 50%;

    box-shadow:
        0 0 0 44px rgba(0, 168, 84, 0.035),
        0 0 0 88px rgba(0, 168, 84, 0.02);

    pointer-events: none;
}

.teams-hero .container {
    position: relative;
    z-index: 1;
}

.teams-hero__eyebrow {
    margin: 0 0 0.7rem;

    color: var(--color-primary);

    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teams-hero__title {
    margin: 0;

    color: var(--color-white);

    font-family: var(--font-heading);
    font-size: clamp(3.6rem, 7vw, 6.5rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.teams-hero__title::after {
    display: block;

    width: 54px;
    height: 3px;
    margin-top: 0.85rem;

    content: "";

    background: var(--color-primary);
}

.teams-hero__intro {
    max-width: 700px;
    margin: 1.3rem 0 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 1.1rem;
    line-height: 1.7;
}

.teams-hero__intro strong {
    color: var(--color-primary);
    font-weight: 800;
}

/* ======================================================
   ANNUAIRE ET FILTRES
====================================================== */

.teams-directory {
    padding:
        clamp(3.25rem, 6vw, 5rem)
        0
        clamp(4rem, 8vw, 7rem);
}

.teams-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;

    margin: 0 0 clamp(3.5rem, 7vw, 5.5rem);
    padding: 0.75rem;

    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 20px;

    background: var(--color-white);

    box-shadow:
        0 18px 42px rgba(0,0,0,.08);
}

.teams-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    min-height: 54px;
    padding: 0.75rem 0.85rem;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;
    color: var(--color-black);

    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base);
}

.teams-filter svg {
    width: 25px;
    height: 25px;
}

.teams-filter:hover,
.teams-filter:focus-visible {
    border-color: rgba(0, 139, 70, 0.15);
    background: rgba(0, 168, 84, 0.06);
    color: var(--color-primary-dark);
}

.teams-filter.is-active {
    border-color: var(--color-primary-dark);
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* ======================================================
   GROUPES ET CARTES
====================================================== */

.teams-groups {
    display: grid;
    gap: clamp(3.5rem, 7vw, 5.5rem);
}

.teams-group[hidden] {
    display: none;
}

.teams-group__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    margin-bottom: 1.2rem;

    color: var(--color-primary-dark);
}

.teams-group__icon {
    flex: 0 0 auto;
}

.teams-group__icon svg {
    width: 27px;
    height: 27px;
}

.teams-group__header h2 {
    margin: 0;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1;
    text-transform: uppercase;
}

.teams-group__line {
    height: 1px;
    flex: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 139, 70, 0.58),
            rgba(0, 139, 70, 0.05)
        );
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}

.team-card {
    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 20px;

    background: var(--color-white);

    box-shadow:
        0 18px 42px rgba(0,0,0,.08);

    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.team-card:hover {
    border-color: rgba(0, 139, 70, 0.22);
    transform: translateY(-5px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-card__media {
    display: block;

    height: 180px;
    overflow: hidden;

    background: #edf2ef;
}

.team-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.team-card:hover .team-card__media img {
    transform: scale(1.035);
}

.team-card__placeholder {
    position: relative;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 12%,
            rgba(0, 168, 84, 0.12),
            transparent 35%
        ),
        #edf2ef;

    color: rgba(0, 95, 56, 0.38);
}

.team-card__placeholder::after {
    position: absolute;
    right: -38px;
    bottom: -65px;

    width: 150px;
    height: 150px;

    content: "";

    border: 1px solid rgba(0, 139, 70, 0.09);
    border-radius: 50%;

    box-shadow:
        0 0 0 28px rgba(0, 139, 70, 0.025);
}

.team-card__placeholder svg {
    position: relative;
    z-index: 1;

    width: 58px;
    height: 58px;
}

.team-card__body {
    padding: 1.25rem 1.2rem 1.35rem;
    text-align: center;
}

.team-card__subtitle {
    margin: 0 0 0.35rem;

    color: var(--color-muted);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.team-card h3 {
    margin: 0 0 1.05rem;

    color: var(--color-primary-dark);

    font-family: var(--font-heading);
    font-size: 1.65rem;
    line-height: 1;
    text-transform: uppercase;
}

.team-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    min-width: 150px;
    padding: 0.62rem 0.9rem;

    border: 1px solid var(--color-primary-dark);
    border-radius: 5px;

    color: var(--color-primary-dark);

    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color var(--transition-base),
        background var(--transition-base);
}

.team-card__button svg {
    width: 18px;
    height: 18px;
}

.team-card__button:hover,
.team-card__button:focus-visible {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.teams-join-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;

    width: 100%;
    margin-top: clamp(1rem, 2vw, 1.35rem);
    padding: 3.8rem 3rem;

    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 168, 84, 0.08),
            transparent 30%
        ),
        var(--color-white);

    box-shadow:
        0 18px 42px rgba(0,0,0,.08);
}

.teams-join-card__icon {
    color: var(--color-primary-dark);
}

.teams-join-card__icon svg {
    width: 78px;
    height: 78px;
}

.teams-join-card__eyebrow {
    margin: 0 0 0.25rem;

    color: var(--color-primary);

    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.teams-join-card h3 {
    margin: 0;

    color: var(--color-black);

    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1;
    text-transform: uppercase;
}

.teams-join-card p:last-child {
    margin: 0.45rem 0 0;

    color: var(--color-muted);

    line-height: 1.55;
}

/* FICHE ÉQUIPE */
.team-detail-hero { padding: 1.4rem 0 clamp(4.5rem, 9vw, 7.5rem); }
.team-breadcrumb { display: flex; padding: .8rem 0 clamp(3.5rem, 8vw, 6rem); flex-wrap: wrap; gap: .55rem; color: rgba(255,255,255,.66); font-size: .88rem; }
.team-breadcrumb a { color: inherit; text-decoration: none; }
.team-breadcrumb a:hover { color: #fff; }
.team-detail-hero__content { max-width: 630px; }
.team-detail-hero h1 { max-width: 620px; font-size: clamp(4.1rem, 8vw, 7rem); }
.team-detail-hero__content > p:last-child { max-width: 500px; margin: 1.25rem 0 0; color: rgba(255,255,255,.82); font-size: 1.15rem; line-height: 1.65; }

.team-facts { position: relative; z-index: 3; }
.team-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -2rem; padding: 1.5rem; border: 1px solid rgba(0, 81, 46, .11); border-radius: 16px; background: #fff; box-shadow: 0 22px 48px rgba(3, 36, 21, .12); }
.team-fact { display: grid; min-height: 120px; padding: 1.1rem 1.35rem; grid-template-columns: auto 1fr; align-items: start; gap: 1rem; border-right: 1px solid rgba(0, 81, 46, .12); }
.team-fact:last-child { border-right: 0; }
.team-fact__icon { color: var(--color-primary-dark, #00643b); }
.team-fact__icon svg { width: 38px; height: 38px; }
.team-fact h2 { margin: .15rem 0 .8rem; color: #101713; font-family: var(--font-heading); font-size: 1.28rem; text-transform: uppercase; }
.team-fact p { margin: .2rem 0; color: #24322b; line-height: 1.5; }
.team-fact a { color: var(--color-primary-dark, #00643b); font-weight: 800; text-decoration: none; }

.team-content-section { padding: 1.35rem 0; }
.team-content-section:first-of-type { padding-top: 2.7rem; }
.team-panel { border: 1px solid rgba(2, 70, 40, .09); border-radius: 15px; background: #fff; box-shadow: 0 13px 32px rgba(4, 42, 25, .065); }
.team-next-match__panel { display: grid; min-height: 190px; padding: 1.55rem 2rem; grid-template-columns: .9fr 1.45fr auto; align-items: center; gap: 2rem; }
.team-section-kicker { display: flex; align-items: center; gap: .55rem; }
.team-section-kicker svg { width: 28px; height: 28px; }
.team-next-match__meta h2 { margin: .4rem 0 .8rem; font-family: var(--font-heading); font-size: 1.8rem; }
.team-next-match__meta > p:not(:first-child) { display: flex; margin: .45rem 0; align-items: center; gap: .55rem; color: #3c4841; }
.team-next-match__meta > p svg { width: 21px; height: 21px; color: #111; }
.team-next-match__fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.3rem; text-align: center; }
.fixture-club { display: grid; justify-items: center; gap: .65rem; color: #111; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; }
.fixture-club__crest { display: grid; width: 78px; height: 88px; place-items: center; clip-path: polygon(50% 0, 94% 13%, 88% 72%, 50% 100%, 12% 72%, 6% 13%); color: #fff; background: #073b25; font-family: var(--font-heading); font-size: 1.5rem; }
.fixture-club__crest--opponent { background: #a71f2b; }
.fixture-versus { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: #fff; background: #087447; font-family: var(--font-heading); font-size: 1.15rem; }
.team-next-match__button { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.team-next-match__button svg { width: 20px; height: 20px; }

.team-performance__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 1.35rem; }
.team-panel__header { display: flex; min-height: 68px; padding: 1.1rem 1.4rem; align-items: center; border-bottom: 1px solid rgba(0, 81, 46, .09); }
.team-panel__header h2 { display: flex; margin: 0; align-items: center; gap: .65rem; color: var(--color-primary-dark, #00643b); font-family: var(--font-heading); font-size: 1.45rem; text-transform: uppercase; }
.team-panel__header h2 svg { width: 30px; height: 30px; }
.team-panel__header--with-action { justify-content: space-between; gap: 1rem; }
.team-panel__header--with-action > a { display: flex; align-items: center; gap: .4rem; color: #075f3b; font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.team-panel__header--with-action > a svg { width: 18px; height: 18px; }
.team-results__list { padding: .4rem 1.5rem 1rem; }
.team-result { display: grid; min-height: 72px; grid-template-columns: 110px 1fr; align-items: center; gap: 1rem; border-bottom: 1px solid #e7ece9; }
.team-result:last-child { border-bottom: 0; }
.team-result__date { display: grid; color: #2c3731; font-size: .78rem; line-height: 1.3; }
.team-result__date span { color: #758078; }
.team-result__fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.team-result__fixture span:last-child { text-align: right; }
.team-result__fixture strong { color: var(--color-primary-dark, #00643b); font-family: var(--font-heading); font-size: 1.85rem; white-space: nowrap; }
.team-ranking__scroll { overflow-x: auto; }
.team-ranking table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.team-ranking th,
.team-ranking td { padding: .85rem .65rem; text-align: center; }
.team-ranking thead { color: #fff; background: #18221d; }
.team-ranking thead th:nth-child(2),
.team-ranking tbody th { text-align: left; }
.team-ranking tbody tr { border-bottom: 1px solid #edf0ee; }
.team-ranking tbody tr.is-club { color: #064f31; background: #dff3e8; }
.team-ranking__full-link { display: flex; width: calc(100% - 2.8rem); margin: 1.15rem 1.4rem 1.4rem; padding: .75rem 1rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid #19855c; border-radius: 6px; color: #075f3b; font-size: .82rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.team-ranking__full-link svg { width: 18px; height: 18px; }

.team-staff { padding-bottom: clamp(4rem, 8vw, 7rem); }
.team-staff__panel { display: grid; padding: 1.4rem 1.7rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; gap: 2rem; }
.team-staff__people { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1.2rem; }
.team-staff__people-list { display: grid; gap: 1rem; }
.team-staff__person { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.team-staff__person + .team-staff__person { padding-top: 1rem; border-top: 1px solid rgba(0, 81, 46, .11); }
.team-staff__badge { display: grid; justify-items: center; gap: .4rem; color: #075f3b; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.team-staff__badge svg { width: 52px; height: 52px; padding: .65rem; border-radius: 50%; color: #fff; background: #087447; }
.team-staff__badge small { font-size: .65rem; }
.team-staff__photo { display: grid; width: 108px; height: 108px; place-items: center; overflow: hidden; border-radius: 50%; color: rgba(0, 87, 51, .35); background: #e1e8e4; }
.team-staff__photo svg { width: 64px; height: 64px; }
.team-staff__person h2 { margin: 0; font-family: var(--font-heading); font-size: 1.65rem; }
.team-staff__person p { margin: .2rem 0 .8rem; color: #525f57; }
.team-staff__person a { display: flex; margin: .38rem 0; align-items: center; gap: .45rem; color: #233129; font-size: .88rem; text-decoration: none; }
.team-staff__person a svg { width: 18px; height: 18px; color: #087447; }
.team-staff__cta { display: grid; padding: 1.3rem 1.5rem; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; border: 1px solid rgba(0, 120, 70, .22); border-radius: 10px; background: linear-gradient(135deg, #f6fbf8, #fff); }
.team-staff__cta > span { color: #087447; }
.team-staff__cta > span svg { width: 62px; height: 62px; }
.team-staff__cta h2 { margin: 0; color: #075f3b; font-family: var(--font-heading); font-size: 1.55rem; text-transform: uppercase; }
.team-staff__cta p { margin: .35rem 0 0; color: #536159; line-height: 1.5; }
.team-staff__cta .button { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.team-staff__cta .button svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
    .teams-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-fact:nth-child(2) { border-right: 0; }
    .team-fact:nth-child(-n+2) { border-bottom: 1px solid rgba(0, 81, 46, .12); }
    .team-next-match__panel { grid-template-columns: 1fr 1.4fr; }
    .team-next-match__button { grid-column: 1 / -1; justify-self: center; }
    .team-performance__grid { grid-template-columns: 1fr; }
    .team-staff__panel { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .teams-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teams-filter:first-child { grid-column: 1 / -1; }
    .teams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teams-join-card { grid-template-columns: auto 1fr; }
    .teams-join-card .button { grid-column: 1 / -1; justify-self: start; }
    .team-next-match__panel { grid-template-columns: 1fr; text-align: center; }
    .team-next-match__meta > p:not(:first-child), .team-section-kicker { justify-content: center; }
    .team-next-match__fixture { max-width: 520px; width: 100%; margin-inline: auto; }
    .team-staff__people { grid-template-columns: 1fr; }
    .team-staff__badge { grid-row: auto; }
    .team-staff__person { grid-template-columns: 92px minmax(0, 1fr); }
    .team-staff__photo { grid-column: auto; width: 88px; height: 88px; }
    .team-staff__cta { grid-template-columns: auto 1fr; }
    .team-staff__cta .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 580px) {
    .teams-hero { padding-top: 4.5rem; }
    .teams-hero h1, .team-detail-hero h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
    .teams-filters { grid-template-columns: 1fr; margin-top: -1.8rem; }
    .teams-filter:first-child { grid-column: auto; }
    .teams-grid { grid-template-columns: 1fr; }
    .teams-join-card { grid-template-columns: 1fr; }
    .teams-join-card__icon { display: none; }
    .team-card__media { height: 210px; }
    .team-facts__grid { grid-template-columns: 1fr; padding: .8rem; }
    .team-fact, .team-fact:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(0, 81, 46, .12); }
    .team-fact:last-child { border-bottom: 0; }
    .team-next-match__panel { padding: 1.3rem; }
    .team-next-match__fixture { grid-template-columns: 1fr; }
    .fixture-versus { margin-inline: auto; }
    .team-result { grid-template-columns: 1fr; padding: .8rem 0; gap: .35rem; }
    .team-result__fixture { grid-template-columns: 1fr auto 1fr; gap: .45rem; font-size: .72rem; }
    .team-result__fixture strong { font-size: 1.4rem; }
    .team-panel__header--with-action { align-items: flex-start; flex-direction: column; }
    .team-staff__person { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .team-staff__badge { grid-row: auto; }
    .team-staff__photo { grid-column: auto; }
    .team-staff__person a { justify-content: center; }
    .team-staff__cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .team-staff__cta .button { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card__media img,
    .teams-filter { transition: none; }
}

/* ======================================================
   FICHE ÉQUIPE — HERO ALIGNÉ SUR LE DESIGN SYSTEM
====================================================== */

.team-detail-hero {
    position: relative;
    isolation: isolate;

    padding:
        clamp(3.5rem, 7vw, 6rem)
        0
        clamp(4.75rem, 8vw, 6.5rem);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 168, 84, 0.15),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #08140f 0%,
            #0d261a 58%,
            #07331e 100%
        );

    color: var(--color-white);
}

.team-detail-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;

    content: "";

    background-image: var(--team-detail-image, none);
    background-position: center;
    background-size: cover;

    opacity: 0;
}

.team-detail-hero--has-image::before {
    opacity: 0.34;
}

.team-detail-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;

    content: "";

    background:
        radial-gradient(
            circle at calc(100% + 34px) calc(100% + 68px),
            transparent 0 91px,
            rgba(0, 168, 84, 0.13) 92px 93px,
            transparent 94px 139px,
            rgba(0, 168, 84, 0.1) 140px 141px,
            transparent 142px 187px,
            rgba(0, 168, 84, 0.075) 188px 189px,
            transparent 190px
        ),
        linear-gradient(
            90deg,
            rgba(4, 13, 9, 0.96) 0%,
            rgba(7, 28, 18, 0.86) 48%,
            rgba(7, 51, 30, 0.48) 100%
        );

    pointer-events: none;
}

.team-detail-hero .container {
    position: relative;
    z-index: 1;
}

.team-detail-hero__content {
    max-width: 700px;
}

.team-detail-hero__eyebrow {
    margin: 0 0 0.7rem;

    color: var(--color-primary);

    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-detail-hero h1 {
    max-width: 680px;
    margin: 0;

    color: var(--color-white);

    font-family: var(--font-heading);
    font-size: clamp(3.6rem, 7vw, 6.5rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.team-detail-hero h1::after {
    display: block;

    width: 54px;
    height: 3px;
    margin-top: 0.85rem;

    content: "";

    background: var(--color-primary);
}

.team-detail-hero__content > p:last-child {
    max-width: 620px;
    margin: 1.3rem 0 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 1.1rem;
    line-height: 1.7;
}

/* ======================================================
   FICHE ÉQUIPE — CONTENU
====================================================== */
.team-facts { position: relative; z-index: 3; }
.team-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -2rem; padding: 1.5rem; border: 1px solid rgba(0, 81, 46, .11); border-radius: 16px; background: #fff; box-shadow: 0 22px 48px rgba(3, 36, 21, .12); }
.team-fact { display: grid; min-height: 120px; padding: 1.1rem 1.35rem; grid-template-columns: auto 1fr; align-items: start; gap: 1rem; border-right: 1px solid rgba(0, 81, 46, .12); }
.team-fact:last-child { border-right: 0; }
.team-fact__icon { color: var(--color-primary-dark, #00643b); }
.team-fact__icon svg { width: 38px; height: 38px; }
.team-fact h2 { margin: .15rem 0 .8rem; color: #101713; font-family: var(--font-heading); font-size: 1.28rem; text-transform: uppercase; }
.team-fact p { margin: .2rem 0; color: #24322b; line-height: 1.5; }
.team-fact a { color: var(--color-primary-dark, #00643b); font-weight: 800; text-decoration: none; }
.team-content-section { padding: 1.35rem 0; }
.team-content-section:first-of-type { padding-top: 2.7rem; }
.team-panel { border: 1px solid rgba(2, 70, 40, .09); border-radius: 15px; background: #fff; box-shadow: 0 13px 32px rgba(4, 42, 25, .065); }
.team-next-match__panel { display: grid; min-height: 190px; padding: 1.55rem 2rem; grid-template-columns: .9fr 1.45fr auto; align-items: center; gap: 2rem; }
.team-section-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem; color: var(--color-primary-dark, #00643b); font-family: var(--font-display); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.team-section-kicker svg { width: 28px; height: 28px; }
.team-next-match__meta h2 { margin: .4rem 0 .8rem; font-family: var(--font-heading); font-size: 1.8rem; }
.team-next-match__meta > p:not(:first-child) { display: flex; margin: .45rem 0; align-items: center; gap: .55rem; color: #3c4841; }
.team-next-match__meta > p svg { width: 21px; height: 21px; color: #111; }
.team-next-match__fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.3rem; text-align: center; }
.fixture-club { display: grid; justify-items: center; gap: .65rem; color: #111; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; }
.fixture-club__crest { display: grid; width: 78px; height: 88px; place-items: center; clip-path: polygon(50% 0, 94% 13%, 88% 72%, 50% 100%, 12% 72%, 6% 13%); color: #fff; background: #073b25; font-family: var(--font-heading); font-size: 1.5rem; }
.fixture-club__crest--opponent { background: #a71f2b; }
.fixture-versus { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: #fff; background: #087447; font-family: var(--font-heading); font-size: 1.15rem; }
.team-next-match__button { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.team-next-match__button svg { width: 20px; height: 20px; }
.team-performance__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 1.35rem; }
.team-panel__header { display: flex; min-height: 68px; padding: 1.1rem 1.4rem; align-items: center; border-bottom: 1px solid rgba(0, 81, 46, .09); }
.team-panel__header h2 { display: flex; margin: 0; align-items: center; gap: .65rem; color: var(--color-primary-dark, #00643b); font-family: var(--font-heading); font-size: 1.45rem; text-transform: uppercase; }
.team-panel__header h2 svg { width: 30px; height: 30px; }
.team-panel__header--with-action { justify-content: space-between; gap: 1rem; }
.team-panel__header--with-action > a { display: flex; align-items: center; gap: .4rem; color: #075f3b; font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.team-panel__header--with-action > a svg { width: 18px; height: 18px; }
.team-results__list { padding: .4rem 1.5rem 1rem; }
.team-result { display: grid; min-height: 72px; grid-template-columns: 110px 1fr; align-items: center; gap: 1rem; border-bottom: 1px solid #e7ece9; }
.team-result:last-child { border-bottom: 0; }
.team-result__date { display: grid; color: #2c3731; font-size: .78rem; line-height: 1.3; }
.team-result__date span { color: #758078; }
.team-result__fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.team-result__fixture span:last-child { text-align: right; }
.team-result__fixture strong { color: var(--color-primary-dark, #00643b); font-family: var(--font-heading); font-size: 1.85rem; white-space: nowrap; }
.team-ranking__scroll { overflow-x: auto; }
.team-ranking table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.team-ranking th, .team-ranking td { padding: .85rem .65rem; text-align: center; }
.team-ranking thead { color: #fff; background: #18221d; }
.team-ranking thead th:nth-child(2), .team-ranking tbody th { text-align: left; }
.team-ranking tbody tr { border-bottom: 1px solid #edf0ee; }
.team-ranking tbody tr.is-club { color: #064f31; background: #dff3e8; }
.team-ranking__full-link { display: flex; width: calc(100% - 2.8rem); margin: 1.15rem 1.4rem 1.4rem; padding: .75rem 1rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid #19855c; border-radius: 6px; color: #075f3b; font-size: .82rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.team-ranking__full-link svg { width: 18px; height: 18px; }
.team-staff { padding-bottom: clamp(4rem, 8vw, 7rem); }
.team-staff__panel { display: grid; padding: 1.4rem 1.7rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; gap: 2rem; }
.team-staff__people { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1.2rem; }
.team-staff__people-list { display: grid; gap: 1rem; }
.team-staff__person { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.team-staff__person + .team-staff__person { padding-top: 1rem; border-top: 1px solid rgba(0, 81, 46, .11); }
.team-staff__badge { display: grid; justify-items: center; gap: .4rem; color: #075f3b; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.team-staff__badge svg { width: 52px; height: 52px; padding: .65rem; border-radius: 50%; color: #fff; background: #087447; }
.team-staff__badge small { font-size: .65rem; }
.team-staff__photo { display: grid; width: 108px; height: 108px; place-items: center; overflow: hidden; border-radius: 50%; color: rgba(0, 87, 51, .35); background: #e1e8e4; }
.team-staff__photo svg { width: 64px; height: 64px; }
.team-staff__person h2 { margin: 0; font-family: var(--font-heading); font-size: 1.65rem; }
.team-staff__person p { margin: .2rem 0 .8rem; color: #525f57; }
.team-staff__person a { display: flex; margin: .38rem 0; align-items: center; gap: .45rem; color: #233129; font-size: .88rem; text-decoration: none; }
.team-staff__person a svg { width: 18px; height: 18px; color: #087447; }
.team-staff__cta { display: grid; padding: 1.3rem 1.5rem; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; border: 1px solid rgba(0, 120, 70, .22); border-radius: 10px; background: linear-gradient(135deg, #f6fbf8, #fff); }
.team-staff__cta > span { color: #087447; }
.team-staff__cta > span svg { width: 62px; height: 62px; }
.team-staff__cta h2 { margin: 0; color: #075f3b; font-family: var(--font-heading); font-size: 1.55rem; text-transform: uppercase; }
.team-staff__cta p { margin: .35rem 0 0; color: #536159; line-height: 1.5; }
.team-staff__cta .button { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.team-staff__cta .button svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
    .team-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-fact:nth-child(2) { border-right: 0; }
    .team-fact:nth-child(-n+2) { border-bottom: 1px solid rgba(0, 81, 46, .12); }
    .team-next-match__panel { grid-template-columns: 1fr 1.4fr; }
    .team-next-match__button { grid-column: 1 / -1; justify-self: center; }
    .team-performance__grid { grid-template-columns: 1fr; }
    .team-staff__panel { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .team-next-match__panel { grid-template-columns: 1fr; text-align: center; }
    .team-next-match__meta > p:not(:first-child), .team-section-kicker { justify-content: center; }
    .team-next-match__fixture { max-width: 520px; width: 100%; margin-inline: auto; }
    .team-staff__people { grid-template-columns: 1fr; }
    .team-staff__badge { grid-row: auto; }
    .team-staff__person { grid-template-columns: 92px minmax(0, 1fr); }
    .team-staff__photo { grid-column: auto; width: 88px; height: 88px; }
    .team-staff__cta { grid-template-columns: auto 1fr; }
    .team-staff__cta .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 580px) {
    .team-detail-hero { padding-bottom: 4.25rem; }
    .team-detail-hero h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
    .team-facts__grid { grid-template-columns: 1fr; padding: .8rem; }
    .team-fact, .team-fact:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(0, 81, 46, .12); }
    .team-fact:last-child { border-bottom: 0; }
    .team-next-match__panel { padding: 1.3rem; }
    .team-next-match__fixture { grid-template-columns: 1fr; }
    .fixture-versus { margin-inline: auto; }
    .team-result { grid-template-columns: 1fr; padding: .8rem 0; gap: .35rem; }
    .team-result__fixture { grid-template-columns: 1fr auto 1fr; gap: .45rem; font-size: .72rem; }
    .team-result__fixture strong { font-size: 1.4rem; }
    .team-panel__header--with-action { align-items: flex-start; flex-direction: column; }
    .team-staff__person { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .team-staff__badge { grid-row: auto; }
    .team-staff__photo { grid-column: auto; }
    .team-staff__person a { justify-content: center; }
    .team-staff__cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .team-staff__cta .button { justify-self: center; }
}


/* Équipe 1.2 — résultats, zones, statistiques et calendrier */
.team-result { position: relative; padding-right: 5.6rem; border-left: 4px solid transparent; }
.team-result--win { border-left-color: #159447; background: #f1fbf5; }
.team-result--loss { border-left-color: #c93c3c; background: #fff5f5; }
.team-result--draw { border-left-color: #d69b1f; background: #fffaf0; }
.team-result__badge { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); padding: .3rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.team-result--win .team-result__badge { color: #086432; background: #d8f3e3; }
.team-result--loss .team-result__badge { color: #8b2020; background: #f8dddd; }
.team-result--draw .team-result__badge { color: #7b5510; background: #f8ebc5; }
.team-ranking tbody tr.is-promotion { box-shadow: inset 4px 0 #1e9d58; }
.team-ranking tbody tr.is-playoff { box-shadow: inset 4px 0 #d99a1c; }
.team-ranking tbody tr.is-relegation { box-shadow: inset 4px 0 #cf3d3d; }
.team-ranking tbody tr.is-club { font-weight: 800; outline: 2px solid rgba(7,95,59,.12); outline-offset: -2px; }
.team-stats__grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:1px; background:#e6ece8; }
.team-stats__grid > div { min-height:118px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.35rem; background:#fff; text-align:center; }
.team-stats__grid strong { color:#075f3b; font-family:var(--font-heading); font-size:2rem; }
.team-stats__grid strong span { font-size:.9rem; }
.team-stats__grid small { color:#66736c; font-size:.72rem; font-weight:800; text-transform:uppercase; }
.team-stats__form span { display:flex; gap:.3rem; margin-top:.4rem; }
.team-stats__form i { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:#fff; font-style:normal; font-size:.72rem; font-weight:900; }
.team-stats__form i.is-win { background:#159447; } .team-stats__form i.is-loss { background:#c93c3c; } .team-stats__form i.is-draw { background:#d69b1f; }
.team-calendar__list { padding: .8rem 1.4rem 1.4rem; display:grid; gap:.65rem; }
.team-calendar__match { display:grid; grid-template-columns:145px minmax(0,1fr) minmax(180px,.7fr) auto; align-items:center; gap:1rem; padding:1rem; border:1px solid #e3e9e5; border-radius:10px; background:#fff; }
.team-calendar__match > div:first-child { display:grid; } .team-calendar__match > div:first-child span { color:#748078; font-size:.82rem; }
.team-calendar__match > div:nth-child(2) { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:.8rem; font-family:var(--font-display); font-weight:800; text-transform:uppercase; }
.team-calendar__match > div:nth-child(2) span:last-child { text-align:right; }
.team-calendar__match b { color:#075f3b; font-size:1.2rem; white-space:nowrap; }
.team-calendar__match small { color:#66736c; }
.team-calendar__match a { display:flex; align-items:center; gap:.35rem; color:#075f3b; font-size:.75rem; font-weight:800; text-decoration:none; text-transform:uppercase; }
.team-calendar__match a svg { width:16px; }
.team-calendar__match.is-finished { background:#f7faf8; }
/* Cartes pratiques de hauteur uniforme — 1.4.2
 * La grille étire les deux panneaux sur une hauteur commune. Les contenus
 * restent flexibles et l’appel à l’action demeure ancré en bas, qu’un ou
 * deux entraîneurs soient renseignés.
 */

@media (max-width: 980px) { .team-stats__grid { grid-template-columns:repeat(4,1fr); } .team-calendar__match { grid-template-columns:120px 1fr; } .team-calendar__match small,.team-calendar__match a { grid-column:2; } }
@media (max-width: 640px) { .team-result { padding-right:.5rem; } .team-result__badge { position:static; transform:none; width:max-content; margin:.2rem 0 .6rem; } .team-stats__grid { grid-template-columns:repeat(2,1fr); } .team-calendar__match { grid-template-columns:1fr; } .team-calendar__match small,.team-calendar__match a { grid-column:auto; } }

/* Équipe 1.2.1 — finitions résultats, forme récente et calendrier en modale */
.team-results__list { padding-left: 1.75rem; padding-right: 1.75rem; }
.team-result { padding-left: 1rem; padding-right: 7rem; }
.team-result__badge { right: 1.2rem; margin-left: .85rem; }
.team-result__fixture { min-width: 0; }
.team-result__fixture span { min-width: 0; }
.team-result__fixture span:last-child { padding-right: .4rem; }

.team-stats__form { overflow: hidden; padding-inline: .5rem; }
.team-stats__form span { display: flex; flex-wrap: nowrap; justify-content: center; gap: .45rem; max-width: 100%; margin-top: .45rem; }
.team-stats__form i { flex: 0 0 28px; width: 28px; height: 28px; }

.team-calendar-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.team-calendar-modal.is-open { display: flex; }
.team-calendar-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 28, 20, .72); backdrop-filter: blur(4px); }
.team-calendar-modal__dialog { position: relative; z-index: 1; width: min(1180px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.team-calendar-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid #e3e9e5; }
.team-calendar-modal__header h2 { display: flex; align-items: center; gap: .65rem; margin: 0; color: #075f3b; font-family: var(--font-heading); font-size: 1.35rem; text-transform: uppercase; }
.team-calendar-modal__header h2 svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.team-calendar-modal__close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef5f1; color: #075f3b; cursor: pointer; font-size: 1.75rem; line-height: 1; }
.team-calendar-modal__close:hover, .team-calendar-modal__close:focus-visible { background: #dcece3; }
.team-calendar-modal__body { overflow: auto; overscroll-behavior: contain; padding: .45rem 0 .8rem; }
body.has-team-calendar-modal { overflow: hidden; }

@media (max-width: 800px) {
    .team-results__list { padding-inline: 1.1rem; }
    .team-result { padding-left: .85rem; padding-right: 6.4rem; }
    .team-calendar-modal { padding: .6rem; }
    .team-calendar-modal__dialog { max-height: 94vh; border-radius: 20px; }
}
@media (max-width: 640px) {
    .team-result { padding-left: .85rem; padding-right: .85rem; }
    .team-result__badge { margin-left: 0; margin-top: .55rem; }
    .team-stats__form span { gap: .35rem; }
    .team-stats__form i { flex-basis: 26px; width: 26px; height: 26px; }
    .team-calendar-modal__header { padding: .9rem 1rem; }
    .team-calendar-modal__header h2 { font-size: 1.08rem; }
    .team-calendar-modal__body .team-calendar__list { padding: .7rem; }
}


/* Équipe 1.2.2 — forme récente lisible et accessible */
.team-stats__form { overflow: visible; }
.team-stats__form > span:first-of-type { position: relative; display: flex; justify-content: center; gap: .5rem; margin-top: .55rem; }
.team-stats__form i { position: relative; cursor: help; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 7px rgba(5,60,38,.16); }
.team-stats__form i::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20; width: max-content; max-width: 260px; padding: .55rem .7rem; border-radius: 7px; background: #10251d; color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 700; line-height: 1.35; text-transform: none; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .18s ease, transform .18s ease; }
.team-stats__form i::before { content: ''; position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 21; border: 6px solid transparent; border-top-color: #10251d; opacity: 0; transform: translateX(-50%); transition: opacity .18s ease; }
.team-stats__form i:hover::after, .team-stats__form i:focus-visible::after, .team-stats__form i:hover::before, .team-stats__form i:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.team-stats__form i:hover::before, .team-stats__form i:focus-visible::before { transform: translateX(-50%); }
.team-stats__form i:focus-visible { outline: 3px solid rgba(7,95,59,.25); outline-offset: 3px; }
.team-stats__form-legend { display: flex !important; flex-wrap: wrap !important; align-items: center; justify-content: center; gap: .2rem .38rem !important; margin-top: .45rem !important; color: #748078; font-size: .62rem; line-height: 1.25; text-transform: none; }
.team-stats__form-legend b { width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-size: .58rem; }
.team-stats__form-legend b.is-win { background: #159447; }
.team-stats__form-legend b.is-draw { background: #d69b1f; }
.team-stats__form-legend b.is-loss { background: #c93c3c; }
.team-stats__form em { color: #748078; font-style: normal; }
@media (max-width: 640px) { .team-stats__form i::after { max-width: 210px; } }


/* Équipe 1.2.3 — forme récente dans l’ordre chronologique */
.team-stats__form > span:first-of-type i:last-child {
    outline: 3px solid rgba(7, 95, 59, .18);
    outline-offset: 2px;
    transform: scale(1.06);
}

/* Logos officiels FFHandball */
.fixture-club__crest{overflow:hidden;background:#fff;border:1px solid #dfe8e3;clip-path:none;border-radius:18px}.fixture-club__crest img{width:100%;height:100%;object-fit:contain;padding:8px}.team-result__club,.team-ranking__club,.team-calendar__club{display:flex;align-items:center;gap:.55rem;min-width:0}.team-result__club--home,.team-calendar__club--home{justify-content:flex-end;text-align:right}.team-result__club img,.team-calendar__club img{width:34px;height:34px;flex:0 0 34px;object-fit:contain}.team-ranking__club img{width:28px;height:28px;flex:0 0 28px;object-fit:contain}.team-result__club span,.team-ranking__club span,.team-calendar__club span{min-width:0}.team-ranking tbody th{min-width:210px}@media(max-width:640px){.team-result__club img,.team-calendar__club img{width:26px;height:26px;flex-basis:26px}.team-ranking__club img{width:24px;height:24px;flex-basis:24px}}

/* ======================================================
   ÉQUIPE 1.2.6 — RAFFINEMENTS VISUELS DISCRETS
   Ajustements de rythme et de lisibilité sans modifier
   la structure, les données ni les interactions.
====================================================== */

.team-detail-page {
    --team-surface-radius: 14px;
    --team-surface-border: rgba(5, 74, 43, .10);
    --team-surface-shadow: 0 12px 30px rgba(4, 42, 25, .06);
    --team-section-space: clamp(1.8rem, 3.2vw, 2.8rem);
}

.team-detail-hero {
    padding-top: clamp(3.25rem, 6vw, 5.25rem);
    padding-bottom: clamp(4.4rem, 7vw, 5.9rem);
}

.team-detail-hero--has-image::before {
    opacity: .3;
}

.team-detail-hero::after {
    background:
        radial-gradient(
            circle at calc(100% + 34px) calc(100% + 68px),
            transparent 0 91px,
            rgba(0, 168, 84, .11) 92px 93px,
            transparent 94px 139px,
            rgba(0, 168, 84, .075) 140px 141px,
            transparent 142px 187px,
            rgba(0, 168, 84, .055) 188px 189px,
            transparent 190px
        ),
        linear-gradient(
            90deg,
            rgba(4, 13, 9, .96) 0%,
            rgba(7, 28, 18, .88) 52%,
            rgba(7, 51, 30, .55) 100%
        );
}

.team-detail-hero__eyebrow {
    margin-bottom: .8rem;
    font-size: 1rem;
    letter-spacing: .075em;
}

.team-detail-hero h1 {
    font-size: clamp(3.45rem, 6.5vw, 6.1rem);
    line-height: .95;
    text-wrap: balance;
}

.team-detail-hero h1::after {
    width: 48px;
    margin-top: 1rem;
}

.team-detail-hero__content > p:last-child {
    max-width: 590px;
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, .78);
    font-size: 1.04rem;
    line-height: 1.65;
}

.team-facts__grid {
    margin-top: -1.75rem;
    padding: 1rem;
    border-color: var(--team-surface-border);
    border-radius: var(--team-surface-radius);
    box-shadow: 0 18px 42px rgba(3, 36, 21, .10);
}

.team-fact {
    min-height: 112px;
    padding: 1.15rem 1.25rem;
    gap: .9rem;
}

.team-fact__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: rgba(0, 139, 70, .075);
}

.team-fact__icon svg {
    width: 25px;
    height: 25px;
}

.team-fact h2 {
    margin: .05rem 0 .55rem;
    font-size: 1.12rem;
    letter-spacing: .01em;
}

.team-fact p {
    color: #39473f;
    font-size: .94rem;
    line-height: 1.55;
}

.team-content-section {
    padding: var(--team-section-space) 0 0;
}

.team-content-section:first-of-type {
    padding-top: clamp(2.8rem, 5vw, 4rem);
}

.team-panel {
    border-color: var(--team-surface-border);
    border-radius: var(--team-surface-radius);
    box-shadow: var(--team-surface-shadow);
}

.team-next-match__panel {
    position: relative;
    min-height: 205px;
    padding: 1.8rem 2rem;
    overflow: hidden;
}

.team-next-match__panel::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, #00a854, #087447);
}

.team-section-kicker {
    margin-bottom: .65rem;
    font-size: .86rem;
    letter-spacing: .075em;
}

.team-section-kicker svg {
    width: 24px;
    height: 24px;
}

.team-next-match__meta h2 {
    margin: .35rem 0 .75rem;
    color: #101713;
    font-size: 1.7rem;
}

.team-next-match__meta > p:not(:first-child) {
    color: #526057;
    font-size: .92rem;
}

.team-next-match__meta > p svg {
    color: #087447;
}

.team-next-match__fixture {
    gap: 1.5rem;
}

.fixture-club {
    gap: .75rem;
    font-size: 1.23rem;
}

.fixture-club__crest {
    width: 74px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(4, 42, 25, .09);
}

.fixture-versus {
    width: 46px;
    height: 46px;
    box-shadow: 0 7px 18px rgba(8, 116, 71, .2);
}

.team-panel__header {
    min-height: 64px;
    padding: 1rem 1.35rem;
}

.team-panel__header h2 {
    font-size: 1.35rem;
}

.team-results__list {
    padding-top: .65rem;
    padding-bottom: 1.15rem;
}

.team-result {
    min-height: 76px;
    margin: .35rem 0;
    padding-top: .4rem;
    padding-bottom: .4rem;
    border-bottom: 0;
    border-radius: 8px;
}

.team-result__date {
    padding-left: .1rem;
}

.team-result__fixture strong {
    font-size: 1.72rem;
}

.team-ranking table {
    font-size: .84rem;
}

.team-ranking th,
.team-ranking td {
    padding: .82rem .68rem;
}

.team-ranking thead {
    background: #15251d;
}

.team-ranking tbody tr {
    border-bottom-color: #e8eeea;
    transition: background-color .18s ease;
}

.team-ranking tbody tr:nth-child(even):not(.is-club) {
    background: #fafcfb;
}

.team-ranking tbody tr:hover {
    background: #f1f7f4;
}

.team-ranking tbody tr.is-club {
    color: #064f31;
    background: #e4f4eb;
    outline-color: rgba(7, 95, 59, .16);
}

.team-ranking__full-link {
    border-radius: 8px;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.team-ranking__full-link:hover,
.team-ranking__full-link:focus-visible {
    border-color: #075f3b;
    background: #075f3b;
    color: #fff;
}

.team-stats__grid {
    gap: 0;
    background: #edf1ee;
}

.team-stats__grid > div {
    min-height: 112px;
    padding: .8rem .55rem;
    border-right: 1px solid #edf1ee;
    border-bottom: 1px solid #edf1ee;
}

.team-stats__grid strong {
    font-size: 1.85rem;
    line-height: 1;
}

.team-stats__grid small {
    max-width: 10ch;
    color: #6a766f;
    line-height: 1.25;
}

.team-staff {
    padding-top: var(--team-section-space);
    padding-bottom: clamp(5rem, 9vw, 8rem);
}

@media (max-width: 800px) {
    .team-next-match__panel {
        padding: 1.7rem;
    }

    .team-detail-hero__content > p:last-child {
        max-width: 540px;
    }
}

@media (max-width: 580px) {
    .team-detail-hero {
        padding-top: 2.8rem;
        padding-bottom: 4rem;
    }

    .team-detail-hero h1 {
        font-size: clamp(3.1rem, 15vw, 4.65rem);
    }

    .team-facts__grid {
        margin-top: -1.4rem;
        padding: .7rem;
    }

    .team-fact {
        min-height: auto;
        padding: 1rem .85rem;
    }

    .team-next-match__panel {
        padding: 1.35rem 1.1rem;
    }

    .fixture-club {
        font-size: 1.08rem;
    }

    .team-panel__header h2 {
        font-size: 1.23rem;
    }

    .team-result {
        margin: .25rem 0;
        padding-top: .7rem;
        padding-bottom: .7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-ranking tbody tr,
    .team-ranking__full-link {
        transition: none;
    }
}


/* Créneaux d’entraînement structurés — 1.3.14 */
.team-fact--trainings {
    min-width: 0;
}

.team-fact--trainings h2 {
    margin-bottom: 1.2rem;
}

.team-trainings {
    display: grid;
    gap: .55rem;
}

.team-training-day {
    display: grid;
    padding: .55rem .65rem;
    grid-template-columns: minmax(66px, .62fr) minmax(0, 1.38fr);
    gap: .8rem;
    align-items: start;
    border-left: 3px solid rgba(8, 116, 71, .72);
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(8, 116, 71, .07), rgba(8, 116, 71, .015));
}

.team-training-day + .team-training-day {
    margin-top: .08rem;
}

.team-training-day h3 {
    margin: .1rem 0 0;
    color: var(--color-primary-dark, #00643b);
    font-family: var(--font-heading);
    font-size: .96rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.team-training-day__slots {
    display: grid;
    gap: .5rem;
}

.team-training-slot {
    display: grid;
    gap: .08rem;
}

.team-training-slot + .team-training-slot {
    padding-top: .45rem;
    border-top: 1px solid rgba(0, 81, 46, .1);
}

.team-training-slot strong {
    color: #203029;
    font-size: .94rem;
    line-height: 1.35;
}

.team-training-slot span {
    color: #5b6b62;
    font-size: .78rem;
    line-height: 1.4;
}

@media (max-width: 1180px) and (min-width: 761px) {
    .team-fact--trainings {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .team-training-day {
        grid-template-columns: 1fr;
        gap: .3rem;
    }
}

/* Entraînements et encadrement — 1.4.0 */
.team-practical {
    padding-top: var(--team-section-space);
}

.team-practical__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.team-practical__grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.team-training-panel,
.team-staff-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
}

.team-training-panel__body,
.team-staff-card__body {
    display: flex;
    min-height: 0;
    padding: 1.25rem;
    flex: 1 1 auto;
    flex-direction: column;
}

.team-training-panel__note,
.team-staff-card__join {
    margin-top: auto;
}


.team-training-panel .team-trainings {
    gap: .65rem;
}

.team-training-panel .team-training-day {
    grid-template-columns: minmax(120px, .55fr) minmax(0, 1.45fr);
    padding: .8rem 1rem;
    gap: 1rem;
    align-items: center;
    border-left-width: 4px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(8, 116, 71, .075), rgba(8, 116, 71, .018));
}

.team-training-panel .team-training-day h3 {
    margin: 0;
    font-size: 1.12rem;
}

.team-training-panel .team-training-day__slots {
    gap: .55rem;
}

.team-training-panel .team-training-slot {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.team-training-panel .team-training-slot + .team-training-slot {
    padding-top: .55rem;
}

.team-training-panel .team-training-slot strong {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1rem;
}

.team-training-panel .team-training-slot strong svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: #087447;
}

.team-training-slot__period {
    display: inline-flex;
    max-width: 48%;
    padding: .25rem .55rem;
    border: 1px solid rgba(0, 81, 46, .08);
    border-radius: 999px;
    color: #4f6057 !important;
    background: rgba(0, 81, 46, .055);
    font-size: .72rem !important;
    line-height: 1.25 !important;
    text-align: center;
}

.team-training-panel__note {
    margin: auto 0 0;
    padding: .7rem .85rem;
    border-radius: 7px;
    color: #4e6257;
    background: rgba(8, 116, 71, .055);
    font-size: .78rem;
    line-height: 1.45;
}

.team-staff-card__people {
    display: grid;
    gap: 1rem;
}

.team-staff-card__people.has-multiple .team-coach-card + .team-coach-card {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 81, 46, .1);
}

.team-coach-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.team-coach-card__photo {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    overflow: hidden;
    border: 4px solid rgba(8, 116, 71, .1);
    border-radius: 50%;
    color: rgba(0, 87, 51, .35);
    background: #e6eeea;
}

.team-coach-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-coach-card__photo svg {
    width: 52px;
    height: 52px;
}

.team-coach-card__content {
    min-width: 0;
}

.team-coach-card h3 {
    margin: 0;
    color: #087447;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    text-transform: uppercase;
}

.team-coach-card p {
    margin: .15rem 0 .6rem;
    color: #5a675f;
}

.team-coach-card a {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-top: .35rem;
    align-items: center;
    gap: .45rem;
    color: #26362d;
    font-size: .82rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.team-coach-card a:hover {
    color: #087447;
}

.team-coach-card a svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #087447;
}

.team-staff-card__join {
    display: grid;
    margin-top: auto;
    padding-top: 1rem;
    gap: .8rem;
    border-top: 1px solid rgba(0, 81, 46, .1);
}

.team-staff-card__join p {
    margin: 0;
    color: #526159;
    font-size: .84rem;
    line-height: 1.5;
}

.team-staff-card__join .button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: .55rem;
}

.team-staff-card__join .button svg {
    width: 18px;
    height: 18px;
}

/* Cartes pratiques de hauteur uniforme — 1.4.2 */
@media (max-width: 980px) {
    .team-practical__grid {
        grid-template-columns: 1fr;
    }

    .team-staff-card__people.has-multiple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-staff-card__people.has-multiple .team-coach-card + .team-coach-card {
        padding-top: 0;
        padding-left: 1rem;
        border-top: 0;
        border-left: 1px solid rgba(0, 81, 46, .1);
    }
}

@media (max-width: 680px) {
    .team-training-panel__body,
    .team-staff-card__body {
        padding: .9rem;
    }

    .team-training-panel .team-training-day {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .team-staff-card__people.has-multiple {
        grid-template-columns: 1fr;
    }

    .team-staff-card__people.has-multiple .team-coach-card + .team-coach-card {
        padding-top: 1rem;
        padding-left: 0;
        border-top: 1px solid rgba(0, 81, 46, .1);
        border-left: 0;
    }
}

@media (max-width: 460px) {
    .team-training-panel .team-training-slot {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
    }

    .team-training-slot__period {
        max-width: 100%;
    }

    .team-coach-card {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }

    .team-coach-card__photo {
        width: 72px;
        height: 72px;
    }
}

/* Fiche équipe — informations intégrées au hero (1.4.1) */
.team-detail-hero {
    padding-bottom: clamp(2.8rem, 5vw, 4rem);
}

.team-detail-hero .container {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

.team-detail-hero__facts {
    display: flex;
    max-width: 1040px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.team-detail-hero__fact {
    display: grid;
    min-width: 205px;
    padding: .3rem clamp(1rem, 2.4vw, 1.8rem);
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.team-detail-hero__fact:first-child {
    padding-left: 0;
    border-left: 0;
}

.team-detail-hero__fact-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #19c46b;
}

.team-detail-hero__fact-icon svg {
    width: 30px;
    height: 30px;
}

.team-detail-hero__fact dt {
    margin: 0 0 .15rem;
    color: rgba(255, 255, 255, .62);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.team-detail-hero__fact dd {
    margin: 0;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
}

.team-practical.team-content-section:first-of-type {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.team-stats {
    padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

@media (max-width: 900px) {
    .team-detail-hero__fact {
        width: 50%;
        min-width: 0;
    }

    .team-detail-hero__fact:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 580px) {
    .team-detail-hero {
        padding-bottom: 2.6rem;
    }

    .team-detail-hero .container {
        gap: 1.65rem;
    }

    .team-detail-hero__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .team-detail-hero__fact,
    .team-detail-hero__fact:first-child,
    .team-detail-hero__fact:nth-child(3) {
        width: 100%;
        padding: 0;
        border-left: 0;
    }

    .team-detail-hero__fact dt {
        font-size: .66rem;
    }

    .team-detail-hero__fact dd {
        font-size: .86rem;
    }
}

/* ======================================================
   FICHE ÉQUIPE 1.5.3 — VIGNETTE PHOTO ET LIGHTBOX
====================================================== */
.team-detail-hero {
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.75rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 168, 84, .15), transparent 34%),
        linear-gradient(135deg, #08140f 0%, #0d261a 58%, #07331e 100%);
}

.team-detail-hero::before {
    content: none;
}

.team-detail-hero::after {
    right: -110px;
    bottom: -175px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(0, 168, 84, .15);
    border-radius: 50%;
    background: none;
    box-shadow:
        0 0 0 44px rgba(0, 168, 84, .035),
        0 0 0 88px rgba(0, 168, 84, .02);
}

.team-photo-section {
    padding-top: clamp(1.5rem, 2.5vw, 2rem);
    padding-bottom: 0;
}

.team-photo-section__inner {
    width: min(100%, 760px);
    margin-inline: auto;
}

.team-photo-section__title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .7rem;
    color: var(--green, #008f4c);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1;
    text-transform: uppercase;
}

.team-photo-section__title svg {
    width: 1.3rem;
    height: 1.3rem;
    flex: 0 0 auto;
}

.team-photo-card {
    margin: 0;
}

.team-photo-card__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: .55rem;
    overflow: hidden;
    border: 1px solid rgba(9, 48, 29, .1);
    border-radius: .85rem;
    background: #edf3ef;
    box-shadow: 0 12px 30px rgba(8, 32, 20, .08);
    cursor: zoom-in;
}

.team-photo-card__media {
    display: block;
    height: clamp(260px, 23vw, 330px);
    overflow: hidden;
    border-radius: .55rem;
    background: #e8efea;
}

.team-photo-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .3s ease;
}

.team-photo-card__overlay {
    position: absolute;
    inset: .55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: .55rem;
    color: #fff;
    font-weight: 700;
    opacity: 0;
    background: rgba(3, 24, 14, .52);
    transition: opacity .25s ease;
}

.team-photo-card__overlay svg {
    width: 1.45rem;
    height: 1.45rem;
}

.team-photo-card__trigger:hover .team-photo-card__overlay,
.team-photo-card__trigger:focus-visible .team-photo-card__overlay {
    opacity: 1;
}

.team-photo-card__trigger:hover .team-photo-card__media img,
.team-photo-card__trigger:focus-visible .team-photo-card__media img {
    transform: scale(1.025);
}

.team-photo-card__trigger:focus-visible {
    outline: 3px solid rgba(0, 143, 76, .35);
    outline-offset: 4px;
}

.team-photo-section + .team-practical {
    padding-top: clamp(1.25rem, 3vw, 2rem);
}

body.team-photo-lightbox-open {
    overflow: hidden;
}

.team-photo-lightbox[hidden] {
    display: none;
}

.team-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.team-photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 12, 7, .92);
    cursor: zoom-out;
}

.team-photo-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    max-width: min(94vw, 1500px);
    max-height: 92vh;
}

.team-photo-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: .65rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.team-photo-lightbox__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 24, 14, .78);
    cursor: pointer;
}

.team-photo-lightbox__close:hover,
.team-photo-lightbox__close:focus-visible {
    background: var(--green, #008f4c);
}

.team-photo-lightbox__close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .65);
    outline-offset: 3px;
}

.team-photo-lightbox__close svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 580px) {
    .team-detail-hero {
        padding: 3rem 0 2.6rem;
    }

    .team-photo-section__title {
        margin-bottom: .6rem;
    }

    .team-photo-card__media {
        height: clamp(210px, 58vw, 290px);
    }

    .team-photo-card__overlay {
        opacity: 1;
        align-items: flex-end;
        justify-content: flex-end;
        padding: .75rem;
        background: linear-gradient(to top, rgba(3, 24, 14, .62), transparent 45%);
    }

    .team-photo-card__overlay span {
        display: none;
    }

    .team-photo-lightbox {
        padding: .75rem;
    }

    .team-photo-lightbox__close {
        top: .5rem;
        right: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-photo-card__media img,
    .team-photo-card__overlay {
        transition: none;
    }
}


/* ======================================================
   FICHE ÉQUIPE 1.5.6 — HERO COMMUN ET LÉGENDE PHOTO
====================================================== */
.team-detail-hero {
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.75rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 168, 84, .15), transparent 34%),
        linear-gradient(135deg, #08140f 0%, #0d261a 58%, #07331e 100%);
}

.team-detail-hero::before {
    content: none;
}

.team-detail-hero::after {
    inset: auto -110px -175px auto;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(0, 168, 84, .15);
    border-radius: 50%;
    background: none;
    box-shadow:
        0 0 0 44px rgba(0, 168, 84, .035),
        0 0 0 88px rgba(0, 168, 84, .02);
    pointer-events: none;
}

.team-photo-section__title {
    color: var(--color-primary-dark);
}

.team-photo-card__caption {
    margin: .75rem .4rem 0;
    color: var(--color-text-muted);
    font-size: .9rem;
    line-height: 1.5;
    text-align: center;
}

.team-photo-lightbox__close:hover,
.team-photo-lightbox__close:focus-visible {
    background: var(--color-primary-dark);
}
