/* 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: #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 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 */
}

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

/* Contenu des vins */
.contenue-nos-vins {
  margin: 2vh auto;
  width: 80%;
}

.contenue-nos-vins .texte {
  color: #ffefd5;
  font-size: 1.5em;
  margin-bottom: 1em;
  font-weight: bold;
}

.bouteilles1 {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  background:url(../../include/ressource/image/logo-jaune.png) no-repeat;
  background-position: 50% 50%;
  background-size: 25%;
}

.bouteilles2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  background:url(../../include/ressource/image/logo-rouge.png) no-repeat;
  background-position: 50% 50%;
  background-size: 40%;
}

.bouteilles3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  background:url(../../include/ressource/image/logo-rose.png) no-repeat;
  background-position: 50% 50%;
  background-size: 40%;
}

.bouteille {
  display: flex; /* Assurez-vous que c'est un conteneur flex */
  flex-direction: column; /* Aligne les éléments enfants verticalement */
  justify-content: space-evenly; /* Aligne le contenu en haut */
  align-items: center; /* Aligne le contenu au centre */
  background-color: rgba(50, 50, 50, 0.5);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 400px; /* Ajustez le padding selon vos besoins */
  flex: 1 1 calc(30% - 1em); /* Largeur responsive */
}

.bouteille .nom {
  margin-top: 8px;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #ffefd5;
  text-align: center;
}

.bouteille .chenonceaux {
  width:50%;
  height: 70%;
  background: url(../../include/ressource/image/TouraineChenonceaux.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .gamay {
  width:50%; 

  height: 70%;
  background: url(../../include/ressource/image/Gamay.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .harmonie {
  width:50%;
  height: 70%;
  background: url(../../include/ressource/image/harmo.png)no-repeat;
  background-position: 50% 50%;
  background-size: 475px;
}

.bouteille .prestige {
  width:50%;
  height: 70%;
  background: url(../../include/ressource/image/Prestige2.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .rose {
  width:50%; 
  height: 70%;
  background: url(../../include/ressource/image/TuttiQuanti.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .blancb {
  width:50%;
  height: 70%;
  background: url(../../include/ressource/image/Bullesblanc.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .blancd {
  width:50%;
  height: 70%;
  background: url(../../include/ressource/image/Bullesblanc.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .roseb {
  width:50%;
  height: 70%;
  background: url(../../include/ressource/image/Petrose2.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .sauvignon {
  width:50%; 
  height: 70%;
  background: url(../../include/ressource/image/sauvignon.png)no-repeat;
  background-position: 50% 50%;
  background-size: 420px;
}

.bouteille .detail {
  color: #ffefd5;
  text-decoration: underline;
  cursor: pointer;
}

.bouton-style {
  display: inline-block;
  padding: 6px 12px;
  background-color: transparent; /* bleu classique */
  color:#2a3e3e;
  text-decoration: underline;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  opacity: 0.9;
}

.bouton-style:hover {
  text-decoration: bold; /* un bleu plus foncé au survol */
}

.modal {
  display: none; /* Masque le modal par défaut */
  position: fixed; /* Position fixe */
  z-index: 1; /* Au-dessus des autres éléments */
  left: 0;
  top: 0;
  width: 100%; /* Largeur complète */
  height: 100%; /* Hauteur complète */
  overflow: auto; /* Ajoute un défilement si nécessaire */
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}



.close {
  color: #aaa; /* Couleur de la croix de fermeture */
  float: right; /* Aligne la croix à droite */
  font-size: 28px; /* Taille de la croix */
  font-weight: bold; /* Met en gras la croix */
  cursor: pointer; /* Change le curseur au survol */
}



/* ===== MODAL CONTAINER ===== */
.modal {
  display: none; /* masqué par défaut */
  position: fixed;
  z-index: 1000;
  inset: 0; /* top/right/bottom/left: 0 */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
  background: #faf9f6;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  padding: 25px 35px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  position: relative;
  font-family: "Georgia", serif;
  color: #2c2c2c;
  animation: slideUp 0.4s ease;
}

/* ===== CLOSE BUTTON ===== */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  transition: transform 0.2s ease, color 0.2s ease;
}
.close:hover {
  transform: scale(1.2);
  color: #a6192e; /* rouge bordeaux */
}

/* ===== MODAL BODY ===== */
.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

/* ===== LEFT CONTENT ===== */
.gauche {
  flex: 2;
}

.titre1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 18px;
  color: #a6192e; /* couleur vin rouge */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.caracteristique, .sol, .rendement, .accompagnement {
  margin-bottom: 20px;
}

.titre {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #333;
  border-left: 4px solid #a6192e;
  padding-left: 8px;
}

.texte {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* ===== RIGHT SIDE (IMAGE / ILLUSTRATION) ===== */
.droite {
    flex: 1;
    background: url("../ressource/image/sauvignon.png") center/cover no-repeat;
    border-radius: 10px;
    min-height: 350px;
}

/* ===== ANIMATIONS ===== */


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

/* ======= CSS pour smartphones ======= */


  
  /* Modale plein écran avec fond semi-transparent */
  .modal {
    display: none; /* affichage via JS */
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: flex-start; /* s'affiche depuis le haut */
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    overflow: hidden;
    padding: 0.5rem;
  }

  /* Conteneur de la modal */
  .modal-content {
    position: relative;
    width: 100%;
    height: 95vh; /* presque tout l'écran */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Croix toujours visible */
  .modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #333;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    z-index: 10;
  }

  .modal .close:hover {
    background: rgba(255,255,255,1);
  }

  /* Contenu scrollable */
  .modal-body {
    flex: 1;
    overflow-y: auto;               /* scroll interne */
    -webkit-overflow-scrolling: touch; /* smooth scroll iOS */
    padding: 1rem;
    box-sizing: border-box;
  }

  /* Structure gauche / droite */
  .modal-body {
    flex-direction: column; /* empile sur mobile */
  }

  .modal-body .gauche,
  .modal-body .droite {
    width: 100%;
    min-width: unset;
  }

  /* Titres et texte */
  .modal-body .titre1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8c5725;
  }

  .modal-body .caracteristique .titre {
    font-weight: bold;
    margin-top: 1rem;
    color: #555;
  }

  .modal-body .caracteristique .texte {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.25rem;
  }

}

/* ===== MODAL CONTENT ===== */


/* MODAL 1 */
#modal1 .droite {
  background-image: url("../ressource/image/sauvignon.png");
}
#modal1 .gauche {
  /* Si tu veux une couleur de fond ou un style spécifique */
}

/* MODAL 2 */
#modal2 .droite {
  background-image: url("../ressource/image/TouraineChenonceaux.png");
}
#modal2 .gauche {
  /* Style spécifique pour modal2 si besoin */
}

/* MODAL 3 */
#modal3 .droite {
  background-image: url("../ressource/image/Gamay.png");
}

#modal4 .droite {
  background-image: url("../ressource/image/harmo.png");
}

#modal5 .droite {
  background-image: url("../ressource/image/Prestige2.png");
}

#modal6 .droite {
  background-image: url("../ressource/image/TuttiQuanti.png");
}

#modal7 .droite {
  background-image: url("../ressource/image/Bullesblanc.png");
}

#modal8 .droite {
  background-image: url("../ressource/image/Petrose2.png");
}





/* 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: -2%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  height: 100%;
  width: 22%;
  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 .droite1 {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: transparent;
  height: 80%;
  width: 20%;
}

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

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

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

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

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

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

  

  
}




