* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
}

footer{
  padding:auto;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: transparent;
  color: #888888;
  z-index: 999;
  transition: background-color 0.4s ease, padding 0.3s ease;
}

.menu.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
}

.menu .logo {
  font-size: 1.5em;
  font-weight: bold;
}

.menu .menu-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu .menu-list a {
  color: #888888;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s;
}

.menu .menu-list a.active{
  color: #ffffff;
}

.menu .menu-list a:hover {
  color: #00bcd4;
}

.menu-toggle {
  display: none; /* Caché par défaut sur grand écran */
  font-size: 1.5em;
  cursor: pointer;
}

.container {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto; 
}

.bg-1{
  background-color: #00bcd4;
}

.bg-2{
  background-color: #006837;
}

section{
  padding-top : 80px;
  padding-bottom : 80px;
}

h1{
  text-align: center;
}



/*formulaire*/
/* Style inputs with type="text", select elements and textareas */
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; 
  padding: 12px; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  box-sizing: border-box; 
  margin-top: 6px; 
  margin-bottom: 16px; 
  resize: vertical 
}


/* Style the submit button with a specific background color etc */
button[type=submit]{
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
button[type=submit]:hover {
  background-color: #45a049;
}

input[type=text]:invalid, input[type=tel]:invalid, input[type=email]:invalid  {
  border: 3px solid red;
  color: red;
}


textarea:invalid {
  border: 3px solid red;
  color: red;
}


footer{
  background-color: #777777;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styles pour les écrans de moins de 768px (tablettes et mobiles) */
@media (max-width: 768px) {
  .menu .menu-list {
    display: none; /* Cache les liens du menu */
    position: absolute;
    top: 100%; /* Se positionne juste en dessous de la barre de nav */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .menu .menu-list.active {
    display: flex; /* Affiche le menu quand il est actif */
  }

  .menu-toggle {
    display: block; /* Affiche l'icône hamburger */
  }

  .menu {
    padding: 15px 20px;
  }
  .menu.scrolled {
    padding: 10px 20px;
  }
}

