/* RESET CSS DE BASE */

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

body{
    /* width: 90vw; */
    /* margin: auto; */
    /* background-color: red; */
}
main{
    /* background-color: blue; */
    padding-top: 140px;
    text-align: center;
}
main p{
  font-size: 1.5rem;
}

/* ----------------- DEBUT header pc --------------- */
header{
    height: 130px;
    position: fixed;
    z-index: 2;
    width: 100vw;
    top: 0;
    left: 0;
    box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0);
    background-color: #ffffff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: #333; */
  padding: 1.5vw;
  height: 130px;
}
.navbar h2 {
    display: none;
}

.logo {
  /* color: white;
  font-size: 1.5rem; */
  position: absolute;
  z-index: 4;
  top: 25px;
  left: 50px;
}
.logo img {
  height: 200px;
}

.disque-blanc {
  position: absolute;
  top: 16px;
  z-index: 3;
  width: 220px;
  height: 220px;
  background-color: #ffffff;
  border-radius: 50%;
  left: 39px;
}

.nav-links {
  height: 70px;
    list-style: none;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8rem;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    align-items: center;
}

.nav-links li a {
  color: rgb(41, 39, 45);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ff9900;
}

/* Burger menu hidden on desktop */
.burger {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ----------------- FIN header pc --------------- */


/* Conteneur principal du slider */
.slider {
  width: 100vw;               
  height: 100px;              /* Hauteur du header, peut être ajustée */
  overflow: hidden;           /* Cache tout ce qui déborde du conteneur */
}

/* Bande coulissante contenant les images */
.slider-track {
  display: flex;              /* Affiche les images en ligne (horizontalement) */
  width: 200%;                /* Deux fois plus large que .slider pour faire glisser 2 images */
  height: 100%;               /* Prend toute la hauteur du conteneur slider */
  transition: transform 1s ease-in-out;  /* Animation fluide lors du changement */
}

/* Chaque image dans le slider */
.slider img {
  width: 16.66vw;             /* Chaque image occupe 1/3 de la largeur du slider (50vw / 3) */
  height: 100%;               /* S'adapte à la hauteur du slider */
  object-fit: cover;          /* Recadre l’image pour couvrir toute la zone sans déformation */
  flex-shrink: 0;             /* Empêche l’image de rétrécir */
}



/* slider en fondu */
.slider-fade {
  position: relative;
  height: 50vh;       /* ajuste la hauteur selon ton design */
  overflow: hidden;    /* masque les débordements */
  margin: auto;        /* centrage comme le reste de <main> */
}

.slider-fade .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* pour bien recadrer l’image */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slider-fade .slide.active {
  opacity: 1;
  z-index: 1;
}

article{
    width: 70vw;
    margin: auto;
}
.photoVerre{
  display: flex;
  margin: 2rem 0 1rem;
}
.photoVerre h2{
  padding-bottom: 2rem;
}
.photoVerreTexte{
  /* display: flex; */
  padding: 2rem;
  text-align: left;
  width: 60%;
}
.photoVerre img{
  width: 30%;
  margin: 1rem 0;
}
.photo img{
  width: 100%;
  margin: 1rem 0;
}


.photoRegion{
    width: 60%;
    overflow: hidden;
}
.photoRegion img{
    width: 80%;
    transform: translateY(-8%);
}

h2{
  font-size: 2rem;
}

.enSavoirPlus{
  color: tomato;
}

/* ----------------- footer pc --------------- */
footer{
    height: 70px;
    background-color: white;
    box-shadow: 0px -10px 17px 0px rgb(0 0 0 / 15%);
    position: fixed;
    width: 100vw;
    bottom: 0px;
}
.videSousFooter{
    height: 100px;
}

/* grille */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 8rem auto;
}

.grid-item {
  text-align: center;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.legend {
  font-size: 0.9rem;
  color: #333;
}
 
/* galerie */
.titreGalerie{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galerie .grid-item img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}
 .galerie .grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 90vw;
  margin: 2rem auto;
}



    .navbarFooter{
    height: 70px;
    /* background-color: rgb(212, 25, 25); */
    }

.cgv h4{
  font-size: 1.5rem;
  margin-bottom: 20px;  
}

.cgv p{
  margin-bottom: 40px;
}


/* Responsive */
@media (max-width: 767px) {
  body {
    width: 100vw;
    overflow-x: hidden;
  }

  header, footer {
    width: 100vw;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar h2 {
    display: block;
    width: 72vw;
    /* background-color: red; */
    text-align: center;
}

  .logo img {
    height: 70px;
  }

  .burger {
    display: block;
    font-size: 2.5rem;
    color: rgb(41, 39, 45);
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-links {
    height: auto;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100vw;
    background-color: #ffffffe0;
    display: none;
    z-index: 10;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
    z-index: 1000;
  }

  .nav-links li {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  main {
    width: 90vw;
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .baniere img {
    width: 100%;
    height: auto;
  }

  main p {
    font-size: 1.1rem;
    padding: 0 1rem;
    text-align: left;
  }

  h1 {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 0 1rem;
    text-align: center;
  }

  /* ----------------- footer mobile 767 --------------- */
  footer .nav-links {
  /* background-color: rgb(223, 203, 19); */
    /* height: 100px; */
    /* list-style: none; */
    /* display: flex; */
    /* justify-content: center; */
    /* width: 100%; */
    /* gap: 8rem; */
    /* margin: 0; */
    /* padding: 0; */
    /* font-size: 1.5rem; */
    /* align-items: center; */
    /* display: block; */
}

.galerie .grid-container {
    grid-template-columns: 1fr;
  
    margin: AUTO;

  }
  
}


 /* ajustements spécifiques Realme 8 Pro 432px */
@media screen and (max-width: 432px) and (orientation: portrait) {
  header{
    /* background-color: red; */
    height: 85px;
  }

  .logo {
    position: absolute;
    z-index: 4;
    top: 7px;
    left: 17px;
}

  .disque-blanc {
    display: none;
  }
  .navbar {
    height: 85px;
  }

   main {
    width: 100vw;
    padding-top: 80px;
  }
  article{
    width: 100vw;
}
  .photoVerre {
    flex-direction: column;
    align-items: center;
  }
  .inverse{
    flex-direction: column-reverse;
  }

  .photoVerre img {
    width: 80%;
  }

  .photoVerreTexte {
    width: 90%;
    padding: 1rem;
    text-align: center;
  }
.photoRegion{
    width: 100%;
    overflow: hidden;
}
.photoRegion img{
    width: 100%;
    transform: translateY(-8%);
}

  .slider-fade {
    height: 43vh;
  }

  .navbar{
    display: flex;
    justify-content: right;
  }
  .nav-links li a {
    font-size: 1rem;
  }

  main p {
    font-size: 1rem;
  }

  .grid-container {
    margin: 3rem 48px auto;
}

/* ----------------- footer mobile 432 --------------- */
footer{
  /* bottom: 40px; */
}
footer .nav-links {
  /* background-color: green; */
  position: absolute;
  top: 0;
    height: 70px;
    /* list-style: none; */
    display: flex;
    flex-direction: row;
    /* justify-content: center; */
    /* width: 100%; */
    gap: 1rem;
    /* margin: 0; */
    /* padding: 0; */
    /* font-size: 1.5rem; */
    /* align-items: center; */
}
}