

/* Appliquer box-sizing: border-box à tous les éléments
   pour éviter que le padding/les bordures augmentent la taille */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
/* Corps principal */
body {
    font-family: 'Roboto', sans-serif;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* Image de fond fixée */
.background-fix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url("../image/gantBoxe.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Pas "fixed" car inutile ici */
    transform: translateZ(0); /* important pour iOS */
    will-change: transform;
}

/* Superposition d'une ombre sur le fond pour que ça soit plus visible*/
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: -1;
}
/* verticale */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: white;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 6px black;
    margin-top: 15%;
}

.endessous {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90vh;
    padding: 80px 20px 20px 20px;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}
/* Ajustement pour petits écrans */
@media screen and (max-width: 1000px) {
    .endessous {
        padding-top: 20vh;
    }
}
@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }
}

/* Animation d'apparition vers le haut */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Texte slogan sous le titre */
.slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 10px;
    text-shadow: 1px 1px 4px black;
}

/* Bouton inscription */
.inscrire {
    margin: 50px auto 20px auto;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #c62828;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.7);
    transition: background-color 0.3s ease;
}

/* Effet hover bouton */
.inscrire:hover {
    background-color: #a32020;
}

/* Section présentation sombre */
.presentation {
    background-color: #363734;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Apparition animation */
.presentation.apparait {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

/* Bloc contenu dans présentation */
.souspresentation {
    background-color: rgba(106, 107, 101, 0.9);
    width: 95%;
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.souspresentation h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Contenu en ligne (image + liste) */
.acoter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
}

/* Images à coter du texte */
.acoter img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.acoter ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
}

/* Section galerie */

.galerie-section {
    background-color: rgba(106, 107, 101, 0.9);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Bloc images et texte*/

.galerie-block {
    display: flex;
    align-items: center;
    justify-content: center; /* centrer horizontalement */
    gap: 110px; /* espace équilibré entre titre et galerie */
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/*espacement avec le texte */

@media(max-width:800px){
    .galerie-block{
         gap: 50px;
    }
}
/*apparition du bloc avec les images */ 

.galerie-block.apparait {
    opacity: 1;
    transform: translateY(0);
}

/* mettre en ligne le premier bloc */

.galerie-block.normal {
    flex-direction: row;
    justify-content: space-around;
    
}
/* mettre en ligne le deuxieme bloc inversé */
.galerie-block.inverse {
    flex-direction: row-reverse;
    justify-content: space-around;
}

/* conteneur avec les images */
.galerie-wrapper {
    overflow: hidden;
    width: 630px; 
    max-width: 100%;
    padding: 0 10px;
    position: relative;
    
}
/* images animé */
.galerie {
    display: flex;
    gap: 15px;
    animation: scroll-horizontal 20s linear infinite;
    width: max-content;
}

/* Défilement automatique horizontal */
@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause de l’animation au survol */
.galerie-wrapper:hover .galerie {
    animation-play-state: paused;
}
/*style pour les images des galeries*/
.galerie img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/*animation des images au survol */
.galerie img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}
/*style des deux titres des galeries*/
.titre-gauche,
.titre-droite {
    color: white;
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
    width: auto;
    flex-shrink: 0;
    text-align: center;
}


/* Responsive galerie */
@media screen and (max-width: 768px) {
    .galerie-block {
        flex-direction: column;
        align-items: center;
    }

    .galerie-wrapper,
    .titre-gauche,
    .titre-droite {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .galerie {
        animation-duration: 12s;
    }

    .galerie img {
        width: 150px;
    }

    .galerie-wrapper {
        width: 480px; /* 3 x 150px + gap */
    }
}



/* Section carte Google Maps */
.map-section.apparait {
    opacity: 1;
    transform: translateY(0);
}
.map-section {
    background-color: #363734;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
    color: white;
}

.map-section h2 {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.map-section p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Conteneur iframe responsive */
.map-responsive {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.map-responsive iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* Animation map & cta */
.map-section,
.cta-final {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Appel à l'action final */
.cta-final.apparait {
    opacity: 1;
    transform: translateY(0);
}
.cta-final {
    background-color: rgba(106, 107, 101, 0.9);
    padding: 40px 20px;
    width: 100%;
    text-align: center;
    color: white;
    position: relative;
}

.cta-final h2 {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-final p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Bouton dans CTA */
.inscrirebas {
    display: inline-block;
    margin: 30px auto 0 auto;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #c62828;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.7);
    transition: background-color 0.3s ease;
}

.inscrirebas:hover {
    background-color: #a32020;
}

/* pied de page */
.baspage {
    background-color: #363734;
    width: 100%;
    padding: 40px 20px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}


/* Flèche de scroll vers le bas */
.scroll-arrow {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 0 auto;
    top: -10px;
}
/* Flèche elle-même */
.scroll-arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 3px solid black;
    border-right: 3px solid black;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
    position: relative;
    top: 0;
}
/* Animation rebond */
@keyframes bounce {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: 10px; opacity: 0.5; }
}
