/* =====================================================================
   Lille Impact Sport - feuille de style du site public
   Identité : bleu nuit + or de l'écusson, rayons du soleil de l'écusson,
   titres en caractères étroits (Big Shoulders Display), texte en Source Sans 3.
   ===================================================================== */

:root {
    --navy: #0c1a3d;
    --navy-deep: #081230;
    --navy-2: #142a5c;
    --navy-3: #1d3a78;
    --gold: #eab308;
    --gold-light: #ffd94e;
    --gold-deep: #9a6a05;
    --chalk: #f3f5f9;
    --paper: #ffffff;
    --ink: #101a34;
    --slate: #556079;
    --line: #dfe3ec;
    --line-strong: #c9cfdc;
    --on-navy: #eef1f8;
    --on-navy-soft: #a9b5d3;
    --on-navy-line: rgba(255, 255, 255, .13);
    --win: #1f8a4c;
    --draw: #64748b;
    --loss: #c2410c;

    --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

    --container: 1200px;
    --gutter: 20px;
    --header-h: 76px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(12, 26, 61, .06), 0 8px 24px rgba(12, 26, 61, .07);
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--chalk);
    overflow-x: hidden;
    padding-top: var(--header-h);
}

body.nav-open {
    overflow: hidden;
}

.site-main {
    flex: 1;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: .005em;
    color: var(--ink);
}

/* ---------------------------------------------------------------------
   Boutons, liens, étiquettes
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 16px;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: var(--navy-2);
    border-color: var(--navy-2);
}

.btn-outline {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--paper);
}

.btn-outline:hover {
    border-color: var(--navy);
}

.btn-ghost-light {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    background: transparent;
}

.btn-ghost-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .06);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* Compatibilité avec les vues existantes */
.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    border-color: var(--navy-2);
    background: var(--navy-2);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.text-link:hover {
    color: var(--gold-deep);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8ecf4;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    color: #fff;
    background: var(--draw);
}

.result-badge.is-win {
    background: var(--win);
}

.result-badge.is-loss {
    background: var(--loss);
}

.result-badge.is-upcoming {
    background: #fff3c4;
    color: #6b4a00;
}

.crest {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8ecf4;
    color: var(--navy-3);
    font-size: 20px;
    overflow: hidden;
}

.crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.crest:has(img) {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.crest-sm {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.crest-lg {
    width: 88px;
    height: 88px;
    font-size: 36px;
}

.empty-note {
    padding: 28px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--slate);
    text-align: center;
}

/* Rayons (soleil de l'écusson) */
.rays polygon {
    fill: currentColor;
}

/* ---------------------------------------------------------------------
   En-tête
   --------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--navy);
    color: var(--on-navy);
    transition: box-shadow .2s, background .2s;
    border-bottom: 3px solid var(--gold);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(8, 18, 48, .35);
}

.site-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: none;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    color: #fff;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav ul a {
    position: relative;
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--on-navy-soft);
    text-decoration: none;
    border-radius: 6px;
    transition: color .15s;
}

.main-nav ul a:hover {
    color: #fff;
}

.main-nav ul a.is-active {
    color: #fff;
}

.main-nav ul a.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -17px;
    height: 3px;
    background: var(--gold-light);
}

.main-nav .main-nav-socials {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.account-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
}

.account-link:hover {
    background: var(--gold-light);
}

.account-link.is-active {
    box-shadow: inset 0 0 0 2px var(--navy);
}

.account-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    background: #d92d20;
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    border: 2px solid var(--navy);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--on-navy-line);
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
    .main-nav ul a {
        padding: 8px 9px;
        font-size: 14.5px;
    }

    .site-header-inner {
        gap: 16px;
    }
}

@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 99;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 26px var(--gutter) 34px;
        background: var(--navy-deep);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav ul a {
        padding: 14px 0;
        border-bottom: 1px solid var(--on-navy-line);
        border-radius: 0;
        font-family: var(--font-display);
        font-size: 34px;
        font-weight: 800;
        color: #fff;
    }

    .main-nav ul a.is-active {
        color: var(--gold-light);
    }

    .main-nav ul a.is-active::after {
        display: none;
    }

    .main-nav .main-nav-socials {
        display: flex;
        margin-top: 28px;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 66px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 19px;
        max-width: 9.5em;
    }

    .account-link {
        padding: 0 12px;
    }

    .account-link span {
        display: none;
    }

    .account-link {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
}

/* ---------------------------------------------------------------------
   Réseaux sociaux
   --------------------------------------------------------------------- */
.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 1px solid var(--on-navy-line);
    color: #fff;
    font-size: 16px;
    transition: background .15s, color .15s, border-color .15s;
}

.socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.socials.is-light a {
    border-color: var(--line-strong);
    color: var(--navy);
}

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.site-footer {
    margin-top: auto;
    background: var(--navy-deep);
    color: var(--on-navy-soft);
    font-size: 15.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 64px 0 44px;
}

.footer-brand {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex: none;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.footer-brand p:not(.footer-name) {
    max-width: 34ch;
}

.footer-col h2 {
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: .01em;
}

.footer-col ul {
    display: grid;
    gap: 8px;
}

.footer-col a {
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-col address {
    font-style: normal;
    margin-bottom: 10px;
}

.footer-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--gold-light);
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0 26px;
    border-top: 1px solid var(--on-navy-line);
    font-size: 14px;
}

.footer-bottom a {
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--navy);
    color: var(--gold-light);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Bandeau cookies */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 200;
    width: min(760px, calc(100% - 24px));
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--navy);
    color: var(--on-navy-soft);
    font-size: 14.5px;
    line-height: 1.5;
    box-shadow: 0 18px 50px rgba(8, 18, 48, .4);
    border-top: 3px solid var(--gold);
    transform: translate(-50%, 140%);
    transition: transform .35s ease;
}

.cookie-banner.is-visible {
    transform: translate(-50%, 0);
}

.cookie-banner-title {
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
}

.cookie-banner a {
    color: var(--gold-light);
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex: none;
}

.cookie-banner .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        bottom: 10px;
    }

    .cookie-banner-actions .btn {
        flex: 1;
    }
}

/* ---------------------------------------------------------------------
   Messages
   --------------------------------------------------------------------- */
.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 15.5px;
    line-height: 1.5;
    border: 1px solid;
    transition: opacity .4s, transform .4s;
}

.alert.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.alert > i {
    margin-top: 3px;
}

.alert ul {
    margin: 4px 0 0 18px;
    list-style: disc;
}

.alert-success {
    background: #ecfdf3;
    border-color: #a6e9c2;
    color: #11613a;
}

.alert-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #9f1d14;
}

.alert-warn {
    background: #fffaeb;
    border-color: #fedf89;
    color: #7a4a03;
}

.alert-info {
    background: #eef4ff;
    border-color: #c7d7fe;
    color: #233a85;
}

/* ---------------------------------------------------------------------
   Formulaires
   --------------------------------------------------------------------- */
.field {
    display: grid;
    gap: 6px;
}

.field > label, .field-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
}

.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field textarea, .field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, .35);
}

.field-error {
    font-size: 14px;
    color: #b42318;
    font-weight: 600;
}

.field-hint {
    font-size: 14px;
    color: var(--slate);
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--navy);
    flex: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .is-full {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section + .section {
    padding-top: 0;
}

.section.is-white {
    background: var(--paper);
}

.section.is-white + .section, .section + .section.is-white {
    padding-top: 80px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(38px, 5vw, 56px);
    text-wrap: balance;
}

.section-sub {
    margin-top: 10px;
    color: var(--slate);
    max-width: 62ch;
}

@media (max-width: 640px) {
    .section {
        padding: 56px 0;
    }

    .section.is-white + .section, .section + .section.is-white {
        padding-top: 56px;
    }

    .section-head {
        margin-bottom: 24px;
    }
}

/* ---------------------------------------------------------------------
   Bandeau de page (pages intérieures)
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--on-navy);
    padding: 52px 0 58px;
    isolation: isolate;
}

.page-hero-rays {
    position: absolute;
    z-index: -1;
    width: 1100px;
    height: 1100px;
    right: -420px;
    top: -520px;
    color: var(--gold);
    opacity: .08;
    mask-image: radial-gradient(circle, #000 8%, transparent 58%);
    -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 58%);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--on-navy-soft);
    margin-bottom: 18px;
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.crumbs [aria-current] {
    color: #fff;
}

.crumbs-sep {
    opacity: .5;
}

.page-hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: #fff;
    line-height: .92;
    max-width: 16ch;
    text-wrap: balance;
}

.page-hero-intro {
    margin-top: 18px;
    max-width: 60ch;
    font-size: 18.5px;
    color: var(--on-navy-soft);
}

@media (max-width: 640px) {
    .page-hero {
        padding: 36px 0 40px;
    }

    .page-hero-rays {
        width: 560px;
        height: 560px;
        right: -260px;
        top: -260px;
    }

    .page-hero-intro {
        font-size: 17px;
    }
}

/* ---------------------------------------------------------------------
   Bandeau « Rejoindre le club »
   --------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--gold);
    color: var(--navy);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .16) 46px 92px);
    mask-image: linear-gradient(90deg, transparent 35%, #000);
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000);
}

.cta-band-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 54px 0;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: clamp(36px, 4.6vw, 54px);
    color: var(--navy);
}

.cta-band p {
    margin-top: 8px;
    max-width: 56ch;
    font-size: 17.5px;
    color: #3a2c00;
}

/* =====================================================================
   Accueil
   ===================================================================== */
.home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--on-navy);
    background: radial-gradient(120% 90% at 78% 40%, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
    padding: 64px 0 150px;
}

.home-hero-rays {
    position: absolute;
    z-index: -1;
    width: 1500px;
    height: 1500px;
    left: 74%;
    top: 44%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    opacity: .085;
    mask-image: radial-gradient(circle, #000 18%, transparent 62%);
    -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: center;
    gap: 24px;
}

.home-hero-kicker {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 14px;
}

.home-hero-title {
    font-size: clamp(58px, 8vw, 118px);
    font-weight: 900;
    line-height: .86;
    color: #fff;
    letter-spacing: -.005em;
}

.home-hero-title span {
    display: block;
    animation: heroLine .7s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i) * 110ms + 80ms);
}

.home-hero-title span:last-child {
    color: var(--gold);
}

@keyframes heroLine {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.home-hero-lead {
    margin-top: 24px;
    max-width: 52ch;
    font-size: 19px;
    color: var(--on-navy-soft);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-hero-visual {
    position: relative;
    justify-self: center;
    width: min(520px, 100%);
}

.home-hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 4%;
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(circle, rgba(234, 179, 8, .28), rgba(234, 179, 8, 0) 66%);
}

.home-hero-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
}

@media (max-width: 900px) {
    .home-hero {
        padding: 40px 0 120px;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        position: absolute;
        right: -60px;
        bottom: 40px;
        width: 300px;
        opacity: .22;
        z-index: -1;
    }

    .home-hero-rays {
        left: 90%;
        top: 70%;
    }
}

@media (max-width: 560px) {
    .home-hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* Tableau d'affichage */
.scoreboard-wrap {
    position: relative;
    z-index: 2;
    margin-top: -96px;
}

.scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--on-navy);
    box-shadow: 0 24px 60px rgba(8, 18, 48, .35);
    border: 1px solid rgba(255, 255, 255, .08);
}

.scoreboard.is-single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.sb-panel {
    display: grid;
    gap: 18px;
    padding: 24px 28px 22px;
}

.sb-panel + .sb-panel {
    border-left: 1px solid var(--on-navy-line);
}

.sb-panel.is-next {
    background: linear-gradient(160deg, rgba(234, 179, 8, .10), rgba(234, 179, 8, 0) 60%);
}

.sb-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.sb-head h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.sb-date {
    font-size: 14.5px;
    color: var(--on-navy-soft);
    font-weight: 600;
}

.is-next .sb-date {
    color: var(--gold-light);
}

.sb-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.sb-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sb-team.is-right {
    flex-direction: row-reverse;
    text-align: right;
}

.sb-team .crest {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sb-team .crest:has(img) {
    background: #fff;
}

.sb-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    overflow-wrap: anywhere;
}

.sb-team:not(.is-club) .sb-name {
    color: var(--on-navy);
}

.sb-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.sb-score b {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 78px;
    padding: 0 8px;
    border-radius: 8px;
    background: #050b1f;
    color: var(--gold-light);
    font-size: 62px;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .06);
    animation: digitIn .6s cubic-bezier(.2, .7, .2, 1) .35s both;
}

.sb-score b:last-child {
    animation-delay: .5s;
}

@keyframes digitIn {
    from {
        transform: rotateX(80deg);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.sb-score i {
    width: 6px;
    height: 22px;
    background: radial-gradient(circle, var(--gold) 2.5px, transparent 3px) top / 6px 8px repeat-y;
}

.sb-kickoff {
    display: grid;
    justify-items: center;
    line-height: 1;
    font-family: var(--font-display);
    text-align: center;
}

.sb-kickoff-day {
    font-size: 60px;
    font-weight: 900;
    color: var(--gold-light);
}

.sb-kickoff-month {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

.sb-kickoff-time {
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--gold);
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.sb-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 14px;
    border-top: 1px solid var(--on-navy-line);
    font-size: 14.5px;
}

.sb-info {
    color: var(--on-navy-soft);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sb-link {
    margin-left: auto;
    color: var(--gold-light);
    font-weight: 700;
    text-underline-offset: 4px;
}

.sb-link:hover {
    color: #fff;
}

.sb-countdown {
    display: inline-flex;
    gap: 10px;
    color: var(--on-navy-soft);
}

.sb-countdown b {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-right: 2px;
    font-variant-numeric: tabular-nums;
}

.form-guide {
    display: inline-flex;
    gap: 4px;
}

.form-guide span {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--draw);
}

.form-guide .is-win {
    background: var(--win);
}

.form-guide .is-loss {
    background: var(--loss);
}

@media (max-width: 980px) {
    .scoreboard {
        grid-template-columns: 1fr;
    }

    .sb-panel + .sb-panel {
        border-left: 0;
        border-top: 1px solid var(--on-navy-line);
    }
}

@media (max-width: 560px) {
    .scoreboard-wrap {
        margin-top: -84px;
    }

    .sb-panel {
        padding: 20px 16px 18px;
        gap: 14px;
    }

    .sb-line {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
    }

    .sb-team, .sb-team.is-right {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .sb-team .crest {
        width: 46px;
        height: 46px;
    }

    .sb-name {
        font-size: 18px;
    }

    .sb-score b {
        min-width: 48px;
        height: 60px;
        font-size: 46px;
    }

    .sb-kickoff-day {
        font-size: 48px;
    }

    .sb-link {
        margin-left: 0;
    }
}

/* Piliers */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 3px solid var(--navy);
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 30px 6px 0;
}

.pillar + .pillar {
    padding-left: 30px;
    border-left: 1px solid var(--line-strong);
}

.pillar > i {
    font-size: 26px;
    color: var(--gold-deep);
    margin-bottom: 4px;
}

.pillar h3 {
    font-size: 34px;
}

.pillar p {
    color: var(--slate);
    flex: 1;
}

.pillar .text-link {
    margin-top: 8px;
    align-self: flex-start;
}

@media (max-width: 800px) {
    .pillars {
        grid-template-columns: 1fr;
        border-top: 0;
    }

    .pillar, .pillar + .pillar {
        padding: 24px 0;
        border-left: 0;
        border-top: 1px solid var(--line-strong);
    }

    .pillar:first-child {
        border-top: 3px solid var(--navy);
    }
}

/* Esprit du club */
.spirit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.spirit-title {
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 900;
    line-height: .92;
    color: var(--navy);
    text-wrap: balance;
}

.spirit-text {
    display: grid;
    gap: 16px;
    font-size: 19px;
    color: var(--ink);
    padding-top: 8px;
    border-top: 3px solid var(--gold);
    padding-top: 22px;
}

.spirit-text p + p {
    color: var(--slate);
}

@media (max-width: 800px) {
    .spirit {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Actualités : cartes */
.news-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 24px;
}

.news-mosaic.has-one {
    grid-template-columns: 1fr;
}

.news-mosaic.has-one .news-card.is-feature {
    flex-direction: row;
}

.news-mosaic.has-one .news-card.is-feature .news-card-media {
    flex: 0 0 58%;
    aspect-ratio: 16 / 10;
}

.news-mosaic.has-one .news-card.is-feature .news-card-body {
    align-content: center;
    padding: 28px 32px;
}

.news-mosaic .news-card.is-feature {
    grid-row: span 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: box-shadow .2s, border-color .2s;
}

.section.is-white .news-card {
    background: var(--chalk);
    border-color: transparent;
}

.news-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

.news-card-media {
    aspect-ratio: 16 / 10;
    background: #dfe4ee;
    overflow: hidden;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.news-card:hover .news-card-media img {
    transform: scale(1.03);
}

.media-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #9aa5bd;
    font-size: 30px;
}

.news-card-body {
    display: grid;
    gap: 10px;
    padding: 18px 20px 22px;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--slate);
}

.news-card-title {
    font-size: 26px;
    line-height: 1.05;
}

.news-card-title a {
    text-decoration: none;
}

.news-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.news-card-title a:hover {
    color: var(--navy-3);
}

.news-card-text {
    color: var(--slate);
    font-size: 16px;
}

.news-card.is-feature .news-card-title {
    font-size: clamp(30px, 3.4vw, 42px);
}

.news-mosaic .news-card:not(.is-feature) {
    flex-direction: row;
}

.news-mosaic .news-card:not(.is-feature) .news-card-media {
    flex: 0 0 40%;
    aspect-ratio: auto;
    min-height: 160px;
}

.news-mosaic .news-card:not(.is-feature) .news-card-text {
    display: none;
}

@media (max-width: 900px) {
    .news-mosaic {
        grid-template-columns: 1fr;
    }

    .news-mosaic.has-one .news-card.is-feature {
        flex-direction: column;
    }

    .news-mosaic.has-one .news-card.is-feature .news-card-body {
        padding: 18px 20px 22px;
    }

    .news-mosaic .news-card.is-feature {
        grid-row: auto;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-mosaic .news-card:not(.is-feature) .news-card-media {
        flex-basis: 36%;
        min-height: 120px;
    }

    .news-card-title {
        font-size: 23px;
    }
}

/* =====================================================================
   Matchs : liste (calendrier et résultats)
   ===================================================================== */
.fixture-list {
    display: grid;
    gap: 10px;
}

.fixture {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto 150px;
    align-items: center;
    gap: 22px;
    padding: 14px 20px 14px 14px;
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    border-left: 5px solid var(--draw);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

a.fixture:hover {
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

.fixture.is-win {
    border-left-color: var(--win);
}

.fixture.is-loss {
    border-left-color: var(--loss);
}

.fixture.is-upcoming {
    border-left-color: var(--gold);
}

.fixture-date {
    display: grid;
    justify-items: center;
    line-height: 1;
    font-family: var(--font-display);
    color: var(--navy);
}

.fixture-day {
    font-size: 36px;
    font-weight: 900;
}

.fixture-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate);
    text-transform: capitalize;
}

.fixture-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.fixture-team {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    text-align: right;
}

.fixture-team.is-right {
    justify-content: flex-start;
    text-align: left;
}

.fixture-name {
    font-weight: 600;
    font-size: 16.5px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.fixture-team.is-club .fixture-name {
    font-weight: 800;
    color: var(--navy);
}

.fixture-score {
    display: inline-flex;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.fixture-score b {
    min-width: 38px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 30px;
}

.fixture-time {
    min-width: 80px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff7d6;
}

.fixture-meta {
    display: grid;
    gap: 3px;
    font-size: 14px;
    color: var(--slate);
    white-space: nowrap;
}

.fixture-meta i {
    width: 16px;
    color: var(--navy-3);
}

.fixture-state {
    justify-self: end;
}

@media (max-width: 900px) {
    .fixture {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px 16px;
        padding: 14px;
    }

    .fixture-teams {
        grid-column: 2;
    }

    .fixture-meta {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .fixture-state {
        grid-column: 2;
        justify-self: start;
    }

    .fixture-date {
        grid-row: 1 / span 3;
        align-self: start;
        padding-top: 4px;
    }
}

@media (max-width: 520px) {
    .fixture {
        grid-template-columns: 1fr;
    }

    .fixture-date {
        grid-row: auto;
        display: flex;
        gap: 6px;
        align-items: baseline;
        justify-self: start;
        padding: 0;
    }

    .fixture-day {
        font-size: 24px;
    }

    .fixture-teams, .fixture-meta, .fixture-state {
        grid-column: 1;
    }

    .fixture-teams {
        gap: 8px;
    }

    .fixture-team, .fixture-team.is-right {
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        gap: 6px;
    }

    .fixture-team:not(.is-right) {
        flex-direction: column-reverse;
    }

    .fixture-name {
        font-size: 15px;
    }

    .fixture-score b {
        min-width: 32px;
        height: 38px;
        font-size: 26px;
    }

    .fixture-time {
        min-width: 64px;
        font-size: 22px;
    }
}

/* Onglets de filtre */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: var(--paper);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.filter-tab:hover {
    border-color: var(--navy);
}

.filter-tab.active, .filter-tab[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 32px;
}

.pagination, .pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.page-link, .pager-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    background: var(--paper);
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}

a.page-link:hover, a.pager-btn:hover {
    border-color: var(--navy);
}

.page-item.active .page-link, .pager-btn.is-current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.page-item.disabled .page-link, .pager-btn.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.pager-info {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--slate);
    margin-top: 6px;
}

.section-count {
    font-size: 15px;
    color: var(--slate);
    font-weight: 600;
}

.fixture-hint {
    margin-top: 14px;
    font-size: 14.5px;
    color: var(--slate);
}

.page-hero.has-board {
    padding-bottom: 130px;
}

.scoreboard-wrap.is-page {
    margin-top: -100px;
}

.scoreboard-wrap.is-page + .section {
    padding-top: 56px;
}

@media (max-width: 560px) {
    .page-hero.has-board {
        padding-bottom: 110px;
    }

    .scoreboard-wrap.is-page {
        margin-top: -86px;
    }
}

/* =====================================================================
   Fiche d'un match
   ===================================================================== */
.match-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 40px 0 56px;
    color: var(--on-navy);
    background: radial-gradient(90% 120% at 50% 100%, var(--navy-2), var(--navy) 55%, var(--navy-deep));
}

.match-hero-rays {
    position: absolute;
    z-index: -1;
    width: 1400px;
    height: 1400px;
    left: 50%;
    top: 78%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    opacity: .08;
    mask-image: radial-gradient(circle, #000 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%);
}

.match-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    font-size: 15px;
    color: var(--on-navy-soft);
    margin-bottom: 26px;
}

.match-hero-meta i {
    color: var(--gold);
    margin-right: 4px;
}

.match-hero .crumbs {
    justify-content: center;
}

.match-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.mb-team {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
    text-align: right;
    min-width: 0;
}

.mb-team:last-child {
    flex-direction: row-reverse;
    text-align: left;
}

.mb-team .crest {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.mb-team .crest:has(img) {
    background: #fff;
}

.mb-name {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 44px);
    font-weight: 900;
    line-height: .95;
    color: #fff;
    overflow-wrap: anywhere;
}

.mb-team:not(.is-club) .mb-name {
    color: var(--on-navy);
}

.mb-center {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.mb-score b {
    min-width: 92px;
    height: 112px;
    font-size: 92px;
}

.mb-score i {
    height: 30px;
}

.match-hero-intro {
    max-width: 64ch;
    margin: 30px auto 0;
    text-align: center;
    font-size: 18px;
    color: var(--on-navy-soft);
}

@media (max-width: 720px) {
    .match-board {
        gap: 10px;
    }

    .mb-team, .mb-team:last-child {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .mb-team .crest-lg {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .mb-score b {
        min-width: 52px;
        height: 66px;
        font-size: 52px;
    }

    .mb-name {
        font-size: 21px;
    }
}

.match-facts-wrap {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.match-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.match-facts > div {
    padding: 18px 20px;
}

.match-facts > div + div {
    border-left: 1px solid var(--line);
}

.match-facts dt {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate);
}

.match-facts dd {
    font-weight: 600;
    font-size: 16.5px;
}

@media (max-width: 800px) {
    .match-facts {
        grid-template-columns: 1fr 1fr;
    }

    .match-facts > div:nth-child(3) {
        border-left: 0;
    }

    .match-facts > div:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .match-facts > div {
        padding: 14px 12px;
    }
}

/* Onglets */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--line-strong);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs [role="tab"] {
    flex: none;
    padding: 12px 18px;
    border: 0;
    background: none;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--slate);
    border-bottom: 4px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.tabs [role="tab"]:hover {
    color: var(--ink);
}

.tabs [role="tab"][aria-selected="true"] {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.tab-panel {
    animation: panelIn .25s ease;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Article */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.article-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 18px;
}

.prose {
    max-width: 70ch;
    font-size: 18px;
    line-height: 1.7;
}

.prose > * + * {
    margin-top: 1.05em;
}

.prose h2 {
    font-size: 36px;
    margin-top: 1.4em;
}

.prose h3 {
    font-size: 28px;
    margin-top: 1.3em;
}

.prose a {
    color: var(--navy-3);
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.prose ul, .prose ol {
    padding-left: 1.3em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose img {
    border-radius: var(--radius);
    height: auto;
}

.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 24px;
    border-left: 5px solid var(--gold);
}

.prose blockquote p {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
}

.prose blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 700;
    color: var(--slate);
    font-size: 15.5px;
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.4em;
}

.aside-block {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.aside-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.aside-meta {
    display: grid;
    gap: 10px;
    font-size: 15.5px;
}

.aside-meta div {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.aside-meta i {
    width: 18px;
    color: var(--navy-3);
}

.share-links {
    display: flex;
    gap: 8px;
}

.share-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--chalk);
    color: var(--navy);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.share-links a:hover {
    background: var(--navy);
    color: var(--gold-light);
}

@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .article-aside {
        position: static;
    }

    .prose {
        font-size: 17px;
    }
}

/* Homme du match */
.motm {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--on-navy);
}

.motm::after {
    content: "★";
    position: absolute;
    right: -10px;
    top: -34px;
    font-size: 150px;
    color: var(--gold);
    opacity: .12;
    line-height: 1;
}

.motm-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gold-light);
}

.motm-name {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin: 6px 0 16px;
}

.motm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.motm-stats .is-wide {
    grid-column: 1 / -1;
}

.motm-stats dt {
    font-size: 13px;
    color: var(--on-navy-soft);
}

.motm-stats dd {
    font-weight: 700;
    color: #fff;
}

/* Feuille de match */
.timeline {
    max-width: 760px;
    margin: 0 auto;
}

.timeline-head {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--navy);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
}

.timeline-head span:first-child {
    text-align: right;
}

.timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    min-height: 58px;
}

.timeline-row::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-side {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.timeline-side.is-left {
    justify-content: flex-end;
    text-align: right;
}

.timeline-side span {
    display: grid;
}

.timeline-side small {
    font-size: 13.5px;
    color: var(--slate);
}

.timeline-min {
    position: relative;
    z-index: 1;
    justify-self: center;
    min-width: 52px;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--paper);
    border: 2px solid var(--navy);
    text-align: center;
    font-weight: 800;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
}

.timeline-row.is-goal i {
    color: var(--navy);
}

.timeline-row.is-yellow i {
    color: #e0a800;
}

.timeline-row.is-red i {
    color: #d92d20;
}

.timeline-row.is-goal .timeline-min {
    background: var(--gold);
    border-color: var(--gold);
}

/* Avant-match */
.preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.preview-stats {
    display: grid;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.preview-stats > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.preview-stats > div + div {
    border-top: 1px solid var(--line);
}

.preview-stats dt {
    color: var(--slate);
    font-weight: 600;
    font-size: 15px;
}

.preview-stats dd {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .preview {
        grid-template-columns: 1fr;
    }
}

/* Composition */
.lu-wrap {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.lu-formation {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.lu-pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 100 / 140;
    border-radius: var(--radius);
    overflow: hidden;
    background: repeating-linear-gradient(180deg, #2c8a4b 0 10%, #277e44 10% 20%);
}

.lu-pitch svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lu-pitch svg * {
    fill: none;
    stroke: rgba(255, 255, 255, .75);
    stroke-width: .5;
    vector-effect: non-scaling-stroke;
}

.lu-player {
    position: absolute;
    transform: translate(-50%, -50%);
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 100px;
    text-align: center;
}

.lu-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold-light);
    font-weight: 800;
    font-size: 15px;
    border: 2px solid var(--gold);
}

.lu-num.is-sm {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-width: 1.5px;
    flex: none;
}

.lu-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.lu-name abbr {
    text-decoration: none;
    color: var(--gold-light);
}

.lu-lists h3 {
    font-size: 26px;
    margin: 0 0 10px;
}

.lu-lists h3:not(:first-child) {
    margin-top: 26px;
}

.lu-list {
    display: grid;
}

.lu-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.lu-list li span:nth-child(2) {
    flex: 1;
    font-weight: 600;
}

.lu-list small {
    color: var(--slate);
    font-size: 14px;
}

@media (max-width: 860px) {
    .lu-wrap {
        grid-template-columns: 1fr;
    }

    .lu-player {
        width: 76px;
    }

    .lu-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .lu-name {
        font-size: 11px;
    }
}

/* =====================================================================
   Effectif
   ===================================================================== */
.line-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.line-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.line-nav a:hover {
    border-color: var(--navy);
}

.line-nav span {
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 12.5px;
}

.roster-line {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.roster-line + .roster-line {
    margin-top: 48px;
}

.roster-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--navy);
}

.roster-line-head h2 {
    font-size: clamp(34px, 4vw, 46px);
}

.roster-line.is-staff .roster-line-head {
    border-bottom-color: var(--gold);
}

.rail-arrows {
    display: none;
    gap: 8px;
}

.roster-line.has-overflow .rail-arrows {
    display: flex;
}

.rail-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--paper);
    color: var(--navy);
}

.rail-btn:hover:not(:disabled) {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.rail-btn:disabled {
    opacity: .35;
    cursor: default;
}

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail > * {
    scroll-snap-align: start;
}

@media (max-width: 1000px) {
    .rail {
        grid-auto-columns: calc((100% - 2 * 16px) / 3);
        gap: 16px;
    }
}

@media (max-width: 700px) {
    .rail {
        grid-auto-columns: 62%;
        gap: 14px;
    }
}

.person-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: box-shadow .2s, border-color .2s;
}

.person-card:has(a):hover {
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

.person-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(170deg, var(--navy-2), var(--navy-deep));
}

.person-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.person-card-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    color: rgba(255, 255, 255, .18);
}

.person-card-number {
    position: absolute;
    left: 12px;
    bottom: 4px;
    font-family: var(--font-display);
    font-size: 84px;
    font-weight: 900;
    line-height: .9;
    color: var(--gold);
    -webkit-text-stroke: 0;
    text-shadow: 0 4px 18px rgba(8, 18, 48, .55);
}

.person-card-body {
    padding: 14px 16px 16px;
    border-top: 4px solid var(--gold);
}

.person-card-name {
    font-size: 25px;
    line-height: 1.02;
}

.person-card-name a {
    text-decoration: none;
}

.person-card-name a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.person-card-role {
    margin-top: 4px;
    font-size: 15px;
    color: var(--slate);
}

/* Fiche joueur */
.player-sheet {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.player-sheet-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(170deg, var(--navy-2), var(--navy-deep));
}

.player-sheet-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.player-sheet-photo .person-card-number {
    font-size: 130px;
    left: 18px;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 30px;
    border-top: 3px solid var(--navy);
    border-bottom: 1px solid var(--line-strong);
}

.player-stats > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 18px 0 16px;
}

.player-stats > div + div {
    padding-left: 22px;
    border-left: 1px solid var(--line-strong);
}

.player-stats dd {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: var(--navy);
}

.player-stats dt {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    margin-top: 4px;
}

.player-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin-top: 30px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.player-facts dt {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--slate);
}

.player-facts dd {
    font-weight: 600;
    font-size: 17px;
}

.player-sheet .text-link {
    margin-top: 28px;
}

@media (max-width: 860px) {
    .player-sheet {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .player-sheet-photo {
        max-width: 420px;
    }

    .player-stats dd {
        font-size: 48px;
    }
}

/* =====================================================================
   Le club
   ===================================================================== */
.figures-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.figures {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.figures > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 26px 22px 22px;
}

.figures > div + div {
    border-left: 1px solid var(--line);
}

.figures > div:first-child {
    padding-left: 0;
}

.figures dd {
    font-family: var(--font-display);
    font-size: clamp(52px, 6vw, 76px);
    font-weight: 900;
    line-height: .95;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.figures dt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
}

.card-icon {
    width: 12px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
}

.card-icon.is-yellow {
    background: #f5c400;
}

.card-icon.is-red {
    background: #d92d20;
}

@media (max-width: 860px) {
    .figures {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .figures > div:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    .figures > div:nth-child(n+4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 520px) {
    .figures {
        grid-template-columns: 1fr 1fr;
    }

    .figures > div {
        padding: 18px 14px;
    }

    .figures > div:nth-child(n) {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
    }

    .figures > div:nth-child(even) {
        border-left: 1px solid var(--line);
        padding-left: 14px;
    }

    .figures > div:nth-child(-n+2) {
        border-top: 0;
    }
}

.story {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.story-title {
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 900;
    line-height: .92;
    color: var(--navy);
    position: sticky;
    top: calc(var(--header-h) + 24px);
    text-wrap: balance;
}

.story-text {
    border-top: 3px solid var(--gold);
    padding-top: 22px;
}

@media (max-width: 860px) {
    .story {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .story-title {
        position: static;
    }
}

.board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 32px 24px;
}

.board-member {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 4px;
}

.board-photo {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    background: var(--navy);
    color: rgba(255, 255, 255, .3);
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold);
}

.board-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

.board-role {
    font-size: 15px;
    color: var(--slate);
}

.values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    border-top: 3px solid var(--navy);
}

.value {
    display: flex;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-strong);
}

.value > i {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 19px;
}

.value h3 {
    font-size: 30px;
}

.value p {
    margin-top: 6px;
    color: var(--slate);
}

@media (max-width: 760px) {
    .values {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Actualités
   ===================================================================== */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 22px;
    font-size: 15px;
    color: var(--on-navy-soft);
}

.tag-gold {
    background: var(--gold);
    color: var(--navy);
}

.page-hero.is-article .page-hero-title {
    font-size: clamp(40px, 6vw, 76px);
    max-width: 22ch;
}

.article-content > * + * {
    margin-top: 1.05em;
}

.article-keypoints {
    margin-top: 2em;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--paper);
    border-left: 5px solid var(--navy);
}

.article-keypoints h2 {
    font-size: 28px;
    margin: 0 0 10px;
}

/* =====================================================================
   Galerie
   ===================================================================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.photo-grid li:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-tile {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #dfe4ee;
    cursor: zoom-in;
}

.photo-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.photo-tile:hover img {
    transform: scale(1.04);
}

.photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 14px 12px;
    background: linear-gradient(transparent, rgba(8, 18, 48, .85));
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    opacity: 0;
    transition: opacity .2s;
}

.photo-tile:hover .photo-caption, .photo-tile:focus-visible .photo-caption {
    opacity: 1;
}

@media (max-width: 900px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .photo-grid {
        gap: 8px;
    }

    .photo-tile {
        min-height: 150px;
    }

    .photo-caption {
        opacity: 1;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    place-items: center;
    padding: 60px 70px;
    background: rgba(5, 11, 31, .94);
}

.lightbox.is-open {
    display: grid;
}

.lightbox-figure {
    display: grid;
    gap: 12px;
    justify-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-figure figcaption {
    color: var(--on-navy);
    text-align: center;
    font-size: 15.5px;
}

.lightbox-close, .lightbox-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--on-navy-line);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 18px;
}

.lightbox-close:hover, .lightbox-nav:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.is-prev {
    left: 14px;
}

.lightbox-nav.is-next {
    right: 14px;
}

@media (max-width: 600px) {
    .lightbox {
        padding: 70px 10px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 14px;
        transform: none;
    }
}

/* =====================================================================
   Contact
   ===================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 40px;
    align-items: start;
}

.contact-form-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
}

.contact-form-card h2 {
    font-size: 40px;
    margin-bottom: 22px;
}

.contact-list {
    display: grid;
    border-top: 3px solid var(--navy);
}

.contact-list > div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line-strong);
}

.contact-list dt {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-list dt i {
    width: 18px;
    color: var(--navy-3);
}

.contact-list dd {
    margin-top: 4px;
    font-size: 17.5px;
    font-weight: 600;
}

.contact-list dd a {
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

.contact-list .socials {
    margin-top: 6px;
}

.map-frame {
    margin-top: 22px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #dfe4ee;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 22px 18px;
    }
}

/* =====================================================================
   Connexion / inscription
   ===================================================================== */
.auth {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-h) - 80px);
    padding: 72px var(--gutter) 56px;
    background: radial-gradient(90% 90% at 50% 0%, var(--navy-2), var(--navy) 50%, var(--navy-deep));
}

.auth-rays {
    position: absolute;
    z-index: -1;
    width: 1600px;
    height: 1600px;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    color: var(--gold);
    opacity: .08;
    mask-image: radial-gradient(circle, #000 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%);
}

.auth-card {
    width: min(460px, 100%);
    padding: 34px 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: 0 30px 70px rgba(5, 11, 31, .45);
}

.auth-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin: -76px auto 14px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3));
}

.auth-card h1 {
    font-size: 48px;
    text-align: center;
}

.auth-sub {
    margin: 8px 0 24px;
    text-align: center;
    color: var(--slate);
    font-size: 16px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
}

.auth-row .text-link {
    font-size: 14.5px;
}

.auth-switch {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 15.5px;
    color: var(--slate);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 18px 22px;
    }

    .auth {
        padding: 60px 12px 32px;
        align-items: start;
    }
}

/* =====================================================================
   Panneaux simples (sondage de présence, confirmations)
   ===================================================================== */
.narrow {
    max-width: 720px;
}

.panel {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
}

.panel-intro {
    margin-bottom: 22px;
    color: var(--slate);
}

.presence-form {
    display: grid;
    gap: 20px;
}

.presence-slot {
    border: 0;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--chalk);
}

.presence-slot legend {
    float: left;
    width: 100%;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
}

.presence-slot legend i {
    color: var(--gold-deep);
    margin-right: 6px;
}

.choice-row {
    clear: both;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choice span {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 6px;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.choice span:hover {
    border-color: var(--navy);
}

.choice input:focus-visible + span {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.choice input:checked + span {
    color: #fff;
    border-color: transparent;
}

.choice.is-none input:checked + span {
    background: var(--draw);
}

.choice.is-yes input:checked + span {
    background: var(--win);
}

.choice.is-maybe input:checked + span {
    background: #b45309;
}

.choice.is-no input:checked + span {
    background: #b42318;
}

@media (max-width: 520px) {
    .choice-row {
        grid-template-columns: 1fr 1fr;
    }

    .panel {
        padding: 22px 16px;
    }
}

.state-block {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 20px 6px;
}

.state-block > i {
    font-size: 40px;
    color: var(--navy-3);
}

.state-block.is-success > i {
    color: var(--win);
}

.state-block h2 {
    font-size: 36px;
}

.state-block p {
    color: var(--slate);
    max-width: 50ch;
}

.state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* =====================================================================
   Page introuvable
   ===================================================================== */
.notfound {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 70px 0 90px;
    background: var(--navy);
    color: var(--on-navy-soft);
    text-align: center;
}

.notfound-rays {
    position: absolute;
    z-index: -1;
    width: 1400px;
    height: 1400px;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    opacity: .08;
    mask-image: radial-gradient(circle, #000 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%);
}

.notfound-code {
    font-family: var(--font-display);
    font-size: clamp(140px, 26vw, 300px);
    font-weight: 900;
    line-height: .85;
    color: #fff;
}

.notfound-code span {
    color: var(--gold);
}

.notfound h1 {
    margin-top: 14px;
    font-size: clamp(34px, 5vw, 56px);
    color: #fff;
}

.notfound-inner > p:not(.notfound-code) {
    max-width: 52ch;
    margin: 14px auto 0;
    font-size: 18px;
}

.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

/* =====================================================================
   Politique de confidentialité
   ===================================================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 20px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.legal-toc-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-toc nav {
    display: grid;
    gap: 2px;
}

.legal-toc a {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    color: var(--slate);
}

.legal-toc a:hover {
    background: var(--chalk);
    color: var(--ink);
}

.legal-content {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 17px;
    line-height: 1.7;
}

.legal-content .card-meta {
    color: var(--slate);
    font-size: 15px;
}

.legal-section {
    scroll-margin-top: calc(var(--header-h) + 20px);
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
    border-top: 0;
    margin-top: 10px;
    padding-top: 0;
}

.legal-section h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 32px;
    margin-bottom: 12px;
}

.legal-num {
    font-size: 22px;
    color: var(--gold-deep);
}

.legal-section p + p, .legal-section ul, .legal-section table {
    margin-top: 12px;
}

.legal-section ul {
    padding-left: 1.3em;
    list-style: disc;
}

.legal-section a {
    color: var(--navy-3);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
}

.legal-table th, .legal-table td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--chalk);
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }

    .legal-content {
        padding: 22px 16px;
    }

    .legal-table {
        display: block;
        overflow-x: auto;
    }
}

/* =====================================================================
   Mon espace (joueur)
   ===================================================================== */
.page-hero.is-compact {
    padding: 40px 0 44px;
}

.page-hero.is-compact .page-hero-title {
    font-size: clamp(44px, 6.5vw, 80px);
}

.ej {
    padding-top: 40px;
}

.ej-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ej-side {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: grid;
    gap: 16px;
}

.ej-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
}

.ej-card-photo {
    position: relative;
    aspect-ratio: 5 / 4;
    display: grid;
    place-items: center;
    background: linear-gradient(170deg, var(--navy-2), var(--navy-deep));
    color: rgba(255, 255, 255, .2);
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
}

.ej-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ej-card-number {
    position: absolute;
    left: 14px;
    bottom: 2px;
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 900;
    line-height: .9;
    color: var(--gold);
    text-shadow: 0 4px 16px rgba(8, 18, 48, .6);
}

.ej-card-body {
    padding: 16px 18px 18px;
    border-top: 4px solid var(--gold);
}

.ej-card-name {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.ej-card-mail {
    font-size: 14px;
    color: var(--slate);
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.ej-facts {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    font-size: 15px;
}

.ej-facts i {
    width: 18px;
    color: var(--navy-3);
}

.ej-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

.ej-mini-stats > div {
    display: flex;
    flex-direction: column-reverse;
    padding-top: 12px;
    text-align: center;
}

.ej-mini-stats > div + div {
    border-left: 1px solid var(--line);
}

.ej-mini-stats dd {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: var(--navy);
}

.ej-mini-stats dt {
    font-size: 13px;
    color: var(--slate);
    font-weight: 600;
}

.ej-nav {
    display: grid;
    padding: 6px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.ej-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
}

.ej-nav a:hover {
    background: var(--chalk);
}

.ej-nav a i {
    width: 18px;
    color: var(--navy-3);
}

.ej-nav a b {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    background: #d92d20;
    color: #fff;
    font-size: 12px;
}

.ej-dot {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, .3);
}

.ej-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.ej-main > .alert {
    margin: 0;
}

.ej-section {
    scroll-margin-top: calc(var(--header-h) + 16px);
    padding: 26px 28px 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
}

.ej-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 3px solid var(--navy);
}

.ej-section h2 {
    font-size: 34px;
}

.ej-head-action {
    border: 0;
    background: none;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--navy-3);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ej-lead {
    color: var(--slate);
    margin-bottom: 16px;
}

.ej-late {
    color: #b42318;
}

.ej-empty {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--chalk);
    color: var(--slate);
}

.ej-sub {
    font-size: 26px;
    margin: 26px 0 12px;
}

.ej-poll {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
}

.ej-poll > i:first-child {
    font-size: 22px;
}

.ej-poll span {
    flex: 1;
    display: grid;
}

.ej-poll small {
    font-size: 14.5px;
}

/* Notifications */
.ej-notifs {
    display: grid;
}

.ej-notif {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 14px 4px 14px 0;
}

.ej-notif + .ej-notif {
    border-top: 1px solid var(--line);
}

.ej-notif-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--chalk);
    color: var(--navy-3);
    font-size: 16px;
}

.ej-notif.is-convocation .ej-notif-icon {
    background: rgba(31, 138, 76, .12);
    color: var(--win);
}

.ej-notif.is-cotisation .ej-notif-icon {
    background: rgba(194, 65, 12, .1);
    color: var(--loss);
}

/* Annonce du club : icône dorée */
.ej-notif.is-annonce .ej-notif-icon {
    background: rgba(234, 179, 8, .16);
    color: var(--gold-deep, #a16207);
}

.ej-notif-main {
    flex: 1;
    min-width: 0;
}

.ej-notif-title {
    font-weight: 700;
    font-size: 16.5px;
    line-height: 1.35;
}

.ej-notif-title a {
    text-decoration: none;
}

.ej-notif-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.ej-notif-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

.ej-notif-body {
    margin-top: 3px;
    color: var(--slate);
    font-size: 15px;
    white-space: pre-line;
}

.ej-notif-time {
    margin-top: 4px;
    font-size: 13.5px;
    color: #8590a8;
}

.ej-notif.is-unread .ej-notif-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #d92d20;
    vertical-align: 2px;
}

.ej-notif:not(.is-unread) .ej-notif-title {
    font-weight: 600;
    color: var(--slate);
}

/* Notifications : actions, lues en version courte, retrait */
.ej-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 18px;
}

.ej-notif {
    padding-right: 40px;
}

.ej-notif-dismiss {
    position: absolute;
    top: 12px;
    right: 0;
    z-index: 1; /* au-dessus du lien qui couvre toute la notification */
}

.ej-notif-dismiss button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #8590a8;
    font-size: 15px;
    cursor: pointer;
    opacity: .6;
    transition: opacity .15s, background .15s;
}

.ej-notif:hover .ej-notif-dismiss button,
.ej-notif-dismiss button:focus-visible {
    opacity: 1;
}

.ej-notif-dismiss button:hover {
    background: var(--chalk);
    color: var(--navy-3);
}

.ej-notif.is-compact {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
}

.ej-notif.is-compact .ej-notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
    opacity: .75;
}

.ej-notif.is-compact .ej-notif-title {
    font-size: 15px;
}

.ej-notif.is-compact .ej-notif-body {
    font-size: 14px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Une annonce reste lisible en entier une fois lue */
.ej-notif.is-annonce.is-compact .ej-notif-body {
    white-space: pre-line;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.ej-notif.is-compact .ej-notif-time {
    margin-top: 2px;
    font-size: 12.5px;
}

.ej-notif.is-compact .ej-notif-dismiss {
    top: 8px;
}

.ej-notif-label {
    margin: 18px 0 2px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8590a8;
}

.ej-notif-uptodate {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
}

.ej-notif-uptodate i {
    color: var(--win);
}

.ej-notif-more {
    margin-top: 6px;
    border-top: 1px solid var(--line);
}

.ej-notif-more summary {
    padding: 12px 0 4px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--navy-3);
    cursor: pointer;
}

.ej-notif-more summary:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Convocations */
.ej-conv {
    padding: 18px;
    border-radius: var(--radius);
    border: 1.5px solid var(--line-strong);
    border-left: 5px solid var(--gold);
}

.ej-conv + .ej-conv {
    margin-top: 12px;
}

.ej-conv.is-present {
    border-left-color: var(--win);
}

.ej-conv.is-absent {
    border-left-color: #b42318;
}

.ej-conv.is-past {
    opacity: .75;
}

.ej-conv-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ej-date {
    flex: none;
    width: 58px;
    padding: 6px 0;
    border-radius: 9px;
    display: grid;
    justify-items: center;
    line-height: 1;
    background: var(--navy);
    color: #fff;
}

.ej-date small {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--on-navy-soft);
    text-transform: capitalize;
}

.ej-date strong {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-light);
    margin: 2px 0;
}

.ej-conv-main {
    flex: 1;
    min-width: 0;
}

.ej-conv-main h3 {
    font-size: 26px;
}

.ej-conv-main p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 4px;
    font-size: 14.5px;
    color: var(--slate);
}

.ej-conv-main i {
    color: var(--navy-3);
    margin-right: 3px;
}

.ej-resp {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    background: #eef1f6;
    color: #475569;
}

.ej-resp.is-present {
    background: rgba(31, 138, 76, .12);
    color: #17673a;
}

.ej-resp.is-absent {
    background: rgba(180, 35, 24, .1);
    color: #b42318;
}

.ej-conv-meet {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--chalk);
    font-size: 15px;
}

.ej-conv-meet dt {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--slate);
}

.ej-conv-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.ej-conv-form fieldset {
    border: 0;
}

.ej-conv-form .btn {
    justify-self: start;
}

.ej-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ej-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ej-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.ej-choice span:hover {
    border-color: var(--navy);
}

.ej-choice input:focus-visible + span {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.ej-choice.is-yes input:checked + span {
    background: var(--win);
    border-color: var(--win);
    color: #fff;
}

.ej-choice.is-no input:checked + span {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.ej-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--chalk);
    font-weight: 700;
}

.ej-role.is-starter {
    background: var(--navy);
    color: #fff;
}

.ej-role.is-starter i {
    color: var(--gold);
}

.ej-role.is-sub {
    background: #fff7d6;
    color: #6b4a00;
}

.ej-lineup {
    margin-top: 10px;
}

.ej-lineup summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-3);
    padding: 6px 0;
}

.ej-lineup ul {
    display: grid;
    margin-top: 6px;
}

.ej-lineup li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.ej-lineup li span:nth-child(2) {
    flex: 1;
}

.ej-lineup li small {
    color: var(--slate);
}

.ej-lineup li.is-me {
    font-weight: 800;
    color: var(--navy);
}

/* Programme */
.ej-agenda {
    display: grid;
}

.ej-agenda-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.ej-agenda-row + .ej-agenda-row {
    border-top: 1px solid var(--line);
}

.ej-agenda-row.is-muted {
    opacity: .55;
}

.ej-agenda-row.is-muted strong {
    text-decoration: line-through;
}

.ej-agenda-row:not(.is-match) .ej-date {
    background: var(--chalk);
    color: var(--ink);
}

.ej-agenda-row:not(.is-match) .ej-date strong {
    color: var(--navy);
}

.ej-agenda-row:not(.is-match) .ej-date small {
    color: var(--slate);
}

.ej-agenda-main {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 1px;
}

.ej-type {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
}

.ej-type i {
    color: var(--navy-3);
}

.ej-agenda-main strong {
    font-size: 16.5px;
}

.ej-agenda-main a {
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.ej-agenda-main small {
    font-size: 14px;
    color: var(--slate);
}

.ej-agenda-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
    white-space: nowrap;
}

.ej-results {
    display: grid;
    gap: 8px;
}

.ej-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    text-decoration: none;
}

.ej-result:hover {
    border-color: var(--navy);
}

.ej-res {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: var(--draw);
    flex: none;
}

.ej-res.is-win {
    background: var(--win);
}

.ej-res.is-loss {
    background: var(--loss);
}

.ej-result-main {
    flex: 1;
    display: grid;
}

.ej-result-main small {
    color: var(--slate);
    font-size: 13.5px;
}

.ej-result-score {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    color: var(--navy);
}

/* Présences, cotisations, documents */
.ej-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ej-figures > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 14px 16px 12px 0;
}

.ej-figures > div + div {
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.ej-figures dd {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: var(--navy);
}

.ej-figures dt {
    font-size: 14px;
    color: var(--slate);
    margin-top: 4px;
}

.ej-list {
    display: grid;
}

.ej-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15.5px;
}

.ej-list li + li {
    border-top: 1px solid var(--line);
}

.ej-list small {
    color: var(--slate);
}

.ej-pill {
    flex: none;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    background: #eef1f6;
    color: #475569;
    white-space: nowrap;
}

.ej-pill.is-present, .ej-pill.is-doc-valide {
    background: rgba(31, 138, 76, .12);
    color: #17673a;
}

.ej-pill.is-retard, .ej-pill.is-doc-expire_bientot {
    background: #fff3c4;
    color: #6b4a00;
}

.ej-pill.is-excuse {
    background: #e8ecf4;
    color: var(--navy-2);
}

.ej-pill.is-absent, .ej-pill.is-doc-expire {
    background: rgba(180, 35, 24, .1);
    color: #b42318;
}

.ej-months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 6px;
}

.ej-month {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid var(--line);
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--slate);
}

.ej-month small {
    font-size: 13px;
    text-transform: capitalize;
    color: inherit;
}

.ej-month.is-paid {
    background: var(--win);
    border-color: var(--win);
    color: #fff;
}

.ej-month.is-late {
    background: #fef3f2;
    border-color: #fda29b;
    color: #b42318;
}

.ej-month.is-partial, .ej-month.is-due {
    background: #fff7d6;
    border-color: #fedf89;
    color: #6b4a00;
}

.ej-month.is-upcoming {
    background: var(--chalk);
}

.ej-annual {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--chalk);
}

.ej-annual-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ej-annual-head span {
    color: var(--slate);
    font-size: 14.5px;
}

.ej-annual-figs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 10px 0 12px;
}

.ej-annual-figs div {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.ej-annual-figs dt {
    color: var(--slate);
    font-size: 14.5px;
}

.ej-annual-figs dd {
    font-weight: 800;
}

.ej-progress {
    height: 8px;
    border-radius: 99px;
    background: #dfe4ee;
    overflow: hidden;
}

.ej-progress span {
    display: block;
    height: 100%;
    background: var(--win);
}

.ej-doc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.ej-doc + .ej-doc {
    border-top: 1px solid var(--line);
}

.ej-doc > i {
    font-size: 22px;
    color: var(--navy-3);
    width: 24px;
}

.ej-doc-main {
    flex: 1;
    min-width: 0;
    display: grid;
}

.ej-doc-main small {
    color: var(--slate);
    font-size: 14px;
}

.ej-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line-strong);
    color: var(--navy);
    text-decoration: none;
}

.ej-icon-btn:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.ej-pwd {
    max-width: 620px;
}

@media (max-width: 960px) {
    .ej-grid {
        grid-template-columns: 1fr;
    }

    .ej-side {
        position: static;
        grid-template-columns: 1fr;
    }

    .ej-card {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .ej-card-photo {
        aspect-ratio: auto;
        min-height: 100%;
        font-size: 48px;
    }

    .ej-card-number {
        font-size: 50px;
    }

    .ej-card-body {
        border-top: 0;
        border-left: 4px solid var(--gold);
    }

    .ej-nav {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        scrollbar-width: none;
    }

    .ej-nav::-webkit-scrollbar {
        display: none;
    }

    .ej-nav a {
        flex: none;
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    .ej {
        padding-top: 24px;
    }

    .ej-section {
        padding: 20px 16px 22px;
    }

    .ej-section h2 {
        font-size: 30px;
    }

    .ej-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .ej-card-name {
        font-size: 26px;
    }

    .ej-conv {
        padding: 14px;
    }

    .ej-conv-head {
        flex-wrap: wrap;
    }

    .ej-conv-main h3 {
        font-size: 23px;
    }

    .ej-resp {
        order: 3;
    }

    .ej-choices {
        grid-template-columns: 1fr;
    }

    .ej-figures {
        grid-template-columns: 1fr;
    }

    .ej-figures > div + div {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* À AJOUTER à la fin du CSS du site - uniquement ce qui manque pour /candidature */

/* champ date : même style que les autres champs */
.field input[type="date"] {
    width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px;
    border: 1.5px solid var(--line-strong); background: #fff; font-size: 16px; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.field input[type="date"]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(234, 179, 8, .35); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b42318; }

/* page « Rejoindre le club » : présentation à gauche (bloquée), formulaire à droite (défile) */
.join-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.join-form { position: static; }

.join-intro {
    display: grid; gap: 16px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
}
.join-intro .section-title { margin-top: 2px; font-size: clamp(32px, 3.4vw, 44px); }
.join-steps { display: grid; gap: 14px; }
.join-steps li { display: flex; gap: 14px; align-items: flex-start; }
.join-steps p { color: var(--slate); font-size: 15.5px; line-height: 1.45; }
.join-n { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-family: var(--font-display); font-size: 22px; font-weight: 900; }
.join-intro .alert { margin-bottom: 0; font-size: 14.5px; }
.join-auto { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 8px; background: #fff7d6; border: 1.5px solid var(--gold); color: var(--navy); }
.join-auto small { color: var(--gold-deep); font-weight: 700; }
.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) {
    .join-layout { grid-template-columns: 1fr; gap: 28px; }
    .join-intro { position: static; }
}


/* Page « Candidature envoyée » : mêmes éléments qu'avant, couleurs du site (bleu nuit + or) */
.merci { text-align: center; padding: 40px 32px 32px; }
@media (max-width: 520px) { .merci { padding: 30px 16px 24px; } }

/* Pastille de validation animée */
.merci-ok {
    width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
    display: grid; place-items: center; background: var(--navy); box-shadow: 0 0 0 6px rgba(234, 179, 8, .25);
    animation: merciPop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.merci-ok svg { width: 44px; height: 44px; }
.merci-ok path {
    stroke: var(--gold-light); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; fill: none;
    stroke-dasharray: 30; stroke-dashoffset: 30; animation: merciDraw .45s .3s ease forwards;
}
@keyframes merciPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes merciDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .merci-ok, .merci-ok path { animation: none; stroke-dashoffset: 0; } }

.merci h1 { font-size: clamp(42px, 7vw, 64px); margin: 14px 0 10px; }
.merci-lead { color: var(--slate); font-size: 18px; max-width: 46ch; margin: 0 auto 26px; }
.merci-lead strong { color: var(--ink); }

.merci-recap {
    text-align: left; margin: 0 0 30px; padding: 4px 20px;
    background: var(--chalk); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius);
}
.merci-recap div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.merci-recap div:last-child { border-bottom: 0; }
.merci-recap dt { color: var(--slate); font-size: 15.5px; }
.merci-recap dd { font-weight: 700; text-align: right; }

.merci h2 { text-align: left; font-size: 30px; margin: 0 0 16px; }
.merci .join-steps { text-align: left; margin-bottom: 30px; }
.merci-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 520px) { .merci-actions .btn { width: 100%; } }
.merci-help { margin-top: 22px; }

/* =====================================================================
   CHATBOT (bulle en bas à droite)
   ===================================================================== */
body.has-chatbot .back-to-top { bottom: 86px; }

.cb { position: fixed; right: 18px; bottom: 18px; z-index: 150; font-family: var(--font-text); }
.cb-launcher {
    display: inline-flex; align-items: center; gap: 10px;
    height: 54px; padding: 0 20px 0 18px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 10px 30px rgba(8, 18, 48, .35); border: 2px solid var(--gold);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cb-launcher i { color: var(--gold-light); font-size: 20px; }
.cb-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(8, 18, 48, .45); }
.cb-launcher:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.cb.is-open .cb-launcher-label { display: none; }
.cb.is-open .cb-launcher { width: 54px; padding: 0; justify-content: center; }

.cb-panel {
    position: absolute; right: 0; bottom: 68px;
    width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px));
    display: flex; flex-direction: column;
    background: var(--paper); border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(8, 18, 48, .35); border: 1px solid var(--line);
}
.cb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.cb-head img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.cb-head h2 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1; margin: 0; color: #fff; }
.cb-head p { font-size: 12.5px; color: var(--on-navy-soft); margin: 3px 0 0; }
.cb-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; flex: none; }
.cb-close:hover { background: rgba(255, 255, 255, .2); }

.cb-log { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--chalk); display: flex; flex-direction: column; gap: 10px; }
.cb-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; }
.cb-msg p { margin: 0; }
.cb-msg p + p { margin-top: 3px; }
.cb-bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cb-user { align-self: flex-end; background: var(--navy-2); color: #fff; border-bottom-right-radius: 4px; }
.cb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cb-link { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 13px; text-decoration: none; }
.cb-link:hover { background: var(--gold-light); }
.cb-rate { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--slate); }
.cb-rate-btn { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--slate); cursor: pointer; }
.cb-rate-btn:hover { color: var(--navy); border-color: var(--navy); }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--navy-3); background: #fff; color: var(--navy-2); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.cb-chip:hover { background: var(--navy); color: #fff; }
.cb-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); animation: cb-dot 1s infinite ease-in-out; }
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.cb-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.cb-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 15px; }
.cb-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.cb-send { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--navy); color: var(--gold-light); cursor: pointer; flex: none; }
.cb-send:hover { background: var(--navy-2); }
.cb-note { margin: 0; padding: 0 12px 10px; background: #fff; font-size: 11.5px; color: var(--slate); }
.cb-note a { color: var(--navy-2); }

@media (max-width: 560px) {
    .cb { right: 12px; bottom: 12px; }
    .cb-launcher-label { display: none; }
    .cb-launcher { width: 54px; padding: 0; justify-content: center; }
    .cb-panel { position: fixed; right: 0; left: 0; bottom: 0; top: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
    .cb.is-open .cb-launcher { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cb-launcher, .cb-typing span { transition: none; animation: none; }
}


.ej .ej-chat { border: 1px solid #e3e6ec; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 38, 75, .06); }

.ej .ej-chat-top { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border: 0; background: #14264b; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.ej .ej-chat-top-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 16px; line-height: 1; }
.ej .ej-chat-top-icon i { margin: 0; line-height: 1; }
.ej .ej-chat-top-text { flex: 1 1 auto; min-width: 0; }
.ej .ej-chat-top-text strong { display: block; font-size: 16px; line-height: 1.2; color: #fff; }
.ej .ej-chat-top-text span { display: block; font-size: 13px; opacity: .75; }
.ej .ej-chat-badge { flex: none; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: #f5b800; color: #14264b; font-size: 12px; font-weight: 700; text-align: center; }
.ej .ej-chat-chevron { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 13px; transition: transform .2s; }
.ej .ej-chat-top:hover .ej-chat-chevron { background: rgba(255, 255, 255, .24); }
.ej .ej-chat.is-collapsed .ej-chat-chevron { transform: rotate(180deg); }
.ej .ej-chat.is-collapsed .ej-chat-body { display: none; }

.ej .ej-chat-log { height: 400px; overflow-y: auto; padding: 18px 18px 10px; display: flex; flex-direction: column; gap: 4px; background: #f4f6fa; }
.ej .ej-chat-day { align-self: center; margin: 12px 0 8px; padding: 4px 12px; border-radius: 999px; background: #e4e8f0; color: #5a6378; font-size: 12px; font-weight: 600; }
.ej .ej-nav b[data-chat-nav-badge][hidden] { display: none; }

/* Barre de défilement discrète : fine, arrondie, sans flèches */
.ej .ej-chat-log { scrollbar-width: thin; scrollbar-color: #c3cad8 transparent; }
@supports not (scrollbar-width: thin) {
    .ej .ej-chat-log::-webkit-scrollbar { width: 8px; }
    .ej .ej-chat-log::-webkit-scrollbar-track { background: transparent; }
    .ej .ej-chat-log::-webkit-scrollbar-thumb { background: #c3cad8; border-radius: 999px; border: 2px solid #f4f6fa; }
    .ej .ej-chat-log::-webkit-scrollbar-thumb:hover { background: #9aa4ba; }
    .ej .ej-chat-log::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
.ej .ej-chat-empty { margin: auto; text-align: center; color: #7a8298; font-size: 14px; line-height: 1.5; }
.ej .ej-chat-empty i { display: block; margin-bottom: 8px; font-size: 34px; color: #c3cad8; }

.ej .ej-msg { max-width: min(78%, 520px); padding: 9px 14px 6px; border-radius: 18px; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 2px rgba(20, 38, 75, .08); }
.ej .ej-msg-text { margin: 0; text-align: left; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.ej .ej-msg-time { display: block; margin-top: 3px; font-size: 11px; opacity: .6; text-align: right; }
.ej .ej-msg.is-them { align-self: flex-start; background: #fff; color: #1b2438; border-bottom-left-radius: 5px; }
.ej .ej-msg.is-me { align-self: flex-end; background: #14264b; color: #fff; border-bottom-right-radius: 5px; }
.ej .ej-msg.is-them + .ej-msg.is-me, .ej .ej-msg.is-me + .ej-msg.is-them { margin-top: 10px; }

.ej .ej-chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid #e3e6ec; background: #fff; }
.ej .ej-chat-form textarea { flex: 1 1 auto; min-width: 0; height: 44px; min-height: 44px; max-height: 130px; resize: none; padding: 11px 16px; border: 1px solid rgba(16, 26, 58, .16); border-radius: 22px; background: #f8f9fc; font: inherit; font-size: 15px; line-height: 1.3; transition: border-color .15s, box-shadow .15s; }
.ej .ej-chat-form textarea:focus { outline: none; border-color: #14264b; background: #fff; box-shadow: 0 0 0 3px rgba(20, 38, 75, .12); }
.ej .ej-chat-send { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #14264b; color: #fff; font-size: 16px; cursor: pointer; transition: background .15s, transform .1s; }
.ej .ej-chat-send:hover { background: #1f3a73; }
.ej .ej-chat-send:active { transform: scale(.94); }
.ej .ej-chat-send:disabled { opacity: .5; cursor: default; }
.ej .ej-chat-hint { margin: 0; padding: 0 18px 12px; background: #fff; color: #8a91a5; font-size: 12px; }
.ej .ej-chat-error { margin: 0; padding: 0 18px 12px; background: #fff; color: #b3261e; font-size: 13px; }

@media (max-width: 640px) {
    .ej .ej-chat-log { height: 340px; padding: 14px 12px 8px; }
    .ej .ej-msg { max-width: 88%; }
}


/* ================================================================
           Mon espace : mise en page et style
           Tout est scopé sous .ej pour ne pas déborder sur le reste du site.
           Variables : surchargez-les au besoin depuis votre feuille globale.
           ================================================================ */
.ej {
    --ej-ink: #14213a;
    --ej-muted: #5d6a7e;
    --ej-line: #e3e7ee;
    --ej-bg: #f3f5f9;
    --ej-surface: #fff;
    --ej-navy: var(--navy, #14213a);
    --ej-gold: var(--gold, #f2b705);
    --ej-display: var(--font-display, 'Oswald', 'Bebas Neue', 'Arial Narrow', sans-serif);
    --ej-ok: #1c7c54;
    --ej-ok-bg: #e5f4ec;
    --ej-warn: #8a5a00;
    --ej-warn-bg: #fff4d6;
    --ej-bad: #b42318;
    --ej-bad-bg: #fdeceb;
    --ej-radius: 14px;
    --ej-top: 88px; /* hauteur de l'en-tête du site, pour les éléments collants */
    background: var(--ej-bg);
    color: var(--ej-ink);
}
.ej *:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; border-radius: 6px; }
.ej-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.ej-main { display: grid; gap: 20px; min-width: 0; }

/* ---------- Colonne gauche ---------- */
.ej-side { position: sticky; top: var(--ej-top); display: grid; gap: 14px; }
.ej-card { background: var(--ej-surface); border: 1px solid var(--ej-line); border-radius: var(--ej-radius); overflow: hidden; }
.ej-card-photo { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(180deg, #12275a, #07122e); border-bottom: 4px solid var(--ej-gold); color: rgba(255,255,255,.18); font-family: var(--ej-display); font-size: 64px; font-weight: 700; letter-spacing: 2px; overflow: hidden; }
.ej-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* Dégradé pour garder le numéro lisible sur une vraie photo */
.ej-card-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(7,18,46,.75)); pointer-events: none; }
.ej-card-number { position: absolute; z-index: 1; left: 14px; bottom: 8px; font-family: var(--ej-display); font-size: 58px; font-weight: 700; line-height: 1; color: var(--ej-gold); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ej-card-body { padding: 16px; }
.ej-card-name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; }
.ej-card-mail { margin: 2px 0 0; font-size: 13px; color: var(--ej-muted); overflow-wrap: anywhere; }
.ej-facts { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ej-facts i { width: 18px; margin-right: 6px; text-align: center; color: var(--ej-muted); }
.ej .ej-mini-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding-top: 14px; border-top: 1px solid var(--ej-line); }
.ej .ej-mini-stats > div { min-width: 0; padding: 6px 0; text-align: center; }
.ej .ej-mini-stats dd { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.1; }
.ej .ej-mini-stats dt { margin-top: 2px; font-size: 9px; line-height: 1.2; letter-spacing: 0; color: var(--ej-muted); white-space: nowrap; }

.ej-nav { background: var(--ej-surface); border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 8px; display: grid; gap: 2px; }
.ej-nav-group { margin: 8px 10px 2px; font-size: 12px; font-weight: 600; color: var(--ej-muted); }
.ej-nav-group:first-child { margin-top: 4px; }
.ej-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ej-ink); font-size: 14.5px; text-decoration: none; }
.ej-nav a i { width: 18px; text-align: center; color: var(--ej-muted); }
.ej-nav a:hover { background: var(--ej-bg); }
.ej-nav a.is-active { background: var(--ej-navy); color: #fff; }
.ej-nav a.is-active i { color: #fff; }
.ej-nav b { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--ej-bad); color: #fff; font-size: 12px; text-align: center; }
.ej-nav b[hidden] { display: none; }
.ej-dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #e0a100; }

/* ---------- Panneau « À traiter » ---------- */
.ej-todo { background: var(--ej-surface); border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 18px 20px; }
.ej-todo h2 { margin: 0 0 12px; font-size: 18px; }
.ej-todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ej-todo-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--ej-bg); color: inherit; text-decoration: none; }
.ej-todo-item > i:first-child { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.ej-todo-item span { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.ej-todo-item small { display: block; color: var(--ej-muted); font-size: 13px; }
.ej-todo-item .fa-chevron-right { color: var(--ej-muted); font-size: 12px; }
.ej-todo-item.is-warn { background: var(--ej-warn-bg); }
.ej-todo-item.is-warn > i:first-child { color: var(--ej-warn); }
.ej-todo-item.is-bad { background: var(--ej-bad-bg); }
.ej-todo-item.is-bad > i:first-child { color: var(--ej-bad); }
.ej-todo-item:hover { filter: brightness(.97); }
.ej-todo-ok { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ej-ok-bg); color: var(--ej-ok); font-size: 15px; }

/* Prochain rendez-vous */
.ej-next { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ej-line); }
.ej-next p { margin: 0; font-size: 14px; color: var(--ej-muted); }
.ej-next strong { display: block; color: var(--ej-ink); font-size: 16px; }

/* ---------- Sections ---------- */
.ej-section { scroll-margin-top: calc(var(--ej-top) + 12px); background: var(--ej-surface); border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 22px 24px; }
.ej-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ej-section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; line-height: 1.25; }
.ej-section-head h2 i { color: var(--ej-muted); font-size: 17px; }
.ej-lead { margin: 0 0 16px; color: var(--ej-muted); font-size: 15px; line-height: 1.5; max-width: 70ch; }
.ej-sub { margin: 24px 0 10px; font-size: 16px; }
.ej-empty { margin: 10px 0 0; padding: 18px; border: 1px dashed var(--ej-line); border-radius: 10px; color: var(--ej-muted); text-align: center; }
.ej-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.ej-duo > .ej-section { min-width: 0; }
.ej-head-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ej-head-action { padding: 6px 12px; border: 1px solid var(--ej-line); border-radius: 999px; background: #fff; color: var(--ej-ink); font-size: 13px; cursor: pointer; }
.ej-head-action:hover { background: var(--ej-bg); }

/* ---------- Date en pastille (marine + chiffre jaune) ---------- */
.ej-date { flex: none; display: grid; align-content: center; justify-items: center; width: 58px; padding: 7px 0; border-radius: 10px; background: var(--ej-navy); line-height: 1.05; }
.ej-date small { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: rgba(255,255,255,.75); }
.ej-date strong { font-family: var(--ej-display); font-size: 28px; font-weight: 700; color: var(--ej-gold); }
/* Convocation passée et match annulé : pastille atténuée */
.ej-conv.is-past .ej-date,
.ej-agenda-row.is-muted .ej-date { background: #4a5573; }
.ej-conv.is-past .ej-date strong { color: #f0d27a; }

/* ---------- Convocations ---------- */
.ej-conv { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--ej-line); border-left: 5px solid #e0a100; border-radius: 12px; background: #fff; }
.ej-conv.is-present { border-left-color: var(--ej-ok); }
.ej-conv.is-absent { border-left-color: var(--ej-bad); }
.ej-conv.is-past { border-left-color: var(--ej-line); background: #fafbfc; padding: 12px 16px; }
.ej-conv-head { display: flex; align-items: center; gap: 14px; }
.ej-conv-main { flex: 1; min-width: 0; }
.ej-conv-main h3 { margin: 0 0 4px; font-family: var(--ej-display); font-size: 22px; font-weight: 700; letter-spacing: .2px; line-height: 1.3; }
.ej-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--ej-muted); font-size: 14px; }
.ej-meta i { margin-right: 5px; }
.ej-resp { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ej-warn-bg); color: var(--ej-warn); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ej-resp.is-present { background: var(--ej-ok-bg); color: var(--ej-ok); }
.ej-resp.is-absent { background: var(--ej-bad-bg); color: var(--ej-bad); }
.ej-conv-meet { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ej-bg); font-size: 14.5px; }
.ej-conv-meet div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.ej-conv-meet dt { color: var(--ej-muted); }
.ej-conv-meet dd { margin: 0; }
.ej-conv-form { margin-top: 14px; display: grid; gap: 12px; }
.ej-conv-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ej-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ej-choice { display: block; cursor: pointer; }
.ej-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ej-choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ej-line); border-radius: 10px; background: #fff; font-weight: 600; transition: background .15s, border-color .15s; }
.ej-choice:hover span { border-color: #c5ccd8; }
.ej-choice input:focus-visible + span { outline: 3px solid #3b82f6; outline-offset: 2px; }
.ej-choice.is-yes input:checked + span { border-color: var(--ej-ok); background: var(--ej-ok-bg); color: var(--ej-ok); }
.ej-choice.is-no input:checked + span { border-color: var(--ej-bad); background: var(--ej-bad-bg); color: var(--ej-bad); }
.ej-conv-form .btn { justify-self: start; }
.ej-deadline { margin: 10px 0 0; font-size: 13px; color: var(--ej-muted); }
.ej-deadline i { margin-right: 6px; }
.ej-lock { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border: 1px solid #f1dca0; border-radius: 12px; background: #fff8e6; color: #5c4700; }
.ej-lock-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f6e3a8; font-size: 16px; }
.ej-lock-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.ej-lock-text strong { font-size: 15px; line-height: 1.3; }
.ej-lock-text span { font-size: 14px; line-height: 1.4; opacity: .9; }
.ej-role { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--ej-bg); font-weight: 600; }
.ej-role.is-starter { background: var(--ej-ok-bg); color: var(--ej-ok); }
.ej-lineup { margin-top: 10px; }
.ej-lineup summary { cursor: pointer; font-size: 14px; color: var(--ej-muted); }
.ej-lineup ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.ej-lineup li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.ej-lineup li small { margin-left: auto; color: var(--ej-muted); }
.ej-lineup li.is-me { background: var(--ej-ok-bg); font-weight: 600; }
.ej-past { margin-top: 16px; }
.ej-past > summary { cursor: pointer; padding: 8px 0; font-size: 14px; color: var(--ej-muted); }

/* ---------- Programme ---------- */
.ej-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ej-agenda-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--ej-line); border-radius: 12px; }
.ej-agenda-row.is-match { border-left: 4px solid var(--ej-navy); }
.ej-agenda-row.is-muted { opacity: .55; }
.ej-agenda-row.is-muted .ej-agenda-main > strong { text-decoration: line-through; }
.ej-agenda-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ej-agenda-main small { color: var(--ej-muted); }
.ej-agenda-main a { color: inherit; }
.ej-type { font-size: 13px; color: var(--ej-muted); }
.ej-agenda-time { flex: none; font-weight: 600; font-size: 14px; }
.ej-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ej-result { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--ej-line); border-radius: 12px; color: inherit; text-decoration: none; }
.ej-result:hover { background: var(--ej-bg); }
.ej-result-main { flex: 1; min-width: 0; display: grid; }
.ej-result-main small { color: var(--ej-muted); }
.ej-result-score { font-size: 18px; }

/* ---------- Présences / documents / équipement ---------- */
.ej-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.ej-figures > div { padding: 12px; border-radius: 10px; background: var(--ej-bg); }
.ej-figures dt { font-size: 12px; line-height: 1.3; color: var(--ej-muted); }
.ej-figures dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; }
.ej-list { list-style: none; margin: 0; padding: 0; }
.ej-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ej-line); font-size: 14.5px; }
.ej-doc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ej-line); }
.ej-doc > i { font-size: 22px; color: var(--ej-muted); }
.ej-doc-main { flex: 1; min-width: 0; display: grid; }
.ej-doc-main small { color: var(--ej-muted); }
.ej-icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ej-line); border-radius: 50%; color: var(--ej-ink); text-decoration: none; }
.ej-icon-btn:hover { background: var(--ej-bg); }

/* ---------- Cotisations ---------- */
.ej-months { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.ej-month { display: grid; gap: 2px; padding: 8px 4px; border-radius: 10px; background: var(--ej-bg); text-align: center; font-size: 12px; line-height: 1.2; }
.ej-month small { color: var(--ej-muted); font-size: 11px; }
.ej-month.is-paid { background: var(--ej-ok-bg); color: var(--ej-ok); }
.ej-month.is-late { background: var(--ej-bad-bg); color: var(--ej-bad); }
.ej-late { color: var(--ej-bad); }
.ej-annual { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--ej-bg); }
.ej-annual-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ej-annual-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.ej-annual-figs dt { font-size: 12px; color: var(--ej-muted); }
.ej-annual-figs dd { margin: 2px 0 0; font-weight: 700; }
.ej-progress { height: 8px; border-radius: 999px; background: #d9dfe9; overflow: hidden; }
.ej-progress span { display: block; height: 100%; background: var(--ej-ok); }

/* ---------- Pastilles de statut ---------- */
.ej-pill { flex: none; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ej-bg); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ej-pill.is-present, .ej-pill.is-retard { background: var(--ej-ok-bg); color: var(--ej-ok); }
.ej-pill.is-excuse { background: var(--ej-warn-bg); color: var(--ej-warn); }
.ej-pill.is-absent { background: var(--ej-bad-bg); color: var(--ej-bad); }

/* ---------- Sondages, notifications ---------- */
.ej-poll { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid #cfe0ff; border-radius: var(--ej-radius); background: #eef4ff; color: inherit; text-decoration: none; }
.ej-poll span { flex: 1; display: grid; }
.ej-poll small { color: var(--ej-muted); }
.ej-notif-label { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--ej-muted); }
.ej-notif-uptodate { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--ej-ok); }
.ej-notif-more summary { cursor: pointer; margin-top: 10px; font-size: 14px; color: var(--ej-muted); }

/* ---------- Compte ---------- */
.ej-pwd { max-width: 640px; }

/* Chatbot du site masqué sur cette page : la messagerie prend sa place.
   Adaptez les sélecteurs à ceux de votre chatbot (voir layouts.client_layout.master). */
body:has(.ej) #chatbot, body:has(.ej) .chatbot, body:has(.ej) [id*="chatbot" i], body:has(.ej) [class*="chatbot" i]:not(.ej *),
body:has(.ej) #chat-widget, body:has(.ej) .chat-widget, body:has(.ej) .chat-launcher, body:has(.ej) .chat-toggle { display: none !important; }

/* ---------- Messagerie flottante ---------- */
.ej-chat-panel { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: flex; flex-direction: column; width: 390px; max-width: calc(100vw - 40px); height: min(640px, calc(100dvh - 40px)); background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(7,18,46,.38), 0 0 0 1px rgba(7,18,46,.06); overflow: hidden; animation: ej-chat-in .18s ease-out; }
.ej-chat-panel[hidden] { display: none; }
@keyframes ej-chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ej-chat-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #1b2f57, var(--ej-navy)); border-bottom: 3px solid var(--ej-gold); color: #fff; }
.ej-chat-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ej-gold); color: var(--ej-navy); font-size: 18px; }
.ej-chat-title { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ej-chat-title strong { font-family: var(--ej-display); font-size: 20px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; line-height: 1.2; }
.ej-chat-title span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.ej-chat-title span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; }
.ej-chat-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; transition: background .15s; }
.ej-chat-close:hover { background: rgba(255,255,255,.24); }
.ej-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--ej-bg); }
/* Le partial perd son habillage de « carte » : le panneau fait déjà office de cadre */
.ej-chat-body > .ej-section { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; scroll-margin-top: 0; }
.ej-chat-body .ej-section-head { display: none; }
.ej-chat-body .ej-lead { flex: none; margin: 0; padding: 10px 16px; max-width: none; background: #fff; border-bottom: 1px solid var(--ej-line); font-size: 13px; line-height: 1.4; }
/* La conversation occupe toute la hauteur restante, sans cadre ni arrondi */
.ej-chat-body > .ej-section > :last-child { flex: 1 1 auto; min-height: 0; margin: 0; border-radius: 0; border-width: 0; box-shadow: none; }
.ej-chat-body [data-ej-hidden] { display: none !important; }
/* Bouton fermé : bulle ronde, or sur marine */
.ej-chat-fab { position: fixed; z-index: 999; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 8px; border: 0; border-radius: 999px; background: var(--ej-navy); color: #fff; font-family: var(--ej-display); font-size: 17px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 8px 24px rgba(7,18,46,.4); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ej-chat-fab .ej-chat-fab-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ej-gold); color: var(--ej-navy); font-size: 22px; }
.ej-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,18,46,.45); }
.ej-chat-fab b { position: absolute; top: -6px; right: -4px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--ej-bad); border: 2px solid #fff; color: #fff; font-family: inherit; font-size: 12px; letter-spacing: 0; text-align: center; }
.ej-chat-fab b[hidden] { display: none; }
.ej-chat-fab { -webkit-tap-highlight-color: transparent; }
.ej .ej-chat-fab:focus, .ej .ej-chat-fab:focus-visible { outline: none; }
body.ej-chat-open .ej-chat-fab { display: none; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1000px) {
    .ej-grid { grid-template-columns: 1fr; gap: 16px; }
    .ej-side { position: static; }
    .ej-card { display: grid; grid-template-columns: 120px 1fr; }
    .ej-card-photo { aspect-ratio: auto; min-height: 140px; font-size: 32px; }
    .ej-card-number { font-size: 40px; left: 10px; bottom: 6px; }
    /* Navigation en pastilles horizontales, collée sous l'en-tête */
    .ej-nav { position: sticky; top: var(--ej-top); z-index: 20; display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
    .ej-nav::-webkit-scrollbar { display: none; }
    .ej-nav-group { display: none; }
    .ej-nav a { flex: none; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--ej-line); border-radius: 999px; }
}
@media (max-width: 640px) {
    .ej-section, .ej-todo { padding: 18px 16px; }
    .ej-card { grid-template-columns: 1fr; }
    .ej-card-photo { aspect-ratio: 16 / 9; }
    .ej-card-number { font-size: 52px; left: 14px; bottom: 8px; }
    .ej-conv-head { flex-wrap: wrap; }
    .ej-resp { margin-left: 72px; }
    .ej-conv-meet div { grid-template-columns: 1fr; gap: 0; }
    .ej-choices { grid-template-columns: 1fr; }
    .ej-conv-form .btn { justify-self: stretch; }
    .ej-figures { grid-template-columns: 1fr; }
    .ej-duo { grid-template-columns: 1fr; }
    .ej-results { grid-template-columns: 1fr; }
    .ej-agenda-row { flex-wrap: wrap; }
    .ej-agenda-time { margin-left: 72px; }
    /* Messagerie : plein écran sur mobile */
    .ej-chat-panel { left: 0; right: 0; bottom: 0; width: 100vw; max-width: none; height: 100dvh; border-radius: 0; }
    .ej-chat-fab span:not(.ej-chat-fab-icon) { display: none; }
    .ej-chat-fab { left: auto; right: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; gap: 0; background: var(--ej-gold); box-shadow: 0 6px 18px rgba(7,18,46,.35); }
    .ej-chat-fab .ej-chat-fab-icon { width: 54px; height: 54px; background: transparent; font-size: 22px; }
    .ej-chat-fab b { top: -4px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) { .ej * { transition: none !important; } }

/* ================================================================
   Mon espace : améliorations mobile
   À coller À LA FIN de votre feuille de style de « Mon espace »
   (après les règles .ej-*), pour qu'elles l'emportent.
   ================================================================ */

@media (max-width: 640px) {

    /* ---------- Page : un peu plus de largeur utile ---------- */
    .ej .container { padding-left: 12px; padding-right: 12px; }
    .ej-main { gap: 14px; }
    .ej-section, .ej-todo { padding: 16px 14px; border-radius: 12px; }
    .ej-section-head h2 { font-size: 18px; }
    .ej-lead { font-size: 14px; margin-bottom: 12px; }

    /* ---------- Convocations (cartes) ---------- */
    .ej-conv { margin-top: 12px; padding: 14px; border-left-width: 4px; }
    .ej-conv.is-past { padding: 12px; }

    /* Date à gauche, texte à droite ; le statut passe SOUS le titre au lieu de l'écraser */
    .ej-conv-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
    .ej-conv-head .ej-date { width: 52px; padding: 6px 0; }
    .ej-conv-head .ej-date strong { font-size: 24px; }
    .ej-conv-main { min-width: 0; }
    .ej-conv-main h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
    .ej-resp { grid-column: 2; margin-left: 0; justify-self: start; }

    /* Infos (heure, lieu, compétition) : en ligne, à la suite, au lieu d'une colonne étroite */
    .ej-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; line-height: 1.4; }
    .ej-meta > * { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
    .ej-meta i { flex: none; margin-right: 0; width: 16px; text-align: center; }

    .ej-conv-meet { padding: 10px 12px; font-size: 14px; }
    .ej-conv-meet div { grid-template-columns: 1fr; gap: 0; }
    .ej-choice span { min-height: 52px; }          /* cible tactile confortable */
    .ej-conv-form .btn { width: 100%; justify-self: stretch; }
    .ej-lock { padding: 12px; gap: 12px; }
    .ej-lock-icon { width: 36px; height: 36px; }
    .ej-lineup li { padding: 8px; }

    /* Convocations passées : la carte occupe toute la largeur du bloc */
    .ej-past { margin-top: 12px; }
    .ej-past > summary { padding: 12px 0; min-height: 44px; }

    /* ---------- « À traiter » ---------- */
    .ej-todo-item { padding: 10px 12px; gap: 10px; }
    .ej-todo-item > i:first-child { width: 32px; height: 32px; }
    .ej-todo-item span { font-size: 14.5px; }

    /* ---------- Programme ---------- */
    .ej-agenda-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; padding: 10px 12px; align-items: start; }
    .ej-agenda-row .ej-date { width: 52px; padding: 6px 0; grid-row: span 2; }
    .ej-agenda-row .ej-date strong { font-size: 24px; }
    .ej-agenda-time { grid-column: 2; margin-left: 0; font-size: 13px; color: var(--ej-muted); }
    .ej-result { padding: 10px 12px; gap: 10px; }

    /* ---------- Présences : chiffres en lignes lisibles ---------- */
    .ej-figures { grid-template-columns: 1fr; gap: 8px; }
    .ej-figures > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
    .ej-figures dd { margin: 0; font-size: 22px; }
    .ej-list li { align-items: flex-start; flex-wrap: wrap; gap: 6px; }

    /* ---------- Cotisations ---------- */
    .ej-months { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 5px; }
    .ej-annual-figs { gap: 6px; }

    /* ---------- Documents ---------- */
    .ej-doc { flex-wrap: wrap; gap: 8px 12px; }
    .ej-doc-main { flex: 1 1 calc(100% - 40px); }
    .ej-icon-btn { width: 42px; height: 42px; }

    /* ---------- Notifications : boutons d'action pleine largeur ---------- */
    .ej-head-actions { width: 100%; }
    .ej-head-actions form { flex: 1 1 auto; }
    .ej-head-action { width: 100%; padding: 10px 12px; }

    /* ---------- Compte ---------- */
    .ej-pwd .btn { width: 100%; }

    /* ---------- Messagerie plein écran : zone de saisie jamais coupée ---------- */
    .ej-chat-panel { height: 100dvh; }
    .ej-chat-body { padding-bottom: env(safe-area-inset-bottom, 0); }
    .ej-chat-bar { padding-top: max(14px, env(safe-area-inset-top, 0)); }
    .ej-chat-fab { bottom: max(14px, env(safe-area-inset-bottom, 0)); }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .ej-card-name { font-size: 17px; }
    .ej-conv-main h3 { font-size: 17px; }
    .ej-mini-stats dd { font-size: 16px; }
}

.ej-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
}
.ej-figures::before,
.ej-figures::after {
    content: none;
    display: none;
}
.ej-fig {
    background: #f4f6fb;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: none;
}
.ej-fig.is-alert {
    border-left-color: #e0a526;
}
.ej-fig dt {
    font-size: .7rem;
    font-weight: 600;
    color: #5b6578;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 3px;
}
.ej-fig dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1d2a44;
    font-variant-numeric: tabular-nums;
}
.ej-fig-unit {
    font-size: .8rem;
    font-weight: 600;
}
.ej-fig-empty {
    color: #9aa3b2;
}
.ej-fig dd small {
    display: block;
    margin-top: 3px;
    font-size: .7rem;
    font-weight: 400;
    color: #5b6578;
    line-height: 1.25;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&display=swap');

.ej-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
}
.ej-figures::before,
.ej-figures::after {
    content: none;
    display: none;
}
.ej-fig {
    background: #f4f6fb;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: none;
}
.ej-fig.is-alert {
    border-left-color: #e0a526;
}
.ej-fig dt {
    font-size: .7rem;
    font-weight: 600;
    color: #5b6578;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 3px;
}
.ej-fig dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1d2a44;
    font-variant-numeric: tabular-nums;
}
.ej-fig-unit {
    font-size: .8rem;
    font-weight: 600;
}
.ej-fig-empty {
    color: #9aa3b2;
}
.ej-fig dd small {
    display: block;
    margin-top: 3px;
    font-size: .7rem;
    font-weight: 400;
    color: #5b6578;
    line-height: 1.25;
}
.ej-fig dt,
.ej-fig dd,
.ej-fig dd small {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

.ej-att-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ej-att-list li {
    border: 0;
    outline: 0;
    box-shadow: none;
}
.ej-att-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #f4f6fb;
    border-radius: 10px;
}
.ej-att-date {
    flex: 0 0 auto;
    width: 44px;
    text-align: center;
    line-height: 1;
}
.ej-att-date strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1d2a44;
    font-variant-numeric: tabular-nums;
}
.ej-att-date small {
    display: block;
    margin-top: 3px;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5b6578;
}
.ej-att-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ej-att-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1d2a44;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ej-att-day {
    font-size: .75rem;
    color: #5b6578;
}
.ej-att-row .ej-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ==========================================================================
   Mon espace : temps de jeu
   ========================================================================== */
.ej .ej-mini-stats:has(> div:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; }
/* Sur 3 colonnes, pas de séparateur à gauche du premier élément de chaque ligne (Convoc., Minutes) */
.ej .ej-mini-stats:has(> div:nth-child(6)) > div:nth-child(3n + 1) { border-left: 0; }
.ej-pt-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ej-pt-figures dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.ej-pt-unit { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--slate); }
.ej-pt-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ej-pt-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.ej-pt-row + .ej-pt-row { border-top: 1px solid var(--line); }
.ej-pt-main { display: grid; flex: 1; gap: 6px; min-width: 0; }
.ej-pt-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.ej-pt-title a { color: inherit; text-decoration: none; }
.ej-pt-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.ej-pt-score { font-variant-numeric: tabular-nums; color: var(--slate); font-weight: 600; }
.ej-pt-badge { font-size: 12px; padding: 2px 9px; }
.ej-pt-badge.is-start { background: rgba(31, 138, 76, .12); color: #17673a; }
.ej-pt-badge.is-sub { background: #fff3c4; color: #6b4a00; }
.ej-pt-bar { position: relative; display: block; height: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.ej-pt-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--gold); }
.ej-pt-notes { color: var(--slate); font-size: 13px; line-height: 1.4; }
.ej-pt-minutes { flex: none; display: grid; justify-items: end; margin: 0; min-width: 64px; line-height: 1.1; }
.ej-pt-minutes strong { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.ej-pt-minutes small { color: var(--slate); font-size: 12px; font-weight: 600; }
.ej-pt-foot { margin: 10px 0 0; color: var(--slate); font-size: 13px; }
@media (max-width: 760px) {
    .ej-pt-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ej-pt-figures > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .ej-pt-figures > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .ej-pt-row { align-items: flex-start; gap: 10px; }
}

/* ---------- Mon espace : annonces du club ---------- */
.ej-anns { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ej-ann { position: relative; display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--ej-line, #e3e6ee); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ej-ann:hover { border-color: var(--gold, #eab308); box-shadow: 0 4px 14px rgba(12, 26, 61, .06); }
.ej-ann.is-new { border-left: 4px solid var(--gold, #eab308); background: #fffdf5; }
.ej-ann-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(234, 179, 8, .16); color: var(--gold-deep, #a16207); font-size: 15px; }
.ej-ann-main { flex: 1; min-width: 0; }
.ej-ann-meta { margin: 0; font-size: 13px; color: var(--ej-muted, #566079); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ej-ann-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--gold, #eab308); color: var(--navy, #0c1a3d); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ej-ann-title { margin: 3px 0 0; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.ej-ann-title a { color: inherit; text-decoration: none; }
.ej-ann-title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.ej-ann-title a:focus-visible { outline: none; }
.ej-ann:focus-within { outline: 2px solid var(--gold, #eab308); outline-offset: 2px; }
.ej-ann-excerpt { margin: 4px 0 0; color: var(--ej-muted, #566079); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ej-ann-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy-3, #0c1a3d); }
.ej-ann-all { margin: 14px 0 0; text-align: center; }
.ej-ann-count { font-size: 14px; color: var(--ej-muted, #566079); }
.ej-ann-page { max-width: 860px; }
.ej-ann-back { margin: 0 0 14px; }
.ej-ann-back a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy-3, #0c1a3d); }
.ej-ann-back a:hover { text-decoration: underline; text-decoration-color: var(--gold, #eab308); }
.ej-ann-pagination { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ej-ann-pagination > p { margin: 0; font-size: 14px; color: var(--ej-muted, #566079); }
.ej-ann-pagination .pagination-wrapper { margin: 0; }
.ej-ann-read { padding: 28px 30px; }
.ej-ann-read .ej-ann-meta i { color: var(--gold-deep, #a16207); }
.ej-ann-read-title { margin: 8px 0 16px; font-size: 26px; line-height: 1.25; }
.ej-ann-read-body { white-space: pre-line; font-size: 16.5px; line-height: 1.7; color: var(--ej-ink, #101a34); overflow-wrap: anywhere; }
.ej-ann-sign { margin: 22px 0 0; color: var(--ej-muted, #566079); font-style: italic; }
.ej-ann-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ej-ann-nav a { display: block; padding: 12px 16px; border: 1px solid var(--ej-line, #e3e6ee); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; font-weight: 600; }
.ej-ann-nav a small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ej-muted, #566079); margin-bottom: 2px; }
.ej-ann-nav a.is-next { text-align: right; grid-column: 2; }
.ej-ann-nav a:hover { border-color: var(--gold, #eab308); }
@media (max-width: 560px) {
    .ej-ann { padding: 12px; gap: 10px; }
    .ej-ann-icon { width: 34px; height: 34px; }
    .ej-ann-read { padding: 20px 18px; }
    .ej-ann-read-title { font-size: 22px; }
    .ej-ann-nav { grid-template-columns: 1fr; }
    .ej-ann-nav a.is-next { grid-column: 1; }
}

/* ================================================================
   Mon espace : ergonomie (novembre 2026)
   En-tête court, « prochain rendez-vous », listes repliées,
   et sur téléphone : carte joueur compacte, onglets en bas, menu en panneau.
   ================================================================ */
.page-hero.ej-hero { padding: 30px 0 32px; }
.page-hero.ej-hero .page-hero-title { font-size: clamp(34px, 5vw, 58px); }
.page-hero.ej-hero .page-hero-intro { margin-top: 10px; font-size: 16px; }
.ej { padding-top: 28px; }

/* Carte joueur : déconnexion discrète */
.ej-card-logout { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--ej-line); }
.ej-card-logout button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--ej-muted); font: inherit; font-size: 14px; cursor: pointer; }
.ej-card-logout button:hover { color: var(--ej-ink); text-decoration: underline; }

/* Menu */
.ej-nav-sheet-head { display: none; }
.ej-nav b.is-soft { background: var(--ej-bg, #eef1f7); color: var(--ej-ink); }
.ej-nav a.is-active b.is-soft { background: rgba(255,255,255,.2); color: #fff; }

/* « À traiter » : prochain rendez-vous cliquable */
a.ej-next { color: inherit; text-decoration: none; border-radius: 10px; }
a.ej-next:hover p strong { text-decoration: underline; text-decoration-color: var(--ej-gold); }
.ej-next p { flex: 1; min-width: 0; }
.ej-next > .fa-chevron-right { color: var(--ej-muted); font-size: 12px; }
.ej-date.is-light { background: var(--ej-bg, #eef1f7); }
.ej-date.is-light strong { color: var(--ej-ink); }
.ej-date.is-light small { color: var(--ej-muted); }

/* Listes repliées (notifications, présences) */
.ej-att-more > summary, .ej-notif-more > summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--ej-navy); min-height: 44px; }
.ej-att-more[open] > summary { margin-bottom: 6px; }

/* Mon compte : mot de passe replié, déconnexion */
.ej-pwd-box { border: 1px solid var(--ej-line); border-radius: 12px; }
.ej-pwd-box > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.ej-pwd-box > summary::-webkit-details-marker { display: none; }
.ej-pwd-box > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 12px; color: var(--ej-muted); transition: transform .15s; }
.ej-pwd-box[open] > summary::after { transform: rotate(180deg); }
.ej-pwd-box > summary i { color: var(--ej-muted); }
.ej-pwd-box .ej-pwd { padding: 0 16px 16px; }
.ej-pwd label small { font-weight: 400; color: var(--ej-muted); }
.ej-logout { margin: 16px 0 0; }

/* Onglets du bas : téléphone uniquement */
.ej-tabbar, .ej-nav-backdrop { display: none; }

@media (max-width: 640px) {
    .page-hero.ej-hero { padding: 16px 0 18px; }
    .page-hero.ej-hero .page-hero-title { font-size: 30px; }
    .page-hero.ej-hero .page-hero-intro { display: none; }
    .ej { padding-top: 14px; }

    /* Carte joueur compacte : photo à gauche, nom + équipe, chiffres sur une ligne */
    .ej-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; }
    .ej-card-body { display: contents; }
    .ej-card-photo { grid-row: 1 / span 2; width: 62px; height: 62px; min-height: 0; aspect-ratio: 1; border-radius: 14px; border-bottom-width: 3px; font-size: 20px; }
    .ej-card-number { font-size: 22px; left: 6px; bottom: 3px; }
    .ej-card-name { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; }
    .ej-card-mail, .ej-card-logout { display: none; }
    .ej-facts { grid-column: 2; grid-row: 2; align-self: start; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 2px 0 0; font-size: 13.5px; color: var(--ej-muted); }
    .ej-facts li:nth-child(n+3) { display: none; }
    .ej-facts i { width: auto; margin-right: 4px; }
    .ej .ej-mini-stats { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; }
    .ej .ej-mini-stats dd { font-size: 17px; }

    /* Onglets en bas de l'écran */
    body:has(.ej.has-tabbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
    .ej.has-tabbar .ej-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--ej-line); box-shadow: 0 -6px 20px rgba(7,18,46,.08); }
    .ej-tabbar a, .ej-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 4px 2px; border: 0; background: none; color: var(--ej-muted); font: inherit; font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .ej-tabbar .is-active { color: var(--ej-navy); }
    .ej-tabbar .is-active::before { content: ""; position: absolute; top: -4px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ej-gold); }
    .ej-tab-ico { position: relative; display: grid; place-items: center; height: 24px; font-size: 19px; }
    .ej-tab-ico b { position: absolute; top: -6px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid #fff; background: var(--ej-bad); color: #fff; font-size: 10.5px; line-height: 14px; text-align: center; }
    .ej-tab-ico b[hidden] { display: none; }
    .ej.has-tabbar .ej-chat-fab { display: none; }

    /* Menu des rubriques : panneau qui monte du bas (onglet « Menu ») */
    .ej.has-tabbar .ej-nav { position: fixed; z-index: 1002; left: 0; right: 0; bottom: 0; top: auto; display: grid; gap: 2px; max-height: 82vh; overflow-y: auto; padding: 6px 12px calc(14px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(7,18,46,.25); transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
    body.ej-menu-open .ej.has-tabbar .ej-nav { transform: none; visibility: visible; }
    .ej.has-tabbar .ej-nav-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--ej-line); position: sticky; top: -6px; background: var(--ej-surface); }
    .ej-nav-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ej-bg, #eef1f7); color: var(--ej-ink); font-size: 16px; cursor: pointer; }
    .ej.has-tabbar .ej-nav-group { display: block; margin: 10px 8px 2px; }
    .ej.has-tabbar .ej-nav a { padding: 12px 10px; border: 0; border-radius: 10px; font-size: 16px; white-space: normal; }
    .ej.has-tabbar .ej-nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(7,18,46,.45); }
    body.ej-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ej.has-tabbar .ej-nav { transition: none; } }

/* Ordinateur : seul le menu reste visible en faisant défiler (la colonne entière dépassait l'écran) */
@media (min-width: 1001px) {
    .ej-side { position: static; align-self: stretch; align-content: start; }
    .ej-nav { position: sticky; top: calc(var(--ej-top) + 12px); max-height: calc(100vh - var(--ej-top) - 24px); overflow-y: auto; }
}
.ej-agenda-more > .ej-agenda { margin-top: 0; }

/* Tablette et téléphone : carte joueur compacte (photo à gauche, nom + équipe, chiffres dessous) */
@media (max-width: 1000px) {
    .ej-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; }
    .ej-card-body { display: contents; }
    .ej-card-photo { grid-row: 1 / span 2; width: 62px; height: 62px; min-height: 0; aspect-ratio: 1; border-radius: 14px; border-bottom-width: 3px; font-size: 20px; }
    .ej-card-number { font-size: 22px; left: 6px; bottom: 3px; }
    .ej-card-name { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; }
    .ej-card-mail, .ej-card-logout { display: none; }
    .ej-facts { grid-column: 2; grid-row: 2; align-self: start; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 2px 0 0; font-size: 13.5px; color: var(--ej-muted); }
    .ej-facts li:nth-child(n+3) { display: none; }
    .ej-facts i { width: auto; margin-right: 4px; }
    .ej .ej-mini-stats { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; }
}

/* =====================================================================
   Focus des champs et des boutons : même bordure fine (1 px), dorée.
   Pas de halo ni de contour épais (site public et Mon espace) :
   remplace les styles de focus propres à chaque écran (d'où les !important, voulus).
   ===================================================================== */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--gold, #eab308) !important;
}
/* Boutons à bordure (au clavier) */
:is(.btn, .ps-btn-primary, .ps-btn-ghost, .ps-btn-yes, .ps-btn-no, .ps-btn-send, .ps-icon-btn, .ps-bell, .ej-icon-btn, .cb-rate-btn, .rail-btn):focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--gold, #eab308) !important;
}
/* Boutons jaunes : doré foncé, sinon la bordure se confond avec le fond */
:is(.btn-gold, .ps-btn-yes):focus-visible {
    border-color: var(--gold-deep, #9a6a05) !important;
}
/* Zones restées bleu nuit (connexion, en-tête, pied de page, bandeaux) : or vif, lisible sur fond sombre */
.site-pro :is(.auth, .site-header, .site-footer, .hero, .page-hero, .cta-band) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]), select, textarea):focus,
.site-pro :is(.auth, .site-header, .site-footer, .hero, .page-hero, .cta-band) :is(.btn, .rail-btn):not(.btn-gold):focus-visible {
    border-color: var(--or-fond, #fccf1a) !important;
}
