
/* Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Cormorant Garamond */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&display=swap');

/* Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* Lora */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
    scroll-behavior: smooth;
}
body{
    margin: 0px;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient();
    background-attachment: fixed;
    height: 100vh;
    transition-duration: 5s;
    scroll-behavior: smooth;
    background-image: url("back/shirtwhite.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    animation: fontb 5s linear infinite;
}

@keyframes fontb {
  0%{
    background-image: url(back/shirtwhite.jpg);
}

50%{
  background-image: url(back/ba.jpg);
}


70%{
  background-image: url(back/shirt2.jpg);
}


100%{
background-image: url(back/bknee.jpg);
}
}











/* Style de base de la barre de navigation */
.navbar {
  display: flex;
  justify-content: space-between; /* Espace entre l'image et le nav */
  align-items: center;
  padding: 10px 20px;
  background-color: #333;
  width: 100%;
}

.navbar img {
  height: 50px; /* Hauteur de l'image */
}

.nav-links {
  list-style: none;
  display: flex; /* Affichage en ligne pour les grands écrans */
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.burger {
  display: none; /* Masquer le burger par défaut */
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none; /* Masquer les liens de nav par défaut */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px; /* Position du menu */
    left: 0;
    background-color: #333;
  }

  .nav-links.nav-active {
    display: flex; /* Afficher les liens de nav lorsqu'activé */
  }

  .nav-links li {
    margin: 15px 0; /* Espacement vertical */
  }

  .nav-links a {
    font-size: 20px; /* Taille du texte en mobile */
  }

  .burger {
    display: block; /* Afficher le burger en mobile */
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}




.loading-container {
    font-family: Arial, sans-serif;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 5px;
    justify-content: center;
    text-align: center;
    margin-top: 300px;
    margin-bottom: 300px;
}



.loading-container span {
    display: inline-block;
    animation: loading 1s infinite alternate;
}
.loading-container span:nth-child(1) { animation-delay: 0s; }
.loading-container span:nth-child(2) { animation-delay: 0.1s; }
.loading-container span:nth-child(3) { animation-delay: 0.2s; }
.loading-container span:nth-child(4) { animation-delay: 0.3s; }
.loading-container span:nth-child(5) { animation-delay: 0.4s; }
.loading-container span:nth-child(6) { animation-delay: 0.5s; }
.loading-container span:nth-child(7) { animation-delay: 0.6s; }

@keyframes loading {
    0% { color: #fff; } /* Blanc */
    100% { color: #f80202; } /* Vert sombre */
}


@media screen and (max-width: 768px) {
    .loading-container{
        margin-top: 200px;
        margin-bottom: 200px;

    }
} 















/* FOOTER*/

footer{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 20px;
    padding-left: 30px;
    background-color: #000;
    color: white;
}

footer .left{
    margin-right: 30px;
    margin-left: 30px;
}
footer .left h1{
    margin-top: 30px;
    margin-bottom: 30px;
    border-bottom: solid white 3px;
}
footer .left #droit{
    margin-top: 35px;
}

footer .center{
    margin-right: 30px;
    margin-left: 30px;
}
footer .center h1{
    margin-top: 30px;
    margin-bottom: 30px;
    border-bottom: solid white 3px;

}


footer .center ul li{
  text-decoration: none;
  color: white;
}
footer .center ul li a{
  text-decoration: none;
  color: white;
}

footer .center ul li a:hover{
  text-decoration: none;
  color: #007bff;
}



footer .right{
    margin-right: 10px;
    margin-left: 30px;
}
footer .right h1{
    margin-top: 30px;
    margin-bottom: 30px;
    border-bottom: solid white 3px;

}
footer .right ul li{
    display: inline-block;
    margin-left: 20px;
}

footer .right ul li a{
    display: inline-block;
    text-decoration: none;
    color: white;
}

footer .right ul li i{
  color: white;

}

footer .right ul li i:hover{
  color: #007bff;

}

















/* GENERER PAR GPT*/


@media screen and (max-width: 768px) {
  body {
    font-size: 16px; /* Réduire la taille de la police pour les appareils mobiles */
    background-image: url(back/ba.jpg);
    animation: font 10s linear infinite;
  }

  @keyframes font {
    0%{
      background-image: url(back/shirtwhite.jpg);
  }

  25%{
    background-image: url(back/ba3.jpg);
}

  50%{
    background-image: url(back/bknee.jpg);
}

  70%{
  background-image: url(back/ba.jpg);
}

  100%{
  background-image: url(back/shirt2.jpg);
}
  }



  /* Ajustement de la navigation */
  .navbar {
    justify-content: center;
    background-color: black;
    color: #10ac84;
    padding: 10px;
  }

  .navbar img {
    width: 50px;
    height: 50px;
  }

  nav {
    margin-left: 0;
    margin-top: 20px;
  }


  nav ul li {
    display: block;
    margin: 10px 0;
    text-align: center;
  }

  nav ul li a {
    display: inline-block;
    padding: 10px;
    color: #10ac84;
    text-decoration: none;
  }







  /* Ajustement de l'en-tête */
  .header {
    text-align: center;
    padding: 20px;
    border-top: solid 2px #8395a7;
    border-bottom: solid 2px grey;
    background-image: url("image/cova.png");
    background-repeat: no-repeat;
    background-size: cover; /* Assure que l'image couvre toute la div */
    color: white;
  }

  .header h1 {
    font-size: 50px; /* Réduire la taille du titre h1 pour les appareils mobiles */
  }

  .header h3{
    font-family: 'Source Code Pro', monospace
    color: #2f6b0a;
  }

  .header button {
    font-size: 20px; /* Réduire la taille du bouton pour les appareils mobiles */
    padding: 10px;
    margin-top: 20px;
  }



  /* Ajustement de la partie 1 */
  .partie1 {
    flex-direction: column; /* Affichage en colonne pour les appareils mobiles */
    align-items: center; /* Centrer les éléments pour les appareils mobiles */
    margin-top: 20px;
    padding: 10px;
  }

  .partie1 .gauche img {
    width: 340px;; /* Réduire la largeur de l'image pour les appareils mobiles */
    height: auto; /* Hauteur automatique pour conserver les proportions */
    border-radius: 10px 10px 0 0;
  }

  .partie1 .droit {
    width: 90%; /* Réduire la largeur du côté droit pour les appareils mobiles */
    height: auto; /* Hauteur automatique pour conserver les proportions */
    padding: 8px; /* Réduire le padding pour les appareils mobiles */
  }

  .partie1 .droit p {
    font-size: 16px; /* Réduire la taille de la police pour les appareils mobiles */
    line-height: 150%;
    text-align: left;













  /* Ajustement du pied de page */
  footer {
    flex-direction: column; /* Affichage en colonne pour les appareils mobiles */
    align-items: center; /* Centrer les éléments pour les appareils mobiles */
    padding: 20px;
    background-color: #000;
    color: white;
  }

  footer .left,
  footer .center,
  footer .right {
    margin: 10px 0; /* Espacement entre les sections du pied de page */
    text-align: center; /* Centrer le contenu des sections */
  }

  footer .left h1,
  footer .center h1,
  footer .right h1 {
    font-size: 24px; /* Réduire la taille des titres h1 pour les appareils mobiles */
  }

  footer .right ul li {
    display: block; /* Affichage en bloc pour les liens sociaux */
    margin: 10px 0; /* Espacement entre les liens sociaux */
  }


}
