/*- Alexander Gantchev, voici ma feuille CSS pour tout le contenue principale, crée le 20 décembre 2024 */

.navbar {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 10px 0;
  background: #ffa834;
}

body {
  margin: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  background-color: #000;
  color: white;
}

/* sert a ajuster l'image de la barre de navigation */
.navbar img {
  width: 100%;

  height: auto;
}

.button {
  padding: 15px 40px;
  font-size: 16px;
  text-align: center;
  background-color: black;
  color: white;
  border: none;
  border-radius: 5px;
}

/*Mets en valeur le bouton de la barre de navigation de la page sur laquelle on est*/
.chosenone {
  padding: 15px 40px;
  font-size: 16px;
  text-align: center;
  background-color: #faa401;
  color: white;
  border: none;
  border-radius: 5px;
}

.button:hover {
  background-color: #faa401;
  transition: all 1s ease;
}

.navbar a {
  text-decoration: none;
  /* Supprime le soulignement */
  transition: all 0.5s ease-out;
  /*Transition rétrécissement après l'animation*/
  width: 170px;
  text-transform: uppercase;
  align-content: center;
}

.navbar a:hover {
  transform: scale(1.2);
  /* Agrandit le bouton à 120% de sa taille */
  transition: all 0.5s ease;
  /* Transition de l'agrandissement */
}

a .button {
  background-color: #faa401;
}

/* L'image de fond de l'accueil */
.header {
  background: url(../images/image-accueil.jpg) no-repeat center center/cover;
  height: 100vh;
  position: relative;
}

.header-content {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffa834;
  z-index: 0;
}

/* taille du conteneur */
.container {
  width: 90%;
  margin: 0 auto;
}

section.section {
  align-items: center;  
}

.section {
  display: flex;
  margin: 20px 0;
  background-color: #111;
  padding: 20px;
  border-radius: 10px;
  align-self: auto;
  justify-content: space-around;
}

.text:hover {
  transform: scale(1.05);
  /* Agrandit le bouton à 110% de sa taille */
  transition: all 0.5s ease;
}

.text {
  border-radius: 5%;
  background: #111;
  max-width: 30%;
  padding: 75px 100px;
  transition: all 0.5s ease-out;
  text-align: center;
}

.text h2 {
  color: #ffa834;
}

.image {
  padding: 20px;
}

.image img {
  width: 600px;
  height: auto;
  border-radius: 5%;
}

h2 {
  font-size: 1.5rem;
}

a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

/* Taille de la vidéo youtube */
.ytb {
  margin-left: 60px;
  max-width: 50%;
}
iframe{
  border: none;
}
/* Taille de la vidéo youtube */
.ytb iframe {
  max-width: 100%;
  border-radius: 5%;
}

.custom-content {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
}

.custom-section {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  background-color: #111;
  padding: 20px;
  border-radius: 10px;
}

.custom-text {
  text-align: justify;
  color: white;
  margin: 0 20px;
  padding: 20px;
  max-width: 50%;
}

.custom-text h2 {
  color: orange;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.custom-text h3 {
  color: #ffa834;
  margin-bottom: 10px;
}

.custom-text ul {
  list-style-type: none;
  padding: 0;
}

.custom-text ul li {
  margin: 10px 0;
  font-size: 1rem;
  color: white;
}

.custom-image {
  align-content: center;
  margin: 40px;
  width: 60%;
}

.custom-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.custom-ytb {
  align-content: center;
  max-width: 60%;
  margin-left: 42px;
}

.custom-ytb iframe {
  border-radius: 10px;
  max-width: 100%;
}

/* Masquer les boutons dans la barre de navigation pour les petits écrans  */
@media (max-width: 1300px) {
  .navbar .button,
  .chosenone {
    display: none;
    /* Cache les boutons */
  }
.custom-section{
  margin-top: 100px;
}
  .header-content {
    z-index: -1;
  }

  .header {
    z-index: 0;
  }

  .navbar {
    position: fixed;
  }

  .navbar img {
    width: 500px;
  }

  .navbar a {
    width: 500px;
  }

  .text {
    max-width: 70%;
  }

  .section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .custom-text {
    font-size: x-large;
    width: 70%;
    height: auto;
    padding: 40px;
  }

  .custom-text ul li {
    z-index: -1;
  }

  h2 {
    font-size: xx-large;
  }

  h3,
  ul li,
  p {
    font-size: x-large;
  }

  /* J'ai enlevé l'animation car elle me posait problème*/
  .text:hover {
    transform: none;
  }

  /* Enlève les images, vidéos */
  .section .image,
  .ytb iframe,
  .custom-ytb iframe,
  .custom-image img, .custom-ytb-diff, .custom-ytb-diff iframe {
    display: none;
  }

  .custom-section {
    flex-direction: column;
    align-items: center;
  }

  .custom-text {
    text-align: center;
    margin: 0;
    font-size: xx-large;
  }

  .custom-image img {
    width: 90%;
    justify-content: center;
    margin-left: 50px;
  }


}