/*Autheur: David Lopes Andrade
Date: 04.12.2024
Description:Page css pour le site web*/

body {
  background-color: beige;
  color: rgb(185, 70, 70);
  font-family: Arial, Helvetica, sans-serif;
}
h1 {
  text-align: center;
}
h2 {
  text-align: center;
}

.bouton {
  background-color: rgb(185, 60, 60);
  border-radius: 10px;
  border: 4px double rgb(185, 60, 60);
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  padding: 10px;
  width: 200px;
  cursor: pointer;
  margin: 0 5px; /* Espace entre les boutons */
  transition: all 0.5s, margin-right 0.3s, margin-left 0.3s; /* Transition fluide */
}

.bouton:hover {
  background-color: #ffffff;
  border: 2px solid #1f69ec;
  box-shadow: 10px 5px 5px #719fee;
  color: #1f69ec;
  font-size: 22px;
  margin: 0;
}

nav {
  display: flex;
  justify-content: center; /* Centrer les boutons */
}

.bouton.active {
  background-image: url("../images/drapeaux_japon.jpg");
  background-size: cover;
  background-position: center;
  background-color: #ffffff; /* Couleur pour montrer l'onglet actif */
  border: 2px solid #1f69ec; /* Bordure differentes */
  color: #000000; /* Couleur du texte */
  font-weight: bold; /* Mettre en gras  */
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: Arial;
  position: relative;
}
p {
  text-align: center;
  font-size: 1.5em;
}
.image-container {
  text-align: center;
  margin-top: 20px;
  border: 2px solid rgb(185, 60, 60);
  border-radius: 10px;
  margin-bottom: 15px;
}

img {
  max-width: 400px;
  width: auto;
  display: inline-block;
  border: 2px solid rgb(185, 60, 60);
  border-radius: 10px;
  margin-bottom: 15px;
  text-align: center;
}
article {
  display: flex;
  margin: 50px;
}
.centrer {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}
.content {
  display: flex;
  justify-content: space-between;
  margin: 50px 20px;
}

.left-section,
.right-section {
  width: 45%;
  text-align: center;
}

.image {
  width: 100%; /* La largeur s'adapte au conteneur */
  height: 300px; /* Hauteur fixe pour assurer la même taille */
  object-fit: cover; /* Garde le contenu proportionnel tout en remplissant l'espace */
  border: 2px solid rgb(185, 60, 60);
  border-radius: 10px;
  margin-bottom: 15px;
}

/* dependemment de l'ecran utilise */
@media screen and (max-width: 700px) {
  .content {
    flex-direction: column;
    align-items: center;
  }

  .left-section,
  .right-section {
    width: 100%;
    margin-bottom: 20px;
  }

  nav {
    flex-direction: column;
  }
  .bouton {
    margin: 10px 0;
    width: auto;
    text-align: center;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    box-sizing: border-box;
  }
  .img,
  .logo {
    display: none;
  }
}
