/* Add a black background color to the top navigation */
html, body {
    font-family: Ubuntu;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    user-select: none;
    background-color: #f2f2f2;
    overflow-x: hidden;
    scroll-behavior:unset;
}

main {
    padding-top: 60px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.navbar {
    background-color: #1D5450;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    position: fixed; /* Change this to fixed if you want the navbar to stay at the top */

}

.navbar div {
    color: #f2f2f2;
    text-align: center;
    padding: 10px 16px; /* Reduced padding to decrease height */
    font-size: clamp(0.8rem, 1.2vw, 1rem); /* Adjusted font size for smaller display */

}

.navbar div a {
    text-decoration: none;
    color: inherit;
}

.navbar div:hover {
    background-color: #ddd;
    color: black;
}

@media screen and (max-width: 600px) {
    .navbar div {
        padding: 10px 16px; /* Adjust padding for smaller devices if needed */
        font-size: 0.8rem; /* Adjust font size for smaller devices if needed */
    }
}
/* Add styles for the toggle button */
.navbar-toggle {
    position: absolute; /* Position relative to the navbar */
    top: 0; /* Align with the top of the navbar */
    right: 0; /* Align with the right of the navbar */
    padding: 10px; /* Add some padding */
    border-radius: 15px;
    text-decoration: none;
}

#toggleNavbarBtn {
    padding: 10px 15px;
    font-size: 1.5rem;
    background: #804000; /* Adjust the color as needed */
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Styles for the navbar-toggle on smaller screens */
@media screen and (max-width: 768px) {
    .navbar-toggle {
      top: 20px;
      right: 20px;
    }
}
.navbar-hidden {
    display: none;
}
.imgnohover {
    max-width: 50%;
    height: auto;
    border-radius: 5px;
}

a {
    padding: 5px;
    font-size: 20px;
}

.no-hover {
    border-radius: 25px;
    pointer-events: none;
    cursor: default;
}

.content {
    margin-top: 60px; /* Ajustez cette valeur en fonction de la hauteur réelle de votre navbar */
    display: flex;
    justify-content: space-between;
}

.left-side, .right-side {
    display: flex; /* Utilise Flexbox à l'intérieur des côtés aussi */
    flex-direction: column; /* Organise le contenu verticalement */
    align-items: center; /* Centre le contenu horizontalement */
    padding: 20px; /* Ajoute un peu d'espace à l'intérieur des côtés */
    border-radius: 15px;
    
}

.left-side {
    flex: 1; /* Prend 1/3 de l'espace disponible */
}

.right-side {
    flex: 2; /* Prend 2/3 de l'espace disponible, le rendant plus large */
}

img {
    max-width: 100%; /* Assure que les images ne dépassent pas leur conteneur */
    height: auto; /* Garde les proportions de l'image */
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

footer {
    background-color: #51802D;
    color: #fff;
    text-align: center;
    padding: 2px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}


/* Style général pour le formulaire et ses éléments */
.form-container {
    display: flex; /* Utilise Flexbox */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    min-height: 80vh; /* Ajustez cette valeur selon vos besoins */
    width: 100%; /* S'assure que le conteneur prend toute la largeur */
    /* Supplémentaire pour s'assurer que le centrage fonctionne dans toutes les situations */
    position: relative; /* Position relative pour permettre un centrage précis */
}

form {
    background-color: #ffffff; /* Fond blanc pour le formulaire */
    padding: 20px; /* Espacement autour des éléments du formulaire */
    border-radius: 10px; /* Bords arrondis pour le formulaire */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre subtile pour le formulaire */
    margin: 20px; /* Marge autour du formulaire pour éviter qu'il touche d'autres éléments */
    width: calc(100% - 40px); /* Largeur ajustée pour inclure le padding */
    max-width: 500px; /* Largeur maximale pour que le formulaire reste lisible sur les grands écrans */
   font-size: ubuntu;
}

/* Style pour les labels */
form label {
    display: block; /* Assure que chaque label est sur sa propre ligne */
    margin: 15px 0 5px; /* Espacement avant et après chaque label */
}

/* Style pour les champs de saisie et la zone de texte */
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%; /* Utilise toute la largeur disponible */
    padding: 10px; /* Espacement à l'intérieur des champs pour faciliter la saisie */
    margin-bottom: 15px; /* Espacement entre les champs */
    border-radius: 5px; /* Bords légèrement arrondis */
    border: 1px solid #ccc; /* Bordure discrète */
}

/* Style pour la zone de texte pour s'assurer qu'elle est suffisamment grande */
form textarea {
    min-height: 100px; /* Hauteur minimale pour la zone de texte */
}

/* Style pour le bouton d'envoi */
form input[type="submit"] {
    background-color: #51802D; /* Background color matching the navbar */
    color: #ffffff; /* White text for contrast */
    padding: 10px 20px; /* Button sizing */
    border: none; /* No border for the button */
    border-radius: 5px; /* Rounded corners for the button */
    cursor: pointer; /* Indicates a clickable element */
    display: inline-block; /* Allows the button to fit its content size */
    transition: background-color 0.3s ease; /* Smooth transition for the background color */
}

form input[type="submit"]:hover {
    background-color: #603000; /* Darker shade when hovered */
}

.content3 {
    display: flex; /* Active Flexbox */
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: center; /* Centre horizontalement les éléments à l'intérieur */
    justify-content: center; /* Centre verticalement les éléments à l'intérieur */
    max-width: 90%; /* Largeur maximale pour la responsivité, ajustez selon les besoins */
    margin: auto; /* Centrage horizontal dans le conteneur parent */
    padding: 20px; /* Espace à l'intérieur de content3 */
}

.bg-grey {
    background-color: #f2f2f2; /* Light grey color */
}

/* New class for white background */
.bg-white {
    background-color: #ffffff; /* Pure white color */
}
.coffee-strength-container {
    display: flex;
    width: 100%;
    text-align: center;
    margin: 10px;
  }
  /* Adjusted CSS for coffee strength boxes to make them responsive */
.coffee-strength {
    flex-grow: 1;
    margin: 5px;
    padding: 5vw; /* Adjust padding using viewport width */
    border-radius: 8px;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .coffee-strength {
        padding: 3vw; /* Decrease padding for smaller devices */
    }
}
  .coffee-cup {
    font-size: 24px;
    margin-bottom: 8px;
  }
  /* Responsive design */
  @media (max-width: 768px) {
    .coffee-strength-container {
      flex-direction: column;
    }
    .coffee-strength {
      margin-bottom: 10px;
    }
  }
  /* Add the appropriate background colors here */
  .coffee-1 { background-color: #C2A385; }
  .coffee-2 { background-color: #A57B5A; }
  .coffee-3 { background-color: #8F625D; }
  .coffee-4 { background-color: #5F4C46; }
  .coffee-5 { background-color: #4B3832; }

  /* Add bottom margin to each section */
section {
    margin-bottom: 30px;
}

/* Remove bottom margin from the last section */
section:last-of-type {
    margin-bottom: 0;
}
