@import url('https://fonts.googleapis.com/css2?family=Passion+One:wght@400;700;900&display=swap');

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

body {
    overflow-x: hidden;
    font-family: sans-serif;
}

/* --- SECTION HERO --- */
.hero {
    min-height: 45vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 20px;
    background: linear-gradient(to right, rgba(20, 60, 20, 0.95) 0%, rgba(20, 60, 20, 0.7) 50%, transparent 100%), url('../img/hero-index.webp') no-repeat center center/cover;
    color: white;
}

h1 {
    font-family: "Passion One", sans-serif;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 0.95;
}

.hero p {
    font-size: 0.9rem;
    font-style: italic;
    border-left: 3px solid #fff;
    padding-left: 12px;
    max-width: 270px; 
}

/* --- SECTION VALEURS --- */
.valeurs {
    padding: 30px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.barre {
    position: relative;
    display: flex;
    background: #008b27;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.slide {
    position: absolute;
    top: 4px; 
    left: 4px;
    height: calc(100% - 8px);
    width: calc(33.33% - 5.33px); /* Ajustement pour les 3 boutons avec le padding de la barre */
    background: white;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animation plus fluide */
    z-index: 1;
}

.item {
    flex: 1; 
    z-index: 2; 
    position: relative;
    border: none; 
    background: none; 
    padding: 12px 0;
    font-family: 'Passion One', sans-serif;
    text-transform: uppercase; 
    cursor: pointer;
    color: #ffffff; 
    font-size: 1rem;
}

.item.actif { 
    color: #000; 
}

#info {
    font-size: 0.95rem;
    line-height: 1.4; 
    color: #333; 
    text-align: center;
}

/* --- SECTION MATCHS --- */
.matchs {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.bloc-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.carte {
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.carte.dernier { 
    border: #095b00 2px solid; 
    background: white; 
}

.carte.prochain { 
    background-color: #E0E0E0; 
    border: none; 
}

.badge {
    background: white;
    padding: 5px 12px;
    border-radius: 8px;
    border: 2px solid black;
    font-family: 'Passion One', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: inline-block;
}

.score-zone { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.equipe { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
}

.logo {
    width: 65px; 
    height: 65px; 
    background-color: white; 
    border-radius: 50%; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
}

.logo img { 
    width: 75%; 
    height: auto; 
    object-fit: contain; 
}

.equipe span { 
    font-weight: bold; 
    font-size: 0.85rem; 
}

.chiffre { 
    font-family: 'Passion One', sans-serif; 
    font-size: 2.2rem; 
}

.vs { 
    font-family: 'Passion One', sans-serif; 
    font-size: 1.8rem; 
    flex: 0.5; 
    text-align: center; 
}

.infos-bas {
    margin-top: 15px; 
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.8rem;
}

.bouton-voir {
    display: inline-block; 
    margin-top: 15px;
    background-color: white; 
    color: black;
    text-decoration: none; 
    font-family: 'Passion One', sans-serif;
    text-transform: uppercase; 
    padding: 8px 20px;
    border-radius: 10px; 
    border: 2px solid black;
    font-size: 0.95rem;
}

/* --- SECTION SAISON --- */
.bandeau-saison {
    background-color: #008b27;
    width: 100vw;
    position: relative;
    left: 50%; 
    right: 50%;
    margin-left: -50vw; 
    margin-right: -50vw;
    padding: 35px 0;
    margin-top: 40px;
    color: white;
}

.saison-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.saison-txt h2 {
    font-family: 'Passion One', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.saison-txt p {
    font-size: 1rem;
    opacity: 0.9;
}

.saison-bouton {
    display: inline-block;
    width: fit-content;
    background-color: white;
    color: black;
    text-decoration: none;
    font-family: 'Passion One', sans-serif;
    text-transform: uppercase;
    padding: 10px 25px;
    border-radius: 10px;
    border: 2px solid black;
    font-size: 1rem;
}
/* --- SECTION PROMO --- */
.promo {
    padding: 20px;
    width: 100%;
}

.promo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.carte-promo {
    position: relative;
    height: 380px; 
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 30px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
}

.carte-promo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 60, 20, 0.95) 0%, rgba(20, 60, 20, 0.7) 50%, transparent 100%);
    z-index: 1;
}

.promo-txt {
    position: relative;
    z-index: 2; 
}

.carte-promo h2 {
    font-family: 'Passion One', sans-serif;
    color: white;
    text-transform: uppercase;
    font-size: 2.5rem;
    line-height: 0.95;
    margin-bottom: 20px;
}

.fond-boutique { background-image: url('../img/boutique.webp'); }
.fond-social { background-image: url('../img/reseaux.webp'); }

.promo-bouton {
    display: inline-block;
    background: white;
    color: black;
    text-decoration: none;
    font-family: 'Passion One', sans-serif;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    border: 2px solid black;
}

.promo-socials {
    display: flex;
    gap: 15px;
}

.promo-socials img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* --- SECTION GALERIE (Mobile First) --- */
.galerie {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.galerie h2 {
    font-family: 'Passion One', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.galerie-conteneur {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tel */
    gap: 12px;
}

.galerie-item {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

/* On cache les photos 5 à 8 sur mobile */
.cache-mobile {
    display: none;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galerie-voile {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(20, 60, 20, 0.4), transparent);
    opacity: 0;
    transition: 0.3s;
}

/* --- RESPONSIVE 768px --- */
@media (min-width: 768px) {
    .hero { 
        min-height: 60vh; 
        padding: 60px; 
    }
    h1 { 
        font-size: 5rem; 
    }
    .hero p { 
        font-size: 1.5rem; 
        max-width: 500px; 
    }
    .matchs { 
        max-width: 900px; 
        flex-direction: row; 
    }
    .bloc-match { 
        flex: 1; 
    }
    .saison-wrapper { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    }
    .saison-txt h2 { 
        font-size: 3.5rem; 
    }
       .promo-wrapper {
        flex-direction: row;
        height: 450px;
    }

    .fond-boutique {
        flex: 7; 
    }

    .fond-social {
        flex: 3; 
    }

    .carte-promo h2 {
        font-size: 3rem;
    }
.galerie {
        padding: 50px 20px;
    }

    .galerie h2 {
        font-size: 3rem;
    }

    .galerie-conteneur {
        grid-template-columns: repeat(4, 1fr); /* Passe à 4 colonnes */
        gap: 15px;
    }

    .galerie-item {
        height: 250px;
    }
    .cache-mobile {
        display: block;
    }

    .galerie-item:hover img {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

    .galerie-item:hover .galerie-voile {
        opacity: 1;
    }
}


