/* --- 1. Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Ajoute un défilement doux pour les ancres */
}

body {
    background-color: var(--primary-bg);
    color: var(--text-light);
    font-family: 'Jancient', sans-serif; /* Assurez-vous que cette police est importée ou disponible */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Améliore le rendu des polices */
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Empêche les espaces sous les images */
}

/* --- 2. Variables CSS (Palette de couleurs) --- */
:root {
    /* Couleurs principales issues du logo */
    --primary-bg: #041a33;       /* Bleu nuit profond */
    --accent-color: #ff8000;     /* Orange feu vif */
    --text-light: #ffffff;       /* Blanc pur pour les textes */
    --text-muted: #cdd4e0;       /* Gris clair pour les textes secondaires */
    --hover-accent: #ffa033;     /* Orange clair pour les survols */

    /* Autres couleurs utiles */
    --border-color: #133354;     /* Variante foncée de bleu pour les bordures */
    --card-bg: #0a2540;          /* Fond pour les cartes ou blocs */
    --button-bg: var(--accent-color);
    --button-hover: var(--hover-accent);
}

/* --- 3. Utilitaires & Classes Générales --- */
.section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.2rem; /* Taille unifiée pour les titres de section */
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color); /* Ligne de séparation subtile */
    padding-bottom: 10px;
}

.page-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-intro h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.page-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Boutons globaux */
.btn {
    display: inline-block;
    background: var(--button-bg);
    color: var(--primary-bg); /* Texte noir sur bouton orange */
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--button-bg);
}

.btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    border-color: var(--button-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

/* --- 4. Navbar --- */
.navbar {
    background-color: var(--primary-bg);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: var(--text-light);
    position: relative;
    z-index: 100; /* Assure que la navbar est au-dessus du reste */
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    padding: 5px 0;
    position: relative; /* Pour la pseudo-classe active */
}

.nav-links li a:hover {
    color: var(--hover-accent);
}

.navbar a.active {
    color: var(--accent-color);
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
}
.navbar .logo.active { /* Empêche le logo d'avoir une bordure active */
  border-bottom: none;
  color: inherit;
  font-weight: normal;
}

/* Hamburger Menu (mobile) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* Animation du hamburger en croix */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 5. Header / Hero Section (Accueil) --- */
#hero {
    position: relative;
    width: 100%;
    height: 600px;
    background-image: url(''); /* Votre GIF comme image de fond */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column; /* Pour centrer le contenu verticalement */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content { /* Conteneur pour le texte du hero */
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Exo 2', sans-serif; /* Une police plus percutante */
    font-size: 3.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.hero-content p {
    font-family: 'Open Sans', sans-serif; /* Une police lisible */
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-content .btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 50px;
}

/* --- 6. Main Content (Accueil) --- */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Open Sans', sans-serif;
}

main p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Sections spécifiques à l'accueil */
.saga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.saga-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saga-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--hover-accent);
}

.saga-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    padding: 10px;
}

.saga-item h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--hover-accent);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-item h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.news-item .news-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.news-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
}

.news-item .btn-small { /* Style du bouton à l'intérieur des news cards */
    margin-top: 1rem;
    align-self: flex-start;
    padding: .6rem 1.2rem; /* Légèrement plus petit */
    font-size: 0.9rem;
}

/* --- 7. Page Équipes (equipes.html) --- */
.teams-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-section {
    margin-bottom: 60px;
}

.game-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-light); /* Couleur par défaut si non surchargée */
}

.team-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; /* Centre les cartes par défaut */
}

.team-card-link {
    text-decoration: none;
}

.team-card {
    width: 280px;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Alignement du contenu en bas */
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Overlay sombre pour la lisibilité sur les team-cards */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 0;
    border-radius: 12px;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), 0 0 20px var(--hover-accent);
}

.team-name {
    background: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* Bouton à l'intérieur des cartes d'équipe */
.btn-small-card {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
    border: 2px solid var(--accent-color);
}

.btn-small-card:hover {
    background-color: var(--primary-bg);
    color: var(--accent-color);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

/* --- 8. Page Équipe Individuelle (valkyrie.html) --- */
.team-hero {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ff4500, #0e008b); /* Garde le dégradé spécifique */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.7);
    margin-top: 2rem; /* Espace sous la navbar */
}

.team-hero-content {
    flex: 1;
    padding: 2rem;
    color: var(--text-light);
}

.team-hero-content h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.team-hero-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: #ddd;
}

.team-hero-image img {
    width: 400px;
    height: auto; /* Important pour ne pas déformer */
    object-fit: cover;
    display: block;
}

.team-roster {
    margin-top: 3rem;
}

.team-roster h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color); /* Couleur cohérente avec les titres */
    text-align: center;
}

.players-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center; /* Centre les cartes joueurs */
}

.player-card {
    background: var(--card-bg); /* Utilise la variable de fond de carte */
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    flex: 1 1 200px; /* Flexibilité pour les cartes joueurs */
    max-width: 250px; /* Limite la taille max */
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.4); /* Ombre cohérente */
    transition: transform 0.3s ease;
}

.player-card:hover {
    transform: scale(1.05);
}

.player-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem auto; /* Centre l'image et ajoute de l'espace */
    border: 3px solid var(--accent-color); /* Couleur de bordure cohérente */
}

.player-card h3 {
    margin: 0.3rem 0;
    font-family: 'Exo 2', sans-serif;
    color: var(--text-light);
}

.player-card p {
    font-style: italic;
    color: var(--text-muted);
}

.team-history {
    margin-top: 3rem;
    background: var(--card-bg); /* Utilise la variable */
    padding: 1.5rem 2rem;
    border-radius: 10px;
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.team-history h2 {
    font-family: 'Exo 2', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.team-history p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- 9. Page Boutique (boutique.html) --- */
.shop-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto; /* Laisse la carte s'adapter à son contenu */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--hover-accent);
}

/* Styles pour la galerie d'images des produits */
.product-image-gallery {
  width: 100%;
  max-width: 250px;
  margin-bottom: 1rem;
  text-align: center;
}

.product-image-gallery .main-product-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.product-image-gallery .thumbnail-images {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
}

.product-image-gallery .thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-image-gallery .thumbnail:hover {
  transform: translateY(-2px);
  border-color: var(--hover-accent);
}

.product-image-gallery .thumbnail.active {
  border-color: var(--accent-color);
}

.product-card h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-card .description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Permet aux descriptions de prendre la même hauteur */
}

.btn-product {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--accent-color);
}

.btn-product:hover {
    background-color: var(--primary-bg);
    color: var(--accent-color);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.product-card.coming-soon-product .btn-product {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.8;
}

.product-card.coming-soon-product .btn-product:hover {
    background-color: var(--text-muted);
    color: var(--primary-bg);
    transform: none;
}

/* --- 10. Footer --- */
footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-bg);
    color: var(--text-light);
    font-size: .9rem;
    border-top: 1px solid var(--border-color);
}

footer .social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer .social-links img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
}

footer .social-links img:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}


/* --- 11. Media Queries (Réactivité) --- */

/* Général */
@media (max-width: 1024px) {
    .section {
        padding: 2.5rem 1.5rem;
    }
    .page-intro h1 {
        font-size: 2.5rem;
    }
}

/* Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Cache les liens par défaut sur mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-bg);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        z-index: 99; /* Moins que le hamburger */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }

    .hamburger-menu {
        display: block; /* Affiche le bouton hamburger sur mobile */
    }
}

/* Hero Section */
@media (max-width: 992px) {
    #hero {
        height: 500px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    #hero {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .hero-content .btn {
        font-size: 1rem;
        padding: 12px 25px;
        margin-left: 0;
    }
    .hero-content .btn, .hero-content .btn-secondary {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Page Équipes */
@media (max-width: 1024px) {
    .team-card {
        width: 260px;
        height: 320px;
    }
    .team-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-intro h1 {
        font-size: 2.2rem;
    }
    .page-intro p {
        font-size: 1rem;
    }
    .team-cards {
        justify-content: center;
    }
    .team-card {
        width: 100%;
        max-width: 320px;
        height: 300px;
    }
    .team-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-intro {
        padding: 1rem;
    }
    .page-intro h1 {
        font-size: 1.8rem;
    }
    .page-intro p {
        font-size: 0.9rem;
    }
}

/* Page Équipe Individuelle */
@media (max-width: 992px) {
    .team-hero {
        flex-direction: column; /* Empile l'image et le contenu */
        text-align: center;
    }
    .team-hero-image img {
        width: 100%;
        max-width: 400px; /* Limite la largeur de l'image même empilée */
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .team-hero-content h1 {
        font-size: 2.5rem;
    }
    .team-hero-content p {
        font-size: 1rem;
    }
    .players-list {
        gap: 1rem;
    }
    .player-card {
        flex: 1 1 150px; /* Ajuste la taille des cartes joueurs sur petit écran */
    }
}

/* Page Boutique */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* --- 8. Page Équipe Individuelle (valkyrie.html) --- */
/* ... (styles existants pour team-hero, team-roster, team-history) ... */

.team-achievements {
    margin-top: 3rem;
}

.team-achievements h2 {
    font-family: 'Exo 2', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.achievement-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 10px var(--hover-accent);
}

.achievement-item .achievement-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
    align-self: flex-start; /* Aligne la date à gauche */
}

.achievement-item h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.achievement-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1; /* Permet à la description de prendre la place restante */
}

/* Media Queries pour le palmarès */
@media (max-width: 768px) {
    .achievements-list {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .achievement-item {
        max-width: 400px; /* Limite la largeur de la carte sur mobile */
        margin: 0 auto; /* Centre la carte */
    }
}

/* --- 6. Main Content (Accueil) --- */
/* ... (styles existants pour main, saga-grid, news-grid, etc.) ... */

/* Styles pour l'intégration Twitch */
#twitch-stream {
    text-align: center;
}

#twitch-stream p {
    max-width: 700px;
    margin: 0.5rem auto 2rem auto;
}

.twitch-embed-container {
    position: relative;
    width: 100%;
    /* Ratio 16:9 pour une vidéo responsive, si vous n'utilisez pas de hauteur fixe */
    /* padding-bottom: 56.25%; */ /* Pour un ratio 16:9 */
    /* height: 0; */ /* Nécessaire avec padding-bottom pour le ratio */
    margin-bottom: 2rem;
    background-color: #0e0e10; /* Couleur de fond Twitch */
    border-radius: 10px;
    overflow: hidden; /* Assure que le contenu ne dépasse pas les coins arrondis */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.twitch-embed-container iframe {
    /* Si vous utilisez le ratio padding-bottom:
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    */
    display: block; /* Supprime l'espace sous l'iframe */
    max-width: 100%; /* S'assure qu'il ne déborde pas */
    border: none;
}

/* Si vous voulez le lecteur ET le chat côte à côte sur desktop */
.twitch-flex-container { /* Mettez cette classe sur twitch-embed-container */
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Pour enrouler sur mobile */
}

.twitch-flex-container iframe {
    flex: 1; /* Prend l'espace disponible */
    min-width: 300px; /* Taille minimale pour les iframes */
}

.twitch-action-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacement entre les boutons */
    flex-wrap: wrap;
}

/* Media Queries pour Twitch */
@media (max-width: 768px) {
    .twitch-embed-container {
        height: auto; /* Laisse la hauteur s'adapter sur mobile si vous n'avez pas de chat côte à côte */
    }
    .twitch-embed-container iframe {
        height: 250px; /* Une hauteur plus petite sur mobile */
    }
    .twitch-flex-container {
        flex-direction: column; /* Empile les iframes sur mobile */
        align-items: center;
    }
}

/* --- Calendrier personnalisé --- */
/* --- Styles pour les sections d'événements (ajoutés au fichier style.css) --- */
/* --- Style de la légende de couleurs --- */
.color-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-text {
    color: #fff;
    font-size: 1em;
}

/* --- Style des boutons de filtre --- */
.calendar-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background-color: #ff7f00; /* Couleur d'accentuation */
}

/* Ajustement pour les écrans plus petits */
@media (max-width: 768px) {
    .color-legend {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
}
/* --- Style du conteneur du calendrier --- */
.calendar-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

/* --- Style de la barre d'outils et du titre --- */
.fc-header-toolbar {
    margin-bottom: 20px !important;
}

.fc-toolbar-title {
    font-weight: bold;
    font-size: 1.5em;
    text-transform: uppercase;
}

.fc-toolbar-chunk:first-child .fc-button-group .fc-button,
.fc-toolbar-chunk:last-child .fc-button-group .fc-button {
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.5em;
    padding: 5px 10px;
}

.fc-toolbar-chunk:first-child .fc-button-group .fc-button:hover,
.fc-toolbar-chunk:last-child .fc-button-group .fc-button:hover {
    background-color: #e9e9e9 !important;
}

.fc-today-button {
    background-color: #ff7f00 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 8px 15px !important;
    border: none !important;
    font-weight: bold;
}

.fc-today-button:hover {
    background-color: #e56d00 !important;
}

/* --- Style des en-têtes de jour (Lun, Mar, etc.) --- */
.fc-col-header-cell {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Style des jours du calendrier --- */
.fc-daygrid-day-number {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    padding: 5px;
}

.fc-day-today {
    background-color: #041a33 !important;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 5px solid #007bff !important; /* Ajoute une bordure bleue et la force à s'afficher */
}
/* Grise les jours passés dans le calendrier pour les différencier */

.fc-day-past .fc-daygrid-day-number {
    color: grey !important;
}
.fc-day-today .fc-daygrid-day-number {
    color: #fff;
}

/* --- Style des événements --- */
.fc-event {
    border-radius: 8px !important;
    border: none !important;
    margin: 2px 5px !important;
    font-size: 0.8em;
    font-weight: bold;
    padding: 5px !important;
    text-align: center;
}

.fc-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style et animation du point rouge pour les événements en cours */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ff0000; /* Rouge vif */
    border-radius: 50%; /* Pour en faire un cercle */
    margin-left: 5px; /* Déplace le point à droite du nom */
    animation: blink 1.2s infinite; /* Active l'animation de clignotement */
}

/* Définition de l'animation de clignotement */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Styles pour la pop-up de l'événement --- */
.event-details-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Cache la pop-up par défaut */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #041a33;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.popup-content h3 {
    color: #fff;
    font-size: 24px;
    margin-top: 0;
}

.popup-content p {
    color: #fff;
    line-height: 1.6;
}

.btn-popup {
    display: inline-block;
    background-color: #ff7f00;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}


/* --- 11. Modale de Détails de Match --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place même au défilement */
    z-index: 1000; /* Plus haut que tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permet le défilement si le contenu est trop grand */
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent sombre */
    display: flex; /* Utilise flexbox pour centrer le contenu */
    justify-content: center;
    align-items: center;
    opacity: 0; /* Pour l'animation de fondu */
    visibility: hidden; /* Pour s'assurer qu'il n'interagit pas quand il est caché */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--primary-bg); /* Couleur de fond de votre site */
    margin: auto; /* Centrage avec display flex */
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: relative; /* Pour positionner le bouton de fermeture */
    transform: translateY(-50px); /* Pour l'animation d'apparition */
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal-content h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--text-light);
}

.modal-body p strong {
    color: var(--text-light);
    margin-right: 5px;
}

.modal-body a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-body a:hover {
    color: var(--hover-accent);
}

/* --- 12. Page Organigramme du Staff (staff.html) --- */
.staff-organigram {
    margin-top: 2rem;
}

.staff-organigram h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--accent-color);
    text-align: center;
}

.role-group {
    margin-bottom: 3rem; /* Espacement entre chaque groupe de rôles */
}

.staff-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    justify-content: center; /* Centre les cartes si elles ne remplissent pas la ligne */
    margin-top: 1.5rem;
}

.staff-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding: 1.2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--hover-accent);
}

.staff-card img {
    width: 120px; /* Taille de l'image de profil */
    height: 120px;
    border-radius: 50%; /* Image ronde */
    object-fit: cover; /* Assure que l'image remplit le cercle sans déformation */
    border: 3px solid var(--accent-color);
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.staff-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.staff-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Styles spécifiques pour centrer certains groupes si nécessaire (ex: président seul) */
.role-group.president .staff-members,
.role-group.vice-president .staff-members {
    grid-template-columns: 1fr; /* Une seule colonne pour les rôles uniques */
    max-width: 300px; /* Limite la largeur de la carte unique */
    margin-left: auto;
    margin-right: auto;
}


/* Media Queries pour le staff organigram */
@media (max-width: 768px) {
    .staff-members {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Plus petites cartes sur mobile */
        gap: 20px;
    }
    .staff-card img {
        width: 100px; /* Plus petite image sur mobile */
        height: 100px;
    }
    .staff-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .staff-members {
        grid-template-columns: 1fr; /* Une seule colonne pour tous les membres sur très petits écrans */
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- 13. Page Contact (contact.html) --- */
.contact-info-section {
    margin-top: 2rem;
    text-align: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--hover-accent);
}

.info-card i { /* Style pour les icônes (emojis pour l'instant) */
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1; /* Permet au paragraphe de prendre la place restante */
}

.info-card a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 3px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.info-card a:hover {
    color: var(--hover-accent);
    border-color: var(--hover-accent);
}

/* Styles du formulaire de contact */
.contact-form-section {
    margin-top: 3rem;
    text-align: center;
}

.contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--accent-color);
}

.form-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
}

.contact-form {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Prend 100% moins le padding */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-light);
    font-family: 'Exo 2', sans-serif; /* Conserve la police de votre site */
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.3); /* Effet lumineux */
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Permet de redimensionner verticalement */
    min-height: 120px;
}

.contact-form button.btn {
    align-self: center; /* Centre le bouton */
    margin-top: 1rem;
    width: fit-content; /* S'adapte à la largeur du texte */
    padding: 12px 30px;
    font-size: 1.1rem;
}

.form-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles pour la carte Google Maps */
.location-section {
    margin-top: 3rem;
    text-align: center;
}

.location-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--accent-color);
}

.location-section p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--text-muted);
}

.map-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden; /* Pour les coins arrondis de l'iframe */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none; /* Supprime la bordure par défaut de l'iframe */
    display: block; /* Supprime l'espace sous l'iframe */
}

/* Media Queries pour la page Contact */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .info-card {
        max-width: 350px;
        margin: 0 auto;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .form-group input,
    .form-group textarea {
        width: calc(100% - 20px); /* Assure le bon padding sur mobile */
    }
    .map-container iframe {
        height: 300px; /* Réduit la hauteur de la carte sur mobile */
    }
}
/* --- Footer Styles --- */
footer {
    background: var(--dark-bg); /* Couleur de fond sombre pour le footer */
    color: var(--text-light); /* Texte clair */
    padding: 40px 20px;
    border-top: 2px solid var(--accent-color); /* Ligne de séparation avec le contenu */
    font-size: 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 3 colonnes flexibles */
    gap: 30px;
    max-width: 1200px; /* Aligner avec le max-width de votre contenu principal */
    margin: 0 auto;
    text-align: left;
}

.footer-section {
    padding: 10px;
}

.footer-logo {
    max-width: 150px; /* Taille du logo dans le footer */
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px; /* Si votre logo est carré/rond */
}

.footer-about .tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-light-alt); /* Couleur légèrement différente pour le slogan */
}

.footer-section h3 {
    color: var(--accent-color); /* Couleur accent pour les titres de section */
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

/* Soulignement pour les titres du footer */
.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; /* Longueur du soulignement */
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light-alt);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-color); /* Changement de couleur au survol */
    text-decoration: underline;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px; /* Espacement entre les icônes */
}

.social-icons a {
    color: var(--text-light); /* Couleur des icônes */
    font-size: 1.8rem; /* Taille des icônes */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color); /* Changement de couleur au survol */
    transform: translateY(-3px); /* Petit effet de soulèvement */
}

.footer-contact-info {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-light-alt);
}

.footer-contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-contact-info a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light-alt);
    grid-column: 1 / -1; /* Permet au copyright de prendre toute la largeur en bas */
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%; /* Centrer le soulignement sur mobile */
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center; /* Centrer les icônes sur mobile */
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 15px;
    }
    .footer-section h3 {
        font-size: 1.2rem;
    }
    .footer-links ul li a {
        font-size: 0.95rem;
    }
    .social-icons a {
        font-size: 1.5rem;
    }
}
/* --- Styles pour la section des articles --- */

.articles-section {
    padding: 60px 20px; /* Espace autour de la section */
    text-align: center;
    background-color: var(--primary-bg); /* Utilise la couleur de fond principale */
}

.articles-section h2 {
    color: var(--text-light); /* Couleur du titre */
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block; /* Pour centrer le soulignement si vous en ajoutez */
}

/* Soulignement optionnel pour le titre des articles */
.articles-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Styles pour la grille des articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Crée des colonnes responsives */
    gap: 30px; /* Espacement entre les cartes */
    max-width: 1200px;
    margin: 0 auto; /* Centre la grille */
    padding-top: 20px; /* Espace au-dessus de la grille */
}

/* Styles pour chaque carte d'article */
.article-card {
    background-color: var(--card-bg); /* Utilise la couleur de fond des cartes du thème */
    border-radius: 10px;
    overflow: hidden; /* Cache ce qui dépasse (comme les bords de l'image) */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Utilise flexbox pour l'agencement interne */
    flex-direction: column; /* Empile l'image et le contenu verticalement */
    height: 100%; /* Assure que toutes les cartes ont la même hauteur dans la grille */
}

.article-card:hover {
    transform: translateY(-5px); /* Petit effet de soulèvement au survol */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.article-card img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour les images */
    object-fit: cover; /* Recadre l'image pour couvrir l'espace */
    border-bottom: 1px solid var(--border-color); /* Ligne de séparation */
}

.article-card-content {
    padding: 20px;
    flex-grow: 1; /* Permet au contenu de prendre l'espace disponible */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse le bouton "Lire la suite" vers le bas */
}

.article-card-content h3 {
    color: var(--accent-color); /* Couleur du titre de l'article */
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: left;
}

.article-card-content p {
    color: var(--text-muted); /* Couleur du texte muté pour le paragraphe */
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
}

.article-card-meta {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: auto; /* Pousse la méta-information vers le bas avant le bouton */
    margin-bottom: 10px;
    text-align: left;
}

.article-card .read-more {
    display: inline-block;
    background-color: var(--accent-color); /* Couleur d'accentuation pour le bouton */
    color: black;
    padding: 10px 15px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Aligne le bouton à gauche */
}

.article-card .read-more:hover {
    background-color: var(--primary-bg);
    color: var(--accent-color);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

/* --- Article Popup Styles --- */
.article-popup {
    display: none; /* Masqué par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* display: flex; <--- Cette ligne doit être supprimée ici */
    justify-content: center; /* Ces deux lignes sont utiles pour le centrage quand JS met display: flex */
    align-items: center;
}

/* Exemple de modification dans style.css */
#articlePopup .article-popup-content {
    /* Essayez de réduire ces valeurs ou d'en ajouter si elles sont manquantes */
    width: 80%; /* Ou une valeur en pixels, par exemple 700px */
    max-width: 900px; /* Limite la largeur maximale */
    height: auto; /* Permet à la hauteur de s'ajuster au contenu */
    max-height: 90vh; /* Limite la hauteur maximale à 90% de la hauteur de la fenêtre */
    overflow-y: auto; /* Ajoute une barre de défilement si le contenu dépasse */
    background-color: var(--main-bg);
}

.article-popup .close-button {
    color: #aaa;
    float: right; /* Aligne le bouton de fermeture à droite */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.article-popup .close-button:hover,
.article-popup .close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.popup-article-image {
    width: 100%; /* L'image prend toute la largeur disponible de son conteneur */
    max-width: 400px; /* Limite la largeur maximale de l'image, ajustez cette valeur */
    height: auto; /* Maintient les proportions de l'image */
    display: block; /* S'assure que l'image se comporte comme un bloc */
    margin: 0 auto 20px auto; /* Centre l'image et ajoute une marge en dessous */
    border-radius: 8px; /* Si vous voulez des coins arrondis */
}

.popup-article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

/* Important pour préserver les alinéas et sauts de ligne du texte brut */
.popup-article-body {
    white-space: pre-wrap; /* Préserve les espaces et les retours à la ligne */
    word-wrap: break-word; /* Permet aux longs mots de se casser pour s'adapter */
    line-height: 1.6;
}

/* Ajustements responsives pour les petits écrans */
@media (max-width: 768px) {
    .article-popup .popup-content {
        width: 95%;
        margin: 2.5% auto;
        padding: 15px;
    }
}
/* www/style.css */

/* Styles pour les images supplémentaires dans le popup d'article */
.popup-additional-image {
    max-width: 100%; /* S'assure que l'image ne dépasse pas la largeur du conteneur */
    height: auto; /* Maintient le ratio de l'image */
    display: block; /* S'assure que chaque image prend sa propre ligne */
    margin: 15px auto; /* Ajoute un espace vertical et centre l'image */
    border-radius: 8px; /* Bords légèrement arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ajoute une petite ombre */
}

/* Si vous avez plusieurs images et que vous voulez qu'elles s'alignent différemment (ex: en grille) */
.additional-images-container {
    display: flex; /* Active Flexbox */
    flex-wrap: wrap; /* Permet aux images de passer à la ligne */
    gap: 15px; /* Espace entre les images */
    justify-content: center; /* Centre les images horizontalement */
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1); /* Un léger fond pour le conteneur */
    border-radius: 8px;
}

/* Dans style.css */
.google-calendar-embed {
    text-align: center; /* Pour centrer l'iframe si elle n'occupe pas toute la largeur */
    margin: 20px auto;
    max-width: 100%; /* S'assure que le conteneur ne dépasse pas la largeur parent */
}

.google-calendar-embed iframe {
    /* Permet à l'iframe d'être responsive */
    width: 100%; /* L'iframe prend 100% de la largeur de son parent */
    max-width: 900px; /* Limite la largeur maximale (ajustez selon votre préférence) */
    height: 600px; /* Hauteur fixe, ou ajustez comme vous le souhaitez */
    border: none; /* Supprime la bordure par défaut si Google Calendar en ajoute une */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajoute une ombre subtile */
    border-radius: 8px; /* Coins arrondis */
}

/* Pour les écrans plus petits */
@media (max-width: 768px) {
    .google-calendar-embed iframe {
        height: 450px; /* Réduire la hauteur sur les petits écrans */
    }
}

/* --- Styles pour les images des cartes d'articles --- */
.article-card img {
    width: 100%; /* L'image prend toute la largeur de sa carte */
    height: 200px; /* Hauteur fixe pour toutes les images de cartes */
    object-fit: cover; /* Recadre l'image pour couvrir la zone sans la déformer */
    display: block; /* Évite les espaces blancs indésirables */
    border-radius: 8px 8px 0 0; /* Coins arrondis seulement en haut */
}

/* --- Styles pour l'image principale dans le pop-up d'article --- */
#popupArticleImage {
    max-width: 100%; /* L'image ne dépasse pas la largeur du contenu du pop-up */
    height: auto; /* Conserve le ratio de l'image */
    display: block;
    margin-bottom: 20px; /* Espace sous l'image */
    border-radius: 8px; /* Coins légèrement arrondis */
}

/* --- Styles pour les images supplémentaires (miniatures) dans le pop-up --- */
.additional-images-container {
    display: flex; /* Utilise flexbox pour aligner les images en ligne */
    flex-wrap: wrap; /* Permet aux images de passer à la ligne si l'espace est insuffisant */
    gap: 10px; /* Espace entre les images */
    margin-top: 20px;
    justify-content: center; /* Centre les images si elles ne remplissent pas toute la ligne */
}

.additional-article-image { /* La classe que nous avons ajoutée en JS */
    width: 120px; /* Largeur fixe pour les miniatures */
    height: 90px; /* Hauteur fixe pour les miniatures */
    object-fit: cover; /* Recadre l'image pour couvrir la zone sans la déformer */
    border-radius: 5px; /* Coins légèrement arrondis */
    cursor: pointer; /* Indique qu'elle est cliquable */
    transition: transform 0.2s ease-in-out; /* Petite animation au survol */
}

.additional-article-image:hover {
    transform: scale(1.05); /* Agrandit légèrement au survol */
}

/* Animations (optionnel, pour un effet plus doux) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* --- Styles spécifiques à la page de présentation d'équipe --- */

.team-presentation-section {
    padding: 40px 20px;
    background-color: #f4f4f4; /* Fond légèrement gris pour la section */
}

.team-presentation-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.team-presentation-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 50px;
    font-size: 2.5em;
    font-weight: 700;
}

.team-category {
    margin-bottom: 60px; /* Espace entre les catégories (Joueurs, Substituts, Staff) */
}

.team-category h3 {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: inline-block; /* Pour que la bordure ne prenne pas toute la largeur */
    margin-left: auto;
    margin-right: auto;
    display: block; /* Pour centrer le h3 */
}

/* Grille pour les joueurs et le staff */
.players-grid,
.staff-grid {
    display: grid;
    /* Adapte automatiquement le nombre de colonnes en fonction de la taille de l'écran */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; /* Espacement entre les cartes */
    justify-content: center; /* Centre les éléments dans la grille */
    align-items: start; /* Aligne les éléments en haut de chaque cellule */
}

/* Styles pour chaque carte de membre d'équipe */
.team-member-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Espace équitablement le contenu */
}

.team-member-card:hover {
    transform: translateY(-10px); /* Effet de soulèvement au survol */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member-card img {
    width: 120px; /* Taille fixe pour les images de profil */
    height: 120px; /* Assure que l'image est un carré */
    border-radius: 50%; /* Rend l'image circulaire */
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse le cercle */
    margin-bottom: 15px;
    border: 3px solid #007bff; /* Bordure colorée autour de l'image */
}

.team-member-card h4 {
    color: #007bff; /* Couleur d'accent pour le titre (Rôle principal) */
    font-size: 1.4em;
    margin-bottom: 5px;
}

.team-member-card .member-name {
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-member-card .member-role {
    color: #777;
    font-size: 0.95em;
    font-style: italic;
    margin-top: 0;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .team-presentation-section h2 {
        font-size: 2em;
    }

    .team-category h3 {
        font-size: 1.7em;
    }

    .players-grid,
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Plus petites cartes sur mobile */
        gap: 20px;
    }

    .team-member-card {
        padding: 15px;
    }

    .team-member-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .team-presentation-section {
        padding: 30px 10px;
    }

    .players-grid,
    .staff-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur très petits écrans */
    }
}
/* --- Styles spécifiques à la page des sponsors --- */

.sponsors-section {
    padding: 40px 20px;
    background-color:  #041a33; /* Fond légèrement gris pour la section */
}

.sponsors-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sponsors-section h2 {
    text-align: center;
    color: #FF8000;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #ffffff;
    font-size: 1.1em;
    line-height: 1.6;
}

.sponsor-category {
    margin-bottom: 60px; /* Espace entre les catégories de sponsors */
}

.sponsor-category h3 {
    text-align: center;
    color: #FF8000;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Grille pour les cartes de sponsors */
.sponsors-grid {
    display: grid;
    /* Adapte automatiquement le nombre de colonnes en fonction de la taille de l'écran */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px; /* Espacement entre les cartes */
    justify-content: center; /* Centre les éléments dans la grille */
    align-items: stretch; /* Les cartes s'étirent pour avoir la même hauteur dans une rangée */
}

/* Styles pour chaque carte de sponsor (le lien <a>) */
.sponsor-card {
    background-color: #041a33;
    border: 1px solid  #ff8000;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Espace équitablement le contenu */
    text-decoration: none; /* Supprime le soulignement des liens */
    color: inherit; /* Hérite de la couleur du texte */
}

.sponsor-card:hover {
    transform: translateY(-8px); /* Effet de soulèvement au survol */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sponsor-card img {
    max-width: 100%; /* L'image ne dépasse pas la largeur de la carte */
    height: 80px; /* Hauteur fixe pour une uniformité des logos */
    object-fit: contain; /* Assure que le logo entier est visible sans être coupé */
    margin-bottom: 15px;
}

.sponsor-card h4 {
    color: #007bff; /* Couleur d'accent pour le nom du sponsor */
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
    flex-grow: 1; /* Permet au titre de prendre l'espace disponible */
}

.sponsor-card .sponsor-description {
    color: #ffffff;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .sponsors-section h2 {
        font-size: 2em;
    }

    .sponsor-category h3 {
        font-size: 1.7em;
    }

    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Plus petites cartes sur mobile */
        gap: 15px;
    }

    .sponsor-card {
        padding: 15px;
    }

    .sponsor-card img {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .sponsors-section {
        padding: 30px 10px;
    }

    .sponsors-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur très petits écrans */
    }
}
/* --- Styles spécifiques à la page des Mentions Légales --- */

.legal-notice-section {
    padding: 40px 20px;
    background-color: #041a33; /* Fond très léger pour le contenu */
}

.legal-notice-section .container {
    max-width: 900px; /* Largeur maximale pour une meilleure lisibilité du texte */
    margin: 0 auto;
    padding: 0 15px;
}

.legal-notice-section h2 {
    text-align: center;
    color: #041a33;
    margin-bottom: 40px;
    font-size: 2.8em;
    font-weight: 700;
}

.legal-section {
    background-color: #041a33;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px; /* Espace entre chaque section légale */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-section h3 {
    color: #007bff; /* Couleur d'accent pour les titres de section */
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #041a33;
    padding-bottom: 10px;
}

.legal-section p,
.legal-section ul {
    color: #ffffff;
    font-size: 1.1em;
    line-height: 1.8; /* Espacement des lignes pour une meilleure lecture */
    margin-bottom: 15px;
}

.legal-section ul {
    list-style-type: disc; /* Puces pour les listes */
    margin-left: 25px; /* Indentation des listes */
    padding-left: 0;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section strong {
    color: #ff8000; /* Texte important plus foncé */
}

.legal-section a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .legal-notice-section h2 {
        font-size: 2.2em;
    }

    .legal-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .legal-section h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .legal-section p,
    .legal-section ul {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .legal-notice-section {
        padding: 20px 10px;
    }

    .legal-section {
        padding: 15px;
    }
}