* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/*Début du css du fil d'ariane*/
header{
    position: fixed;    
    top: 0; 
    left: 0;
    right: 0;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 180px;
    box-shadow: 0 0 4px #000;
    background-color: rgb(255, 255, 255); 
}

header .logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
}


.Devanture {
    width: 100%;
    height: auto;
    opacity: 1;
    display: block;
}

.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 0;
    padding: 500px 60px 100px 60px; 

    overflow: hidden;

}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("../images/SALLE_SPORT_BERCK.JPG") center/cover no-repeat;

    z-index: -1;
    transform: scale(1.1);
}

/* TEXTE à gauche */
.hero-text {
    max-width:500px;
    color: rgb(214, 32, 32);
    position: relative;
    z-index: 2; 

    margin-right: 100px;
    padding: 10px 25px 10px 25px;

    background-color: #ffffff;
    border-radius: 10px;
}

.hero-text h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 30px;
    margin-left: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    justify-content: center;
    border-bottom: 2px solid #ff0000; 
    line-height: 50px;
    margin: 0 20px; 
}

.hero-text p {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    margin-top: 10px;
    font-size: 18px;
    color: #000000;
}


body {
    background-color: #fdfbf3;
    padding-top: 100px;
    background-color: #fdfbf3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow-x: hidden; /* ← ajoute juste cette ligne */
    margin: 0;
}
/* --------- Diaporama d'images ------------*/

.slideshow-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 50px auto;
    position: relative;
    padding: 0 180px; /* espace pour les slides latérales */
}

/* Centrer le diaporama au milieu de l'écran */
.slideshow-container {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: visible; /* ← plus de hidden */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 20px;
}

  
  /* Hide the images by default */
  .mySlides {
    position: absolute;
    top: 0;          /* ← plus de top:50% / translate, on gère autrement */
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s ease;
    border-radius: 20px;
    overflow: hidden;
}

  
  /* Next & previous buttons */
 .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9; /* ← au dessus des slides */
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    border-radius: 50px;
    background-color: rgba(0,0,0,0.4); /* ← toujours visible */
}
  
  
.prev { left: 10px; }
.next { right: 10px; }
  
  /* On hover, add a black background color with a little bit see-through */
 .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
  
  /* Caption text */
  .text {
    color: #f2f2f2;
    font-size: 15px;
    bottom: 25px;
    padding: 8px 12px;
    position: absolute;
    width: 100%;
    text-align: center;
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* The dots/bullets/indicators */
 

  
  /* Fading animation */
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }

  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.mySlides.active {
    opacity: 1;
    z-index: 3;
    transform: scale(1);
}
.mySlides.prevSlide {
    opacity: 0.7;
    z-index: 2;
    transform: translateX(-100%) scale(0.75);
}
.mySlides.nextSlide {
    opacity: 0.7;
    z-index: 2;
    transform: translateX(100%) scale(0.75);
}

.mySlides::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
}

/* gauche */
.prevSlide::after {
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}

/* droite */
.nextSlide::after {
    background: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }

  /* ----- Fin diapo images ----- */

  /* ----- Corps Principale de la page ----- */

  .atouts {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
  }

  .titre-atout {
    font-weight: bold;
    font-size: 50px;
    margin: 10px;
    display: flex;
    justify-content: center;
  }

  .atouts li {
    position: relative;
    font-size: small;
    border: 2px solid rgb(255, 0, 0);
    border-radius: 20px;
    padding: 20px 10px 10px 10px;
    display: inline-block;
    margin-top: 40px;
    margin: 40px 10px 0 10px;
    list-style: none;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }

  .atouts .text-icones{
    font-size: 15px;
    text-transform: uppercase;
  }

  /* Grossissement */
    .atouts li:hover {
        transform: scale(1.1);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        z-index: 2;
    }

    .details {
    position: absolute;   
    top: 100%;            
    left: 0;
    width: 100%;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;

    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10;
    }

    .atouts li:hover .details {
    opacity: 1;
    transform: translateY(0);
    }

    .icones{
    display: block;
    margin: 0 auto 10px auto;
    width: 60px;
    height: auto;
    background-color: rgba(255, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
  }




/* ----- SECTION OBJECTIFS ----- */

.section-objectifs {
    background-color: #ffffffe5; /* change la couleur ici */
    padding: 80px 20px;
    padding-bottom: 150px;
    margin-top: 50px;
}

/* Titre dans le bloc */
.titre-objectif-section {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 50px;
}

/* Reprend ton système existant */
.objectifs {
    display: flex;
    justify-content: center;
}

.liste-objectifs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
}

.objectifs li {
    border: 2px solid rgb(255, 0, 0);
    border-radius: 20px;
    padding: 20px;
    width: 260px;
    list-style: none;
    text-align: center;
    background-color: #fff;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objectifs li:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.text-objectif {
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    font-size: larger;
    margin-bottom: 10px;
}

.objectifs li p {
    font-size: 22px;
    color: #333;
}


/* ----- SECTION LOCAUX ----- */

.section-locaux {
    padding: 80px 40px;
    background-color: #fdfbf3;
    margin-bottom: 60px;
    background-color: #fdfbf3;

}

.locaux-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1500px;
    margin: auto;
    text-align: center;
}

/* TEXTE */
.locaux-titre-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 0px;
}

.locaux-titre-line {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.locaux-titre-line h2 {
    font-size: 100px;
    font-weight: 800;
    color: #1a2e5a;
    margin:  0;
    white-space: nowrap;
}

.locaux-titre-rule {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: #e0e0e0;
    position: relative;
}

.locaux-titre-rule.rule-left::after,
.locaux-titre-rule.rule-right::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8963A;
}

.locaux-titre-rule.rule-left::after { right: 0; }
.locaux-titre-rule.rule-right::after { left: 0; }

.locaux-adresse {
    font-size: 35px;
    color: #291818;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locaux-adresse::before,
.locaux-adresse::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1.5px;
    background: #E8963A;
    opacity: 0.6;
}

/* IMAGES */
.locaux-images {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* format vertical */
.locaux-images img {
    width: 250px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.locaux-images-principale img {
    width: 1670px;
    height: 820px;
    object-fit: cover;
    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.locaux-images img:hover {
    transform: scale(1.05);
}



  /* ----- Fin Corps Principale de la page ----- */


/* ================= RESPONSIVE ================= */

/* Tablettes */
@media (max-width: 1200px) {
    .hero {
        padding: 180px 40px;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 50px;
    }

    .hero-text p {
        font-size: 22px;
    }

    .hero-logo img {
        width: 300px;
    }

    .slideshow-wrapper {
        padding: 0 80px;
    }

    .slideshow-container {
        height: 500px;
    }

    .locaux-container {
        flex-direction: column;
        text-align: center;
    }

    footer {
        padding: 80px 80px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .hero {
        flex-direction: column;
        padding: 120px 20px;
        text-align: center;
    }

    .hero-text {
        margin-right: 0;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-logo {
        margin-left: 0;
        padding: 20px;
    }

    .hero-logo img {
        width: 220px;
    }

    .slideshow-wrapper {
        max-width: 100%;
        padding: 0 20px;
        margin: 40px auto;
    }

    .slideshow-container {
        height: 300px;
        overflow: hidden;
    }

    .mySlides.prevSlide,
    .mySlides.nextSlide {
        opacity: 0;
        transform: scale(1);
    }

    .prev,
    .next {
        padding: 12px;
        font-size: 14px;
    }

    .titre-atout,
    .titre-objectif-section {
        font-size: 34px;
        text-align: center;
    }

    .atouts ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .atouts li {
        width: 90%;
        text-align: center;
    }

    .section-objectifs {
        padding: 60px 20px 100px;
    }

    .liste-objectifs {
        flex-direction: column;
        align-items: center;
    }

    .objectifs li {
        width: 90%;
    }

    .section-locaux {
        padding: 60px 20px;
    }

    .locaux-container {
        flex-direction: column;
        gap: 30px;
    }

    .locaux-text h2 {
        font-size: 32px;
    }

    .locaux-text p,
    .locaux-text li {
        font-size: 16px;
    }

    .locaux-images {
        flex-direction: column;
        align-items: center;
    }

    .locaux-images img {
        width: 90%;
        height: 320px;
    }


}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero {
        padding: 90px 15px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-logo img {
        width: 180px;
    }

    .slideshow-container {
        height: 240px;
    }

    .titre-atout,
    .titre-objectif-section {
        font-size: 28px;
    }

    .objectifs li p {
        font-size: 17px;
    }

    .locaux-images img {
        height: 260px;
    }
}