/* ==========================================================================
   1. VARIABLES ET BASE
   ========================================================================== */
:root {
    --bleu-roi: #4b71ba;
    --cyan: #5bc0be;
    --blanc: #ffffff;
    --fond-gris: #f8f9fa;
    --texte: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--fond-gris);
    color: var(--texte);
    line-height: 1.6;
}

/* ==========================================================================
   2. EN-TÊTE ET MENUS
   ========================================================================== */
header {
    background-color: var(--bleu-roi);
    color: var(--blanc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo-container .lien-logo { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--blanc); }
.logo-img { width: 60px; height: auto; border-radius: 50%; background-color: var(--blanc); }

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: var(--blanc); text-decoration: none; font-weight: normal; transition: color 0.3s ease; white-space: nowrap; }
nav a:hover, nav a.actif { color: var(--cyan); }

.menu-deroulant { position: relative; padding-bottom: 10px; }
nav .sous-menu {
    display: none; position: absolute; top: 100%; left: 0; background-color: var(--blanc);
    min-width: 250px; box-shadow: 0 8px 16px rgba(0,0,0,0.15); border-radius: 8px;
    z-index: 1000; padding: 10px 0; flex-direction: column; gap: 0;
}
nav .menu-deroulant:hover .sous-menu { display: flex; }
nav .sous-menu a { color: var(--texte); padding: 12px 20px; display: block; width: 100%; }
nav .sous-menu a:hover { background-color: var(--fond-gris); color: var(--cyan); }

.reseaux-sociaux a { color: var(--blanc); margin-left: 15px; transition: color 0.3s; }
.reseaux-sociaux a:hover { color: var(--cyan); }

/* Titres H3 communs */
.actualites h3, .resultats-accueil h3, .nous-connaitre h3, .matchs-a-venir h3 {
    text-align: center; color: var(--bleu-roi); font-size: 2.2rem; margin-bottom: 3rem;
}

/* ==========================================================================
   3. ACCUEIL
   ========================================================================== */
.hero { 
    background-color: #1b2228; 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('photo-equipe.JPG');
    background-size: cover;
    color: var(--blanc); 
    padding: 12rem 2rem 8rem 2rem; 
    text-align: center; 
}
.hero-centrer { background-position: center center; }
.hero-titre-normal { font-weight: normal; font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }
.bouton-principal { display: inline-block; background-color: var(--cyan); color: var(--blanc); padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.bouton-principal:hover { background-color: #4aa8b9; }
.hero-bouton-normal { font-weight: normal; }

.actualites { padding: 4rem 2rem; background-color: var(--blanc); }
.grille-articles { display: flex; justify-content: center; gap: 30px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.carte-actualite { background: var(--blanc); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex: 1; min-width: 300px; overflow: hidden; }
.image-actu { height: 200px; background-color: #e0e0e0; }
.contenu-actu { padding: 1.5rem; }
.date-actu { color: var(--cyan); font-weight: bold; font-size: 0.9rem; }
.contenu-actu h4 { color: var(--bleu-roi); font-size: 1.2rem; margin: 0.5rem 0; }
.lien-lire-plus { color: var(--bleu-roi); text-decoration: none; font-weight: bold; display: inline-block; margin-top: 1rem; }

.resultats-accueil { padding: 4rem 2rem; background-color: var(--fond-gris); }
.grille-resultats { display: flex; justify-content: center; gap: 20px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.bloc-resultat { flex: 1; min-width: 300px; background: var(--blanc); padding: 2rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 2px solid var(--cyan); display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.competition-titre { font-size: 0.9rem; color: #666; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 1px; }
.score-match { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: bold; margin-bottom: 2rem; }
.score { background-color: var(--bleu-roi); color: var(--blanc); padding: 8px 15px; border-radius: 5px; font-size: 1.5rem; margin: 0 10px; }
.equipe { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bouton-secondaire { display: inline-block; background-color: transparent; color: var(--bleu-roi); padding: 10px 15px; text-decoration: none; font-weight: bold; border: 2px solid var(--bleu-roi); border-radius: 5px; }
.bouton-secondaire:hover { background-color: var(--bleu-roi); color: var(--blanc); }

.nous-connaitre { padding: 4rem 2rem; background-color: var(--blanc); }
.grille-connaitre { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.conteneur-carte-connaitre { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.carte-connaitre { flex: 1; width: 100%; height: 350px; border-radius: 10px; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration: none; }
.carte-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.overlay-connaitre { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 2rem 1.5rem 1rem 1.5rem; color: var(--blanc); }
.overlay-connaitre h4 { font-size: 1.6rem; margin-bottom: 5px; color: var(--cyan); }
.lien-lire-plus-normal { display: inline-block; color: var(--bleu-roi); text-decoration: none; font-weight: normal; font-size: 0.95rem; transition: color 0.3s; }
.lien-lire-plus-normal:hover { color: var(--cyan); }

.matchs-a-venir { padding: 4rem 2rem; background-color: var(--fond-gris); }
.galerie-accueil { display: flex; justify-content: center; gap: 15px; margin: 0 auto 3rem auto; width: 100%; max-width: 1200px; }
.galerie-accueil img { flex: 1; min-width: 0; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.galerie-accueil img:hover { transform: translateY(-5px); }
.carte-prochain-match { max-width: 700px; margin: 0 auto; background: var(--blanc); border-radius: 10px; padding: 3rem 2rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid var(--bleu-roi); }
.equipes-prochain-match { font-size: 1.8rem; font-weight: bold; color: var(--bleu-roi); margin: 1.5rem 0; display: flex; justify-content: center; align-items: center; gap: 20px; }
.vs { color: var(--cyan); font-size: 1.2rem; background: var(--fond-gris); padding: 10px; border-radius: 50%; }
.infos-pratiques-match { color: #666; font-size: 1.1rem; }

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
footer { background-color: #2c363f; color: var(--blanc); padding: 4rem 2rem 1rem 2rem; margin-top: 3rem; }
.contenu-footer { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.colonne-footer { flex: 1; min-width: 250px; }
.colonne-footer h4 { color: var(--cyan); font-size: 1.2rem; margin-bottom: 1.5rem; text-transform: uppercase; }
.colonne-footer ul { list-style: none; }
.colonne-footer ul li { margin-bottom: 0.8rem; }
.lien-footer { color: #bbb; text-decoration: none; transition: color 0.3s; }
.lien-footer:hover { color: var(--cyan); }
.logos-partenaires-footer .ligne-logos { display: flex; gap: 15px; margin-bottom: 15px; }
.logo-partenaire { height: 40px; background-color: var(--blanc); padding: 5px; border-radius: 5px; }
.footer-bas { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: #888; font-size: 0.9rem; }

/* ==========================================================================
   5. PAGES LE CLUB
   ========================================================================== */
.page-banner { background: linear-gradient(135deg, var(--bleu-roi) 0%, #2a4d8c 100%); color: var(--blanc); padding: 4rem 2rem; text-align: center; border-bottom: 4px solid var(--cyan); }
.page-banner h2 { font-size: 2.5rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.page-banner p { color: var(--cyan); font-style: italic; font-size: 1.1rem; }

.contenu-club-section { max-width: 1300px; margin: 0 auto; padding: 4rem 2rem; }
.bloc-histoire { background: var(--blanc); padding: 2.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 2.5rem; border-left: 5px solid var(--bleu-roi); }
.bloc-histoire h3 { color: var(--bleu-roi); font-size: 1.6rem; margin-bottom: 1rem; }
.titre-intermediaire { color: var(--bleu-roi); font-size: 2rem; text-align: center; margin: 2rem 0 3rem 0; }
.grille-valeurs { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 4rem; }
.carte-valeur-objectif { background: var(--blanc); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); width: 100%; border-left: 4px solid var(--cyan); }
.carte-valeur-objectif h4 { color: var(--bleu-roi); font-size: 1.3rem; margin-bottom: 0.8rem; }

.galerie-histoire { display: flex; width: 100%; margin-top: 3rem; gap: 15px; }
.galerie-histoire img { flex: 1; min-width: 0; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.galerie-histoire img:hover { transform: translateY(-5px); }

/* ==========================================================================
   6. ORGANIGRAMME BUREAU
   ========================================================================== */
.grille-membres { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; }
.carte-membre { background: var(--blanc); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); padding: 2rem; border-top: 4px solid var(--cyan); width: calc(50% - 10px); display: flex; flex-direction: column; gap: 15px; transition: transform 0.3s; }
.carte-membre:hover { transform: translateY(-5px); }
.entete-carte-membre { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; }
.infos-membre { display: flex; flex-direction: column; gap: 8px; }
.carte-membre h4 { color: var(--bleu-roi); font-size: 1.4rem; margin: 0; line-height: 1.2; }
.photo-profil-bureau { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cyan); background-color: #eee; flex-shrink: 0; }
.zone-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-bureau { background-color: rgba(63, 193, 214, 0.15); color: #1a6573; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.badge-terrain { background-color: rgba(74, 117, 196, 0.12); color: var(--bleu-roi); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.description-membre { font-size: 0.95rem; color: #555; line-height: 1.6; margin: 0; }

/* ==========================================================================
   7. FORMULAIRES (Contact & Inscriptions)
   ========================================================================== */
.section-formulaire { padding: 4rem 2rem; background-color: var(--fond-gris); }
.form-container { max-width: 800px; margin: 0 auto; background-color: var(--blanc); padding: 3rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--bleu-roi); }
.intro-form { text-align: center; color: #666; margin-bottom: 2.5rem; font-size: 1.1rem; }
.flex-row { display: flex; gap: 20px; }
.flex-row .form-groupe { flex: 1; }
.form-groupe { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.form-groupe label { font-weight: bold; color: var(--bleu-roi); margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-groupe input, .form-groupe select, .form-groupe textarea { padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: inherit; transition: all 0.3s ease; background-color: #fafafa; }
.form-groupe input:focus, .form-groupe select:focus, .form-groupe textarea:focus { border-color: var(--cyan); background-color: var(--blanc); outline: none; box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.2); }
.form-groupe textarea { resize: vertical; min-height: 150px; }

.form-groupe input[type="file"] { padding: 10px; background-color: var(--blanc); cursor: pointer; border: 1px dashed var(--bleu-roi); color: #666; }
.form-groupe input[type="file"]::file-selector-button { background-color: var(--bleu-roi); color: var(--blanc); border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; margin-right: 15px; font-weight: bold; transition: background 0.3s; }
.form-groupe input[type="file"]::file-selector-button:hover { background-color: var(--cyan); }

.bouton-envoyer { width: 100%; background-color: var(--cyan); color: var(--blanc); padding: 16px; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background 0.3s; margin-top: 1rem; }
.bouton-envoyer:hover { background-color: #4aa8b9; }

@media (max-width: 768px) {
    .flex-row { flex-direction: column; gap: 0; }
    .form-container { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   8. CARTES DE TARIFS (Inscriptions)
   ========================================================================== */
.grille-tarifs { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 2rem; }
.carte-tarif { background-color: var(--blanc); border-radius: 12px; padding: 2.5rem 2rem; width: 300px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--bleu-roi); transition: transform 0.3s ease; position: relative; }
.carte-tarif:hover { transform: translateY(-10px); }
.entete-tarif { color: var(--bleu-roi); font-size: 1.4rem; font-weight: bold; margin-bottom: 1rem; text-transform: uppercase; }
.prix-tarif { font-size: 3rem; font-weight: bold; color: var(--cyan); margin-bottom: 1.5rem; }
.prix-tarif span { font-size: 1.2rem; color: #888; font-weight: normal; }
.description-tarif { color: #666; font-size: 0.95rem; line-height: 1.5; }

.tarif-premium { background-color: var(--bleu-roi); color: var(--blanc); border-top: 4px solid var(--cyan); transform: scale(1.05); }
.tarif-premium:hover { transform: scale(1.05) translateY(-10px); }
.tarif-premium .entete-tarif { color: var(--blanc); }
.badge-recommande { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background-color: var(--cyan); color: var(--blanc); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; }
.liste-avantages { list-style: none; text-align: left; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; }
.liste-avantages li { margin-bottom: 0.8rem; font-size: 0.95rem; }

/* ==========================================================================
   9. PAGE ACCÈS & ENTRAÎNEMENTS
   ========================================================================== */
.planning-box { background: linear-gradient(135deg, var(--bleu-roi) 0%, #2a4d8c 100%); color: var(--blanc); border-radius: 12px; padding: 3rem 2rem; text-align: center; box-shadow: 0 10px 25px rgba(75, 113, 186, 0.2); max-width: 800px; margin: 0 auto; }
.planning-box h3 { color: var(--cyan); font-size: 1.8rem; margin-bottom: 1.5rem; }
.horaire-detail { display: inline-flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 1.5rem; background: rgba(255,255,255,0.1); padding: 15px 30px; border-radius: 50px; }
.horaire-detail .jour { font-size: 1.4rem; font-weight: bold; }
.horaire-detail .separateur { color: var(--cyan); font-size: 1.4rem; font-weight: bold; }
.horaire-detail .heures { font-size: 1.4rem; color: var(--cyan); font-weight: bold; }
.planning-box p { font-size: 1.1rem; color: #e0e0e0; }

.grille-terrains { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.carte-terrain { background: var(--blanc); border-radius: 12px; padding: 3rem 2.5rem 2.5rem 2.5rem; width: 100%; max-width: 450px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--cyan); position: relative; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.carte-terrain:hover { transform: translateY(-5px); }
.badge-terrain-type { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; color: var(--blanc); white-space: nowrap; }
.badge-terrain-type.herbe { background-color: #4CAF50; } 
.badge-terrain-type.synthetique { background-color: #ff9800; } 
.carte-terrain h4 { color: var(--bleu-roi); font-size: 1.5rem; margin: 0 0 0.5rem 0; }
.carte-terrain .usage { font-weight: bold; color: #888; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1.5rem; }
.adresse-box { flex-grow: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.carte-terrain .adresse-box p { color: #555; line-height: 1.6; font-size: 1.1rem; margin: 0; }

/* ==========================================================================
   10. PAGE EFFECTIF 
   ========================================================================== */
.titre-categorie-effectif { display: flex; align-items: center; gap: 15px; color: var(--bleu-roi); font-size: 2rem; font-weight: 800; margin: 4rem 0 2.5rem 0; text-transform: uppercase; letter-spacing: 1px; }
.titre-categorie-effectif::after { content: ''; flex: 1; height: 4px; background: linear-gradient(to right, var(--cyan), transparent); border-radius: 2px; }
.grille-effectif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; margin-bottom: 2rem; }
.carte-joueur { background: var(--blanc); border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); padding: 0 1.5rem 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; z-index: 1; }
.carte-joueur::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 110px; background: linear-gradient(135deg, var(--bleu-roi) 0%, var(--cyan) 100%); z-index: -1; }
.carte-joueur:hover { transform: translateY(-12px); box-shadow: 0 15px 35px rgba(75, 113, 186, 0.25); }
.silhouette-placeholder { width: 110px; height: 110px; border-radius: 50%; background-color: var(--fond-gris); margin-top: 55px; margin-bottom: 1.5rem; border: 5px solid var(--blanc); box-shadow: 0 5px 15px rgba(0,0,0,0.1); position: relative; }
.silhouette-placeholder::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background-color: #cbd5e1; }
.silhouette-placeholder::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 76px; height: 45px; border-radius: 50% 50% 0 0; background-color: #cbd5e1; }
.nom-joueur { color: var(--texte); font-size: 1.4rem; margin-bottom: 0.5rem; font-weight: 800; }
.poste-joueur { background-color: var(--fond-gris); color: var(--bleu-roi); border: 1px solid var(--cyan); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s; }
.carte-joueur:hover .poste-joueur { background-color: var(--cyan); color: var(--blanc); }
.desc-joueur { color: #555; font-size: 0.95rem; line-height: 1.6; margin: 0; }

@media (max-width: 992px) { .grille-effectif { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grille-effectif { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. PAGE PARTENAIRES & SPONSORS
   ========================================================================== */
.grille-sponsors { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.carte-sponsor { background: var(--blanc); border-radius: 12px; padding: 2.5rem 2rem; width: calc(33.333% - 20px); min-width: 300px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border-top: 4px solid var(--cyan); transition: transform 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.carte-sponsor:hover { transform: translateY(-8px); }
.logo-sponsor-box { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; padding: 10px; background-color: var(--fond-gris); border-radius: 8px; }
.logo-sponsor-box img { max-height: 100%; max-width: 100%; object-fit: contain; }
.carte-sponsor h4 { color: var(--bleu-roi); font-size: 1.3rem; margin-bottom: 1rem; }
.carte-sponsor p { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.encadre-appel-partenaire { background: linear-gradient(135deg, var(--bleu-roi) 0%, #2a4d8c 100%); color: var(--blanc); border-radius: 12px; padding: 4rem 2rem; text-align: center; margin-top: 4rem; box-shadow: 0 10px 25px rgba(75, 113, 186, 0.2); }
.encadre-appel-partenaire h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--cyan); }
.encadre-appel-partenaire p { font-size: 1.1rem; margin-bottom: 2rem; }

/* ==========================================================================
   12. GRILLE GALERIE PHOTOS
   ========================================================================== */
.grille-galerie-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; width: 100%; }
.item-galerie { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); background-color: #ddd; border: 1px solid rgba(0,0,0,0.05); }
.item-galerie img { width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 0.4s ease; }
.item-galerie:hover img { transform: scale(1.08); }

/* ==========================================================================
   13. LIGHTBOX (Agrandissement des images)
   ========================================================================== */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    align-items: center; 
    justify-content: center;
}

.lightbox img {
    max-width: 90%; 
    max-height: 90%; 
    border-radius: 8px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-fermer {
    position: absolute; 
    top: 20px; 
    right: 40px; 
    color: white; 
    font-size: 50px; 
    font-weight: bold;
    cursor: pointer; 
    transition: color 0.3s;
}

.lightbox-prec, .lightbox-suiv {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: white; 
    font-size: 60px; 
    cursor: pointer; 
    user-select: none; 
    padding: 20px;
    transition: color 0.3s;
}

.lightbox-prec { left: 20px; }
.lightbox-suiv { right: 20px; }

.lightbox-prec:hover, .lightbox-suiv:hover, .lightbox-fermer:hover {
    color: var(--cyan);
}

@media (max-width: 768px) {
    .lightbox-prec, .lightbox-suiv { font-size: 40px; padding: 10px; }
    .lightbox-prec { left: 5px; }
    .lightbox-suiv { right: 5px; }
}

/* ==========================================================================
   14. RESPONSIVE DESIGN GLOBAL (MOBILES ET TABLETTES)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Global & Désactiver le menu fixe (Sticky) */
    body { overflow-x: hidden; }
    header { 
        position: relative; /* Annule le menu figé sur mobile */
        padding: 15px 10px; 
        flex-direction: column; 
    }
    .logo-container { margin-bottom: 10px; }

   /* 2. Menu de navigation (Correction du menu et lisibilité) */
    header { position: relative; padding: 15px 10px; flex-direction: column; }
    .logo-container { margin-bottom: 10px; }
    
    nav { width: 100%; }
    nav ul { justify-content: center; gap: 10px; }
    
    /* On force une largeur plus confortable pour les menus déroulants sur mobile */
    nav .sous-menu { 
        position: absolute; 
        top: 100%; 
        left: 50%; 
        transform: translateX(-50%); 
        min-width: 280px; /* Plus large pour éviter de couper le texte */
        background-color: var(--blanc);
        border: 1px solid #ddd;
        z-index: 3000;
        text-align: center;
        padding: 10px 0;
    }
    
    nav .sous-menu a { 
        font-size: 1rem; 
        padding: 12px 10px; /* Plus d'espace pour cliquer */
        color: var(--texte);
        display: block;
    }
    
    /* 3. Typographie (Moins gros, moins gras) */
    h1, h2, h3, h4 { font-weight: 600; } /* On adoucit l'épaisseur des titres */
    p, .desc-joueur, .description-tarif, .carte-sponsor p { font-weight: normal; font-size: 0.95rem; line-height: 1.5; }
    .page-banner { padding: 2.5rem 1rem; }
    .page-banner h2 { font-size: 1.5rem; }
    .page-banner p { font-size: 0.95rem; }
    .titre-intermediaire, .actualites h3, .resultats-accueil h3, .nous-connaitre h3, .matchs-a-venir h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }

    /* 4. Page Accueil */
    .hero { padding: 3rem 1rem; }
    .hero-titre-normal { font-size: 1.7rem; line-height: 1.3; font-weight: normal; }
    .hero p { font-size: 0.95rem; }
    .grille-connaitre { grid-template-columns: 1fr; }
    .carte-connaitre { height: 220px; }
    .equipes-prochain-match { font-size: 1.1rem; flex-direction: column; gap: 10px; }
    .galerie-accueil { flex-direction: column; }
    .galerie-accueil img { width: 100%; aspect-ratio: 16/9; }

    /* 5. Page Le Club (Histoire, Valeurs, Bureau) */
    .bloc-histoire { padding: 1.5rem 1rem; }
    .galerie-histoire { flex-direction: column; }
    .galerie-histoire img { width: 100%; aspect-ratio: 16/9; }
    .grille-valeurs { flex-direction: column; }
    .carte-valeur-objectif { width: 100% !important; min-width: unset; padding: 1.5rem; }
    .grille-membres { flex-direction: column; }
    .carte-membre { width: 100%; padding: 1.5rem 1rem; }
    .entete-carte-membre { flex-direction: column; text-align: center; }

    /* 6. Page Effectif */
    .titre-categorie-effectif { font-size: 1.3rem; flex-direction: column; text-align: center; gap: 10px; }
    .titre-categorie-effectif::after { display: none; }
    .grille-effectif { grid-template-columns: 1fr; gap: 20px; }
    .carte-joueur { padding: 0 1rem 1.5rem 1rem; }
    .nom-joueur { font-size: 1.2rem; font-weight: 600; }

    /* 7. Formulaires & Inscriptions */
    .form-container { padding: 1.5rem 1rem; }
    .flex-row { flex-direction: column; gap: 0; }
    .grille-tarifs { flex-direction: column; align-items: center; }
    .carte-tarif { width: 100%; max-width: 350px; padding: 1.5rem 1rem; }
    .prix-tarif { font-size: 2.2rem; }

    /* 8. Partenaires & Terrains */
    .grille-sponsors { flex-direction: column; align-items: center; }
    .carte-sponsor { width: 100%; padding: 1.5rem 1rem; }
    .encadre-appel-partenaire { padding: 1.5rem 1rem; margin-top: 2rem; }
    .encadre-appel-partenaire h3 { font-size: 1.4rem; }
    .planning-box { padding: 1.5rem 1rem; }
    .horaire-detail { flex-direction: column; gap: 5px; text-align: center; border-radius: 10px; padding: 10px; }
    .grille-terrains { flex-direction: column; }
    .carte-terrain { width: 100%; padding: 1.5rem 1rem; }

    /* 9. Galerie Photos */
    .grille-galerie-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* 10. Pied de page (Footer) */
    .contenu-footer { flex-direction: column; gap: 25px; text-align: center; }
    .logos-partenaires-footer .ligne-logos { justify-content: center; flex-wrap: wrap; }
}

/* Ajustement pour les tout petits écrans (iPhone SE etc.) */
@media (max-width: 400px) {
    .score { font-size: 1.1rem; padding: 5px 8px; }
    .hero-titre-normal { font-size: 1.5rem; }
    nav ul { flex-direction: column; align-items: center; } /* Empile les menus si l'écran est vraiment très étroit */
}