* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  font-size: 16px; /* Taille par défaut  utilisation de rem  pour adapter (responsive) */
}

li {
  list-style: none;
}
a {
  text-decoration: none;
  color: rgb(145, 197, 240);
  font-size: 1.3rem;
}
a:hover {
  color: rgb(255, 255, 255);
}
.header {
  position: relative;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.5);
}
/**************************************navbar*************************************************/

nav {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  padding: 10px 15px;
}
#logo a {
  font-weight: 500;
  font-family: "Allura", cursive;
  font-size: 4rem;
  padding: 0 30px;
  text-shadow: 2px 2px 5px rgb(231, 152, 77);
  animation: fadeIn 2s ease-in;
}
#logo a:hover {
  color: #f7880a;
}
.navbar .links {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  opacity: 0s;
  animation: fadeIn 3s ease-in;
}
#headerIndex {
  padding-top: 0px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  background-image: url(./img/img1.jpg);
}

#headerVideos {
  padding-top: 0px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  background-image: url(./img/img2.jpg);
}
#headerGalerie {
  padding-top: 0px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  background-image: url(./img/img3.jpg);
}
#headercgv {
  padding-top: 0px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  background-image: url(./img/img_cgv.jpg);
}
#headermention {
  padding-top: 0px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  background-image: url(./img/img-mention2.jpg);
}

#imgprincipale {
  display: flex;
  justify-content: center;
  padding-top: 600px;
  color: rgb(145, 197, 240);
  font-size: 2rem;
  /* Ombre du texte */
  text-shadow: 2px 2px 5px rgb(240, 132, 32);
  /* Animation d'apparition */
  opacity: 0s;
  animation: fadeIn 2s ease-in;
}

/*******************************1ere section le close-up******************************************/
.magie {
  display: flex;

  justify-content: space-between;
  align-items: center;
  background-color: lightblue;
  padding: 40px;
  margin: 0 auto;
}
.magie p {
  text-align: justify;
}
.magie h2 {
  text-align: center;
  padding: 20px;
}
.imgclose-up img {
  max-width: 100%;
  height: auto; /* pour conserver le ratio de l'image */
  display: block;
  margin-top: 30px;
  box-shadow: 6px 6px 2px -1px rgba(0, 0, 0, 0.295);
}
#close-up,
#journal {
  flex-basis: 55%;
  margin-right: 40px;
}
/************************section mentalisme************************************/
.magie2 {
  display: flex;

  justify-content: space-between;
  align-items: center;
  background-color: rgb(127, 193, 214);
  padding: 40px;
  margin: 0 auto;
}
.magie2 p {
  text-align: justify;
}
.magie2 h2 {
  text-align: center;
  padding: 20px;
}
.imgmentalisme img {
  max-width: 100%;
  height: auto; /* pour conserver le ratio de l'image */
  display: block;
  margin-top: 30px;
  box-shadow: 6px 6px 2px -1px rgba(0, 0, 0, 0.295);
}
#mentalisme {
  flex-basis: 75%;
  margin-right: 40px;
  /*****************************************section confiance des entreprises**********************/
}
.magie3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(201, 172, 120);
  padding: 40px;
  margin: 0 auto;
}
.magie3 p {
  text-align: justify;
}
.magie3 h2 {
  text-align: center;
  padding: 10px;
}
.imglogos img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  box-shadow: 6px 6px 2px -1px rgba(0, 0, 0, 0.295);
}
#confiance {
  flex-basis: 50%;
  margin-right: 40px;
}

/******************************section video***************************************/
.video1 {
  display: flex;

  justify-content: space-between;
  align-items: center;
  background-color: lightblue;
  padding: 40px;
  margin: 0 auto;
}
.video1 p {
  text-align: justify;
}
.video1 h2 {
  text-align: center;
  padding: 20px;
}
.video1 video {
  max-width: 100%;
  height: auto; /* pour conserver le ratio de l'image */
  display: block;
  margin-top: 30px;
  box-shadow: 6px 6px 2px -1px rgba(0, 0, 0, 0.295);
}
#mentalismeVideo {
  flex-basis: 55%;
  margin-right: 40px;
}
.video2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: lightblue;
  padding: 40px;
  margin: 0 auto;
}
.video2 p {
  text-align: justify;
}
.video2 h2 {
  text-align: center;
  padding: 20px;
}
.video2 video {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  box-shadow: 6px 6px 2px -1px rgba(0, 0, 0, 0.295);
}
#closeUpVideo {
  flex-basis: 55%;
  margin-right: 40px;
}

/************************************section Galerie photos*********************************/
#galeriePrincipale {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: rgb(145, 197, 240);
  min-height: 100vh; /* Utilise min-height au lieu de height */
  padding-bottom: 20px;
}

#maGalerie {
  color: rgb(29, 22, 95);
  text-align: center;
  font-size: 4rem;
  padding: 50px 0 10px 0;
}
.galerie {
  display: flex;
  justify-content: center;
  width: 80%;
  max-width: 1300px;
  margin: 70px auto 0;
  flex-wrap: wrap;
}
.item {
  width: 400px;
  height: 300px;
  margin: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.item img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Pour mieux gérer le recadrage */
  cursor: pointer;
}

/**************************************************agrandissement photos***********************/
/* Style pour le modal */
#modal {
  display: none; /* Masque par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Arrière-plan semi-transparent */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
}

/* Style de l'image agrandie */
#modal img {
  max-width: 90%;
  max-height: 90%;
}

/* Style pour le bouton de fermeture */
#fermer {
  position: absolute;
  top: 20px;
  right: 150px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}
/***********************************bouton retour******************************************/
.bouton-retour {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff; /* Couleur bleue */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: none; /* Caché par défaut */
  z-index: 1000;
}

.bouton-retour:hover {
  background-color: #0056b3;
}
/**************************************CGV ET MENTIONS LEGALES****************************/
.legale {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  margin: 0px;
  background-color: rgb(137, 181, 218);
}
.mentleg {
  text-align: center;
}
#condition {
  text-align: justify;
}
/***********************************section footer***********************************************/
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: hsl(189, 48%, 89%);
  padding: 40px;
}
#copyright {
  display: flex;
  padding: 10px 10%;
  align-items: center;
  background-color: rgb(78, 154, 216);
  color: white;
}
#copy {
  width: 50%;
  text-align: left;
}
#credit {
  width: 50%;
  text-align: right;
}

/***********************************carte de visite pour contact*************************************/
h4,
h3 {
  margin: 0;
}
.image {
  max-width: 100%;
  height: auto;
  width: 8em;
}
.container {
  display: flex;
  margin-top: 2%;
  flex-direction: row;
  justify-content: center;
}
.card {
  box-shadow: 0 4px 8px grey;
  width: 200px;
  height: 320px;
  border-radius: 5px;
}
.card:hover {
  box-shadow: 0 4px 8px rgb(19, 19, 80);
}
.photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-color: rgb(78, 154, 216);
  text-align: center;
  height: 35%;
  border-radius: 5px 5px 0 0;
}
.carteinfos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  height: 100px;
  color: rgb(19, 19, 80);
  text-transform: uppercase;
}

.bouton {
  display: flex;
  text-align: center;
  justify-content: center;
  margin-top: 20px;
}
.monbouton {
  font-size: 25px;
}
button {
  border: solid 2px rgb(19, 19, 80);
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
  color: rgb(78, 154, 216);
  font-weight: 500;
  cursor: pointer;
}
button:hover {
  background: rgb(78, 154, 216);
  color: white;
  transition: all 0.2s ease;
}
.footer-link {
  color: #007bff; /* Bleu */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8em;
}

.footer-link:hover {
  text-decoration: underline;
  color: rgb(19, 19, 80);
}

/************************************************animation**************************************************/
/* Définition de l'animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px); /* Déplacement de l'élément */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*************************************media***********************************************/

@media (max-width: 768px) {
  #close-up,
  #mentalisme,
  #confiance,
  #closeUpVideo,
  #mentalismeVideo,
  #journal {
    width: 90%; /* Réduisez la largeur pour s'adapter */
    margin: 0 auto; /* Reste centré */
    text-align: center;
  }

  .magie .magie2 .magie3 {
    flex-direction: column; /* Ajustez la direction des enfants */
  }
  .photo {
    height: 35%;
  }
  .image {
    max-width: 100%;
    height: auto;
  }
}

/* Réglages de base */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
html {
  font-size: 16px;
}
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

/* Disposition des sections flexibles */
.magie,
.magie2,
.magie3,
.video1,
.video2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .magie,
  .magie2,
  .magie3,
  .video1,
  .video2 {
    flex-direction: column;
    padding: 20px;
  }
}

/* Logo et Navbar */
nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
}
#logo a {
  font-size: 3rem;
}
@media (max-width: 768px) {
  #logo a {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  #logo a {
    font-size: 2rem;
  }
}

/* Galerie photos */
.galerie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1300px;
  margin: 20px auto;
}
.item {
  width: 48%; /* Pour deux colonnes sur mobile */
  height: auto;
  margin: 1%;
}
@media (max-width: 768px) {
  .item {
    width: 100%; /* Une colonne pour les petits écrans */
  }
}

/* Section #imgprincipale */
#imgprincipale {
  font-size: 1.8rem;
  padding-top: 500px;
  text-align: center;
  margin-bottom: 30px;
}
@media (max-width: 1025px) {
  #imgprincipale {
    padding-top: 300px;
    font-size: 1.5rem;
  }
  #imgprincipale h1 {
    margin-top: 350px;
  }
  #cgv {
    font-size: 1em;
  }
}
@media (max-width: 820px) {
  #imgprincipale {
    padding-top: 300px;
    font-size: 1.5rem;
  }
  #imgprincipale h1 {
    margin-top: 200px;
  }
  #cgv {
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  #imgprincipale {
    padding-top: 300px;
    font-size: 1.2rem;
  }
  #imgprincipale h1 {
    margin-top: 200px;
  }
  .navbar .links {
    gap: 1.5rem;
  }
  #copyright {
    font-size: 9px;
  }
  #cgv {
    font-size: 1em;
  }
}
@media (max-width: 360px) {
  #imgprincipale {
    padding-top: 300px;
    font-size: 1rem;
  }
  #imgprincipale h1 {
    margin-top: 200px;
  }
  .navbar .links {
    gap: 1.5rem;
  }
  #copyright {
    font-size: 8px;
  }
  #cgv {
    font-size: 1em;
  }
}

/* Footer */
#contact,
#copyright,
#cgv {
  padding: 10px;
  text-align: center;
}
@media (max-width: 1024px) {
  #headerIndex,
  #headerVideos,
  #headerGalerie,
  #headercgv,
  #headermention {
    background-attachment: scroll;
  }
}
@media (max-width: 480px) {
  #headerIndex,
  #headerVideos,
  #headerGalerie,
  #headercgv,
  #headermention {
    background-size: cover;
    background-position: center;
  }
}
/***************************scrollbar****************************/
/* Style général pour la scrollbar */
::-webkit-scrollbar {
  width: 12px; /* Largeur de la scrollbar */
  background-color: rgb(145, 197, 240); /* Couleur de fond de la scrollbar */
}

/* Style pour le "thumb" (la partie qu'on fait glisser) */
::-webkit-scrollbar-thumb {
  background-color: rgb(19, 19, 80); /* Couleur du thumb */
  border-radius: 6px; /* Arrondir les bords */
}

/* Style au survol du thumb */
::-webkit-scrollbar-thumb:hover {
  background-color: #f1f1f1; /* Couleur du thumb au survol */
}

/* Optionnel : Couleur de la bordure si nécessaire */
::-webkit-scrollbar-thumb {
  border: 3px solid rgb(145, 197, 240); /* Crée un effet "espace" entre le thumb et la scrollbar */
}
