/* Réinitialisation des styles par défaut pour tous les éléments */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

/* Style pour le corps de la page */
body {
  background-color: #f2e9e4;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;


}


/* Style pour le menu de navigation */
.menu {
  display: grid;
  grid-template-columns: 1fr auto auto;
  background-color: rgba(7, 129, 129, 0.95);
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Style pour les liens */
a {
  color: black;
}

/* Style spécifique pour les liens dans le menu */
.menu a {
  font-size: 1.2em;
  padding: 0px 10px;
}

/* Style pour les éléments avec la classe peleo, conta au survol */
.peleo:hover {
  background-color: black;
  height: 30px;
  border-radius: 5px;
  border: solid 1px white;
}

.cont:hover {
  background-color: white;
  height: 30px;
  border-radius: 5px;
  border: solid 1px black;
}

/* Style pour les éléments avec la classe action-button */
.action-button {
  background-color: aquamarine;
  border: 1px solid aquamarine;
  border-radius: 5px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  height: 30px;
  width: 90%;
  display: flex;
  place-content: center;
  text-align: center;
}

.action-button a {
  margin: 0 auto;
}

/* Changement de couleur des liens dans les éléments conta au survol */
.peleo:hover a {
  color: white;
}

/* Style pour le logo */
.logo {
  width: 60px;
  height: 60px;
}

h2:active a {
  color: #4fafc9;
}

/* Style pour les titres h1 */
h1 {
  padding: 24px;
}

/* Style pour les éléments avec la classe tico */


.sp {
  text-decoration: underline;
}
figure{
  border-radius: 40px;
  width: 80%;
  display: block;
  margin: 0 auto;
  height: 600px;
}

select{
  width: 100%;
  height: 100%;
}
iframe {
  border-radius: 40px;
  width: 80%;
  display: block;
  margin: 0 auto;
  position: relative;
  top: 10%;
}

/* Style pour les légendes des figures */
figcaption {
  position: relative;
  left: 12%;
  top: 90px;
  font-size: 20px;
  width: 55em;
}

/* Style pour le conteneur principal */
.container {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  margin: 15px;
}

/* Style pour les images */
img {
  height: 170px;
  width: 160px;
  border-radius: 10px 0 0 10px;
}

/* Style pour les éléments avec la classe dino */
.dino {
  display: flex;
  background-color: white;
  border-radius: 10px;
}

/* Style pour les sous-titres */
.sec_titre {
  padding: 10px;
}

/* Style pour l'élément avec lid phrase */
#phrase {
  position: relative;
  left: px;
}

/* Style pour les éléments dino au survol */
.dino:hover {
  box-shadow: 0 0 10px 5px black;
}

/* Style pour les éléments avec les id phrase et figcaption */
#phrase,
figcaption {
  font-family: "Roboto", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Style pour les titres h1, h2 et les éléments avec les classes peleo et conta */
h1,
h2,
.peleo,
.cont {
  font-family: "Poppins", sans-serif;
}

/* Style pour l'élément avec l'id phrase */
#phrase {
  padding: 10px;
}

/* Style pour le pied de page */
footer {
  background-color: #373a40;
  color: white;
  position: relative;
  top: 110px;
 
  
}

footer a {
  color: white;
}

/* Style pour les éléments avec la classe resour1 */
.resour1 {
  display: flex;
}

/* Style pour les éléments avec la classe 'foot1' */
.foot1 {
  margin-left: 20px;
}

/* Style pour les éléments avec la classe 'essai_tire' */
.essai_tire {
  padding: 20px 0px;
}

/* Style pour les éléments avec la classe essai */
.essai {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Style pour les éléments avec la classe foot2 */
.foot2 {
  position: relative;
  left: 40%;
}

/* Style pour les éléments avec la classe bas_page */
.bas_page {
  position: relative;
  left: 33%;
  bottom: 16px;
}

.en_bs {
  position: relative;
  top:550px;
}

/* Style pour l'element h4 */
h4 {
  text-align: center;
  margin: 0 auto;
}

h4 {
  margin: 0;
}

/* Style pour l'élément avec l'id connexion */
#connexion {
  height: 370px;
  margin: 0 auto;
  width: 50%;
  position: relative;
  top: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 5px;
}

/* Style pour légendes */
legend {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 18px;
  color: #444;
}

/* Style pour les zones de texte */
textarea {
  height: 80px;
  width: 100%;
  margin: 10px px;
  border-radius: 5px;
  border: 1px solid #aaa;
  padding: 5px;
}

/* Style pour les champs de saisie dans l'élément avec l'id connexion */
#connexion input {
  width: 100%;
  height: 30px;
  margin: 10px 0px;
  border-radius: 5px;
  border: 1px solid #aaa;
  padding: 5px;
}

/* Style pour les éléments avec la classe clic au survol */
.clic:hover {
  background-color: black;
  color: white;
  outline: none;
  cursor: pointer;
}

/* Style pour l'élément avec l'id 'onnexion au survol */
#connexion:hover {
  box-shadow: 0px 5px 10px black;
  background-color: rgb(192, 187, 187);
}

/* Styles pour les écrans de moins de 900px de largeur */
@media screen and (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    top: 20px;
  }

  .dino1 {
    display: none;
  }

  .resour1 {
    display: flex;
    flex-direction: column;
  }

  .foot2 {
    position: relative;
    left: 0%;
    margin: 15px;
  }

  .bas_page {
    position: relative;
    left: 0px;
  }

  footer {
    padding-bottom: 20px;
  }

  .dino {
    border-radius: 10px;
  }

  #connexion {
    height: 450px;
    width: 400px;
    padding: 24px;
  }
  iframe,.video,figure{
     object-fit:cover;
  }
  figcaption{
    display: flex;
    flex-direction: column;
    position: relative;
    right: 50px;
    top: 20px;
  }
  figcaption {
    width: 80%;
    position: relative;
    top: 80px;
    right: auto;
}
}