/* 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-le-domaine{
  background: url("../ressource/image/vigne.JPG") no-repeat center center;
  background-size: cover;
  height: 43vh; /* Adjust height as needed */
  background-position: 50% 35%;
}

/* Frise */
.frise {
  background-color: #2f2F2F; /* Dark 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;
}

/* Styles de base pour le conteneur principal */
.contenue-domaine {
  display: flex; /* Utiliser flexbox */
  flex-wrap: wrap; /* Permettre aux éléments de s'enrouler */
  justify-content: space-between; /* Espacement entre les éléments */
  margin: 2rem auto; /* Centrer le conteneur avec une marge */
  width: 80%; /* Largeur du conteneur */
  background-color: #000000; /* Couleur de fond claire */
  border-radius: 10px; /* Coins arrondis */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
  padding: 2rem; /* Espacement interne */
}

/* Styles pour chaque bloc */

.bloc{
  margin-bottom: 1.5rem; /* Espacement entre les blocs */
  padding: 1rem; /* Espacement interne */
  border-radius: 5px; /* Coins arrondis pour les blocs */
  background-color: rgba(50, 50, 50, 0.5); /* Couleur de fond blanche pour les blocs */
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les blocs */
}


.bloc1, .bloc2, .bloc3, .bloc4 {
  flex: 1 1 calc(45% - 1rem); /* Largeur flexible avec un espacement */
  margin-bottom: 1.5rem; /* Espacement entre les blocs */
  padding: 1rem; /* Espacement interne */
  margin: 0.5rem;
  border-radius: 5px; /* Coins arrondis pour les blocs */
  background-color: #2F2F2F; /* Couleur de fond blanche pour les blocs */
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour les blocs */
}

/* Styles pour les titres */
.titre {
  font-size: 1.5em; /* Taille de police pour le titre */
  font-weight: bold; /* Gras pour le titre */
  color: #ffefd5; /* Couleur du texte */
  margin-bottom: 0.5rem; /* Espacement en dessous du titre */
}

/* Styles pour le texte */
.texte {
  font-size: 1em; /* Taille de police pour le texte */
  line-height: 1.6; /* Hauteur de ligne pour une meilleure lisibilité */
  color: #ffefd5; /* Couleur du texte */
}

/* Styles spécifiques pour les blocs vides (si nécessaire) */
.bloc4 {
  height: auto; /* Hauteur fixe pour les blocs vides */
  background-color: #e0e0e0; /* Couleur de fond grise pour les blocs vides */
  border-radius: 5px; /* Coins arrondis */
}

/* Assurer que bloc1 et bloc2 ont la même hauteur */
.bloc1, .bloc2 {
  display: flex;
  flex-direction: column; /* Aligne le contenu verticalement */
  justify-content: space-between; /* Espace entre les éléments */
}

.bloc1{
  background: url(../../include/ressource/image/photopapa.jpg) no-repeat;
  background-position: 50% 25%;
  background-size: 100%;
}

.bloc4{
  background: url(../../include/ressource/image/cabane.JPG) no-repeat;
  background-position: 50% 50%;
  background-size: 100%;
}


.bloc3, .bloc4 {
  display: flex;
  flex-direction: column; /* Aligne le contenu verticalement */
  justify-content: space-between; /* Espace entre les éléments */
  flex: 1; /* Permet aux blocs 3 et 4 d'avoir la même hauteur */
  }

/* Responsive */
@media (max-width: 768px) {
  .contenue-domaine {
      width: 95%; /* Ajuster la largeur pour les petits écrans */
  }

  .bloc, .bloc1, .bloc2, .bloc3, .bloc4 {
      flex: 1 1 100%; /* Chaque bloc prend toute la largeur sur mobile */
  }

  .titre {
      font-size: 1.3em; /* Réduire la taille du titre sur mobile */
  }

  .texte {
      font-size: 0.9em; /* Réduire la taille du texte sur mobile */
  }

  .bloc1{
    height: 100px;
  }

  .bloc4{
    height: 100px;
  }
}
/* 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: 27%;
  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;
}

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

  .contact .gauche .titre{
    font-size: 1.5em;
    color:white;
  }
}

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

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

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

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

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

  .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 .logo .papa {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    height: 86%;
    width: 100%;
    background-color: transparent;
  }

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

