/* 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 {
  font-family: "Georgia", serif; /* Elegant serif font */
  background-color: #000000; /* Light background for a classy look */
  color: #ffefd5;
  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 de la page Nos Vins */
.fond-nos-vins {
  background: url("../ressource/image/palox.JPG") no-repeat center center;
  background-size: cover;
  height: 43vh; /* Adjust height as needed */
}



/* Fond du domaine */
.fond-contact {
  background: url('../ressource/image/chateau-eau.jpg') no-repeat center center;
  background-size: cover;
  height: 43vh; /* Adjust height as needed */
}

/* 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 du contact */
.contenue-contact {
  margin: 2vh auto;
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  gap: 2em; /* Espace entre les éléments */
}

.contact2 {
  flex: 1 1 300px; /* Permet à la section de contact de prendre au moins 300px */
  background-color: rgba(50, 50, 50, 0.5); 
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.adresse1, .horaire, .contact-info {
  margin-bottom: 1.5em;
  padding: 10px;
  background-color: rgba(50, 50, 50, 0.5); 
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.texte {
  font-size: 1.2em;
  color: #ffefd5;
}

.contenue {
  flex: 1 1 100%; /* Prend toute la largeur disponible */
  margin-top: 20px;
  background-color: rgba(50, 50, 50, 0.5); 
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

iframe {
  border-radius: 5px;
  width: 100%;
  height: 300px;
  border: none; /* Supprime la bordure par défaut */
}

/* 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 .links .button {
      font-size: 1em;
      padding: 8px 10px;
  }

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

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

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

@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;
  }

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

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

  .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 */
  }

  .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%;
  }

  .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;
  } 

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

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

