/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Nav (~96px) - padding section (5rem≈80px) + ~12px d'air sous la barre */
    scroll-padding-top: 28px;
}

body {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #050505;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

section {
    position: relative;
}

/* =========================
   LAYOUT UTILITAIRES
========================= */
.section {
    padding: 5rem 1.5rem;
    background: #020617;
}

.section-alt {
    padding: 5rem 1.5rem;
    background: radial-gradient(circle at top left, #111827 0, #020617 45%, #020617 100%);
}

/* Meilleur contraste du texte sur fonds sombres */
.section-alt p,
.section-alt li,
.section-alt h3 {
    color: #e5e7eb;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .section-inner {
        max-width: 1600px;
    }
}

.section-header {
    max-width: 640px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.section-header h2 {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 2.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.table-wrapper h3 {
    color: #ffffff;
}

.section-header p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

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

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

/* =========================
   NAVBAR & HEADER
========================= */
.site-header {
    position: relative;
    min-height: 100vh;
    color: #e5e7eb;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.15);
    transition: top 0.25s ease, background 0.25s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(229, 231, 235, 0.8);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.nav-title {
    display: flex;
    flex-direction: column;
}

.club-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.club-baseline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #9ca3af;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.05rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.nav-links li a {
    position: relative;
    padding-bottom: 0.25rem;
    color: #cbd5f5;
    transition: color 0.2s ease;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #38bdf8, #22c55e);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav-links li a:hover {
    color: #ffffff;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.burger-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: #7e0f0f;
}

.burger-active span:nth-child(2) {
    opacity: 0;
}

.burger-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    background: #7e0f0f;
}

@media (max-width: 1200px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 97px;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        background: radial-gradient(circle at top, #1d4ed8 0, #020617 55%);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.75rem;
        gap: 1rem;
        letter-spacing: 0.18em;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -12px 0 32px rgba(15, 23, 42, 0.8);
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-active {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }
}

/* Animation des liens de nav (utilisée par burger.js) */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 5rem;
    background:
        radial-gradient(circle at top left, rgba(249, 250, 251, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.85), transparent 60%),
        #020617;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.9));
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.7rem;
    color: #e5e7eb;
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: clamp(2.4rem, 3.2vw + 1.5rem, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.1rem;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.hero-text {
    color: #e5e7eb;
    font-size: 0.98rem;
    max-width: 540px;
    margin: 0 auto 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

/* =========================
   BOUTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #000000;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.75);
}

.btn-outline {
    border-color: rgba(229, 231, 235, 0.85);
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.7);
}

.btn-outline:hover {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.95);
}

/* =========================
   LISTES + CARTES
========================= */
.icon-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.icon-bullet {
    margin-right: 0.4rem;
}

.cards {
    display: grid;
    gap: 1.75rem;
}

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

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

@media (max-width: 768px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: radial-gradient(circle at top left, rgba(249, 250, 251, 0.06), rgba(15, 23, 42, 0.98));
    border-radius: 1.25rem;
    padding: 1.75rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
    color: #e5e7eb;
}

.card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.65rem;
}

.card p {
    font-size: 0.9rem;
    color: #cbd5f5;
    margin-bottom: 0.9rem;
}

.card ul {
    display: grid;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #d1d5db;
}

.card-news {
    position: relative;
}

.card-news ul {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.1rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.45;
}

.card-news ul li {
    margin-bottom: 0.25rem;
}

.card-news a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-news a:hover {
    color: #bae6fd;
}

.news-archive {
    margin-top: 1.5rem;
}

.news-archive[hidden] {
    display: none !important;
}

.news-more {
    display: flex;
    justify-content: center;
    margin-top: 1.35rem;
}

.news-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.news-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.7);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.news-download-link:hover {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.95);
}

.news-download-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(148, 163, 184, 0.45);
    color: #9ca3af;
}

.news-download-link.is-disabled:hover {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.7);
    color: #9ca3af;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 999px;
    background: rgba(249, 250, 251, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.85);
    color: #f9fafb;
    margin-bottom: 0.9rem;
}

/* =========================
   PORTFOLIO
========================= */
.portfolio-wrapper {
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.9rem;
    transition: max-height 0.3s ease;
}

.portfolio-grid-collapsed {
    max-height: 240px; /* même ordre de grandeur que les cartes */
    overflow: hidden;
}

.portfolio-item {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.portfolio-item-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.portfolio-more {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* =========================
   CLASSEMENTS (page & index)
========================= */
.classements-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

/* Légère réduction de la taille de police dans les tableaux de classements */
.classements-grid .schedule-table {
    font-size: 0.85rem;
}

.classements-grid .schedule-table th {
    font-size: 0.8rem;
}

/* Encore un cran plus petit quand un seul tableau est affiché par ligne */
@media (max-width: 1023px) {
    .classements-grid .schedule-table {
        font-size: 0.8rem;
    }

    .classements-grid .schedule-table th {
        font-size: 0.75rem;
    }
}

/* Sur mobile, on simplifie les tableaux de classements
   pour éviter le scroll horizontal : on masque les colonnes
   "Buts +" / "Buts -" / "Diff." */
@media (max-width: 640px) {
    .classements-grid .schedule-table {
        font-size: 0.75rem;
    }

    .classements-grid .schedule-table th {
        font-size: 0.7rem;
    }

    .classements-grid .schedule-table th,
    .classements-grid .schedule-table td {
        padding: 0.45rem 0.4rem;
    }

    /* Masque les colonnes "Buts +" / "Buts -" / "Diff." pour éviter le scroll horizontal */
    .classements-grid .schedule-table th:nth-child(8),
    .classements-grid .schedule-table td:nth-child(8),
    .classements-grid .schedule-table th:nth-child(9),
    .classements-grid .schedule-table td:nth-child(9),
    .classements-grid .schedule-table th:nth-child(10),
    .classements-grid .schedule-table td:nth-child(10) {
        display: none;
    }
}

.classement-focused {
    border: 2px solid #00c9ff;
    box-shadow: 0 0 0 1px rgba(0, 201, 255, 0.4);
}

/* =========================
   RESULTATS
========================= */
.results-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.results-week-header {
    list-style: none;
    margin: 0.85rem 0 0.15rem;
    padding: 0;
    border: none;
    min-height: 0;
}

.results-week-header:first-child {
    margin-top: 0.15rem;
}

.results-week-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
    white-space: nowrap;
}

.results-week-label::before,
.results-week-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(125, 211, 252, 0.45),
        transparent
    );
}

.result-item {
    padding: 0.75rem 0.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    min-height: 64px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #e5e7eb;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.result-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
}

.result-teams {
    font-weight: 500;
}

.result-score {
    font-weight: 600;
}

.result-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 0.75rem;
    width: 100%;
}

.result-score-separator {
    display: inline-block;
    margin-inline: 0.15rem;
}

.result-meta {
    margin-top: 0;
    font-size: 0.78rem;
    color: #9ca3af;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    min-width: 140px;
}

.result-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    cursor: pointer;
}
.result-cat-badge:hover {
    background: rgba(34, 53, 97, 0.9);
}
.result-lieu {
    font-size: 0.78rem;
    color: #9ca3af;
}

.results-more {
    margin-top: 1rem;
    display: none;
    justify-content: center;
}

.results-more-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.results-more-btn:hover {
    background: rgba(30, 64, 175, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.results-less-btn {
    margin-left: 0.5rem;
    opacity: 0.85;
}

.results-less-btn:hover {
    opacity: 1;
}

.results-filter {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.results-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(39, 59, 105, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.results-filter-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.results-filter-close {
    border: none;
    background: transparent;
    color: #cf0404;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.schedule-table tbody tr.ranking-row-hbc4m {
    background: rgba(34, 197, 94, 0.16) !important;
}

.schedule-table tbody tr.ranking-row-hbc4m td {
    font-weight: 900;
    font-size: 1rem;
}

/* Colonnes V / N / D : couleur sur en-têtes et valeurs (vert ≠ surlignage HBC4M) */
.classements-grid .schedule-table th:nth-child(5),
.classements-grid .schedule-table td:nth-child(5) {
    color: #a3e635; /* victoires — lime, distinct du vert HBC4M */
}

.classements-grid .schedule-table th:nth-child(6),
.classements-grid .schedule-table td:nth-child(6) {
    color: #38bdf8; /* nuls */
}

.classements-grid .schedule-table th:nth-child(7),
.classements-grid .schedule-table td:nth-child(7) {
    color: #f87171; /* défaites */
}

.ranking-row-hidden {
    display: none;
}

.ranking-more {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.ranking-more-btn {
    font-size: 0.7rem;
    padding: 0.45rem 1rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.ranking-updated {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.ranking-outdated-body {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.ranking-outdated-body > .schedule-table,
.ranking-outdated-body > .ranking-more {
    filter: blur(3px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.ranking-outdated-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.25rem;
    text-align: center;
    background: rgba(2, 6, 23, 0.45);
    z-index: 2;
}

.ranking-outdated-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.7);
    background: rgba(15, 23, 42, 0.92);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ranking-outdated-text {
    margin: 0;
    max-width: 22rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #e5e7eb;
}

.results-filter-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.results-filter-stat {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.results-filter-stat.stat-win {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.8);
}

.results-filter-stat.stat-lose {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.8);
}

.results-filter-stat.stat-draw {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.8);
}

@media (max-width: 640px) {
    .result-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 0.4rem;
    }

    .result-meta {
        position: static;
        transform: none;
        min-width: 0;
        order: 1;
        align-items: center;
    }

    .result-main {
        text-align: center;
        align-items: center;
        left: 0;
        transform: none;
        margin-top: 0;
        width: 100%;
        order: 2;
    }

    .result-line {
        justify-items: center;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Aperçu résultats par équipe */
.team-results-preview {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.8rem;
    color: #d1d5db;
}

.team-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.team-btn {
    flex: 0 0 190px;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.65rem 1.4rem;
}

@media (max-width: 640px) {
    .team-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

.team-results-title {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
    color: #9ca3af;
}

.team-results-list {
    list-style: none;
    display: grid;
    gap: 0.2rem;
}

.team-results-list li {
    line-height: 1.4;
}

.team-result-date {
    color: #9ca3af;
}

.team-result-score {
    font-weight: 600;
}

.team-result-main {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.team-result-team {
    font-weight: 500;
}

.team-result-lieu {
    color: #9ca3af;
}

.team-name-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid transparent;
    text-align: center;
    max-width: 140px;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.08rem 0.25rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid transparent;
}

.score-win {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

.score-lose {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

.score-draw {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.team-results-empty {
    font-size: 0.78rem;
    color: #9ca3af;
}

.result-outcome {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.outcome-win {
    color: #bbf7d0;
}

.outcome-lose {
    color: #fecaca;
}

.outcome-draw {
    color: #e5e7eb;
}

/* Bloc équipe + score (pills) */
.team-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.86rem;
    border: 1px solid transparent;
    max-width: 190px;
    text-align: center;
}

.team-score-badge-left {
    justify-self: end;
}

.team-score-badge-right {
    justify-self: start;
}

.team-score-name {
    font-weight: 500;
    font-style: italic;
}

.team-score-value {
    font-weight: 900;
    font-size: 1.2rem;
}

/* =========================
   TABLEAU ENTRAINEMENTS
========================= */
.table-wrapper {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e5e7eb;
    min-width: 0;
}

.schedule-table thead {
    background: rgba(15, 23, 42, 0.8);
}

.schedule-table th,
.schedule-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.schedule-table a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.schedule-table a:hover {
    color: #7dd3fc;
    border-bottom-color: rgba(125, 211, 252, 0.7);
}

/* Réduction de la colonne "Rang" uniquement pour les tableaux de classements */
.classements-grid .schedule-table th:first-child,
.classements-grid .schedule-table td:first-child {
    width: 3.5rem;
    max-width: 3.5rem;
    text-align: center;
}

.schedule-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.schedule-table tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.6);
}

.schedule-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.3);
}

/* =========================
   CONTACT
========================= */
.section-contact {
    position: relative;
}

.contact-form {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1.25rem;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.75);
}

.form-row {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.form-row input,
.form-row textarea {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
    background: #020617;
}

.form-row textarea {
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.contact-form button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Honeypot anti-spam : invisible pour les humains */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-infos {
    color: #e5e7eb;
}

.contact-infos h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
}

.contact-infos p {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.info-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.info-list li {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.info-list span {
    font-weight: 500;
    color: #e5e7eb;
}

.info-list a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.info-list a:hover {
    color: #7dd3fc;
    border-bottom-color: rgba(125, 211, 252, 0.7);
}

.info-note {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.4;
    color: #9ca3af;
}

.access-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.access-warning-icon {
    flex-shrink: 0;
    color: #fbbf24;
    font-style: normal;
}

.access-warning em {
    font-style: italic;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    padding: 1.5rem 1.5rem 2rem;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: flex-start;
    color: #9ca3af;
    font-size: 0.8rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-credit {
    font-size: 0.78rem;
    color: #6b7280;
}

.footer-credit-brand {
    color: #e5e7eb;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.footer-links a {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 1px;
    background: #38bdf8;
    transition: width 0.2s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-downloads h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.45rem;
    color: #e5e7eb;
}

.footer-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: none;
}

.footer-download-link::before {
    content: "↓";
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-download-link:hover {
    color: #e5e7eb;
}

.footer-download-link.is-disabled {
    color: #6b7280;
    cursor: not-allowed;
}

.footer-download-link.is-disabled:hover {
    color: #6b7280;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

/* =========================
   POPUPS (mentions / copyright)
========================= */
.popup-container {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.84);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1.5rem;
}

.popup {
    position: relative;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.98));
    border-radius: 1.25rem;
    padding: 2.25rem 2rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.9);
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) rgba(15, 23, 42, 0.6);
}

.popup::-webkit-scrollbar {
    width: 8px;
}

.popup::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.popup::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
}

.popup::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}

.popup a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.popup a:hover {
    color: #bae6fd;
}

.popup h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.popup p {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.7rem;
}

.popup .close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.popup .close:hover {
    transform: translateY(-1px);
    background: rgba(30, 64, 175, 0.9);
}

/* ----- Popup Portfolio (lightbox) ----- */
.popup-container-lightbox {
    padding: 1rem;
    align-items: stretch;
    justify-content: center;
}

.portfolio-lightbox {
    position: relative;
    display: flex;
    flex-direction: row;
    max-width: 95vw;
    width: 100%;
    max-height: 90vh;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .portfolio-lightbox {
        max-width: 1600px;
    }
}

.portfolio-lightbox .close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.portfolio-lightbox .close:hover {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.98);
    color: #38bdf8;
    transform: translateY(-1px);
}

.portfolio-lightbox-main {
    position: relative;
    flex: 1 1 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 2rem 1rem 2rem 2rem;
}

.portfolio-lightbox-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 0.5rem;
}

.portfolio-lightbox-img-wrap.is-zoomed {
    cursor: grab;
}

.portfolio-lightbox-img-wrap.is-zoomed:active {
    cursor: grabbing;
}

/* Scrollbars de la zone image (si overflow) : même style que le site */
.portfolio-lightbox-img-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) rgba(15, 23, 42, 0.6);
}

.portfolio-lightbox-img-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.portfolio-lightbox-img-wrap::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.portfolio-lightbox-img-wrap::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
}

.portfolio-lightbox-img-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}

.portfolio-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    transform-origin: 0 0;
}

.portfolio-lightbox-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    border-radius: 0 0 0.5rem 0.5rem;
}

.portfolio-lightbox-sidebar {
    flex: 0 0 200px;
    border-left: 1px solid rgba(148, 163, 184, 0.35);
    overflow-y: auto;
    padding: 1rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Barre de défilement du lightbox au style du site (sombre, accent bleu) */
.portfolio-lightbox-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) rgba(15, 23, 42, 0.6);
}

.portfolio-lightbox-sidebar::-webkit-scrollbar {
    width: 8px;
}

.portfolio-lightbox-sidebar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.portfolio-lightbox-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
}

.portfolio-lightbox-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}

.portfolio-lightbox-sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    color: #9ca3af;
}

.portfolio-lightbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-lightbox-list-item {
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.portfolio-lightbox-list-item:hover {
    opacity: 0.95;
}

.portfolio-lightbox-list-item.is-active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.portfolio-lightbox-list-item img {
    display: block;
    width: 100%;
    height: 56px;
    object-fit: cover;
}

.portfolio-lightbox-list-date {
    display: block;
    font-size: 0.65rem;
    color: #9ca3af;
    padding: 0.2rem 0.35rem;
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .portfolio-lightbox {
        flex-direction: column;
        max-height: 95vh;
    }

    .portfolio-lightbox-main {
        flex: 1 1 auto;
        padding: 2.5rem 1rem 1rem;
    }

    .portfolio-lightbox-sidebar {
        flex: 0 0 auto;
        max-height: 180px;
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
        display: flex;
        flex-direction: column;
    }

    .portfolio-lightbox-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio-lightbox-list-item {
        width: 64px;
        flex-shrink: 0;
    }

    .portfolio-lightbox-list-item img {
        height: 48px;
    }

    .portfolio-lightbox-list-date {
        font-size: 0.6rem;
        padding: 0.15rem;
    }
}

/* =========================
   RESPONSIVE DIVERS
========================= */
@media (max-width: 640px) {
    .section,
    .section-alt {
        padding-inline: 1.25rem;
    }

    .hero {
        padding-inline: 1.25rem;
        align-items: flex-end;
    }

    .popup {
        padding-inline: 1.4rem;
    }
}

