/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES DE COULEURS */
:root {
    --rouge: #d32f2f;
    --vert: #43a047;
    --blanc: #ffffff;
    --gris: #333;
}

/* STICKY FOOTER SETUP */
html,
body {
    height: 100%;
    
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: var(--blanc);
    color: var(--gris);
}

main {
    flex: 1;
    /* occupe tout l'espace restant */
}

/* HEADER NAVBAR */
header.navbar,
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--rouge);
    z-index: 1000;
    padding: 10px 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

.nav-container {
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
 justify-content: flex-start; /* alignement à gauche */
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin: 5px;
}

.nav-links a:hover {
    color: var(--vert);
}


.logo {
    height: 50px;
    object-fit: contain;
    background-color: white;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.logo-link {
    display: flex;
    align-items: left;
    justify-content: left;
     margin-right: 30px; /* un petit espace entre le logo et les liens */
}

.logo:hover {
    transform: scale(1.15);
}

/* SECTION HERO */
.hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    /* Pour éviter d'être masqué par la navbar fixe */
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    /* overlay foncé */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* FOOTER */
footer {
    background-color: black;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer .container p {
    margin: 5px 0;
}

footer .container a {
    color: white;
}

/* MAP SECTION */
.map-section {
    margin: 40px auto;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--rouge);
}

#map {
    height: 400px;
    width: 90%;
    max-width: 800px;
    /* facultatif pour éviter qu'elle soit trop large */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    /* 👉 centrage horizontal */
}


/* HORAIRE */
.horaire {
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Permet d'aligner le texte en haut et l'image en dessous */
}

.horaire h2 {
    font-size: 1.8rem;
    color: var(--rouge);
    margin-bottom: 10px;
}

.creneaux {
    width: 80%;
    /* Ajuste la largeur de l'image */
    max-width: 800px;
    /* Limite la largeur de l'image */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info {
    padding: 10px;
    font-size: 1rem;
    color: var(--gris);
    /* Gris pour le texte supplémentaire */
    margin-top: 10px;
    line-height: 1.5;
    max-width: 800px;
    /* Limite la largeur du texte */
    text-align: left;
}




/* SECTION CONTACT */

.contact-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c62828;
    margin-bottom: 15px;
}

.contact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-card li {
    margin-bottom: 10px;
}

.contact-card a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
    color: #a12323;
}

.contact-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background-color: #fdeaea;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.contact-section {
    background-color: var(--blanc);
    padding: 60px 20px;
}

.contact-info,
.ag-reports,
.sponsorship {
    margin-bottom: 30px;
}

.contact-info ul,
.ag-reports ul,
.sponsorship ul {
    list-style: none;
}

.contact-info li,
.ag-reports li,
.sponsorship li {
    margin: 10px 0;
}

.contact-info a,
.ag-reports a,
.sponsorship a {
    text-decoration: none;
    color: var(--couleur-link);
    font-weight: bold;
}

.contact-info a:hover,
.ag-reports a:hover,
.sponsorship a:hover {
    text-decoration: underline;
}

/* SECTION EQUIPE */
.equipe {
    background-color: var(--vert);
    color: var(--blanc);
    text-align: center;
    padding: 80px 20px;
}

.equipe-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.equipe-content p {
    font-size: 1.2rem;
}

/* GALERIE DES ÉQUIPES */
.team-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 10px 0;
    margin-bottom: 40px;
}

.team-card {
    margin-top: 20px;
    position: relative;
    width: 90%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
}

.team-card .team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-info {
    opacity: 1;
    /* Affiche le texte au survol */
}

.team-card:hover {
    transform: scale(1.05);
    /* Effet de zoom */
}

/* Lien invisible pour cliquer sur les cartes */
.team-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Conteneur général des sections par poste */


.poste-section {
    padding: 0 10px;
    margin: 20px 0;
}

.poste-section h2 {
    text-align: center;
    color: var(--rouge);
    padding: 30px;
}

/* Infos joueur */
.team-info {
    padding: 10px;
    font-size: 0.95rem;
    background-color: #f4f4f4;
    color: var(--gris);
}

.team-info p:first-child {
    font-weight: bold;
    font-size: 1rem;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:9999;
    flex-direction: column;
    overflow: auto;
    /* permet de scroller si le contenu dépasse */
    max-width: 100vw;
    max-height: 100vh;
    padding: 20px;
}

.lightbox img {
    max-width: 95vw;
    /* largeur max : 95% de la fenêtre */
    max-height: 90vh;
    /* hauteur max : 90% de la fenêtre */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox .arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.lightbox .arrow.left {
    left: 20px;
}

.lightbox .arrow.right {
    right: 20px;
}

.hidden {
    display: none;
}

/* SOCIAL ICONS */
.social-icons {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    filter: invert(1) brightness(2);
}

.social-icon {
    height: 30px;
    width: 30px;
    transition: transform 0.3s ease-in-out;
}

.social-icon:hover {
    height: 40px;
    width: 40px;
    transform: scale(1.2);
}

/* BURGER MENU */
.burger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

/* RESPONSIVE */
@media (max-width: 1272px) {

    .team-gallery {
        flex-direction: column;
        align-items: center;
    }

    .player-img,
    .presse-image {
        width: 100%;
        max-width: 90vw;
        height: auto;
        object-fit: cover;
    }

    .poste-section h2 {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-section .container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 100%;
    }

    /* Burger menu visible */
    .burger {
        display: block;
    }

    /* Navbar adjustments */
    .nav-container {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: var(--rouge);
        text-align: center;
        display: none;
        padding: 20px 0;
        gap: 15px;
        z-index: 999;
        margin-top: 10px;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-left,
    .nav-right {
        position: static;
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        margin: 0;
        padding: 10px 0;
        display: block;
        width: 100%;
        color: white;
        font-size: 1.1rem;
    }

    /* Social icons reposition */
    .social-icons {
        position: static;
        justify-content: center;
        margin-top: 15px;
        margin-right: 100px;
    }

    .logo-link {
        margin-top: 5px;
    }

    /* Container flex adjustment */
    .container {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    /* Nav-links adjustments (duplicate but needed for fallback) */
    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    /* Hero section height */
    .hero {
        height: 60vh;
    }

    /* Footer padding */
    footer {
        padding: 20px;
    }

    /* Contact section padding */
    .contact-section {
        padding: 20px 0;
    }

    /* Lists padding */
    .contact-info ul,
    .ag-reports ul,
    .sponsorship ul {
        padding-left: 20px;
    }

    /* Map smaller height */
    #map {
        height: 300px;
    }
}

/* === Section inscription === */

.inscription-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

.inscription-section h2,
.inscription-section h3 {
    color: black;
    margin-bottom: 20px;
}

.inscription-section h2 {
    font-size: 2rem;
    border-bottom: 2px solid black;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.inscription-section h3 {
    font-size: 1.4rem;
    margin-top: 40px;
}

.inscription-section p,
.inscription-section li {
    font-size: 1rem;
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.inscription-section ul {
    list-style: disc inside;
    margin: 15px auto;
    padding-left: 0;
    max-width: 700px;
    text-align: left;
}

.inscription-section ul ul {
    list-style: circle inside;
    margin-left: 20px;
}

.lien {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.inscription-section a:hover {
    text-decoration: underline;
}

/* Boutons */

.btn-inscription {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--rouge);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    margin: 20px 0;
}

.btn-inscription:hover {
    background-color: rgb(159, 12, 12);
}

.btn-center {
    text-align: center;
    margin: 30px 0;
}


/* Note d'infos */
.info-note {
    font-size: 0.9rem;
    color: #555;
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .inscription-section {
        padding: 30px 15px;
    }

    .inscription-section h2 {
        font-size: 1.6rem;
    }

    .inscription-section h3 {
        font-size: 1.2rem;
    }

    .inscription-section p,
    .inscription-section li {
        font-size: 0.95rem;
    }

    .btn-inscription {
        width: 90%;
    }

    .inscription-section ul {
        text-align: left;
    }
}


#equipeh1 {
    margin-top: 50px;
    margin-left: 80px;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

/* === Galerie Presse === */

.presse-gallery {
    background-color: #f3f3f3;
    padding: 50px 20px;
    text-align: center;
}

.presse-gallery h2 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #2e7d32;
    display: inline-block;
    padding-bottom: 5px;
}

.presse-annee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.presse-image {
    max-width: 250px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    object-fit: contain;
}

.presse-image:hover {
    transform: scale(1.05);
    border-color: #2e7d32;
}



@media (max-width: 600px) {
    .lightbox img {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox .arrow {
        font-size: 30px;
    }
}


/* Masquer la lightbox au départ */
.presse-hidden {
    display: none !important;
}
@media (max-width: 1024px) {
    .contact-card {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Responsive : mobile */
@media (max-width: 600px) {
    .contact-container {
        flex-direction: column;
        gap: 15px;
    }

    .contact-card {
        flex: 1 1 100%;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    .become-sponsor p {
        width: 90%;
        padding-top: 10px;
        margin-left: 2.7%;
    }
    .contact-card {
        width: 90%;
    }
}

.article-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.article-card {
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: scale(1.05);
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* horaire  */

.categorie {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.categorie h3 {
    color: var(--rouge);
    margin-bottom: 10px;
}

.horaire-nouvelle {
    margin: 2rem auto;
    max-width: 1100px;
    padding: 0 1rem;
    text-align: center;
}


.horaire-case {
    padding: 6px;
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 1%;
}

.salle-lemoine {
    background-color: #e74c3c; /* rouge */
}

.salle-val {
    background-color: #f1c40f; /* jaune */
    color: #000;
}

.salle-ducey{
    background-color: orange; /* vert */
    color: #000;
}

.legende {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.couleur {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 3px;
}

.salle-lemoine.couleur {
    background-color: #e74c3c;
}

.salle-val.couleur {
    background-color: #f1c40f;
}

.reprise-info {
    background-color: #fff7f0;
    border: 2px solid var(--rouge);
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.reprise-info h2 {
    color: var(--rouge);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.reprise-info .highlight {
    font-weight: bold;
    font-size: 1.9rem;
}

.reprise-info .subtitle {
    color: var(--vert);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.reprise-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.reprise-info .details {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
}

.reprise-info .details li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .horaire-grille {
        grid-template-columns: 1fr;
    }

    .horaire-jour {
        background-color: #fafafa;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .jour {
        font-size: 1rem;
        background-color: transparent;
    }

    .horaire-case {
        font-size: 0.95rem;
        padding: 8px;
    }

    .reprise-info {
        padding: 20px 15px;
        margin: 30px auto;
        font-size: 0.95rem;
    }

    .reprise-info h2 {
        font-size: 1.4rem;
    }

    .reprise-info .highlight {
        font-size: 1.5rem;
    }

    .reprise-info .subtitle {
        font-size: 1.1rem;
    }

    .reprise-info .details {
        padding-left: 10px;
        text-align: left;
    }

    .reprise-info .details li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 6px;
    }
}


/* sponsors */

.sponsors {
    text-align: center;
    padding: 3rem 1rem;
}

.sponsors h1 {
    font-size: 2.2rem;
    color: var(--rouge);
    margin-bottom: 1rem;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.sponsor-card {
    display: block;
    padding: 1rem;
    margin-top : 3rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.become-sponsor {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.become-sponsor a {
    color: var(--vert);
    text-decoration: underline;
}

/* Boutons dans la popup Leaflet */
.leaflet-popup-content button {
    background-color: var(--rouge);
    color: var(--blanc);
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    margin: 4px 2px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.leaflet-popup-content button:hover {
    background-color: var(--vert);
    transform: scale(1.05);
}

.leaflet-popup-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--gris);
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--rouge);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hidden {
    display: none;
}

/* Soutenir */

.soutenir {
    margin: 2rem auto;
    max-width: 1100px;
    padding: 0 1rem;
    text-align: center;
}

.soutenir-info {
    background-color: #fff7f0;
    border: 2px solid var(--rouge);
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.soutenir-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

@media (max-width: 700px) {
       .soutenir-info {
        padding: 20px 15px;
        margin: 30px auto;
        font-size: 0.95rem;
    }
}