/** 
   But : fichier css permet la mise en forme
   Auteur : Thibaud Gamez
   Date :   30.09.2024 / V2.0 
   */
body {
    font-family: Arial, sans-serif;
    background-image: url("../images/wine_background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    font-family: 'Astloch';
    font-size: 90px;
    text-align: center;
    color: white;
}

.search-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.search-container form {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
}

.search-container input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 32px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
}

.search-container input[type="text"]::placeholder {
    font-style: italic;
    color: #ccc;
}

.search-container input[type="text"]:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.list-container {
    margin: 80px auto 0 auto;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px 0 20px;
    scrollbar-width: none; /* Pour Firefox */
}

.list-container::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Opera */
}

.list-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.list-container li {
    opacity: 1;
    padding: 15px;
    border-bottom: 1px solid black;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.list-container li:last-of-type {
    border-bottom: none;
}

.list-container li:hover {
    background-color: #f0f0f0;
    color: #007BFF;
}

.list-container li:active {
    background-color: #e0e0e0;
}
#vins {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Largeur fixe de 300px, mais s'étendre si l'espace est disponible */
    grid-gap: 40px; /* Espacement entre les éléments */
    justify-content: space-around; /* Pour espacer les divs horizontalement */
    margin-top: 100px;
}
#vins div {
    width: 95%; /* Largeur totale de la grille */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 1);
    margin: 0 auto 0 auto;
    align-items: center;
    cursor: pointer;
}
#vins div:hover {
    background-color: rgb(165, 165, 165);
}
#vins div div {
    display: grid;
    grid-template-columns: auto 1fr; /* Première colonne pour les noms, deuxième colonne pour les valeurs */
    align-items: center; /* Pour aligner verticalement les éléments */
    background: none;
}
#vins div div .nom {
    font-weight: bold; /* Pour mettre en gras les noms */
    margin-left: 5px;
    width: 100px;
}
#mapid {
    width: 80%;
    margin: 70px auto 0;
    height: 600px;
}

#vin{
    width: 30%;
    height: 450px;
    background-color: white;
    margin: 0 auto 0 auto;
    border-radius: 7px;
}

#vin div {
    margin: 0 auto 0 auto;
}

#vin div div {
    display: grid;
    grid-template-columns: auto 1fr; /* Première colonne pour les noms, deuxième colonne pour les valeurs */
    align-items: center; /* Pour aligner verticalement les éléments */
    background: none;
}
#vin div div .nom {
    font-weight: bold; /* Pour mettre en gras les noms */
    margin-left: 20px;
    width: 100px;
}
#backButton {
    position: fixed;
    bottom: 20px; /* Ajustez cette valeur selon vos besoins */
    right: 20px;  /* Ajustez cette valeur selon vos besoins */
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#backButton:hover {
    background-color: #0056b3;
}