html{
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background-color: #1f282f;
}

/* MENU BURGER+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

.navbar {
  background-color: #1f282f;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  z-index: 10000; 
}

.menu {
  display: flex;
  margin-left: auto; /* Aligner à droite */
}
.menu-title {
  margin: 0; /* Supprime la marge par défaut du h1 */
  margin-left: 5px; /* Supprime la marge par défaut du h1 */
  flex-grow: 1; /* Permet au h1 de prendre tout l'espace restant */
  text-align: left; /* Centre le texte du h1 */
}

.menu-title a {
  text-decoration: none; /* Supprime le soulignement du lien */
  color: inherit; /* Utilise la couleur héritée du parent (.menu-title) */
}

.menu-title a:hover {
  color: inherit; /* Couleur du texte au survol (même couleur que le texte normal) */
}
.menu a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
  margin-right: 30px;
  transition: color 0.3s ease-in-out;
  font-size:larger;
  padding: 5px 10px;
  
}
.menu a:hover {
  color: #574cf1; /* Couleur du texte au survol (blanc dans ce cas) */
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 30px;
  padding-right:30px;

}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.cross .bar:first-child {
  transform: rotate(-45deg) translateY(4px);
}

.cross .bar:nth-child(2) {
  opacity: 0;
}

.cross .bar:last-child {
  transform: rotate(45deg) translateY(-4px);
}

@media only screen and (max-width: 768px) {
  .burger-menu {
    display: flex;

  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #171c22; /* Fond en #1f282f */
    padding: 15px;
    box-sizing: border-box;
  }
  .menu-title {
    margin: 0; /* Supprime la marge par défaut du h1 */
    flex-grow: 1; /* Permet au h1 de prendre tout l'espace restant */
    text-align: center; /* Centre le texte du h1 */
  }

  .menu.show {
    display: flex;
  }

  .burger-menu .bar:first-child {
    transform: rotate(0) translateY(0);
  }

  .burger-menu .bar:nth-child(2) {
    opacity: 1;
  }

  .burger-menu .bar:last-child {
    transform: rotate(0) translateY(0);
  }
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
.button {
  padding: 20px;
  text-align: center;
  color: #000;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 30px;
  cursor: pointer;
  display: inline-block;
}

.button-contact {
  --border-width: 1em;
  --edge-size: 1em;
  color: #fff;
  background: linear-gradient(to left, #574cf1 50%, #7067f1 50%) right;
  background-size: 200%;
  transition: background-position 300ms ease-in-out;
  clip-path: polygon(var(--edge-size) 0%,
      100% 0,
      100% calc(100% - var(--edge-size)),
      calc(100% - var(--edge-size)) 100%,
      0 100%,
      0% var(--edge-size));
}

.button-contact:hover {
  background-position: left;
  transition: background-position 300ms ease-in-out;
}

.section {
  display: flex;
  height: 550px;
  padding: 50px;
  padding-top: 100px;
  /* Ajoute du padding en haut */
}

.section:nth-child(odd) {
  background-color: #171c22;
}

.section:nth-child(even) {
  background-color: #1f282f;
}



/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#section1 .container {
  flex: 1;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
}

#section1 .container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Transition pour l'effet d'entrée */
  transform: translateX(100%);
  /* Position initiale à l'extérieur du conteneur */
}
.profil{
  max-width: 100%;
}

#section1 .container:last-child {
  margin-right: 0;
}

.social-icons a {
  margin-right: 10px;
  padding: 5px 10px;
  text-decoration: none;
  color: #ffffff; /* Couleur par défaut des icônes */
  font-size: 40px; /* Taille des icônes */
  transition: color 0.5s; /* Ajoute une transition de couleur lors du survol */
}

.social-icons a:not(:last-child) {
  border-right: 1.5px solid #ffffff67; /* Ajoute une bordure à droite de chaque icône, sauf la dernière */
}

.social-icons a:hover {
  color: #574cf1; /* Couleur des icônes lors du survol */
}

@media screen and (max-width: 600px) {
  .section {
    flex-direction: column; /* Les containers sont empilés les uns sur les autres */
    text-align: center; /* Centre le texte dans les containers */
    height:fit-content;
    font-size: small;

  }
  #section1 .container{
    margin-right:0;
    }
  .social-icons a{
    font-size: 30px;
  }

  .profil {
    margin-top: 20px; /* Ajoute un espace entre le texte et l'image */
  }
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

#section2 {
  padding-top: 0;
}

#section2 .container {
  background-color: #1f272e;
  margin-left: 60px;
  margin-right: 60px;
  margin-top: 5em;
  max-width: 33%;
  /* Correction : remplacez "33, 33%" par "33%" */
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

#section2 .container .front,
#section2 .container .back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#section2 .container .back {
  transform: rotateY(180deg);
  background-color: #1f272e;
  /* Correction : remplacez "33, 33%" par "33%" */
  border-radius: 20px;
  padding: 40px;
  text-align: justify;
  font-size: small;
  align-items: center;
  overflow: auto;
}

.smooth-scroll-link {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  background-color: #eee;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.smooth-scroll-link:hover {
  background-color: #574cf1;
  color:#eee;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#section2 .container.flipped {
  transform: rotateY(180deg);
}

#section2 .container .arrow {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  font-size: 24px;
}

#section2 .container .arrow.grow-once {
  animation: grow 2.5s infinite;
}

@keyframes grow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

#section2 .container img {
  max-width: 40%;
  max-height: 40%;
}


.police1 {
  font-weight: 200;
}

#section2 .services {
  position: absolute;
}
/* cartes en mode mobile */
@media (max-width: 768px) {
    /* Styles for mobile devices */
    #section2 .container {
      max-width: 100%; /* Full width on mobile */
      margin-left: 0;
      margin-right: 0;
      margin-top: 5em; /* Adjust as needed */
    }
    #section2 .container h2,
    #section2 .container .smooth-scroll-link {
      font-size: small; /* Adjust the font size as needed */
    }
    #section2 .container p{
      font-size: xx-small; /* Adjust the font size as needed */

    }
  }

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++  le swipper*/

.section3 {
  max-height: 550px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
#section3 .services {
  margin-left: 3em;
}
.realisation-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0 100px 0 100px;
}

.realisation-card {
  position: relative;
  width: calc(33.33% - 60px);
  min-height: 350px;
  background-color: #171c22;
  padding: 15px;
  text-align: center;
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.5s;
  margin-bottom: 20px;

}
#section3 a{
  text-decoration: none;
}

.realisation-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px 8px 0px 0px;
  transition: transform 0.5s;
  transform-origin: center bottom;
}

.realisation-card:hover {
  transform: scale(1.05);
}
.expanded {
  max-height: none;
}
.button-container {
  text-align: center;
  transition: background-color 0.3s ease-in-out;
}
.button-container:hover {
  background-color: #ffffff0e
}

.expand-button {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #03192800;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.arrow-down,
.arrow-up {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  margin-top: 10px;
  display: inline-block;
}

.arrow-down {
  border-top: 10px solid #dc2e2e;
}

.arrow-up {
  border-bottom: 10px solid #be2222;
}

@media screen and (max-width: 768px) {
  .realisation-container {
    margin: 20px;
  }

  .realisation-card {
    width: calc(100% - 20px); /* Ajustez la largeur selon vos besoins */
    min-height: 50px;
    margin: 0 auto 20px;
  }
  .realisation-card {
    font-size: 14px; /* Ajustez la taille de la police selon vos besoins */
  }

  .realisation-card h2 {
    font-size: 16px; /* Ajustez la taille de la police du titre selon vos besoins */
  }

  .realisation-card p {
    font-size: 12px; /* Ajustez la taille de la police du paragraphe selon vos besoins */
  }
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++  section 4*/
#section4 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  padding-bottom: 100px;
  background-color: #171c22;
}

#section4 .input-column {
  float: left;
  width: 60%;
  padding: 0 10px;
}

#section4 .input-column input[type=text],
.input-column select,
.input-column textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

#section4 .input-column input[type=submit] {
  background-color: #574cf1;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#section4 .input-column input[type=submit]:hover {
  background-color: #7067f1;
  
}

#section4 .image-column {
  float: left;
  width: 40%;
  padding: 0 10px;
  text-align: center;
}

#section4 .image-column img {
  max-width: 110%;
  max-height: 110%;
  object-fit: contain;
}

#section4 .container {
  /* border-radius: 20px; */
  background-color: #272f3982;
  /* border-color: #171c22;
  box-shadow: 10px 0 15px rgba(0, 0, 0, 0.5); */
  padding: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Définissez la largeur souhaitée */
  height: 600px;
  /* Définissez la hauteur souhaitée */
}

#section4 .clearfix::after {
  content: "";
  clear: both;
  display: table;
}

#section4 input[type="text"],
textarea {
  color: rgb(232, 232, 232);
}


#section4 .input-column input[type="text"],
#section4 .input-column input[type="tel"],
#section4 .input-column input[type="email"],
#section4 .input-column textarea {
  border: none;
  /* Supprime toutes les bordures */
  border-bottom: 1px solid #ffffff;
  /* Ajoute une bordure inférieure */
  background-color: transparent;
  /* Rend le fond transparent */
}

#section4 .input-column input[type="text"]:focus,
#section4 .input-column input[type="tel"]:focus,
#section4 .input-column input[type="email"]:focus,
#section4 .input-column textarea:focus {
  outline: none;
  /* Supprime la mise en évidence de l'input lorsqu'il est en focus */
  border-color: #807ada81;
  /* Change la couleur de la bordure inférieure lorsqu'il est en focus */
}

#subject {
  height: 200px;
  /* Définissez la hauteur souhaitée */
  resize: none;
  /* Désactive la redimensionnement */
}
#section4 video {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  /* Cacher la colonne avec l'image en mode mobile (écrans jusqu'à 767px de large) */
  #section4 .image-column {
    display: none;
  }

  #section4 .input-column {
    width: 100%; /* Élargir la colonne de saisie pour occuper toute la largeur */
  }
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++  Footer*/
.footer {
  background-color: #1f272e;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  padding: 10px;
  text-align: center;

}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  text-align: left;
  margin-bottom: 5px;
}


.footer-column li a {
  text-decoration: none;
  color: #ffffff;
}

.footer-column li a:hover {
  color: #574cf1;
}

.logofooter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.logofooter-container img {
  max-width: 80%;
  max-height: 80%;
  align-content: center;
}
.contact-list{
  font-size: smaller;
}
@media screen and (max-width: 768px) {
  .footer-columns {
    flex-direction: column; /* Passer à une disposition en colonne */
    align-items: center; /* Centrer les colonnes */
  }

  .footer-column {
    width: 100%; /* Ajuster la largeur à 100% pour prendre toute la largeur de l'écran */
    align-items: center;
  }
  .copyright{
    font-size: small;
  }
  
}

.copyright {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 10px;
}

/* Styles pour le texte du copyright */
.copyright p {
  margin: 0;
}

.footer-title {
  text-align: left;
  color: #574cf1;
  font-weight: bold;
}


