/* 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;
    z-index: 10;
  }
  
  .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/bouchons.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;
  }


.galerie {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante */
    gap: 1.5em; /* Espacement entre les images */
    padding: 2em;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Ombre douce */
    height: 250px; /* Hauteur fixe pour les images */
    width: calc(33.33% - 1em); /* Largeur de chaque image (3 images par ligne) */
    background-color: #ccc; /* Fond gris pour visualiser les conteneurs */
    background-size: cover;
    background-position: center; /* Centre l'image */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition douce */
}

.image-container:hover {
    transform: scale(1.05); /* Agrandissement au survol */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); /* Ombre plus marquée au survol */
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2em; /* Taille de police plus grande */
    opacity: 0; /* Masqué par défaut */
    transition: opacity 0.3s; /* Transition douce pour l'opacité */
}

.image-container:hover .overlay {
    opacity: 1; /* Affiche le texte au survol */
}

/* Styles pour les écrans plus petits */
@media (max-width: 768px) {
    .image-container {
        width: calc(50% - 1em); /* 2 images par ligne sur les écrans moyens */
    }
}

@media (max-width: 480px) {
    .image-container {
        width: 100%; /* 1 image par ligne sur les petits écrans */
    }
}
  
  /* 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;
  }
  
  .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 .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 */
    }
  }
  
  