@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/open-sans-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/archivo-narrow-latin.woff2") format("woff2");
}

:root {
    --primary-color: #3987bd;
    --secondary-color: #d74444;
    --sand-color: #e0d4be;
    --bg-light: #f7f7f7;
    --text-dark: #444444;
    --card-bg: #ffffff;
    --font-main: "Open Sans", Arial, sans-serif;
    --font-navigation: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   STYLES DU PORTAIL (INDEX.HTML)
   ========================================= */
.main-header {
    background-color: var(--sand-color);
    color: var(--text-dark);
    padding: 0 1rem;
    border-bottom: 1px solid rgba(68, 68, 68, 0.18);
}

.main-header-inner {
    max-width: 1200px;
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.main-brand-copy h1 {
    font-family: var(--font-navigation);
    font-size: 1.2rem;
    line-height: 1.25;
}

.main-brand-copy p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.header-home-link {
    margin-left: auto;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}

.header-home-link:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.club-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid #d6d1c8;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.intro-grid .club-intro {
    max-width: none;
    margin: 0;
}

.history-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.foyer-section {
    margin-top: 2rem;
    margin-bottom: 0;
}

.foyer-map {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 4px;
}

.foyer-map-link,
.history-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #2679ad;
    text-decoration: none;
}

.foyer-map-link:hover,
.history-link:hover {
    text-decoration: underline;
}

.club-intro .section-title {
    margin-bottom: 1rem;
}

.club-intro p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.club-intro p:last-child {
    margin-bottom: 0;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.sport-card {
    background-color: var(--card-bg);
    border: 1px solid #d6d1c8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-rows: auto 1fr;
}

.sport-header {
    background-color: var(--sand-color);
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(68, 68, 68, 0.16);
    list-style: none;
}

.sport-header::-webkit-details-marker {
    display: none;
}

.sport-body {
    padding: 2rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sport-link {
    display: block;
    margin-top: auto;
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.sport-link:hover {
    background-color: var(--secondary-color);
}

/* =========================================
   STYLES DES SOUS-PAGES (FOOT / BILLARD)
   ========================================= */

/* Barre de navigation */
.sub-nav {
    background-color: var(--sand-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(68, 68, 68, 0.18);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    gap: 1rem;
}

.nav-brand {
    font-family: var(--font-navigation);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

.nav-links a {
    font-family: var(--font-navigation);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Bannière */
.hero-section {
    background-color: var(--sand-color);
    background-size: cover;
    background-position: center;
    color: var(--text-dark);
    text-align: center;
    padding: 2.75rem 1rem;
    border-bottom: 1px solid rgba(68, 68, 68, 0.18);
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.hero-content p {
    font-size: 1.05rem;
}

.sport-hero-image {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: clamp(180px, 30vw, 340px);
    margin: 1.5rem auto 0;
    object-fit: cover;
    border-radius: 4px;
}

/* Contenu des pages */
.content-section {
    padding-bottom: 4rem;
}

.content-section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.page-section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

.page-section .section-title {
    margin-bottom: 1.5rem;
}

/* Grille d'infos (Horaires, Tarifs...) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--sand-color);
    padding: 1.5rem;
    border-radius: 3px;
    border: 1px solid rgba(68, 68, 68, 0.18);
}

.info-card p {
    font-size: 1rem;
    text-align: left;
    max-width: none;
    margin: 0 0 1rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(68, 68, 68, 0.18);
    padding-bottom: 0.5rem;
}

.contact-details a {
    color: #2679ad;
    overflow-wrap: anywhere;
}

.info-card ul {
    list-style-type: none;
}

.info-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.info-card ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* FOOTER COMMUN */
footer {
    background-color: var(--sand-color);
    color: var(--text-dark);
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(68, 68, 68, 0.18);
}

footer a {
    color: #2679ad;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 700px) {
    .main-header-inner {
        min-height: 62px;
    }

    .site-logo {
        width: 42px;
        height: 42px;
    }

    .main-brand-copy h1 {
        font-size: 1.05rem;
    }

    .main-brand-copy p {
        font-size: 0.7rem;
    }

    .header-home-link {
        font-size: 0.8rem;
    }

    .nav-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.35rem 0.9rem;
        padding-left: 0;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .sports-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .sport-header {
        position: relative;
        cursor: pointer;
    }

    .sport-header::after {
        content: "+";
        position: absolute;
        right: 1.25rem;
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 1;
    }

    .sport-card[open] > .sport-header::after {
        content: "−";
    }
}