:root {
    --ink: #101a34;
    --ink-soft: #566079;
    --paper: #ffffff;
    --paper-alt: #f6f7fb;
    --gold: #eab308;
    --gold-deep: #b3790a;
    --gold-light: #ffd94e;
    --gold-soft: rgba(234,179,8,.14);
    --line: rgba(16,26,58,.10);
    --line-strong: rgba(16,26,58,.16);
    --white: #ffffff;
    --muted: #566079;
    --navy: #0c1a3d;
    --navy-2: #142a5c;
    --on-navy: #eef1f8;
    --on-navy-muted: #9fadd0;
    --on-navy-line: rgba(255,255,255,.14);
    --topbar-h: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* IMPORTANT : overflow-x ne doit apparaître que sur body (pas sur html),
   sinon body devient un conteneur de défilement et casse window.scrollY,
   le bouton retour en haut et position: sticky sur mobile. */
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #e0e0e0;
    overflow-x: hidden;
    padding-top: calc(84px + var(--topbar-h));
}

/* ---- Barre noire au-dessus du header (réseaux sociaux) ---- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: #000;
    z-index: 101;
    display: flex;
    align-items: center;
}

.topbar-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.topbar .socials a {
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: linear-gradient(rgba(16,26,58,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,26,58,.035) 1px, transparent 1px);
    /*background-size: 44px 44px;*/
}

.bg-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
}
.glow-one { background: var(--gold); top: 15%; right: -180px; }
.glow-two { background: #cfe0ff; bottom: -180px; left: -160px; }

.header {
    flex: none;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 100;
    transition: padding .35s ease;
    animation: header-drop .7s cubic-bezier(.2,.8,.2,1);
}
.header::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(12,26,61,.15);
    z-index: -1;
    transition: box-shadow .35s ease;
}
.header.scrolled { padding: 11px 0; }
.header.scrolled::before { box-shadow: 0 16px 34px rgba(12,26,61,.32); }
.header .brand img { transition: transform .35s ease; }
.header.scrolled .brand img { transform: scale(.9); }

@keyframes header-drop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .header { animation: none; }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-link {
    color: var(--on-navy-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 1px;
    position: relative;
    white-space: nowrap;
    transition: color .25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    transition: right .25s ease;
}
.nav-link:hover { color: var(--on-navy); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--gold-light); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex: none;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--on-navy);
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--on-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .13em;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.badge {
    border: 1px solid var(--line-strong);
    color: var(--gold-deep);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero {
    width: min(1180px, calc(100% - 40px));
    flex: 1;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    align-content: center;
    gap: 26px;
    padding: 40px 0 70px;
    position: relative;
    z-index: 1;
}
.hero::before {
    content: "";
    position: absolute;
    top: -84px; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--navy);
    z-index: -2;
    border-radius: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background-image:
        linear-gradient(115deg, transparent 42%, rgba(255,255,255,.05) 50%, transparent 58%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    /*background-size: auto, 44px 44px, 44px 44px;*/
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--on-navy); }
.hero .intro { color: var(--on-navy-muted); }
.hero .intro strong { color: var(--on-navy); }
.hero .btn-outline { border-color: var(--on-navy-line); color: var(--on-navy); }
.hero .btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.hero .panel-caption { color: var(--on-navy-muted); }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em;
    margin-bottom: 6px;
}
.eyebrow span {
    width: 30px; height: 2px; background: var(--gold);
    display: inline-block;
}

h1 {
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: .96;
    letter-spacing: -.04em;
    max-width: 700px;
    color: var(--ink);
}
h1 strong, h2 strong { color: var(--gold-deep); }

.intro {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
    max-width: 650px;
    margin: 8px 0 12px;
}
.intro strong { color: var(--ink); }

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 38px;
    max-width: 420px;
}
.time-card {
    flex: 1;
    min-width: 0;
    padding: 22px 10px 16px;
    border: 1px solid var(--line-strong);
    background: var(--paper-alt);
    border-radius: 14px;
    text-align: center;
}
.time-card span {
    display: block;
    color: var(--gold-deep);
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.time-card small {
    display: block;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    margin-top: 10px;
}
.separator { color: var(--gold-deep); font-weight: 900; font-size: 30px; opacity: .7; }

.actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    gap: 12px;
}
.btn-secondary-action { margin-top: 0; justify-content: center; }

.notify-form {
    display: flex;
    gap: 10px;
    width: 100%;
}
.notify-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--paper-alt);
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .25s ease, background .25s ease;
}
.notify-input::placeholder { color: var(--ink-soft); }
.notify-input:focus {
    border-color: var(--gold);
    background: var(--paper);
}
.notify-feedback {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gold-deep);
    min-height: 1em;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 14px 18px; border-radius: 8px;
    text-decoration: none; font-size: 12px; font-weight: 900;
    letter-spacing: .08em; text-transform: uppercase;
    transition: .25s ease;
}
.btn-primary { background: var(--gold); color: #17233f; box-shadow: 0 10px 24px rgba(234,179,8,.28); }
.btn-primary:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

.logo-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
}
.main-logo {
    width: min(340px, 70%);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 25px 45px rgba(16,26,58,.18));
    animation: float 5s ease-in-out infinite;
}
.crest-ring {
    position: absolute;
    width: min(490px, 88%);
    aspect-ratio: 1;
    border: 1px solid rgba(234,179,8,.35);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(234,179,8,.10);
}
.crest-ring::before, .crest-ring::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(234,179,8,.18);
    border-radius: 50%;
    inset: 9%;
}
.crest-ring::after { inset: 18%; border-style: dashed; }
.panel-caption {
    position: absolute;
    bottom: 24px;
    right: 2%;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    letter-spacing: .2em;
    color: var(--ink-soft);
}
.panel-caption b { color: var(--gold-deep); font-size: 14px; }

.club-section {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
}
.section-inner {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.section-inner p { color: var(--ink-soft); line-height: 1.6; font-size: 14px; }

/* Section pleine largeur au fond marine texturé (identité du club) */
.dark-section {
    position: relative;
    z-index: 1;
    padding: 70px 0;
    overflow: hidden;
    border-radius: 0;
}
.dark-section::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--navy);
    z-index: -2;
    border-radius: 0;
}
.dark-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background-image:
        linear-gradient(115deg, transparent 42%, rgba(255,255,255,.05) 50%, transparent 58%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    /*background-size: auto, 44px 44px, 44px 44px;*/
}
.dark-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.dark-section .eyebrow { color: var(--gold-light); }
.dark-section h2 { color: var(--on-navy); }
.dark-section h2 strong { color: var(--gold-light); }
.dark-section .intro { color: var(--on-navy-muted); }
@media (max-width: 850px) {
    .dark-section { text-align: center; padding: 54px 0; }
    .dark-section .eyebrow { justify-content: center; }
    .dark-section .intro { margin-left: auto; margin-right: auto; }
}

.footer {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 22px;
    position: relative;
    z-index: 1;
    border-radius: 0;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--navy);
    box-shadow: 0 -8px 24px rgba(12,26,61,.12);
    z-index: -1;
    border-radius: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--on-navy-line);
}
.footer-brand-col { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-col .footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-col .footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-col .footer-brand span {
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--on-navy);
    text-transform: uppercase;
}
.footer-brand-col p, .footer p { color: var(--on-navy-muted); font-size: 12.5px; line-height: 1.7; }
.footer-col h4 {
    color: var(--on-navy);
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
    color: var(--on-navy-muted);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: color .2s ease;
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-col ul li { color: var(--on-navy-muted); font-size: 12.5px; line-height: 1.6; }
.footer-bottom { padding-top: 18px; text-align: center; }

@keyframes float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(.5deg); }
}

@media (max-width: 850px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: linear-gradient(135deg, var(--navy), var(--navy-2));
        border-radius: 20px;
        box-shadow: 0 18px 30px rgba(12,26,61,.22);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .main-nav.open { max-height: 400px; }
    .main-nav .nav-link { width: 100%; text-align: center; padding: 15px 0; }
    .main-nav .nav-link::after { display: none; }
    .main-nav .nav-link.active { background: rgba(255,255,255,.08); }

    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 25px; }
    .hero-content { order: 1; }
    .logo-panel { order: 0; min-height: 390px; }
    .eyebrow { justify-content: center; }
    .intro { margin-left: auto; margin-right: auto; }
    .countdown, .actions { justify-content: center; }
    .actions { margin: 0 auto; }
    .notify-form { justify-content: center; }
    .main-logo { width: min(360px, 78%); }
    .panel-caption { display: none; }
    .section-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .section-inner .eyebrow { justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand-col { grid-column: 1 / -1; text-align: center; }
    .footer-brand-col .footer-brand { justify-content: center; }
}

@media (max-width: 560px) {
    .header { width: min(100% - 28px, 1180px); }
    .brand span { display: none; }
    .hero, .section-inner, .footer, .page-banner, .page-section { width: min(100% - 28px, 1180px); }
    .hero { padding-bottom: 60px; }
    .logo-panel { min-height: 330px; }
    .countdown { gap: 3px; max-width: 100%; }
    .time-card { padding: 12px 4px; }
    .time-card span { font-size: 23px; }
    .time-card small { font-size: 7px; }
    .separator { font-size: 17px; }
    .actions { max-width: 100%; }
    .actions .btn { width: 100%; }
    .notify-form { width: 100%; flex-direction: column; }
    .notify-input { width: 100%; }
}


.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.socials, .footer-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.socials a, .footer-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--on-navy-line);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(255,255,255,.06);
    text-decoration: none;
    font-size: 13px;
    transition: .25s ease;
}

.socials a:hover, .footer-socials a:hover {
    color: #17233f;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

@media (max-width: 650px) {
    .header-right { gap: 8px; }
    .socials { gap: 5px; }
    .socials a { width: 30px; height: 30px; font-size: 11px; }
    .badge { display: none; }
    .footer-grid { gap: 26px; }
    .topbar .socials a { width: 22px; height: 22px; font-size: 10px; }
}
@media (max-width: 480px) {
    /* Sur très petit écran, on ne garde que l'icône "compte" pour laisser
       assez de place au bouton menu (hamburger) et éviter tout débordement. */
    .header-account span { display: none; }
    .header-account { padding: 9px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col ul { align-items: center; }
    .footer-col .socials { justify-content: center; }
}
/* ============================================
   PAGES INTÉRIEURES — bannière, sections, cartes
   ============================================ */

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { color: var(--gold); }

.page-banner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 25px;
    position: relative;
    z-index: 1;
}
.page-banner::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background: url('../images/page-banner-bg.svg') center / cover no-repeat;
}
.page-banner h1 { max-width: 800px; color: var(--on-navy); }
.page-banner .intro { max-width: 680px; color: var(--on-navy-muted); }
.page-banner .intro strong { color: var(--on-navy); }
.page-banner .eyebrow { color: var(--gold-light); }
.page-banner .breadcrumb, .page-banner .breadcrumb a { color: var(--on-navy-muted); }
.page-banner .breadcrumb a:hover { color: var(--gold-light); }
.page-banner .breadcrumb span { color: var(--gold); }

.page-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 60px;
    position: relative;
    z-index: 1;
}
.page-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.page-section-head h2 { max-width: 560px; }
.section-link {
    color: var(--gold-deep);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid rgba(234,179,8,.5);
    padding-bottom: 2px;
    transition: .2s ease;
}
.section-link:hover { color: var(--ink); border-color: var(--ink); }

.strip-section {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.strip-section .page-section { padding: 50px 0; }

/* Cartes réutilisables */
.glass-card {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16,26,58,.05);
    padding: 10px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(234,179,8,.5); box-shadow: 0 16px 36px rgba(16,26,58,.09); }

.icon-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
    color: var(--gold-deep);
    font-size: 18px;
    margin-bottom: 16px;
    flex: none;
}
.avatar-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
    display: grid; place-items: center;
    color: var(--gold-deep);
    font-size: 22px;
    margin-bottom: 14px;
}

.card-title { font-size: 16px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 8px; color: var(--ink); }
.card-text { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.card-meta {
    color: var(--gold-deep);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.meta-row { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); font-size: 12.5px; margin: 0 0 7px; }
.meta-row i { color: var(--gold-deep); width: 14px; margin-top: 3px; flex: none; }

/* Cartes actualités cliquables */
.news-item { position: relative; }
.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
.card-cover-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 16px;
}
.card-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--gold-deep);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.card-link-hint i { transition: transform .2s ease; }
.news-item:hover .card-link-hint { color: var(--ink); }
.news-item:hover .card-link-hint i { transform: translateX(3px); }

/* Grilles génériques */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Bandeau chiffres clés */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    text-align: center;
    padding: 26px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}
.stat-card .stat-number {
    display: block;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--gold-deep);
    font-variant-numeric: tabular-nums;
}
.stat-card .stat-label {
    display: block;
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Emplacements image/photo provisoires (à remplacer par de vrais visuels) */
.media-placeholder {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px dashed rgba(234,179,8,.45);
    background: linear-gradient(135deg, rgba(234,179,8,.08), rgba(80,130,220,.06));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
    padding: 10px;
}
.media-placeholder i { font-size: 22px; color: var(--gold-deep); opacity: .85; }
.gallery-tile .media-placeholder { aspect-ratio: 1 / 1; margin-bottom: 12px; }

/* Vignettes de galerie cliquables */
.gallery-trigger {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}
.gallery-trigger img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform .35s ease;
}
.gallery-trigger:hover img { transform: scale(1.06); }
.gallery-zoom {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12,26,61,.5);
    color: var(--on-navy);
    font-size: 18px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.gallery-trigger:hover img ~ .gallery-zoom,
.gallery-trigger:focus-visible img ~ .gallery-zoom { opacity: 1; }
.gallery-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Lightbox : agrandissement des photos */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: rgba(9,14,30,.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: min(880px, 100%); max-height: 100%; text-align: center; }
.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.lightbox-content figcaption {
    color: var(--on-navy-muted);
    font-size: 13px;
    margin-top: 16px;
}
.lightbox-close, .lightbox-nav {
    position: fixed;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--on-navy-line);
    background: rgba(255,255,255,.06);
    color: var(--on-navy);
    font-size: 15px;
    cursor: pointer;
    transition: .2s ease;
    z-index: 301;
}
.lightbox-close:hover, .lightbox-nav:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(255,255,255,.12);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
    .lightbox { padding: 20px; }
    .lightbox-close, .lightbox-nav { width: 40px; height: 40px; font-size: 13px; }
    .lightbox-close { top: 12px; right: 12px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ============================================
   RÉSULTATS & CALENDRIER — prochain match, matchs
   ============================================ */

/* Bandeau "Prochain match" mis en avant, sur fond marine */
.next-match-banner {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
    padding: 40px;
}
.next-match-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--navy);
    border-radius: 20px;
}
.next-match-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background-image:
        linear-gradient(115deg, transparent 42%, rgba(255,255,255,.05) 50%, transparent 58%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    /*background-size: auto, 44px 44px, 44px 44px;*/
    border-radius: 20px;
}
.next-match-banner .eyebrow { color: var(--gold-light); }
.next-match-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.next-match-head h2 { color: var(--on-navy); margin: 0; }
.next-match-countdown {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--on-navy-line);
    border-radius: 999px;
    padding: 8px 16px;
}
.next-match-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    text-align: center;
}
.next-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 180px;
}
.next-match-crest {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--on-navy-line);
    color: var(--gold-light);
    font-size: 24px;
}
.next-match-team-name {
    color: var(--on-navy);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
}
.next-match-versus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--on-navy-muted);
}
.next-match-versus .vs {
    font-size: 26px;
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: -.02em;
}
.next-match-versus .kickoff {
    font-size: 12.5px;
    font-weight: 700;
}
.next-match-info {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--on-navy-line);
    color: var(--on-navy-muted);
    font-size: 12.5px;
    font-weight: 700;
}
.next-match-info span { display: inline-flex; align-items: center; gap: 8px; }
.next-match-info i { color: var(--gold-light); }

/* Liste des matchs (résultats + calendrier) */
.match-list { display: flex; flex-direction: column; gap: 14px; }
.match-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    background: var(--paper);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16,26,58,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.match-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,26,58,.08); }
.match-card.is-win { border-left-color: #2fa86a; }
.match-card.is-draw { border-left-color: var(--gold); }
.match-card.is-loss { border-left-color: #d9534f; }
.match-card.is-upcoming { border-left-color: var(--navy-2); }

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    color: var(--ink);
}
.match-day { font-size: 22px; font-weight: 900; }
.match-month {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}
.match-team-away { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.match-team-crest {
    width: 32px; height: 32px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
    color: var(--gold-deep);
    font-size: 13px;
}
.match-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.match-score-sep { color: var(--ink-soft); font-weight: 700; }
.match-time {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-deep);
    white-space: nowrap;
}

.match-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
    white-space: nowrap;
}
.match-competition {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.match-venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--ink-soft);
}
.match-venue i { color: var(--gold-deep); }
.match-status-pill {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.is-win .match-status-pill { background: rgba(47,168,106,.12); color: #218751; }
.is-draw .match-status-pill { background: var(--gold-soft); color: var(--gold-deep); }
.is-loss .match-status-pill { background: rgba(217,83,79,.12); color: #c23b36; }
.is-upcoming .match-status-pill { background: rgba(20,42,92,.08); color: var(--navy-2); }

@media (max-width: 760px) {
    .next-match-banner { padding: 28px 22px; }
    .next-match-body { gap: 18px; }
    .next-match-team { width: 130px; }
    .next-match-crest { width: 52px; height: 52px; font-size: 20px; }
    .next-match-info { gap: 14px 22px; }

    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }
    .match-date { flex-direction: row; gap: 6px; }
    .match-teams { grid-template-columns: 1fr; gap: 10px; }
    .match-team, .match-team-away { justify-content: center; flex-direction: row; text-align: left; }
    .match-score { justify-content: center; }
    .match-meta { align-items: center; text-align: center; }
}

/* Ajustements fins pour les très petits écrans (téléphones étroits) */
@media (max-width: 480px) {
    .next-match-banner { padding: 22px 16px; border-radius: 16px; }
    .next-match-head { gap: 12px; margin-bottom: 20px; }
    .next-match-head h2 { font-size: 22px; }
    .next-match-countdown { font-size: 10.5px; padding: 7px 13px; }
    .next-match-body { gap: 14px 10px; }
    .next-match-team { width: 105px; gap: 8px; }
    .next-match-crest { width: 44px; height: 44px; font-size: 17px; }
    .next-match-team-name { font-size: 12.5px; }
    .next-match-versus { gap: 6px; }
    .next-match-versus .vs { font-size: 20px; }
    .next-match-versus .kickoff { font-size: 11px; }
    .next-match-info { gap: 10px 16px; margin-top: 22px; padding-top: 18px; font-size: 11px; }

    .match-card { padding: 16px; gap: 10px; }
    .match-day { font-size: 19px; }
    .match-team { font-size: 12.5px; gap: 8px; }
    .match-team-crest { width: 28px; height: 28px; font-size: 11px; }
    .match-score { font-size: 16px; }
    .match-time { font-size: 11.5px; }
    .match-competition { font-size: 9.5px; }
    .match-venue { font-size: 11px; }

    .next-match-banner .btn,
    .filter-tabs { row-gap: 8px; }
}

/* Onglets de filtre (actualités / galerie) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-tab {
    padding: 9px 17px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s ease;
    font-family: inherit;
}
.filter-tab:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-tab.active { background: var(--gold); color: #17233f; border-color: var(--gold); }

/* Bannière CTA (rejoindre le club) */
.cta-banner {
    border: 1px solid rgba(234,179,8,.4);
    background: linear-gradient(135deg, rgba(234,179,8,.10), rgba(80,130,220,.08));
    border-radius: 20px;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(20px, 2.4vw, 30px); max-width: 520px; }
.cta-banner p { color: var(--ink-soft); max-width: 460px; margin-top: 8px; }
.cta-banner .btn { flex: none; }

/* Page Contact */
.contact-layout { display: grid; grid-template-columns: .95fr 1.15fr; gap: 40px; align-items: start; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .icon-circle { margin-bottom: 0; }

/* Page détail actualité */
.article-layout {
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 40px;
    align-items: start;
}
.article-hero {
    aspect-ratio: 21 / 9;
    margin-bottom: 28px;
}
.article-body p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}
.article-body h2 {
    font-size: clamp(19px, 2vw, 24px);
    margin: 30px 0 12px;
}
.article-body blockquote {
    border-left: 3px solid var(--gold);
    background: var(--gold-soft);
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin: 24px 0;
    color: var(--ink);
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
}
.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag-pill {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--paper-alt);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 104px; }
.sidebar-card { padding: 22px; }
.sidebar-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 14px;
}
.sidebar-card .meta-row:last-child { margin-bottom: 0; }
.share-links { display: flex; gap: 10px; }
.share-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    transition: .2s ease;
}
.share-links a:hover { background: var(--gold); border-color: var(--gold); color: #17233f; }
.back-link { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
.contact-item h3 { font-size: 13px; letter-spacing: .04em; margin-bottom: 4px; color: var(--ink); }
.contact-item p, .contact-item a { color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.contact-item a:hover { color: var(--gold-deep); }

.map-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    filter: grayscale(.15) contrast(1.02);
    aspect-ratio: 16/11;
    margin-top: 28px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label {
    font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
}
.form-field input, .form-field textarea {
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--paper-alt);
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border-color .25s ease, background .25s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); background: var(--paper); }
.form-feedback { margin-top: 14px; font-size: 12px; color: var(--gold-deep); min-height: 1em; }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 850px) {
    .page-banner, .page-section { text-align: center; }
    .page-section-head { flex-direction: column; align-items: center; text-align: center; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-item { text-align: left; }
    .cta-banner { flex-direction: column; text-align: center; justify-content: center; }
    .filter-tabs { justify-content: center; }
}
@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .contact-form-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 32px 22px; }
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: var(--gold);
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(12,26,61,.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, background .25s ease, box-shadow .25s ease;
    z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-2); box-shadow: 0 14px 32px rgba(12,26,61,.4); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) {
    .back-to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; font-size: 16px; }
}
/* --- Bannière "Dernier match / Match à venir" (page d'accueil) --- */
.results-highlight{
    width:100%;
    background:linear-gradient(135deg, #9e9caa 0%, #525255 55%, #bcbcd5 100%);
    padding:48px 24px;
}
.results-highlight-inner{
    max-width:1200px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:28px;
}
@media (max-width:820px){
    .results-highlight-inner{ grid-template-columns:1fr; }
}
.results-highlight-heading{
    color: #fff;
    font-weight:800;
    font-size:20px;
    letter-spacing:.03em;
    margin-bottom:16px;
    text-transform:uppercase;
}
.match-highlight-card{
    display:block;
    position:relative;
    background:#fff;
    color:#1a1a2e;
    border-radius:16px;
    padding:26px 26px 20px;
    margin-left:14px;
    text-decoration:none;
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}
.match-highlight-accent{
    position:absolute;
    left:-14px; top:14px; bottom:14px;
    width:14px;
    border-radius:8px;
    background:var(--gold-deep,#b3892f);
}
.match-highlight-datecomp{ text-align:center; margin-bottom:18px; }
.match-highlight-date{ display:block; font-weight:700; font-size:14px; letter-spacing:.02em; }
.match-highlight-comp{ display:block; font-size:12px; opacity:.6; margin-top:2px; text-transform:uppercase; letter-spacing:.06em; }
.match-highlight-teams{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px; margin-bottom:20px;
}
.match-highlight-team{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.match-highlight-crest{
    width:46px; height:46px; display:flex; align-items:center; justify-content:center;
    border-radius:50%; background:rgba(0,0,0,.06); font-size:18px; color:var(--gold-deep,#b3892f);
}
.match-highlight-team-name{ font-weight:700; font-size:13px; }
.match-highlight-score{ display:flex; gap:6px; }
.match-highlight-score span{
    min-width:36px; height:36px; display:flex; align-items:center; justify-content:center;
    background:var(--gold-deep,#b3892f); color:#fff; font-weight:800; border-radius:8px; font-size:16px;
}
.match-highlight-vs{ font-weight:800; font-size:18px; color:var(--gold-deep,#b3892f); }
.match-highlight-footer{
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    border-top:1px solid rgba(0,0,0,.08); padding-top:14px; flex-wrap:wrap;
}
.match-highlight-form{ display:flex; align-items:center; gap:6px; font-size:11px; }
.match-highlight-form-label{ opacity:.55; margin-right:4px; text-transform:uppercase; letter-spacing:.05em; }
.form-badge{
    width:22px; height:22px; border-radius:5px; display:flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:800; color:#fff;
}
.form-win{ background:#3c9d5c; }
.form-draw{ background:#8b8fa3; }
.form-loss{ background:#d64545; }
.match-highlight-countdown{ font-weight:800; font-size:15px; }
.match-highlight-btn{
    border:1.5px solid var(--gold-deep,#b3892f);
    color:var(--gold-deep,#b3892f);
    padding:8px 16px; border-radius:10px; font-weight:700; font-size:13px; white-space:nowrap;
}
@media (max-width: 480px) {
    .results-highlight { padding: 32px 16px; }
    .match-highlight-card { margin-left: 10px; padding: 20px 18px 16px; }
    .match-highlight-accent { left: -10px; width: 10px; }
    .match-highlight-crest { width: 38px; height: 38px; font-size: 15px; }
    .match-highlight-team-name { font-size: 11.5px; }
    .match-highlight-score span { min-width: 30px; height: 30px; font-size: 14px; }
    .match-highlight-vs { font-size: 15px; }
    .match-highlight-footer { gap: 10px; }
    .match-highlight-btn { padding: 7px 13px; font-size: 12px; }
}
/* ===== Authentification & espace compte ===== */
.auth-page{min-height:calc(100vh - 84px);display:flex;align-items:center;justify-content:center;padding:56px 20px 80px}.auth-shell{width:min(1080px,100%)}.auth-card{width:min(520px,100%);margin:auto;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:22px;padding:38px;box-shadow:0 22px 55px rgba(12,26,61,.14)}.auth-logo{display:flex;justify-content:center;margin-bottom:18px}.auth-logo img{width:62px;height:62px;object-fit:contain}.auth-title{text-align:center;margin-bottom:8px;font-size:clamp(28px,4vw,40px)}.auth-subtitle{text-align:center;color:var(--ink-soft);font-size:14px;line-height:1.6;margin-bottom:26px}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-field{display:flex;flex-direction:column;gap:7px}.auth-field label{font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-soft)}.auth-field input{width:100%;padding:13px 15px;border-radius:9px;border:1px solid var(--line-strong);background:var(--paper-alt);color:var(--ink);font:inherit;font-size:13px;outline:none}.auth-field input:focus{border-color:var(--gold);background:var(--paper);box-shadow:0 0 0 3px var(--gold-soft)}.auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.auth-check{display:flex;align-items:center;gap:8px;color:var(--ink-soft);font-size:12px}.auth-check input{accent-color:var(--gold-deep)}.auth-link{color:var(--gold-deep);text-decoration:none;font-weight:800;font-size:12px}.auth-link:hover{text-decoration:underline}.auth-submit{width:100%;justify-content:center;margin-top:4px;cursor:pointer;border:none}.auth-switch{text-align:center;margin-top:22px;color:var(--ink-soft);font-size:12px}.auth-message{min-height:20px;margin-top:4px;font-size:12px;text-align:center;color:var(--gold-deep)}.account-grid{display:grid;grid-template-columns:240px 1fr;gap:22px}.account-side{background:var(--navy);color:var(--on-navy);border-radius:18px;padding:26px}.account-avatar{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:var(--navy);font-size:25px;margin-bottom:14px}.account-name{font-weight:900;font-size:17px}.account-email{color:var(--on-navy-muted);font-size:12px;margin-top:4px;word-break:break-word}.account-main{display:grid;gap:18px}.account-section{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:18px;padding:26px}.account-section h2{font-size:22px;margin-bottom:7px}.account-section>p{color:var(--ink-soft);font-size:13px;line-height:1.6;margin-bottom:18px}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.account-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.account-stat{padding:18px;background:var(--paper-alt);border:1px solid var(--line);border-radius:12px}.account-stat strong{display:block;font-size:22px;color:var(--gold-deep)}.account-stat span{display:block;margin-top:4px;color:var(--ink-soft);font-size:11px}.header-account{display:inline-flex;align-items:center;gap:8px;color:var(--on-navy);text-decoration:none;font-size:12px;font-weight:800;padding:8px 12px;border:1px solid var(--on-navy-line);border-radius:999px}.header-account:hover{border-color:var(--gold);color:var(--gold-light)}@media(max-width:850px){.account-grid{grid-template-columns:1fr}}@media(max-width:560px){.auth-card{padding:26px 20px}.auth-row{align-items:flex-start;flex-direction:column}.account-stat-grid{grid-template-columns:1fr}}

/* ===== Bandeau de consentement aux cookies ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    padding: 16px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
    pointer-events: none;
}
.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-inner {
    width: min(920px, 100%);
    background: var(--navy);
    color: var(--on-navy);
    border: 1px solid var(--on-navy-line);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(12,26,61,.35);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.cookie-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
    color: var(--gold-light);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex: none;
}
.cookie-banner-text {
    flex: 1 1 320px;
    min-width: 240px;
}
.cookie-banner-text h4 {
    font-size: 14.5px;
    margin-bottom: 4px;
    color: var(--on-navy);
}
.cookie-banner-text p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--on-navy-muted);
}
.cookie-banner-text a {
    color: var(--gold-light);
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: none;
    margin-left: auto;
}
.cookie-banner-actions .btn {
    font-size: 12.5px;
    padding: 11px 18px;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-banner-actions .btn-outline {
    border-color: var(--on-navy-line);
    color: var(--on-navy);
    background: transparent;
}
.cookie-banner-actions .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

/* Affichage mobile : bandeau compact, collé en bas, boutons toujours visibles */
@media (max-width: 640px) {
    .cookie-banner {
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .cookie-banner-inner {
        padding: 16px;
        flex-direction: column;
        flex-wrap: nowrap;          /* pas de retour à la ligne en colonne */
        align-items: stretch;
        gap: 12px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;           /* sécurité sur très petit écran */
    }
    .cookie-banner-icon { display: none; }   /* gagne de la place sur mobile */
    .cookie-banner-text {
        flex: 0 0 auto;             /* hauteur = celle du texte (et non 320px) */
        min-width: 0;
    }
    .cookie-banner-actions {
        width: 100%;
        margin-left: 0;
        flex-direction: row;        /* boutons côte à côte */
        gap: 8px;
    }
    .cookie-banner-actions .btn {
        flex: 1 1 0;
        justify-content: center;
        text-align: center;
        padding: 12px 10px;
    }
}

/* ===== Messages des formulaires d'authentification ===== */
.auth-alert {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
}
.auth-alert-ok {
    background: rgba(22, 128, 61, .1);
    color: #15803d;
}
.auth-alert-error {
    background: rgba(184, 50, 50, .1);
    color: #b83232;
}
.auth-field-error {
    font-size: 11.5px;
    font-weight: 600;
    color: #b83232;
    text-transform: none;
    letter-spacing: 0;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: alertSlideIn 0.35s ease-out;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes alertFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

.alert-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content { flex: 1; }

.alert-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.alert-content p,
.alert-content ul {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.alert-content ul {
    padding-left: 18px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}
.alert-success .alert-icon { color: #16a34a; }

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}
.alert-danger .alert-icon { color: #dc2626; }

.filter-tab {
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab:focus,
.filter-tab.active {
    text-decoration: none;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #fff;
    color: #16234f; /* navy à ajuster */
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination .page-link:hover {
    background: #f0f0f0;
}

.pagination .page-item.active .page-link {
    background: #f0b400; /* gold à ajuster */
    color: #16234f;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Cadre des actualités */
.media-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* ajuste selon le ratio voulu, ex: 4/3, 1/1... */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* couleur de fond si "Photo à venir" */
}

.media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* recadre l'image pour remplir le cadre */
    object-position: center; /* centre le recadrage */
    display: block;
}

/* Icône "Photo à venir" */
.media-placeholder i {
    font-size: 2rem;
    color: #ccc;
}

.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-link-hint {
    margin-top: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.grid-3 {
    display: grid;
    align-items: stretch;
}

.grid-3 > .news-item {
    height: 100%;
}

/* ============================================
   ÉQUIPES — effectif, staff technique, fiche joueur, admin
   ============================================ */

/* Grille effectif : une section par poste, sans onglets */
/* Défilement horizontal : 4 cartes visibles, les suivantes se font défiler */
.team-slider { position: relative; }
.team-grid {
    --team-gap: 22px;
    --team-cols: 4;
    display: flex;
    gap: var(--team-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* barre de défilement masquée : on navigue avec les flèches ou au doigt */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* marge haute/basse : évite de couper l'ombre et l'effet au survol des cartes */
    padding: 8px 0 24px;
    margin: -8px 0 -8px;
}
.team-grid > .player-card,
.team-grid > .staff-card {
    flex: 0 0 calc((100% - (var(--team-cols) - 1) * var(--team-gap)) / var(--team-cols));
    min-width: 0;
    scroll-snap-align: start;
}
.team-grid::-webkit-scrollbar { display: none; }
.team-grid > .empty-state { flex: 1 0 100%; }

.slider-btn {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16,26,58,.18);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.slider-btn[hidden] { display: none; }
.slider-btn:hover { background: var(--gold); color: var(--navy); transform: scale(1.06); }
.slider-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.slider-prev { left: -16px; }
.slider-next { right: -16px; }
.team-category { margin-bottom: 48px; }
.team-category:last-child { margin-bottom: 0; }
.team-category-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 20px;
}

/* Cartes joueur et staff : bloc image (3/4) + bloc infos en dessous, fond blanc */
.player-card,
.staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(16,26,58,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.player-card:hover,
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16,26,58,.16); }

/* Bloc image */
.player-card-image,
.staff-card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #f1f1f1;
    overflow: hidden;
}
.player-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.player-photo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 58px;
    color: rgba(0,0,0,.16);
}

/* Bloc infos */
.player-card-info,
.staff-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 16px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.player-card-number {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 900;
    color: var(--gold-deep);
    line-height: 1;
    flex: none;
}
.player-card-text { min-width: 0; }
.player-card-name,
.staff-card-name { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.player-card-role,
.staff-card-role { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.player-card .card-cover-link,
.staff-card .card-cover-link { z-index: 3; }

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 13.5px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    grid-column: 1 / -1;
}

@media (max-width: 950px) {
    .team-grid { --team-cols: 3; }
}
@media (max-width: 700px) {
    /* 2 cartes + un aperçu de la suivante : on comprend qu'on peut glisser */
    .team-grid { --team-cols: 2.25; --team-gap: 14px; }
    .player-card-info, .staff-card-info { padding: 12px; gap: 10px; }
    .slider-btn { display: none; }
}

/* Fiche joueur (joueur-detail.html) */
.player-detail-photo,
.player-detail-photo-placeholder {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    margin-bottom: 24px;
}
.player-detail-photo { object-fit: cover; border: 1px solid var(--line); }
.player-detail-photo-placeholder {
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    border: 1px dashed rgba(234,179,8,.45);
    color: var(--gold-deep);
    font-size: 48px;
}

/* Espace admin */
.admin-note {
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.admin-note strong { color: var(--ink); }
.admin-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; align-items: start; }
.form-field select {
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--paper-alt);
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .25s ease, background .25s ease;
}
.form-field select:focus { border-color: var(--gold); background: var(--paper); }
.stats-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-form-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.admin-form-actions .btn { cursor: pointer; border: none; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-group-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 22px 0 10px;
}
.admin-group-title:first-child { margin-top: 0; }
.admin-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.admin-row-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
}
.admin-row-avatar-fallback { display: grid; place-items: center; color: var(--gold-deep); font-size: 16px; }
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-name { font-weight: 900; font-size: 13.5px; color: var(--ink); }
.admin-row-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.admin-row-actions { display: flex; gap: 8px; flex: none; }
.admin-row-actions button {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s ease;
    font-size: 12px;
}
.admin-row-actions button:hover { border-color: var(--gold); color: var(--gold-deep); }
.admin-row-actions .delete-btn:hover { border-color: #d9534f; color: #c23b36; }

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .admin-row { flex-wrap: wrap; }
    .stats-mini-grid { grid-template-columns: 1fr 1fr; }
}

.player-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 0 24px;   /* alignée à gauche sur desktop, comme le texte de l'article */
}

@media (max-width: 850px) {
    .player-photo-wrap {
        margin: 0 auto 24px;   /* centrée uniquement en mode mobile */
    }
}

.player-photo-wrap img.player-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.club-histoire-text {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
    white-space: normal;
}

.page-section[aria-label="Notre histoire"] .section-inner,
.page-section[aria-label="Notre histoire"] .section-inner > div,
.club-histoire-text {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    margin-top: 24px;
}
.avatar-circle-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-circle-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-circle-lg i {
    font-size: 60px;
}

.glass-card-tint {
    background-color: #FBF7F0;
    border: 1px solid #F0E4D0;
}

/* --- Styles spécifiques à la page "détail de match" --- */
.match-info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}
@media (max-width:720px){
    .match-info-grid{grid-template-columns:repeat(2,1fr);}
}
.match-info-card{
    text-align:center;
    padding:22px 14px;
}
.match-info-icon{
    width:44px;height:44px;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 12px;
    border-radius:50%;
    background:rgba(255,255,255,0.06);
    color:var(--gold-light,#e8c874);
    font-size:17px;
}
.match-info-underline{
    width:34px;height:2px;
    margin:0 auto 12px;
    background:var(--gold-deep,#b3892f);
    opacity:.7;
}
.match-info-label{
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
    opacity:.65;
    margin-bottom:6px;
}
.match-info-value{
    font-size:16px;
    font-weight:700;
}

.match-tabs{
    display:flex;
    gap:4px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    margin-bottom:28px;
    flex-wrap:wrap;
}
.match-tab{
    appearance:none;
    background:none;
    border:none;
    cursor:pointer;
    font-family:inherit;
    font-weight:700;
    font-size:13px;
    letter-spacing:.05em;
    text-transform:uppercase;
    padding:14px 18px;
    color:inherit;
    opacity:.55;
    display:flex;
    align-items:center;
    gap:8px;
    border-bottom:2px solid transparent;
    margin-bottom:-1px;
    transition:opacity .2s ease, border-color .2s ease, color .2s ease;
}
.match-tab:hover{ opacity:.85; }
.match-tab.active{
    opacity:1;
    color:var(--gold-light,#e8c874);
    border-bottom-color:var(--gold-deep,#b3892f);
}
.match-tab-panel[hidden]{ display:none; }

.homme-du-match{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:28px;
    align-items:stretch;
    margin:24px 0 32px;
}
@media (max-width:640px){
    .homme-du-match{ grid-template-columns:1fr; }
}
.homme-du-match-photo{
    border-radius:16px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:24px 12px;
    text-align:center;
    position:relative;
    overflow:hidden;
}
.homme-du-match-photo i{ font-size:56px; opacity:.35; }
.homme-du-match-photo .player-name{
    margin-top:14px;
    font-weight:700;
    font-size:14px;
}
.homme-du-match-photo .player-band{
    position:absolute;
    left:0; right:0; bottom:0;
    height:8px;
    background:var(--gold-deep,#b3892f);
}
.homme-du-match-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px 24px;
    align-content:center;
}
.stat-row{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
}
.stat-row i{
    width:22px; text-align:center;
    color:var(--gold-light,#e8c874);
    opacity:.85;
}
.stat-row .stat-value{ font-weight:700; }

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

/* Onglets Résumé / Avant-match / Feuille de match : meilleur contraste sur fond clair */
.match-tab {
    color: #1a2547;
}

.match-tab i {
    color: #1a2547;
    opacity: .7;
}

.match-tab:hover {
    color: var(--gold-deep, #b8860b);
}

.match-tab:hover i {
    color: var(--gold-deep, #b8860b);
    opacity: 1;
}

.match-tab.active {
    color: var(--gold-deep, #b8860b);
    border-bottom-color: var(--gold-deep, #b8860b);
}

.match-tab.active i {
    color: var(--gold-deep, #b8860b);
    opacity: 1;
}

/* Bandeau résultat : score doré + type de résultat (tous écrans) */
.next-match-banner .match-score {
    color: var(--gold-light);
    opacity: 1;
}

.next-match-banner .match-result-label {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.next-match-banner .match-result-label.is-win  { color: #4ade80; }
.next-match-banner .match-result-label.is-draw { color: var(--gold-light); }
.next-match-banner .match-result-label.is-loss { color: #f87171; }

/* Bandeau résultat : affichage mobile */
@media (max-width: 640px) {
    .next-match-banner .next-match-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .next-match-banner .next-match-body {
        display: flex;
        flex-direction: column;   /* équipe / score / équipe, empilés */
        align-items: center;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    .next-match-banner .next-match-team {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .next-match-banner .next-match-versus {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .next-match-banner .match-score {
        font-size: 2.4rem;
        font-weight: 800;
        color: var(--gold-light);
        opacity: 1;
    }

    .next-match-banner .match-score-sep {
        margin: 0 .35em;
        opacity: .7;
    }

    .next-match-banner .kickoff {
        font-size: .85rem;
    }
}

/* ============================================
   PAGES LÉGALES — politique de confidentialité, mentions légales...
   ============================================ */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 104px;
    padding: 22px 20px;
}
.legal-toc-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 14px;
}
.legal-toc nav { display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 9px;
    border-left: 2px solid transparent;
    transition: .2s ease;
    white-space: nowrap;
}

/* Survol : neutre, pour ne jamais se confondre avec l'état actif */
.legal-toc a:hover {
    color: var(--ink);
    background: var(--paper-alt);
}

/* Actif : seul état à porter le traitement doré complet */
.legal-toc a.active {
    color: var(--gold-deep);
    font-weight: 900;
    border-left-color: var(--gold);
    background: var(--gold-soft);
}

/* Le survol d'un lien déjà actif ne doit pas atténuer son style actif */
.legal-toc a.active:hover {
    color: var(--gold-deep);
    background: var(--gold-soft);
}

.legal-content { display: flex; flex-direction: column; }
.legal-content > .card-meta { margin-bottom: 6px; }

.legal-section {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 110px;
}
.legal-section:first-of-type { padding-top: 18px; }
.legal-section:last-child { border-bottom: none; padding-bottom: 0; }

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 14px;
}
.legal-section h2 .legal-num {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    border: 1px solid rgba(234,179,8,.4);
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 900;
}

.legal-section p, .legal-section li {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}
.legal-section p { margin-bottom: 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}
.legal-section ul:last-child { margin-bottom: 0; }
.legal-section li { position: relative; padding-left: 20px; }
.legal-section li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--gold);
}
.legal-section strong { color: var(--ink); }
.legal-section a {
    color: var(--gold-deep);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(234,179,8,.4);
}
.legal-section a:hover { color: var(--ink); border-color: var(--ink); }

.legal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 4px 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.legal-table th, .legal-table td {
    padding: 13px 16px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.legal-table th {
    background: var(--paper-alt);
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.legal-table td { color: var(--ink-soft); }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tbody tr:hover td { background: var(--gold-soft); }

/* ============================================
   PAGES LÉGALES — version mobile
   Sommaire = barre de pastilles collante sous le header,
   contenu en dessous sur une seule colonne.
   ============================================ */
@media (max-width: 900px) {
    /* display:block (et non grid) pour que le sticky ait toute la hauteur de la page */
    .legal-layout { display: block; }

    .legal-toc {
        position: sticky;
        top: 104px;            /* sous le header fixe */
        z-index: 50;
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
        margin-bottom: 24px;
    }
    .legal-toc-title { display: none; }

    .legal-toc nav {
        position: relative;    /* nécessaire pour centrer la pastille active en JS */
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .legal-toc nav::-webkit-scrollbar { display: none; }

    .legal-toc a {
        flex: none;
        white-space: nowrap;
        border: 1px solid var(--line-strong);
        border-left-width: 1px;
        border-radius: 999px;
        padding: 8px 14px;
    }
    .legal-toc a.active { border-color: var(--gold); }

    .legal-section { scroll-margin-top: 190px; }

    .legal-content { min-width: 0; }

    /* Texte légal toujours aligné à gauche */
    .legal-layout, .legal-content, .legal-section,
    .legal-section p, .legal-section li, .legal-section h2 { text-align: left; }
    .legal-section h2 { justify-content: flex-start; }

    /* E-mails, URL et longs mots : coupure autorisée */
    .legal-section p, .legal-section li, .legal-section a { overflow-wrap: anywhere; }

    /* Tableaux : défilement horizontal interne plutôt que débordement de page */
    .legal-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 560px) {
    .legal-toc { padding: 14px 12px; }
    .legal-toc a { padding: 8px 12px; font-size: 11.5px; }
    .legal-section { padding: 20px 0; }
    .legal-table th, .legal-table td { padding: 11px 12px; font-size: 12.5px; }
}

.m-home {
    --navy: #0a1430; --navy-2: #13204a; --gold: #f5b800; --gold-2: #b8860b;
    --ink: #0b1a3a; --muted: #5b6680;
    background: #fff;
    color: var(--ink);
    overflow: hidden;
}
.m-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Slider (fond sombre) ===== */
.m-slider {
    position:relative; min-height:620px; overflow:hidden; color:#f4f6ff;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(245,184,0,.18), transparent 60%),
        radial-gradient(700px 400px at -10% 30%, rgba(60,110,255,.20), transparent 60%),
        linear-gradient(180deg, #0a1430, #060d20);
}
.m-slide { position:absolute; inset:0; display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center;
    max-width:1200px; margin:0 auto; padding:110px 24px 90px; opacity:0; visibility:hidden; transition:opacity .7s ease, visibility .7s; }
.m-slide.is-active { opacity:1; visibility:visible; }
.m-slide-text { position:relative; z-index:2; }
.m-slide-visual { position:relative; display:grid; place-items:center; min-height:420px; }
.m-visual-img { position:relative; z-index:1; width:100%; max-width:440px; }
.m-logo-big { width:min(320px,70%); filter:drop-shadow(0 20px 40px rgba(245,184,0,.25)); }
.m-crests { display:flex; align-items:center; gap:28px; }
.m-crests .crest { width:150px; height:150px; border-radius:50%; overflow:hidden; display:grid; place-items:center;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); }
.m-crests .crest img { width:100%; height:100%; object-fit:contain; padding:14px; box-sizing:border-box; }
.m-crests .crest i { font-size:60px; color:var(--gold); }
.m-vs { font-size:28px; font-weight:900; color:#ffd84a; }
.m-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:46px; height:46px; border-radius:50%;
    border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.07); color:#fff; cursor:pointer; display:grid; place-items:center; }
.m-nav:hover { background:rgba(245,184,0,.25); }
.m-prev { left:14px; } .m-next { right:14px; }
.m-dots { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); display:flex; gap:10px; z-index:5; }
.m-dots button { width:10px; height:10px; border-radius:999px; border:0; background:rgba(255,255,255,.3); cursor:pointer; padding:0; transition:width .3s, background .3s; }
.m-dots button.is-active { width:28px; background:var(--gold); }

/* Textes du slider */
.m-pill { display:inline-flex; gap:10px; align-items:center; padding:8px 14px; border-radius:999px;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); font-size:12px; font-weight:700;
    letter-spacing:.12em; text-transform:uppercase; color:#ffd84a; }
.m-pill i { width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 12px var(--gold); }
.m-title { font-size:clamp(44px,6.4vw,84px); line-height:.98; font-weight:900; letter-spacing:-.035em; margin:22px 0 20px; }
.m-title .grad { background:linear-gradient(90deg, var(--gold), #fff 70%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.m-lead { font-size:18px; line-height:1.65; color:#9aa6c8; max-width:560px; }
.m-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:34px; }
.m-btn { display:inline-flex; align-items:center; gap:10px; padding:15px 24px; border-radius:14px;
    font-weight:800; font-size:14px; text-decoration:none; transition:transform .2s, box-shadow .2s; }
.m-btn:hover { transform: translateY(-2px); }
.m-btn-gold { background:linear-gradient(135deg, var(--gold), #ffd84a); color:#0a1430; box-shadow:0 14px 34px rgba(245,184,0,.35); }
.m-btn-glass { background:rgba(255,255,255,.06); color:#f4f6ff; border:1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }

/* Compte à rebours */
.m-countdown { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:28px; max-width:420px; }
.m-countdown div { background:rgba(0,0,0,.25); border-radius:14px; padding:12px 6px; text-align:center; }
.m-countdown strong { display:block; font-size:24px; font-variant-numeric:tabular-nums; color:#fff; }
.m-countdown span { font-size:10px; text-transform:uppercase; letter-spacing:.14em; color:#9aa6c8; }

/* ===== Sections (fond blanc) ===== */
.m-section { padding: 40px 0 80px; }
.m-section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; flex-wrap:wrap; margin-bottom:34px; }
.m-eyebrow { font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#b8860b; }
.m-h2 { font-size:clamp(32px,4vw,48px); font-weight:900; letter-spacing:-.025em; margin:10px 0 0; line-height:1.05; color:#0b1a3a; }
.m-link { color:#b8860b; font-weight:800; text-decoration:none; font-size:14px; }
.m-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.m-glass { border-radius:22px; padding:30px; background:#f4f6fb; border:1px solid #e3e7f0; transition:transform .25s, border-color .25s; }
.m-glass:hover { transform:translateY(-6px); border-color:rgba(245,184,0,.6); }
.m-glass .ico { width:54px; height:54px; border-radius:16px; display:grid; place-items:center;
    background:linear-gradient(135deg, rgba(245,184,0,.25), rgba(245,184,0,.05)); color:#b8860b; font-size:22px; margin-bottom:20px; }
.m-glass h3 { font-size:21px; font-weight:800; margin:0 0 10px; color:#0b1a3a; }
.m-glass p { color:#5b6680; line-height:1.6; font-size:15px; margin:0; }
.m-empty { color:#5b6680; font-size:14px; }

/* Dernier match */
.m-score-card { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; text-align:center;
    text-decoration:none; color:#f4f6ff; background:#0b1a3a; border:none; border-radius:22px; padding:30px; }
.m-score-card:hover { border-color:transparent; }
.m-score-card .crest { width:70px; height:70px; margin:0 auto 10px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:rgba(255,255,255,.08); }
.m-score-card .crest img { width:100%; height:100%; object-fit:contain; padding:8px; box-sizing:border-box; }
.m-score { font-size:52px; font-weight:900; letter-spacing:.04em; font-variant-numeric:tabular-nums; color:#fff; }
.m-score span { color:#ffd84a; }
.m-form { display:flex; gap:6px; align-items:center; margin-top:18px; flex-wrap:wrap; }
.m-form b { font-size:11px; letter-spacing:.12em; color:#5b6680; margin-right:6px; }
.m-form i { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; font-style:normal; font-size:12px; font-weight:900; color:#fff; }
.m-form .V { background:#16a34a; } .m-form .N { background:#6b7280; } .m-form .D { background:#dc2626; }

/* ADN */
.m-adn { border-radius:28px; padding:56px; background:#0b1a3a; color:#f4f6ff; }
.m-adn .m-eyebrow { color:#ffd84a; }
.m-adn .m-h2 { color:#fff; margin-bottom:22px; }
.m-adn p { color:#d6dcf0; font-size:18px; line-height:1.7; max-width:720px; }

/* Actualités */
.m-news { border-radius:22px; overflow:hidden; background:#f4f6fb; border:1px solid #e3e7f0; position:relative; transition:transform .25s; }
.m-news:hover { transform:translateY(-6px); }
.m-news-img { aspect-ratio:16/10; background:linear-gradient(135deg,#dfe6f5,#c9d4ea); display:grid; place-items:center; overflow:hidden; }
.m-news-img img { width:100%; height:100%; object-fit:cover; }
.m-news-img i { font-size:34px; color:#5b6680; }
.m-news-body { padding:22px; }
.m-news-meta { font-size:12px; color:#5b6680; font-weight:700; letter-spacing:.06em; }
.m-news h3 { font-size:19px; margin:10px 0; line-height:1.3; color:#0b1a3a; }
.m-news p { color:#5b6680; font-size:14px; line-height:1.6; margin:0; }
.m-news-link { position:absolute; inset:0; }

/* CTA */
.m-cta { border-radius:28px; padding:50px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
    background:linear-gradient(120deg, #f5b800, #ffd84a); color:#0a1430; }
.m-cta h2 { font-size:34px; font-weight:900; margin:0 0 6px; letter-spacing:-.02em; }
.m-cta p { margin:0; font-weight:600; opacity:.85; }
.m-cta a { background:#0a1430; color:#fff; padding:15px 26px; border-radius:14px; font-weight:800; text-decoration:none; }

@media (max-width:960px) {
    .m-slider { min-height:0; }
    .m-slide { position:relative; grid-template-columns:1fr; gap:30px; padding:70px 20px 90px; opacity:1; visibility:visible; display:none; }
    .m-slide.is-active { display:grid; }
    .m-slide-visual { min-height:220px; }
    .m-grid { grid-template-columns:1fr; }
    .m-adn { padding:34px; }
    .m-cta { padding:34px; }
}
/* Titres du slider : texte clair sur fond sombre */
.m-slider .m-title { color: #ffffff; }
.m-slider .m-title .grad {
    background: linear-gradient(90deg, #f5b800, #ffffff 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width:960px) {

    /* ===== Slider mobile ===== */
    .m-slider { min-height:0; }

    .m-slide {
        position:relative;
        display:none;
        grid-template-columns:1fr;
        gap:18px;
        padding:110px 20px 120px;   /* 110px : dégage le header fixe ; 120px : place pour les contrôles */
        opacity:1;
        visibility:visible;
        text-align:left;
    }
    .m-slide.is-active { display:grid; }

    .m-title { font-size:40px; line-height:1.05; margin:14px 0 12px; }
    .m-lead { font-size:16px; line-height:1.55; }
    .m-pill { font-size:11px; padding:6px 12px; }

    .m-actions { margin-top:22px; gap:10px; flex-direction:column; }
    .m-btn { width:100%; justify-content:center; padding:14px 20px; }

    .m-countdown { gap:8px; margin-top:18px; max-width:none; }
    .m-countdown div { padding:10px 4px; }
    .m-countdown strong { font-size:20px; }
    .m-countdown span { font-size:9px; letter-spacing:.1em; }

    /* Visuels plus petits, sous le texte */
    .m-slide-visual { min-height:0; }
    .m-visual-img { max-width:200px; margin:0 auto; }
    .m-logo-big { width:140px; }
    .m-crests { gap:16px; justify-content:center; }
    .m-crests .crest { width:84px; height:84px; }
    .m-crests .crest i { font-size:34px; }
    .m-vs { font-size:22px; }

    /* Contrôles : une seule ligne en bas, flèches aux extrémités, points au centre */
    .m-nav { top:auto; bottom:16px; transform:none; width:40px; height:40px; }
    .m-prev { left:16px; }
    .m-next { right:16px; }
    .m-dots { bottom:31px; gap:8px; }
    .m-dots button { width:8px; height:8px; }
    .m-dots button.is-active { width:22px; }

    /* Sections du bas */
    .m-section { padding:30px 0 50px; }
    .m-section-head { margin-bottom:22px; }
    .m-h2 { font-size:30px; }
    .m-grid { grid-template-columns:1fr; gap:14px; }
    .m-glass { padding:22px; }

    .m-score-card { grid-template-columns:1fr auto 1fr; gap:10px; padding:20px 14px; }
    .m-score-card .crest { width:56px; height:56px; }
    .m-score-card strong { font-size:14px; }
    .m-score { font-size:38px; }

    .m-adn { padding:28px 22px; }
    .m-adn p { font-size:16px; }

    .m-cta { padding:26px 22px; flex-direction:column; align-items:flex-start; }
    .m-cta h2 { font-size:24px; }
    .m-cta a { width:100%; text-align:center; box-sizing:border-box; }
}

/* ===== Slide "prochain match" : titre plus petit, sur deux lignes ===== */
.m-slide.m-slide-match .m-title {
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.02;
}

@media (max-width: 960px) {
    .m-slide.m-slide-match .m-title {
        font-size: 30px;
    }
}

/* Titre du slide d'accueil : plus petit, sur deux lignes */
.m-slide:not(.m-slide-match) .m-title {
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.02;
}

@media (max-width: 960px) {
    .m-slide:not(.m-slide-match) .m-title {
        font-size: 30px;
    }
}

/* Titres de tous les slides : même taille, sur deux lignes */
.m-slide .m-title {
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.02;
}

@media (max-width: 960px) {
    .m-slide .m-title {
        font-size: 30px;
    }
}
@media (max-width: 960px) {
    /* Premier slide uniquement : visuel au-dessus du texte, zoomé */
    .m-slide:first-child {
        display: flex;
        flex-direction: column-reverse;
    }
    .m-slide:first-child .m-slide-visual {
        order: -1;
        min-height: 0;
        margin-bottom: 10px;
    }
    .m-slide:first-child .m-visual-img {
        max-width: 300px;      /* taille de base zoomée (était 200px) */
        transform: scale(1.15);
        margin: 0 auto;
    }
}
@media (max-width: 960px) {
    .m-slide:first-child.is-active {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    .m-slide:first-child .m-slide-visual {
        order: -1 !important;
    }
}

@media (max-width: 960px) {
    .m-slide-first .m-visual-img {
        max-width: 300px;
        transform: scale(1.15);
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    /* Premier slide : visuel au-dessus du texte, en mobile */
    .m-slide-first {
        display: flex;
        flex-direction: column;
        padding-top: 110px;
    }
    .m-slide-first.is-active { display: flex; }
    .m-slide-first .m-slide-visual {
        order: -1;
        min-height: 0;
        margin-bottom: 14px;
    }
    .m-slide-first .m-slide-text { width: 100%; }
    .m-slide-first .m-visual-img {
        max-width: 300px;
        transform: scale(1.15);
        margin: 0 auto;
    }
}


@media (max-width: 960px) {
    /* Slides masqués tant qu'ils ne sont pas actifs */
    .m-slider .m-slide:not(.is-active) {
        display: none !important;
    }

    /* Slide actif : visuel au-dessus, texte dessous, sous le header fixe */
    .m-slider .m-slide.is-active {
        display: flex !important;
        flex-direction: column;
        padding-top: 130px;
        padding-bottom: 120px;
        gap: 18px;
    }
    .m-slider .m-slide.is-active.m-slide-first > .m-slide-visual {
        order: -1;
        min-height: 0;
        width: 100%;
    }
    .m-slider .m-slide.is-active.m-slide-first > .m-slide-text {
        order: 1;
        width: 100%;
    }
    .m-slide-first .m-visual-img {
        max-width: 260px;
        transform: scale(1.15);
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    /* Conteneur du slider : hauteur automatique */
    .m-slider { min-height: 0 !important; }

    /* Un seul slide affiché à la fois, en colonne */
    .m-slider .m-slide {
        display: none !important;
        position: relative !important;
        inset: auto !important;
        grid-template-columns: 1fr !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 130px 20px 120px !important;   /* 130px : sous le header fixe */
        opacity: 1 !important;
        visibility: visible !important;
    }
    .m-slider .m-slide.is-active {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px;
    }

    /* Premier slide : visuel au-dessus du texte, zoomé */
    .m-slider .m-slide-first > .m-slide-visual {
        order: -1 !important;
        min-height: 0 !important;
        width: 100%;
    }
    .m-slider .m-slide-first > .m-slide-text {
        order: 2 !important;
        width: 100%;
    }
    .m-slider .m-slide-first .m-visual-img {
        max-width: 260px !important;
        width: auto !important;
        margin: 0 auto !important;
        transform: scale(1.15);
    }

    /* Autres slides : visuel (écussons ou logo) sous le texte */
    .m-slider .m-slide-visual { min-height: 0; width: 100%; }
    .m-slider .m-slide-text { width: 100%; }

    /* Textes */
    .m-slider .m-title { font-size: 34px !important; line-height: 1.05; margin: 14px 0 12px; }
    .m-slider .m-lead { font-size: 16px; line-height: 1.55; }
    .m-slider .m-pill { font-size: 11px; padding: 6px 12px; }

    /* Boutons pleine largeur */
    .m-slider .m-actions { margin-top: 22px; gap: 10px; flex-direction: column; }
    .m-slider .m-btn { width: 100%; justify-content: center; padding: 14px 20px; }

    /* Compte à rebours */
    .m-slider .m-countdown { gap: 8px; margin-top: 18px; max-width: none; }

    /* Écussons */
    .m-slider .m-crests { gap: 16px; justify-content: center; }
    .m-slider .m-crests .crest { width: 84px; height: 84px; }

    /* Contrôles en bas */
    .m-slider .m-nav { top: auto; bottom: 16px; transform: none; width: 40px; height: 40px; }
    .m-slider .m-prev { left: 16px; }
    .m-slider .m-next { right: 16px; }
    .m-slider .m-dots { bottom: 31px; }
}
/* Zoom de l'image du premier slide (desktop) */
.m-slide-first .m-visual-img {
    max-width: 560px;          /* 440px auparavant */
    transform: scale(1.12);
    transform-origin: center;
}

/* Zoom de l'image du premier slide (mobile) */
@media (max-width: 960px) {
    .m-slider .m-slide-first .m-visual-img {
        max-width: 340px !important;   /* 260px auparavant */
        transform: scale(1.3);         /* 1.15 auparavant */
        transform-origin: center;
    }
}

/* Centrage visuel du premier slide (mobile) */
@media (max-width: 960px) {
    .m-slider .m-slide-first > .m-slide-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: visible;
    }
    .m-slider .m-slide-first .m-visual-img {
        margin: 0 auto !important;
        /* translateX : compense le vide transparent à gauche du PNG */
        transform: translateX(70px) scale(1.3);
        transform-origin: center center;
    }
}

/* ============================================
   ACCUEIL — zoom et centrage du visuel du premier slide
   ============================================ */

/* Ordinateur */
.m-slide-first .m-visual-img {
    max-width: 560px;
    transform: scale(1.12);
    transform-origin: center;
}

/* Mobile */
@media (max-width: 960px) {
    .m-slider .m-slide-first > .m-slide-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: visible;
    }
    .m-slider .m-slide-first .m-visual-img {
        max-width: 340px !important;
        margin: 0 auto !important;
        /* translateX : compense le vide transparent à gauche du PNG */
        transform: translateX(50px) scale(1.3);
        transform-origin: center center;
    }
}

/* ============================================
   ACCUEIL — dernier match + prochain match côte à côte
   ============================================ */
.m-matches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.m-last { display: flex; flex-direction: column; }
.m-last .m-section-head { margin-bottom: 20px; }
.m-last .m-score-card { flex: 1; }

/* Carte prochain match : fond doré */
.m-next-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    border-radius: 22px;
    padding: 30px;
    background: linear-gradient(120deg, #f5b800, #ffd84a);
    color: #0a1430;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(245,184,0,.25);
    transition: transform .25s ease, box-shadow .25s ease;
}
.m-next-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(245,184,0,.35); }
.m-next-card .m-eyebrow { color: #0a1430; opacity: .75; }
.m-next-title {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-top: 10px;
    color: #0a1430;
}
.m-next-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.m-next-teams .crest {
    width: 70px; height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(10,20,48,.10);
}
.m-next-teams .crest img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}
.m-next-teams .crest i { font-size: 28px; color: #0a1430; }
.m-next-teams strong { font-size: 14px; font-weight: 800; }
.m-next-vs { font-size: 22px; font-weight: 900; }
.m-next-foot {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .8;
}

@media (max-width: 820px) {
    .m-matches { grid-template-columns: 1fr; }
}

/* Prochain match : nouveau fond */
.m-next-card {
    background: #ffffff;
    border: 2px solid #f5b800;
    box-shadow: 0 14px 34px rgba(12,26,61,.10);
}
.m-next-card:hover {
    box-shadow: 0 20px 42px rgba(12,26,61,.16);
}

/* Dernier match : bordure gauche selon le résultat */
.m-score-card { border-left: 6px solid transparent; }
.m-score-card.is-win  { border-left-color: #16a34a; } /* victoire : vert */
.m-score-card.is-draw { border-left-color: #f5b800; } /* match nul : doré */
.m-score-card.is-loss { border-left-color: #dc2626; } /* défaite : rouge */

.m-next-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.m-next-foot i {
    margin-right: 6px;
}

/* Prochain match : fond marine (version sombre) */
.m-next-card {
    background: linear-gradient(135deg, #0c1a3d 0%, #142a5c 100%);
    border: 1px solid rgba(234,179,8,.45);
    color: #eef1f8;
    box-shadow: 0 14px 34px rgba(12,26,61,.25);
}
.m-next-card:hover {
    box-shadow: 0 20px 42px rgba(12,26,61,.35);
}
.m-next-card .m-eyebrow { color: #ffd84a; opacity: 1; }
.m-next-title,
.m-next-teams strong { color: #ffffff; }
.m-next-vs { color: #ffd84a; }
.m-next-foot { color: #ffd84a; opacity: 1; }
.m-next-teams .crest { background: rgba(255,255,255,.08); }
.m-next-teams .crest i { color: #ffd84a; }

/* Prochain match : cadre plus compact */
.m-next-card {
    padding: 20px 22px;
    gap: 14px;
    border-radius: 16px;
}
.m-next-title {
    font-size: clamp(18px, 2vw, 22px);
    margin-top: 6px;
}
.m-next-teams {
    gap: 8px;
}
.m-next-teams .crest {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
}
.m-next-teams strong {
    font-size: 13px;
}
.m-next-foot {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
}

/* Dernier match : cadre plus compact (même logique que le prochain match) */
.m-score-card {
    padding: 20px 22px;
    gap: 14px;
    border-radius: 16px;
}
.m-score-card .crest {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
}
.m-score-card strong {
    font-size: 13px;
}
.m-score {
    font-size: 40px;
}
.m-last .m-section-head {
    margin-bottom: 14px;
}

/* ===== Premier slide : image d'origine + animation de flottement ===== */
.m-slide-first .m-slide-visual {
    display: grid;
    place-items: center;
}
.m-slide-first .m-visual-img {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    scale: 1;
    animation: m-float 5s ease-in-out infinite;
}

@keyframes m-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

@media (max-width: 960px) {
    .m-slider .m-slide-first .m-visual-img {
        max-width: 300px !important;
        margin: 0 auto !important;
        scale: 1.15;
    }
}

/* Respecte la préférence « réduire les animations » du visiteur */
@media (prefers-reduced-motion: reduce) {
    .m-slide-first .m-visual-img {
        animation: none;
    }
}


/* ===== Premier slide : cercles en fond de l'image ===== */
.m-slide-first .m-slide-visual {
    position: relative;
}

/* Disque et anneau extérieur */
.m-slide-first .m-slide-visual::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(490px, 92%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(234,179,8,.35);
    background: radial-gradient(circle, rgba(20,42,92,.55) 0%, rgba(12,26,61,.15) 70%);
    box-shadow: 0 0 80px rgba(234,179,8,.10);
    z-index: 0;
    pointer-events: none;
}

/* Anneau intérieur en pointillés */
.m-slide-first .m-slide-visual::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(360px, 70%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(234,179,8,.22);
    z-index: 0;
    pointer-events: none;
}

/* L'image passe au-dessus des cercles */
.m-slide-first .m-visual-img {
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .m-slider .m-slide-first .m-slide-visual::before {
        width: min(360px, 86%);
    }
    .m-slider .m-slide-first .m-slide-visual::after {
        width: min(260px, 60%);
    }
}

/* ===== Prochain match : nouvelle carte (version 2) ===== */
.m-nx-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1c2238 0%, #2e2d4a 100%);
    border: 1px solid rgba(245,184,0,.35);
    box-shadow: 0 16px 36px rgba(12,26,61,.22);
    color: #eef1f8;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.m-nx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(12,26,61,.32);
}

/* Haut : chips compétition et compte à rebours */
.m-nx-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.m-nx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 700;
    color: #eef1f8;
}
.m-nx-chip i { color: #f5b800; }
.m-nx-chip-gold {
    background: #f5b800;
    color: #0a1430;
}
.m-nx-chip-gold i { color: #0a1430; }

/* Centre : équipes et date */
.m-nx-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
.m-nx-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.m-nx-team strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}
.m-nx-crest {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
}
.m-nx-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}
.m-nx-crest i { font-size: 28px; color: #f5b800; }

.m-nx-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    min-width: 130px;
}
.m-nx-vs {
    font-size: 14px;
    font-weight: 900;
    color: #f5b800;
    text-transform: lowercase;
}
.m-nx-day {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.m-nx-month {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #c9d1e6;
}
.m-nx-time {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 900;
    color: #f5b800;
}

/* Pied : pastilles d'infos */
.m-nx-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.m-nx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    font-size: 13px;
    font-weight: 700;
    color: #eef1f8;
}
.m-nx-pill i { color: #f5b800; }
.m-nx-link {
    margin-left: auto;
    background: transparent;
    color: #f5b800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
}

@media (max-width: 480px) {
    .m-nx-card { padding: 18px 16px; gap: 18px; }
    .m-nx-main { gap: 8px; }
    .m-nx-crest { width: 56px; height: 56px; }
    .m-nx-team strong { font-size: 13px; }
    .m-nx-center { min-width: 0; padding: 10px 12px; }
    .m-nx-day { font-size: 34px; }
    .m-nx-link { margin-left: 0; width: 100%; }
}

/* ===== Prochain match : affichage mobile compact ===== */
@media (max-width: 480px) {
    .m-nx-card {
        padding: 16px 14px;
        gap: 16px;
    }
    .m-nx-top {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .m-nx-chip {
        padding: 6px 10px;
        font-size: 11.5px;
        gap: 6px;
        white-space: nowrap;
    }
    .m-nx-main {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
    }
    .m-nx-team {
        gap: 8px;
        min-width: 0;
    }
    .m-nx-team strong {
        font-size: 12px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .m-nx-crest {
        width: 52px;
        height: 52px;
    }
    .m-nx-center {
        min-width: 0;
        padding: 10px 8px;
    }
    .m-nx-day {
        font-size: 30px;
    }
    .m-nx-month {
        font-size: 10px;
        letter-spacing: .06em;
    }
    .m-nx-time {
        font-size: 14px;
    }
    .m-nx-foot {
        padding-top: 14px;
        gap: 8px;
    }
    .m-nx-pill {
        padding: 7px 12px;
        font-size: 12px;
    }
    .m-nx-link {
        margin-left: 0;
        width: auto;
    }
}


/* Accueil : "Lire l'article" dans les cartes d'actualité */
.m-news-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #b8860b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.m-news-hint i {
    transition: transform .2s ease;
}
.m-news:hover .m-news-hint i {
    transform: translateX(3px);
}

/* Accueil : "Lire l'article" aligné sur la même ligne dans toutes les cartes */
.m-news {
    display: flex;
    flex-direction: column;
}
.m-news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.m-news-hint {
    margin-top: auto;
    padding-top: 16px;
}

/* Piliers : le lien "Nos équipes / Nos actualités / Le club" est aligné en bas */
.m-grid > .m-glass {
    display: flex;
    flex-direction: column;
}
.m-grid > .m-glass > .m-link {
    margin-top: auto !important;
    align-self: flex-start;
}

/* Accueil : bannière CTA, texte sur une seule ligne (ordinateur) */
.cta-banner p {
    max-width: none;
    white-space: nowrap;
}
@media (max-width: 850px) {
    .cta-banner p {
        white-space: normal;
    }
}

/* Accueil : texte CTA sur une seule ligne (ordinateur) */
.m-cta p {
    white-space: nowrap;
}
@media (max-width: 960px) {
    .m-cta p {
        white-space: normal;
    }
}

/* Accueil : bannière CTA jaune, texte sur une ligne, bouton sombre */
.cta-banner {
    background: linear-gradient(120deg, #f5b800, #ffd84a);
    border: none;
    box-shadow: 0 14px 34px rgba(245,184,0,.25);
    border-radius: 28px;
    padding: 50px;
}
.cta-banner h2 {
    color: #0a1430;
}
.cta-banner h2 strong {
    color: #0a1430;
}
.cta-banner p {
    color: #0a1430;
    opacity: .85;
    font-weight: 600;
    max-width: none;
    white-space: nowrap;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 26px;
    border-radius: 14px;
    background: #0a1430;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex: none;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10,20,48,.3);
}
@media (max-width: 960px) {
    .cta-banner p {
        white-space: normal;
    }
}

/* Accueil : bannière CTA finale */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #f5b800, #ffd84a);
    border: none;
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 14px 34px rgba(245,184,0,.25);
}
.cta-banner h2,
.cta-banner h2 strong {
    color: #0a1430;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}
.cta-banner p {
    color: #0a1430;
    opacity: .85;
    font-weight: 600;
    margin: 0;
    max-width: none;
    white-space: nowrap;
}
.cta-banner .cta-btn,
.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 26px;
    border-radius: 14px;
    background: #0a1430;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
    flex: none;
    border: none;
}
.cta-banner .cta-btn:hover,
.cta-btn:hover {
    background: #0a1430;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10,20,48,.3);
}
@media (max-width: 960px) {
    .cta-banner { padding: 34px 26px; }
    .cta-banner p { white-space: normal; }
}
@media (max-width: 560px) {
    .cta-banner { padding: 28px 22px; }
    .cta-btn { width: 100%; justify-content: center; }
}

/* ===== Page détail d'un match : affichage amélioré ===== */

/* Fiches d'informations : même hauteur, effet au survol */
.match-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 24px 16px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.match-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16,26,58,.12);
}
.match-info-value {
    color: var(--ink);
    text-align: center;
    line-height: 1.3;
}

/* Score de la bannière, plus lisible */
.next-match-banner .match-score {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: .02em;
}
.next-match-banner .kickoff {
    font-size: 14px;
    letter-spacing: .04em;
    opacity: .85;
}

/* Onglets : défilement horizontal sur mobile au lieu de passer à la ligne */
.match-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.match-tabs::-webkit-scrollbar { display: none; }
.match-tab {
    white-space: nowrap;
    flex: none;
}

/* Animation douce au changement d'onglet */
.match-tab-panel:not([hidden]) {
    animation: m-tab-fade .35s ease;
}
@keyframes m-tab-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Photo de l'article : ratio stable, coins arrondis */
.article-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 16px 36px rgba(16,26,58,.12);
}

/* Homme du match : bloc plus haut, centré */
.homme-du-match-photo {
    min-height: 200px;
    justify-content: center;
}
.homme-du-match-photo i {
    color: var(--gold-light, #e8c874);
}

/* Feuille de match : séparateurs entre les événements */
.sidebar-card .meta-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
}
.sidebar-card .meta-row:last-child {
    border-bottom: none;
}

/* Cartes "autres résultats" : léger effet au survol */
.match-list .match-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.match-list .match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16,26,58,.1);
}

/* Mobile */
@media (max-width: 640px) {
    .match-info-card { min-height: 140px; padding: 18px 12px; }
    .match-info-value { font-size: 14px; }
    .match-tab { padding: 12px 14px; font-size: 12px; }
}

/* ===== Feuille de match : disposition face à face ===== */
.duel-head,
.duel-row {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    gap: 12px;
}
.duel-head {
    padding: 4px 0 14px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.duel-head span:first-child { text-align: right; color: var(--ink); }
.duel-head span:last-child  { text-align: left; }

.duel-row {
    padding: 12px 0;
}
.duel-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.duel-left {
    justify-content: flex-end;
    text-align: right;
}
.duel-right {
    justify-content: flex-start;
    text-align: left;
}
.duel-side i {
    font-size: 15px;
    flex: none;
}
.duel-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.duel-text strong {
    font-size: 14px;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.duel-text small {
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: .04em;
}
.duel-min {
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--gold-deep);
    background: var(--gold-soft);
    border-radius: 999px;
    padding: 4px 0;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
    .duel-head,
    .duel-row { grid-template-columns: 1fr 44px 1fr; gap: 8px; }
    .duel-text strong { font-size: 12.5px; }
    .duel-text small { font-size: 10px; }
    .duel-min { font-size: 12px; }
}

/* ===== Type de match et domicile / extérieur ===== */
.eyebrow i {
    color: var(--gold-light);
    margin-right: 4px;
}

.m-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.match-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--on-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.match-chip i {
    color: var(--gold-light);
}

.match-info-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink-soft);
}

@media (max-width: 480px) {
    .m-chips { justify-content: flex-start; }
    .match-chip { font-size: 11px; padding: 6px 10px; }
}

/* Cartes de résultats : icône type de match et domicile / extérieur */
.match-competition {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.match-competition i {
    color: var(--gold-deep);
}
.match-venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.match-venue i {
    color: var(--gold-deep);
}

/* Bandeau du score : affichage mobile */
@media (max-width: 640px) {
    /* Titre, chips et statut sur plusieurs lignes, rien ne déborde */
    .next-match-banner .next-match-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .next-match-banner .m-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .next-match-banner .match-chip {
        white-space: nowrap;
    }

    /* Équipes à gauche et à droite du score, sur une seule rangée */
    .next-match-banner .next-match-body {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
    }
    .next-match-banner .next-match-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        min-width: 0;
    }
    .next-match-banner .next-match-team-name {
        font-size: 13px;
        line-height: 1.25;
    }
    .next-match-banner .next-match-versus {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
    .next-match-banner .next-match-versus .match-score {
        font-size: 34px;
    }
    .next-match-banner .kickoff {
        font-size: 11px;
        line-height: 1.3;
    }
}

/* Pastilles du bandeau score : alignées à droite sur mobile */
@media (max-width: 640px) {
    .next-match-banner .m-chips {
        justify-content: flex-end;
    }
}

/* Bandeau du score : affichage mobile corrigé */
@media (max-width: 640px) {
    /* Titre aligné à gauche, pas centré */
    .next-match-banner .next-match-head > div {
        text-align: left;
    }
    .next-match-banner .next-match-head {
        align-items: flex-start;
    }

    /* Pastilles : retour à la ligne, la pastille de statut passe en premier */
    .next-match-banner .m-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }
    .next-match-banner .match-status-pill {
        display: inline-flex;
        visibility: visible;
        opacity: 1;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        border: 1px solid currentColor;
    }
    .next-match-banner .match-status-pill.is-win  { color: #4ade80; background: rgba(74,222,128,.12); }
    .next-match-banner .match-status-pill.is-draw { color: var(--gold-light); background: rgba(255,216,74,.12); }
    .next-match-banner .match-status-pill.is-loss { color: #f87171; background: rgba(248,113,113,.12); }

    /* Nom de l'équipe : plus petit, pas de coupure au milieu d'un mot */
    .next-match-banner .next-match-team-name {
        font-size: 12px;
        line-height: 1.2;
        max-width: 100px;
        overflow-wrap: break-word;
    }

    /* Date : lisible, sur une ligne */
    .next-match-banner .kickoff {
        white-space: nowrap;
    }
}

/* Pastilles du bandeau score : centrées sur mobile */
@media (max-width: 640px) {
    .next-match-banner .m-chips {
        justify-content: center;
    }
    .next-match-banner .next-match-head > div {
        text-align: center;
    }
    .next-match-banner .next-match-head {
        align-items: center;
    }
}

/* Pastilles du bandeau score : trois pastilles centrées sur une ligne */
@media (max-width: 640px) {
    .next-match-banner .m-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin: 0;
    }
    .next-match-banner .match-chip,
    .next-match-banner .match-status-pill {
        margin: 0;
    }
}
/* Pastilles du bandeau score : une seule ligne sur mobile */
@media (max-width: 640px) {
    .next-match-banner .m-chips {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }
    .next-match-banner .match-chip,
    .next-match-banner .match-status-pill {
        font-size: 10px;
        padding: 5px 9px;
        letter-spacing: .03em;
        white-space: nowrap;
    }
}

/* Bannière de titre : ligne eyebrow sur mobile */
@media (max-width: 640px) {
    .page-banner .eyebrow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 8px;
        font-size: 10px;
        letter-spacing: .08em;
        line-height: 1.4;
        text-align: center;
    }
    .page-banner .eyebrow > span:first-child {
        display: none;
    }
    .page-banner .eyebrow i {
        margin-right: 2px;
    }
}
/* Statut du match : au centre sur ordinateur, dans les pastilles sur mobile */
.next-match-banner .m-status-desktop {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    margin-bottom: 6px;
}
.next-match-banner .m-status-mobile {
    display: none;
}
.next-match-banner .match-status-pill.is-win  { color: #4ade80; background: rgba(74,222,128,.12); }
.next-match-banner .match-status-pill.is-draw { color: var(--gold-light); background: rgba(255,216,74,.12); }
.next-match-banner .match-status-pill.is-loss { color: #f87171; background: rgba(248,113,113,.12); }

@media (max-width: 640px) {
    .next-match-banner .m-status-desktop { display: none; }
    .next-match-banner .m-status-mobile  { display: inline-flex; }
}

/* Écussons alignés en haut sur mobile, même si le nom passe sur deux lignes */
@media (max-width: 640px) {
    .next-match-banner .next-match-body {
        align-items: start;
    }
}

/* Icônes des fiches d'informations et des statistiques du match (sauf cartons) */
.match-info-icon i,
.homme-du-match-stats .stat-row i:not([style*="color"]),
.homme-du-match-photo i {
    color: #0b1a3a !important;
}

/* Eyebrows : même style partout (trait doré + texte doré en capitales espacées) */
.m-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #b8860b;
}
.m-eyebrow::before,
.eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--gold, #f5b800);
    flex: none;
}
/* Évite le trait en double là où un <span></span> vide est déjà présent */
.eyebrow > span:first-child:empty {
    display: none;
}

/* Actualités : lien "Lire l'article" aligné en bas, espacé du résumé */
.grid-3 > .news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-item .card-text {
    flex: 0 0 auto;
    line-height: 1.6;
    min-height: calc(1.6em * 3);   /* hauteur réservée pour 3 lignes */
    margin-bottom: 18px;
}
.news-item .card-link-hint {
    margin-top: auto;
    padding-top: 8px;
}

/* Page Actualités : même rendu que l'accueil */
.grid-3 > .news-item,
.news-item {
    display: flex;
    flex-direction: column;
    height: auto;
}
.news-item .media-placeholder {
    aspect-ratio: 16 / 10;
    border: none;
    background: none;
    margin: 0;
}
.news-item .card-meta {
    color: var(--muted, #566079);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: none;
}

/* Page détail match : titre de la bannière plus petit */
.page-banner h1 {
    font-size: clamp(24px, 3.2vw, 40px);
    line-height: 1.1;
}
@media (max-width: 640px) {
    .page-banner h1 {
        font-size: 26px;
    }
}
