/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

/* --- HEADER NAVIGATION STYLE ORIGINEL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* --- NEW UTILITIES --- */
.text-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}

header {
    background-color: rgba(10, 10, 10, 0.95);
    margin-top: 0px;
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid #ff1a1a;
}

.nav-toggle {
    display: none;
    margin: 12px 16px;
    margin-left: auto;
    width: 48px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    content: '';
}

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before {
    position: absolute;
    top: -7px;
    left: 0;
}

.nav-toggle-bar::after {
    position: absolute;
    top: 7px;
    left: 0;
}

header.menu-open .nav-toggle-bar {
    background-color: transparent;
}

header.menu-open .nav-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
}

header.menu-open .nav-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: block;
    padding: 20px 25px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    position: relative;
}

.nav-item>a:hover {
    color: #ff3333;
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* --- ACTIVE NAV LINK --- */
.nav-item>a.active {
    color: #dc2626;
}

.nav-item>a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
}

/* --- CORRECTION DROPDOWN (PROPRE AU STYLE ORIGINEL) --- */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    list-style: none;
    min-width: 200px;
    border-bottom: 3px solid #dc2626;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.has-submenu {
    position: relative;
}

.subdropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    min-width: 230px;
    background-color: #0a0a0a;
    border-left: 2px solid #dc2626;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    z-index: 2100;
}

.nav-item:hover {
    z-index: 2001;
}

.nav-item:hover .dropdown {
    display: block;
}

.has-submenu:hover>.subdropdown {
    display: block;
}

.dropdown li a {
    padding: 15px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    font-family: 'Oswald', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.dropdown li a:hover {
    background-color: #dc2626;
    color: white;
}

/* --- SOCIAL BAR STYLE ORIGINEL --- */
.social-bar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: black;
}

.social-icon:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.social-icon:hover svg {
    fill: white;
}

:root {
    --viking-red: #ff1a1a;
    --dark-bg: rgba(15, 15, 15, 0.9);
    --card-bg: rgba(30, 30, 30, 0.8);
}

/* La grille : s'adapte automatiquement au nombre de joueurs */
.roster-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* Cartes plus petites */
    gap: 15px;
    padding: 20px;
}

.player-card {
    background: var(--card-bg);
    border-top: 3px solid var(--viking-red);
    color: white;
    text-align: center;
    overflow: hidden;
    font-family: sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(220, 38, 38, 0.5);
}

/* Format Portrait pour l'image */
.player-photo {
    position: relative;
    width: 100%;
    height: 240px;
    /* Ratio portrait */
    background: #000000;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remplit le cadre sans déformer */
    object-position: center top;
}

/* Le numéro rouge en bas à gauche de la photo */
.player-number {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--viking-red);
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.player-info {
    padding: 10px 5px;
}

.player-name {
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.player-name span {
    color: var(--viking-red);
}

.player-position {
    font-size: 0.75rem;
    color: #bbb;
    font-style: italic;
    margin-bottom: 8px;
}

/* Stats compactes en bas */
.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #333;
    padding-top: 5px;
    font-size: 0.7rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #666;
    font-size: 0.6rem;
}

.stat-value {
    font-weight: bold;
}


/* --- PAGE PROJET --- */
.page-projet .projet-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-projet .projet-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 250px;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* Effet au survol */
.page-projet .projet-card:hover {
    border-color: var(--viking-red);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

.page-projet .projet-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-projet .projet-info h2 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.page-projet .projet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-projet .projet-info p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-projet .projet-footer {
    margin-top: auto;
    padding-top: 20px;
    color: var(--viking-red);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.page-projet .projet-card:hover .projet-footer {
    opacity: 1;
}

/* Style pour les cases vides */
.page-projet .projet-card.empty {
    border: 1px dashed #444;
    background: transparent;
    cursor: default;
}

.page-projet .projet-card.empty h2 {
    color: #555;
}

@media (max-width: 768px) {
    .page-projet .projet-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-projet .projet-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
}

/* Style commun pour les titres de toutes les pages */
.page-staff .section-title,
.page-projet .section-title,
.page-roster .section-title,
.page-sponsors .section-title,
.page-partenaires .section-title,
.page-contact .section-title,
.page-presentation .section-title,
.page-inscriptions .section-title,
.page-entrainements .section-title,
.page-terrains .section-title,
.page-sensibilisation .section-title {
    text-align: center;
    padding: 60px 20px 40px 20px;
    background: rgba(15, 15, 15, 0.85);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-staff .section-title h1,
.page-projet .section-title h1,
.page-roster .section-title h1,
.page-sponsors .section-title h1,
.page-partenaires .section-title h1 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    /* Pour l'aspect massif comme sur ton image */
    font-size: clamp(2rem, 8vw, 3.5rem);
    /* S'adapte à la taille de l'écran */
    margin: 0;
    letter-spacing: 3px;
    line-height: 1;
}

/* Le mot en rouge (toujours dans le span) */
.section-title h1 span {
    color: var(--viking-red);
}

/* La ligne rouge sous le titre */
.red-line {
    width: 100px;
    height: 5px;
    background-color: var(--viking-red);
    margin: 20px auto 0 auto;
    border-radius: 2px;
}


/* ==========================================================================
   PAGE STAFF - AFFICHAGE EN LIGNE
   ========================================================================== */
.staff-info-manual .staff-desc {
    color: var(--viking-red);
    /* Ou blanc selon ta préférence */
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px 0;
}

/* Pour s'assurer que les colonnes restent alignées horizontalement */
.page-staff-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 40px;
    overflow-x: auto;
    align-items: flex-start;
}


.staff-desc {
    color: #ffffff;
    /* Blanc pour être lisible */
    font-size: 0.9rem;
    font-weight: bold;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fond de page général */
body.page-staff {
    background-color: #ffffff;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* 1. TITRE DE LA PAGE */
.page-staff .section-title {
    text-align: center;
    padding: 50px 20px 30px 20px;
    background: linear-gradient(to bottom, #111, #0a0a0a);
}

.page-staff .section-title h1 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-staff .section-title h1 span {
    color: #e61e1e;
}

.page-staff .red-line {
    width: 80px;
    height: 5px;
    background-color: #e61e1e;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* 2. CONTENEUR PRINCIPAL */
.page-staff-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 3. CHAQUE SECTION (Dirigeants, Entraineurs, etc.) */
.staff-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-title {
    color: #e61e1e;
    font-family: 'Oswald', sans-serif;
    border-bottom: 3px solid #e61e1e;
    padding-bottom: 12px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 1.8rem;
    text-align: center;
}

/* 4. GRILLE DE CARTES EN LIGNE */
.staff-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
}

/* Le titre ne doit pas être dans la grille */
.category-title {
    grid-column: 1 / -1;
    /* Prend toute la largeur */
}

/* 5. CARTES STAFF */
.staff-card-manual {
    background: #1a1a1a;
    border-left: 5px solid var(--viking-red);
    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card-manual:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.3);
}

.staff-photo-manual {
    width: 100%;
    background: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.staff-photo-manual img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.staff-info-manual {
    padding: 20px 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-info-manual h2 {
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-align: left;
    /* Aligné à gauche comme sur l'image */
    padding-left: 10px;
}

.staff-info-manual h2 span {
    color: #858585;
    /* Gris pour le nom de famille */
    display: block;
}

.staff-desc-top {
    background-color: #000000;
    color: var(--viking-red);
    /* Rouge comme sur l'image */
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: 100%;
}

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    .staff-column {
        grid-template-columns: 1fr;
    }

    .page-staff .section-title h1 {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.4rem;
    }
}

/* --- PAGE ROSTER FLAG JEUNE --- */
.page-jeune .horizontal-container,
.page-competition .horizontal-container,
.page-flag-adapté .horizontal-container {
    display: flex;
    flex-direction: row;
    /* Alignement horizontal des catégories */
    gap: 50px;
    padding: 40px;
    overflow-x: auto;
    /* Scroll horizontal si trop de colonnes */
    align-items: flex-start;
}

.page-jeune .age-column,
.page-competition .age-column,
.page-flag-adapté .age-column {
    flex: 0 0 300px;
    /* Largeur fixe par catégorie d'âge */
    display: flex;
    flex-direction: column;
    /* Les enfants l'un sous l'autre dans la catégorie */
    gap: 15px;
}

.page-jeune .section-title,
.page-competition .section-title,
.page-flag-adapté .section-title {
    text-align: center;
    padding: 50px 20px 30px 20px;
    background: rgba(15, 15, 15, 0.85);
}

.page-jeune .category-header,
.page-competition .category-header,
.page-flag-adapté .category-header {
    color: var(--viking-red);
    font-family: 'Oswald', sans-serif;
    border-bottom: 3px solid var(--viking-red);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

/* Carte minimaliste pour les enfants */
.page-jeune .kid-photo,
.page-competition .kid-photo,
.page-flag-adapté .kid-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Photo en cercle pour les jeunes */
    overflow: hidden;
    background: #333;
}

.page-jeune .kid-photo img,
.page-competition .kid-photo img,
.page-flag-adapté .kid-photo img {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Container des infos à côté de la photo */
.page-jeune .kid-info,
.page-competition .kid-info,
.page-flag-adapté .kid-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-competition .kid-name .page-flag-adapté .kid-name,
.page-jeune .kid-name .page-flag-adapté .kid-name {
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.1;
}

/* Style pour le Poste */
.page-competition .kid-position,
.page-jeune .kid-position .page-flag-adapté .kid-position {
    color: var(--viking-red);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-top: 3px;
    letter-spacing: 1px;
}

/* On ajuste un peu la carte pour que l'info soit bien centrée */
.page-jeune .kid-card,
.page-flag-adapté .kid-card,
.page-competition .kid-card {
    background: #1a1a1a;
    border-left: 4px solid var(--viking-red);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jeune .kid-card:hover,
.page-flag-adapté .kid-card:hover,
.page-competition .kid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.2);
}

/* Conteneur global */
.jeunes-main-container,
.flag-adapté-main-container {
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Espace entre les blocs U18, U15... */
}

/* Bloc d'une catégorie */
.category-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Titre de la catégorie (ex: U18) */
.page-flag-adapté .category-title-horizontal,
.page-jeune .category-title-horizontal {
    color: var(--viking-red);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--viking-red);
    width: 100%;
    max-width: 150px;
    /* Pour que la barre rouge ne soit pas trop longue */
}

.page-competition .category-title-horizontal {
    color: var(--viking-red);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--viking-red);
    width: 100%;
    max-width: 250px;
    /* Pour que la barre rouge ne soit pas trop longue */
}

.page-flag-adapté .category-title-horizontal {
    max-width: 200px;
}

/* LA LIGNE DE CARTES (C'est ici que l'alignement horizontal se joue) */
.cards-row {
    display: flex;
    flex-direction: row;
    /* Cartes côte à côte */
    flex-wrap: wrap;
    /* Si trop de cartes, elles passent à la ligne suivante */
    gap: 20px;
    /* Espace entre les cartes */
    width: 100%;
}

/* Style des cartes individuelles */
.kid-card-horizontal {
    background: #1a1a1a;
    border-left: 4px solid var(--viking-red);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 15px;
    width: 250px;
    /* Largeur fixe pour que les cartes soient alignées */
    min-height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kid-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.2);
}

.kid-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.kid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kid-name {
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
}

.kid-position {
    color: var(--viking-red);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Style de la Modale (Arrière-plan noir transparent) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* Contenu de la carte en grand */
.modal-content {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.modal-content img {
    max-width: 80%;
    max-height: 60vh;
    border: 5px solid var(--viking-red);
    box-shadow: 0 0 30px rgba(230, 30, 30, 0.4);
}

.modal-details {
    text-align: center;
    margin-top: 20px;
}

.modal-details h2 {
    font-size: 3rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Responsive pour les pages Jeunes / Flag Adapté */
@media (max-width: 768px) {

    .jeunes-main-container,
    .flag-adapté-main-container {
        padding: 20px 10px;
        /* Moins de padding sur mobile */
    }

    .cards-row {
        justify-content: center;
        /* Centrer les cartes si elles sont seules sur la ligne */
    }

    .kid-card-horizontal {
        width: 100%;
        /* La carte prend toute la largeur dispo */
        max-width: 350px;
        /* Mais pas trop large non plus */
        justify-content: flex-start;
        /* Garder le contenu aligné à gauche */
    }

    .category-title-horizontal {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Bouton Fermer */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   GLOBAL RESPONSIVENESS & CENTRALIZED STYLES
   ========================================================================== */

/* --- RESPONSIVE NAVIGATION --- */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    nav {
        width: 100%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        padding: 0;
        width: 100%;
        background: #080808;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    header.menu-open .nav-menu {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: left;
    }

    .nav-item>a {
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-item.is-open>a,
    .has-submenu.is-open>a {
        background-color: rgba(220, 38, 38, 0.12);
        color: #ff5c5c;
    }

    /* Dropdown on Mobile */
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-bottom: none;
        display: none;
        background-color: #111;
    }

    .nav-item.is-open>.dropdown {
        display: block;
    }

    .subdropdown {
        position: static;
        display: none;
        min-width: 100%;
        border-left: none;
        box-shadow: none;
        background-color: #0f0f0f;
    }

    .dropdown li a {
        padding-left: 30px;
        background-color: #111;
    }

    .subdropdown li a {
        padding-left: 45px;
        font-size: 11px;
        background-color: #0f0f0f;
    }

    .has-submenu.is-open>.subdropdown {
        display: block;
    }
}

/* --- GLOBAL LAYOUT RESPONSIVENESS --- */
img {
    max-width: 100%;
    height: auto;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* --- STYLES IMPORTED FROM INDEX.HTML & ACTUALITES.HTML --- */

/* Fixed Background */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("images/34061038.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: -1;
}

/* Hero Section (Index) */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 40px;
    padding: 0 10px;
}

.main-logo-container {
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}

.main-logo-circle {
    width: 150px;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.main-logo-circle img,
.main-logo-circle svg {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.welcome-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Responsive font size */
    text-transform: uppercase;
    color: #dc2626;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 20px rgba(220, 38, 38, 0.8);
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    word-wrap: break-word;
    /* Prevent overflow */
}

.welcome-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    /* Responsive */
    font-weight: 300;
    color: #fff;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* Calendar Section (Redesigned) */
.calendar-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.calendar-container {
    background: #1a1a1a;
    /* Dark card background */
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* For rounded corners if desired, or clean edges */
}

.calendar-header {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    padding: 15px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #991b1b;
}

.calendar-title {
    font-family: 'Oswald', sans-serif;
    /* Consistent with other headers */
    font-size: 1.5rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

#matches-container {
    padding: 0;
    /* Removing padding to let cards touch edges if needed, or keeping it minimal */
}

.match-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    /* Semi-transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-left: 4px solid transparent;
}

.match-card:last-child {
    border-bottom: none;
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #dc2626;
}

.match-info-date {
    flex: 0 0 140px;
}

.match-info-content {
    flex: 1;
    min-width: 200px;
}

.match-info-extra {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
}

.match-info-time {
    flex: 0 0 100px;
    text-align: right;
}

/* Responsive Match Card logic */
@media (max-width: 900px) {
    .match-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 25px 15px;
        gap: 15px;
    }

    .match-info-date,
    .match-info-content,
    .match-info-extra,
    .match-info-time {
        flex: none;
        width: 100%;
        text-align: center;
    }
}

.match-date {
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-teams {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    display: block;
}

.match-time {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
}

.match-category-tag {
    color: #fff;
    background-color: rgba(220, 38, 38, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(220, 38, 38, 0.4);
    letter-spacing: 0.5px;
    display: inline-block;
}

.match-category-tag:empty {
    display: none;
}

.loading-message,
.error-message,
.no-matches {
    text-align: center;
    padding: 50px;
    color: #888;
    font-style: italic;
    background: #1a1a1a;
}

/* Actualites Page Styles */
.page-header {
    text-align: center;
    margin: 40px 0;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    color: #dc2626;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.social-feed-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 60px 0;
    /* Adjusted padding */
    width: 100%;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* Stack on mobile */
}

.tab-button {
    flex: 1;
    min-width: 120px;
    /* Minimum width */
    max-width: 200px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    border: 1px solid #333;
    cursor: pointer;
    font-family: 'Impact', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tab-button:hover {
    background-color: rgba(220, 38, 38, 0.3);
}

.tab-button.active {
    background-color: #dc2626;
    border-color: #dc2626;
}

.tab-button.facebook {
    border-top: 3px solid #1877F2;
}

.tab-button.instagram {
    border-top: 3px solid #E4405F;
}

.tab-button.tiktok {
    border-top: 3px solid #ffffff;
}

.feed-content {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #333;
    padding: 20px;
    min-height: 800px;
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
    /* Prevent IFrames from breaking layout */
}

.feed-section {
    display: none;
    width: 100%;
}

.feed-section.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Iframe Responsiveness */
.fb-page,
.fb-page span,
.fb-page iframe {
    width: 100% !important;
    max-width: 500px;
}

iframe {
    max-width: 100%;
}

.match-info-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.match-category {
    color: #dc2626;
    /* Ton rouge Viking */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Vikings TV STYLES --- */
.tv-main-container {
    padding: 60px 20px;
    max-width: 1000px;
    /* Réduit pour mieux centrer sur de grands écrans */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.tv-container {
    width: 100%;
    max-width: 900px;
    /* Taille optimale pour le lecteur */
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #dc2626;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tv-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

.tv-title {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tv-status {
    color: #dc2626;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #dc2626;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.loading-tv {
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.error-tv {
    padding: 50px 20px;
    text-align: center;
    color: #dc2626;
    font-weight: bold;
}

/* --- GLOBAL FOOTER STYLES --- */
.site-footer {
    background: transparent;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dc2626;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 5px;
}

/* --- ADDITIONAL RESPONSIVENESS FIXES --- */
@media (max-width: 600px) {
    .page-title {
        font-size: 2.5rem;
    }

    .social-bar {
        gap: 10px;
        padding: 8px 0;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    .footer-separator {
        display: none;
    }
}


/* Fix for horizontal scroll on very small devices */
body {
    overflow-x: hidden;
}

.content-wrapper {
    overflow-x: hidden;
}

/* --- FOOTER VISIBILITY ON WHITE PAGES --- */
body:not(.fixed-bg-active) .site-footer .footer-links a {
    color: rgba(0, 0, 0, 0.7) !important;
}

body:not(.fixed-bg-active) .site-footer .footer-links a:hover {
    color: #dc2626 !important;
}

body:not(.fixed-bg-active) .site-footer .footer-separator {
    color: rgba(0, 0, 0, 0.5) !important;
}

body:not(.fixed-bg-active) .site-footer .footer-copyright {
    color: rgba(0, 0, 0, 0.6) !important;
}

body:not(.fixed-bg-active) .site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* --- GLOBAL TEXT COLOR ON WHITE PAGES --- */
body:not(.fixed-bg-active) {
    color: #1a1a1a;
}

body:not(.fixed-bg-active) .content-wrapper {
    color: #1a1a1a;
}

/* Centrage correct pour la page projet */
.page-projet .section-title {
    text-align: center;
    width: 100%;
}

.page-projet .projet-container {
    justify-items: center;
}

/* ==========================================================================
   INFORMATION PAGES STYLES (Contact, Presentation, Inscriptions, etc.)
   ========================================================================== */

/* --- CONTACT PAGE --- */
.page-contact {
    background: transparent;
    color: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 3px solid #dc2626;
    border-radius: 8px;
}

.form-section {
    background: rgba(26, 26, 26, 0.95);
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid #dc2626;
}

.form-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #dc2626;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 10px;
}

.contact-info {
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #dc2626;
    text-decoration: none;
    font-weight: bold;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #555;
    background: #2a2a2a;
    color: #fff;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #dc2626;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.success-message,
.error-message {
    display: none;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    background: #10b981;
    color: white;
}

.error-message {
    background: #ef4444;
    color: white;
}

/* --- PRESENTATION PAGE --- */
.page-presentation {
    background: transparent;
    color: #fff;
}

.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.intro-section {
    text-align: center;
    margin-bottom: 60px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    max-width: 900px;
    margin: 20px auto;
}

.sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.info-section {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.inner-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #dc2626;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 10px;
}

.timeline-item,
.palmares-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.timeline-item:last-child,
.palmares-item:last-child {
    border-bottom: none;
}

.timeline-year,
.palmares-year {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #dc2626;
}

.timeline-content,
.palmares-content {
    color: #ddd;
    line-height: 1.6;
}

.affiliation-section {
    background: rgba(26, 26, 26, 0.95);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.affiliation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    margin: 20px 0;
}

.fffa-logo {
    max-width: 200px;
    margin: 20px auto;
}

/* --- INSCRIPTIONS PAGE --- */
.page-inscriptions {
    background: transparent;
    color: #fff;
}

.inscriptions-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.inscription-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.highlight-text {
    background: #dc2626;
    color: white;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 30px 0;
}

.helloasso-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    letter-spacing: 1px;
}

.helloasso-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
}

.info-section {
    margin: 40px 0;
}

.info-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
}

.info-list li:before {
    content: "▸";
    color: #dc2626;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- ENTRAINEMENTS PAGE --- */
.page-entrainements {
    background: transparent;
    color: #fff;
}

.entrainements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.horaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.horaire-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.horaire-card:hover {
    transform: translateY(-5px);
}

.horaire-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #dc2626;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.horaire-card p {
    margin: 10px 0;
    line-height: 1.6;
}

/* --- TERRAINS PAGE --- */
.page-terrains {
    background: transparent;
    color: #fff;
}

.terrains-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.terrain-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: start;
}

.terrain-map iframe {
    width: 100%;
    height: 300px;
    border: 3px solid #dc2626;
    border-radius: 8px;
}

.terrain-info {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.terrain-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #dc2626;
    margin-bottom: 20px;
}

/* --- SENSIBILISATION PAGE --- */
.page-sensibilisation {
    background: #151515;
    color: #fff;
}

.sensibilisation-hero {
    text-align: center;
    padding: 60px 20px;
    background: url('https://img.freepik.com/free-photo/american-football-player-posing-isolated-black-background_155003-12563.jpg?t=st=1739316000~exp=1739319600~hmac=ExampleHash') no-repeat center center/cover;
    /* Placeholder background */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.7);
    margin-bottom: 40px;
    border-bottom: 3px solid #dc2626;
}

.sensibilisation-hero h1 {
    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
    color: #fff;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.sensibilisation-hero h2 {
    font-size: 2.5rem;
    font-family: 'Oswald', sans-serif;
    color: #dc2626;
    margin: 10px 0 0 0;
    text-transform: uppercase;
}

.sensibilisation-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-column h3 {
    color: #dc2626;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

.highlight-box {
    background: #222;
    padding: 30px;
    border-left: 5px solid #dc2626;
    margin: 40px 0;
}

.highlight-box h3 {
    color: #dc2626;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 15px;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    padding: 10px 0 10px 25px;
    position: relative;
}

.highlight-box li:before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: 5px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.resource-card {
    background: #fff;
    color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Specific card stylings to mimic posters */
.card-119 {
    border-top: 10px solid #e11d2e;
}

.card-3018 {
    border-top: 10px solid #3b5998;
}

.card-114 {
    border-top: 10px solid #0099cc;
}

.card-reglo {
    border-top: 10px solid #5cb85c;
}

.card-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.big-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.card-119 .big-number {
    color: #e11d2e;
}

.card-3018 .big-number {
    color: #3b5998;
}

.card-114 .big-number {
    color: #0099cc;
}

.card-reglo .big-number {
    font-size: 2rem;
    color: #5cb85c;
}

.card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-button {
    display: block;
    width: 100%;
    background: #dc2626;
    /* Default red */
    color: white;
    text-align: center;
    padding: 15px 0;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #b91c1c;
}

.card-footer-yellow {
    background: #fbbf24;
    color: #000;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN FOR INFO PAGES --- */
@media (max-width: 768px) {

    .contact-grid,
    .sections-grid,
    .terrain-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 20px;
    }

    .horaires-grid {
        grid-template-columns: 1fr;
    }
}

/* --- GLOBAL FIXED BACKGROUND STYLE --- */
body.fixed-bg-active {
    background: none !important;
    background-color: transparent !important;
}

/* ==========================================================================
   RICH FOOTER
   ========================================================================== */
.site-footer {
    background: #111;
    padding: 0;
    margin-top: 60px;
    border-top: 4px solid #dc2626;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 30px 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #dc2626;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: #dc2626;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0;
}

.footer-social a:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 30px;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    margin-top: 5px;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Stagger delays for children */
.fade-in-up:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    transition-delay: 0.3s;
}

.fade-in-up:nth-child(5) {
    transition-delay: 0.4s;
}

/* ==========================================================================
   SECTION DIVIDERS
   ========================================================================== */
.section-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.4), transparent);
    margin: 50px 0;
    border: none;
}

.section-divider-sm {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 30px 0;
    border: none;
}

/* ==========================================================================
   IMPROVED PROJET CARDS
   ========================================================================== */
.page-projet .projet-card {
    background: linear-gradient(145deg, #1a1a1a, #111);
    border-top: 4px solid #dc2626;
    border-left: none;
}

.page-projet .projet-card:hover {
    background: linear-gradient(145deg, #222, #1a1a1a);
}

.page-projet .projet-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.3));
}

/* ==========================================================================
   HOMEPAGE: CLUB STATS SECTION
   ========================================================================== */
.club-stats-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.club-stats-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: white;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.club-stats-title span {
    color: #dc2626;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #dc2626;
    border-radius: 0 0 4px 4px;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ==========================================================================
   HOMEPAGE: CTA SECTION
   ========================================================================== */
.cta-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
}

.cta-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: white;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
}

/* Responsive for stat cards */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.tab-button.active {
    background: #dc2626;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
}

/* Feed Content */
.feed-content {
    display: flex;
    justify-content: center;
    min-height: 700px;
}

.feed-section {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.feed-section.active {
    display: block;
}

/* ===== PAGE DEVENIR PARTENAIRE ===== */
.partenaires-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

.partner-hero,
.partner-card,
.partner-stats {
    background: rgba(12, 12, 12, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.partner-hero {
    padding: 28px;
    border-left: 5px solid #dc2626;
}

.partner-kicker {
    color: #ff5252;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.partner-hero .intro-text {
    margin: 0;
    max-width: 900px;
    font-size: 1.05rem;
}

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

.partner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid #dc2626;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.partner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35);
}

.partner-btn-outline {
    background: transparent;
    color: #fff;
}

.partner-btn-disabled,
.partner-btn:disabled {
    background: #404040;
    border-color: #565656;
    color: #d2d2d2;
    cursor: not-allowed;
    box-shadow: none;
}

.partner-btn-disabled:hover,
.partner-btn:disabled:hover {
    transform: none;
}

.partner-grid,
.partner-doc-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.partner-card {
    padding: 24px;
}

.partner-card h2,
.partner-stats h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: #fff;
    margin-bottom: 14px;
}

.partner-card p {
    color: #e5e5e5;
    margin: 0 0 12px 0;
}

.partner-contact-card a[href^="mailto:"],
.partner-contact-card a[href^="tel:"] {
    color: #ff5a5a;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 90, 90, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.partner-contact-card a[href^="mailto:"]:hover,
.partner-contact-card a[href^="tel:"]:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.partner-card ul {
    padding-left: 18px;
    margin: 0;
}

.partner-card li {
    margin-bottom: 9px;
    color: #f2f2f2;
}

.partner-stats {
    padding: 24px;
}

.partner-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.partner-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
    padding: 16px 12px;
}

.partner-stat-value {
    display: block;
    font-size: 1.9rem;
    font-family: 'Oswald', sans-serif;
    color: #ff5757;
    line-height: 1.1;
}

.partner-stat-label {
    display: block;
    margin-top: 6px;
    color: #ececec;
    font-size: 0.9rem;
}

.partner-link-inline {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    align-self: center;
}

.partner-link-inline:hover {
    text-decoration: underline;
}

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

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

@media (max-width: 520px) {
    .partner-hero,
    .partner-card,
    .partner-stats {
        padding: 18px;
        border-radius: 10px;
    }

    .partner-stats-grid {
        grid-template-columns: 1fr;
    }

    .partner-btn {
        width: 100%;
    }
}

/* ===== FILTRES ROSTER ===== */

.roster-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0 20px 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid #c40000;
    color: #ffffff;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #c40000;
}

.filter-btn.active {
    background: #c40000;
    color: #fff;
}

/* ==========================================================================
   FIXE LES FOOTER 
*/
.page-roster {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-roster #roster-grid {
    flex: 1;
}

/* ==================
CROIX RESPONSIVE FLAG 
*/
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    /* Agrandit la zone de tap sur mobile */
    padding: 10px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
Page projet - supprimé les règles génériques en conflit
(les règles .page-projet .projet-xxx dans la section PAGE PROJET gèrent tout)
*/
