/* Reset de base */
@font-face {
  font-family: "scriptina";
  src: url("../ressource/police/scriptina.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 15px;
}

body {
  width: 100vw;
  font-family: "Georgia", serif; /* Elegant serif font */
  background-color: #000000; /* Light background for a classy look */
  color: #333;
  line-height: 1.6;
}

/* En-tête */
.header {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 2fr 8fr 2fr;
  justify-self: center;
  align-self: center;
  background-color: #2F2F2F;
  color: #ffefd5;
  height: auto;
  width: 100vw;
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0px;
}

.header .logo {
  display: flex;
  justify-content: center;
  align-items: start;
  text-align: center;
  height: 100%;
  width: 100%;
  justify-self: center;
  align-self: center;
  font-family: scriptina;
  grid-column: 1;
  grid-row: 1/3;
  background: url(../../include/ressource/image/logo-jaune.png) no-repeat;
  background-size: 55%;
  background-position: 50% 50%;
  font-size: 4vw;
  z-index: 100;
}

.header .logo .papa {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  height: 86%;
  width: 100%;
  background-color: transparent;
}

.header .title {
  grid-column: 2;
  grid-row: 1;
  font-family: scriptina;
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.header .links {
  grid-column: 2;
  grid-row: 2;
  margin-top: 10px;
}

.header .links .button {
  color: #ffefd5;
  text-decoration: none;
  font-size: 1.1em;
  padding: 0.6% 1%;
  margin: 0 1%;
  border-radius: 5px;
  background-color: transparent;
  border: 2px solid #ffefd5;
  transition: background-color 0.3s, color 0.3s;
}

.header > .button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  grid-column: 3;
  grid-row: 1/3;
  height: 40%;
  width: auto;
  align-self: center;
  justify-self: center;
  color: #2f4f4f;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1em;
  border-radius: 5px;
  background-color: #ffefd5;
  border: 2px solid #ffefd5;
  transition: background-color 0.3s, color 0.3s;
}

.header .links .button:hover {
  background-color: #ffefd5;
  color: #2f4f4f; /* Change text color on hover */
}

/* Fond des Actus */
.fond-actus {
  background: url("../ressource/image/chateau-de-chenonceaux.jpg") no-repeat center center;
  background-size: cover;
  height: 43vh; /* Adjust height as needed */
  background-position: 10% 30%;
}

/* Frise */
.frise {
  background-color: #2F2F2F; /* Light background for contrast */
  padding: 1vh 0;
  text-align: center;
  letter-spacing: 3em;
}

.frise .lettres {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5em;
  color: #ffefd5; /* Darker text color */
  font-weight: 100;
}

/* Contenu des Actus */
.contenue-actus {
  display: flex;
  flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
  justify-content: space-between;
  margin: 2vh auto;
  width: 80%;
  gap: 1.5em; /* Espace entre les blocs */
}

.events {
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* Permet aux événements de passer à la ligne */
  flex: 1 1 35%; /* Prend 60% de la largeur */
  gap: 1.5em; /* Espace entre les blocs d'événements */
}

.texte2, .texte3 {
  display: flex;
  background-color:rgba(50, 50, 50, 0.5); /* Couleur de fond des blocs */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  flex: 1 1 calc(45% - 0em); /* Largeur responsive pour les blocs */
  margin-right: 10px;
  width:85vw;
  color: #ffefd5;
}

.texte2>.photo {
  width: 100px; /* Largeur de la photo */
  height: 100px; /* Hauteur de la photo */
  background:url(../../include/ressource/image/HVE.png)no-repeat;
  background-position: 50% 50%;
  background-size: 70%; /* Couleur de fond pour la photo */
  border-radius: 5px;
  margin-right: 15px; /* Espace entre la photo et le texte */
  margin-top:30px;
}


.texte3>.photo {
  width: 200px; /* Largeur de la photo */
  height: 180px; /* Hauteur de la photo */
  background:url(../../include/ressource/image/cid_image001_png@01CF9540-388x565.png)no-repeat;
  background-position: 50% 50%;
  background-size: 70%; /* Couleur de fond pour la photo */
  border-radius: 5px;
  margin-right: 3px; /* Espace entre la photo et le texte */
}


.macaron { 
  display: flex;
  align-items: center; /* Couleur du macaron */
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 10px;
}

.macaron >.texte{
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1em;
  color: #ffefd5;

}

.recompense {
  flex: 1 1 35%; /* Prend 35% de la largeur */
  background-color: rgba(50, 50, 50, 0.5); /* Couleur de fond des récompenses */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  color: #ffefd5;
}

.titre {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1em;
  color: #ffefd5;
}

.recompense1, .recompense2, .recompense3 {
  display: flex;
  align-items: center;
  background-color: rgba(50, 50, 50, 0.5); /* Couleur de fond des récompenses */
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 1em;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  color: #ffefd5;
} 

.label1 {
  width: 60px; /* Largeur des labels */
  height: 60px; /* Hauteur des labels */
  background:url(../../include/ressource/image/guide-hachette.png)no-repeat;
  background-position: 50% 50%;
  background-size: 290%; /* Couleur de fond des labels */
  border-radius: 5px;
  margin-left: 10px; /* Espace entre le texte et le label */
}

.label2{
  width: 60px; /* Largeur des labels */
  height: 60px; /* Hauteur des labels */
  background:url(../../include/ressource/image/concours.png)no-repeat;
  background-position: 50% 50%;
  background-size: 105%;  /* Couleur de fond des labels */
  border-radius: 5px;
  margin-left: 10px; /* Espace entre le texte et le label */
}

.label3{
  width: 50px; /* Largeur des labels */
  height: 50px; /* Hauteur des labels */
  background:url(../../include/ressource/image/Hachette2026.jpg)no-repeat; /* Couleur de fond des labels */
  background-position: 50% 50%;
  background-size: 65%;
  border-radius: 5px;
  margin-left: 10px; /* Espace entre le texte et le label */
}

.texte {
  flex: 1; /* Prend tout l'espace restant */
}

.titre {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #ffefd5;
}

.texte {
  color: #ffefd5;
}

/* Contact */
.contact {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background-color: #2F2F2F; /* Dark background for contact section */
  color: white;
  height: 23.5vh;
  width: 100%;
}

.contact .gauche {
  margin-left: -5%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  height: 100%;
  width: 30%;
  text-indent:1.9em;
}

.contact .gauche .titre {
  font-size: 1.8em; 
  margin-bottom: 10px;
  color:white;
}

.contact .gauche .contact1 {
  font-size: 1em;
}

.contact >.middle{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  width: 40%;
  background-color: transparent;
}

.contact .middle .route {
  height: 60%;
  width: 25%;
  background: url(../../include/ressource/image/Unknown-Photoroom.png)no-repeat;
  background-position: 50% 50%;
  background-size: 50%;
}

.contact .middle .ind {
  height: 60%;
  width: 20%;
  background: url(../../include/ressource/image/vignerons_independants_logo-H200.jpg)no-repeat;
  background-position: 50% 50%;
  background-size: 50%;
}

.contact .middle .cave {
  height: 60%;
  width: 30%;
  background: url(../../include/ressource/image/logocavetouristique-640x640-Photoroom.png)no-repeat;
  background-position: 50% 50%;
  background-size: 60%;
}

.contact .droite {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: transparent;
  height: 80%;
  width: 20%;
}

.contact .droite .reseau {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  background-color: transparent;
  height: 40%;
  width: 70%;
  margin-top: 11%;
}
.contact .droite .reseau .insta{
  height: 100%;
  width: 30%;
  background: url(../../include/ressource/image/logo-insta.png)no-repeat;
  background-position: 50% 50%;
  background-size: 70%;

}
.contact .droite .reseau .fb{
  height: 100%;
  width: 30%;
  background: url(../../include/ressource/image/logo-fb.png)no-repeat;
  background-position: 50% 50%;
  background-size: 70%;
}

/* Alcool */
.alcool {
  font-size: 0.8em;
  text-align: center;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .header .title {
      font-size: 2em;
  }

  .header .logo {
    display: flex;
    justify-content: center;
    align-items: start;
    text-align: center;
    height: 100%;
    width: 100%;
    justify-self: center;
    align-self: center;
    font-family: scriptina;
    grid-column: 1;
    grid-row: 1/3;
    background: url(../../include/ressource/image/logo-jaune.png) no-repeat;
    background-size: 90%;
    background-position: 50% 50%;
    font-size: 4vw;
    z-index: 100;
  }

  .header .logo .papa {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    height: 86%;
    width: 100%;
    background-color: transparent;
  }

  .header .links .button {
      font-size: 1em;
      padding: 8px 10px;
  }

  .header>.button{
    font-size: 0.5em;
    width: 50px;
    height: 30px;
  }

  .contenue-domaine > div {
      width: 90%;
  }

  .contact {
      flex-direction: column;
      align-items: center;
  }

  .texte3>.photo {
    width: 100px; /* Largeur de la photo */
    height: 80px; /* Hauteur de la photo */
    background:url(../../include/ressource/image/chateau.jpeg)no-repeat;
    background-position: 50% 50%;
    background-size: 70%; /* Couleur de fond pour la photo */
    border-radius: 5px;
    margin-right: 3px; /* Espace entre la photo et le texte */
  }

  .contact .gauche,
  .contact .droite {
      width: 100%;
      text-align: center;
  }
}

@media (max-width: 768px) {
  .header .title {
    font-size: 2em;
  }

  .header .links .button {
    font-size: 1em;
    padding: 8px 10px;
  }

  .contenue-nos-vins {
    width: 90%;
  }

  .bouteille {
    flex: 1 1 calc(45% - 1em); /* Adjust for smaller screens */
  }

  .contact {
    flex-direction: column;
    align-items: center;
  }

  .contact .gauche,
  .contact .droite {
    width: 100%;
    text-align: center;
  }
}

.header .links.hidden {
  display: none; /* Cache le menu déroulant */
}

.menu-toggle {
  display: none; /* Cache le bouton de menu par défaut */
  cursor: pointer;
  font-size: 2em; /* Taille du bouton */
}

/* Responsive */
@media (max-width: 768px) {
  .header .links {
    flex-direction: column; /* Aligne les liens verticalement */
    position: absolute; /* Positionne le menu en absolu */
    top: 100%; /* Positionne le menu juste en dessous de l'en-tête */
    left: 0;
    right: 0;
    background-color: #2f2F2F; /* Couleur de fond du menu */
    z-index: 100; /* Assure que le menu est au-dessus des autres éléments */
    display: none; /* Cache le menu par défaut */
  }

  .header .links.visible {
    display: flex; /* Affiche le menu lorsqu'il est visible */
  }

  .menu-toggle {
    display: block; /* Affiche le bouton de menu sur mobile */
  }

  .contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #2f2F2F; /* Dark background for contact section */
    color: white;
    height: 29vh;
    width: 100%;
  }

  .texte2>.photo {
    width: 100px; /* Largeur de la photo */
    height: 100px; /* Hauteur de la photo */
    background:url(../../include/ressource/image/HVE.png)no-repeat;
    background-position: 50% 50%;
    background-size: 100%; /* Couleur de fond pour la photo */
    border-radius: 5px;
    margin-right: 15px; /* Espace entre la photo et le texte */
    margin-top:30px;
  }

  .contact>.gauche{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2f2F2F; /* Dark background for contact section */
    color: white;
    width: 100%;
  }

  .contact>.middle{
    display:none;
  } 

  .contact>.droite{
    display:none;
  } 
}

