/* =====  VARIABLES ===== */

:root {
         --menu-bg: #17c5e8;
         --menu-hover: #333;
         --submenu-bg: #17c5e8;
         --submenu-hover: #3a3a3a;
         --menu-text: #fff;
         --submenu-text: #fff;
         --border-color: #ffffff55;
         --bureau-role-color: #0e90ab;
         /*--bureau-role-color: #17c5e8;*/
}

/* =====  RESET ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222222;
}

a {
    color: inherit;
    text-decoration: none;
}

.center {
    text-align: center;
}

/* ========================================
   LIEN RÉSERVÉ AUX MEMBRES
   ======================================== */

.menu-restricted {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.lock-icon {
    font-size: 0.75em;
    opacity: 0.85;
}

/* =====  HEADER ===== */
.site-header {
    width: 100%;
    height: 70px;

    background: var(--menu-bg);
    color: var(--menu-text);

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* =====  NAVBAR ===== */
.navbar {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ========================================
   LOGO
   ======================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 1.3rem;
    font-weight: bold;

    white-space: nowrap;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}


/* ========================================
   MENU
   ======================================== */

.menu {
    display: flex;
    align-items: center;
    gap: 5px;

    list-style: none;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;

    padding: 25px 16px;

    font-size: 0.95rem;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.menu > li > a:hover {
    background: var(--menu-hover);
    color: var(--menu-text);
}


.has-submenu > a::after {
    content: " ▾";
    font-size: 0.7em;
    margin-left: 4px;
}

.has-submenu.open > a::after {
    content: " ▴";
}

/* ========================================
   SOUS-MENU
   ======================================== */


.submenu {
    position: absolute;

    top: 70px;
    left: 0;

    min-width: 190px;

    background: var(--submenu-bg);

    list-style: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}

.menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;

    padding: 13px 16px;

    color: var(--submenu-text);
}

.submenu a:hover {
    background: var(--submenu-hover);
    color: var(--menu-text);
}


/* ========================================
   BOUTON HAMBURGER
   ======================================== */

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;

    background: transparent;
    color: var(--menu-text);

    font-size: 28px;

    cursor: pointer;
}

  /* -------------------------
       IMAGES
       ------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   IMAGES RESPONSIVES
   ======================================== */

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* centrage horizontal */
}




/* ========================================
   ÉVÉNEMENTS
   ======================================== */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 24px;

    border-left: 4px solid var(--menu-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--menu-bg);
    margin-bottom: 6px;
}

.event-libelle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: #666;
}

/* Événements passés : grisés, discrets */
.event-card.event-past {
    opacity: 0.5;
    border-left-color: #bbb;
}

.event-card.event-past .event-date {
    color: #999;
}









.replay-webp {
    max-width: 100%;
    height: auto;
}

	
/* ========================================
   CONTENU DES PAGES
   ======================================== */

.page-container {
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    /*padding: 24px;*/
    padding: 94px 24px 24px;
}

/* ========================================
   EN-TÊTE DU CLUB
   ======================================== */
.club-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.club-logo {
    width: 118px;
    height: 115px;
    object-fit: contain;
    flex-shrink: 0;
}

.club-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    color: #666;
}

/* ========================================
   LIENS UTILES
   ======================================== */
.useful-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.useful-links li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;

}

.useful-links li:hover {
    background: #f0fbfd;
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

.useful-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-weight: 500;
    color: var(--menu-hover);
}

.useful-links a::before {
    content: "→";
    color: var(--menu-bg);
    font-weight: bold;
}
/* ========================================
   CARTES D'INFOS
   ======================================== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    color: #444;

    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;

    border-left: 4px solid var(--menu-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-grid:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-grid .label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--menu-hover);
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid p {
    line-height: 1.7;
}
/* ========================================
   CONTACT
   ======================================== */

.contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;

    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row .label {
    font-weight: 600;
    color: #222;
}

.contact-row .label::after {
    content: " :";
}

.contact-row a {
    color: var(--menu-hover);
    text-decoration: underline;
    text-decoration-color: var(--menu-bg);
    text-underline-offset: 3px;
}

.contact-row a:hover {
    color: var(--menu-bg);
}
/* ========================================
   TABLEAU DES LIGUES
   ======================================== */

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.leagues-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9rem;
}

.leagues-table thead th {
    background: var(--menu-bg);
    color: #fff;
    text-align: left;
    padding: 14px 16px;
    white-space: nowrap;
}

.leagues-table thead th:first-child {
    border-top-left-radius: 10px;
}

.leagues-table thead th:last-child {
    border-top-right-radius: 10px;
}

.leagues-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.leagues-table tbody tr:hover {
    background: #f0fbfd;
}

.leagues-table .season {
    font-weight: 700;
    color: #222;
}

.leagues-table a {
    text-decoration: underline;
    text-decoration-color: var(--menu-bg);
    text-underline-offset: 3px;
}

.leagues-table a:hover {
    color: var(--menu-bg);
}

/* Lien règlement */
.rules-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 16px;

    font-weight: 500;
    color: var(--menu-hover);

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rules-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rules-link img {
    border-radius: 4px;
}

/* ========================================
   SECTIONS
   ======================================== */

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 600;

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 1px solid #ddd;
}

.content-section p {
    color: #444;

    line-height: 1.7;
}


/* ========================================
   INFOS PRATIQUES
   ======================================== */

.info-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 16px;

    color: #444;
}

.label {
    font-weight: 600;

    margin-bottom: 4px;
}

.info-grid a {
    color: #333;
    text-decoration: underline;
}

.info-grid a:hover {
    color: #666;
}


/* ========================================
   BUREAU
   ======================================== */

.bureau {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.bureau-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bureau-role {
    width: 140px;
    flex-shrink: 0;
    color: var(--bureau-role-color);
}

.bureau-name {
    font-weight: 500;
}

.separator {
    color: #aaa;

    margin: 0 4px;
}

.members {
    display: flex;
    flex-direction: column;

    gap: 4px;

    font-weight: 500;
}


/* ========================================
   RESPONSIVE
   ======================================== */
/* =--------------------------=======================================
   RESPONSIVE @media
   ===========================--------------------------============= */

@media (max-width: 768px) {

    .site-header {
        height: 60px;
    }

    .navbar {
        padding: 0 15px;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    /* -------------------------
       HAMBURGER
       ------------------------- */
    .menu-button {
        display: block;
    }
    /* -------------------------
       MENU MOBILE
       ------------------------- */

    .menu {
        position: absolute;

        top: 60px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: stretch;

        background: var(--menu-bg);

        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .menu.open {
        display: flex;
    }


    /* -------------------------
       ENTRÉES
       ------------------------- */

    .menu > li {
        width: 100%;
    }

    .menu > li > a {
        padding: 16px 20px;

        border-top: 1px solid var(--border-color);
    }


    /* -------------------------
       SOUS-MENU MOBILE
       ------------------------- */

    .submenu {
        position: static;

        width: 100%;

        display: none;

        opacity: 1;
        visibility: visible;
        transform: none;

        background: var(--submenu-bg);
    }

    .menu > li.open .submenu {
        display: block;
    }

    .submenu a {
        padding-left: 40px;
    }


    .page-container {
        padding: 80px 16px 20px; /*  80px en haut pour compenser le header 60px */
    }

    /* -------------------------
       EN-TÊTE
       ------------------------- */
    .club-header {
        gap: 16px;

        margin-bottom: 32px;
    }

    .club-logo {
        width: 85px;
        height: 83px;
    }

    .club-header h1 {
        font-size: 1.25rem;
    }

    /* -------------------------
       BUREAU
       ------------------------- */
    .bureau-row {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .separator {
        display: none;
    }

}
