* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, a {
  font-family: 'Open Sans', sans-serif;
  color: rgb(0,0,100);
}

p{
  margin-bottom: 20px;
}

ul{
  margin-left: 50px;
  margin-bottom: 20px;
}

h1{
  text-align: center;
  margin-bottom: 20px;
}

h2{
  margin-bottom: 20px;
}
h3{
  margin-bottom: 20px;
}

section#contact h2{
  margin-bottom: 5px;
  text-align: center;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFF6ed;
  z-index: 999;
  transition: background-color 0.4s ease, padding 0.2s ease;
}
.menu .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu.scrolled {
  background-color: #f3dbc3;
}

.menu .logo {
  height: 150px;
}

.menu.scrolled .logo {
  height: 50px;
}

.menu .menu-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu .menu-list a {
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 5px;
}
/*
a.menu-link:hover{
  text-decoration: underline;
}

a.menu-link.active{
  text-decoration: underline;
}*/
a.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 1px;
    background-color: rgba(0,0,100);
    transition: transform 0.3s ease-in-out;
    transform: scaleX(0); /* Initialement invisible */
}

a.menu-link:hover::after {
    transform: scaleX(1); /* Apparition complète */
}
a.menu-link.active::after {
    transform: scaleX(1); /* Apparition complète */
}

.menu-toggle {
  display: none; /* Caché par défaut sur grand écran */
  font-size: 1.5em;
  cursor: pointer;
}

ul.menu-list{
  margin-left: 0px;
  margin-bottom: 0px;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto; 
  padding-left: 10px;
  padding-right: 10px;
}

#accueil{
  padding-top: 180px;
}

.bg-1{
  background-color: #ffffff;
}

.bg-2{
  background-color: #FFF6ed;
}

section{
  padding-top : 40px;
  padding-bottom : 40px;
  scroll-margin-top: 50px;
}

.portrait{
  width: 40%;
  border-radius: 50%;
  shape-outside: circle();
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;
}

#contact a{
  padding-bottom: 5px;
  display: inline-block;
}
/*formulaire*/
/* Style inputs with type="text", select elements and textareas */
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; 
  padding: 5px; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  box-sizing: border-box; 
  margin-top: 5px; 
  margin-bottom: 10px; 
  resize: vertical 
}

textarea {
  height: 200px;
}

input[type=text]:invalid, input[type=tel]:invalid, input[type=email]:invalid, textarea:invalid  {
  border: 1px solid red;
  color: red;
}


div.colonne1{
  width : 50%;
  display: inline-block;
}

div.colonne2{
  width : 50%;
  float:right;
  padding-left:20px;
}

.clear {
  clear: both;
  height: 0;
  line-height: 0;
}

img.map{
    display: inline-block;
    width : 100%;
    object-fit: cover;
    padding: 10px;
    border-radius: 40px;
}

/* Style the submit button with a specific background color etc */

.center{
  display: flex;
  align-items: center;
  justify-content: center;
}

button{
  background-color: rgb(0,0,100);
  color: white;
  font-weight: bold;
  font-size:1.3em;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin:auto;
}

button:hover {
  background-color: rgb(0,0,170);
}



footer{
  background-color: #f3dbc3;
  width : 100%;
  bottom: 0;
}

footer .container{
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer p{
  margin-bottom: 5px;
}

footer img{
  float:left;
  height:50px;
  margin-right: 10px;
}

/* 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: #f3dbc3;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .menu .logo {
    height: 80px;
  }
  #accueil{
    padding-top: 120px;
  }
  .menu .menu-list.active {
    display: flex; /* Affiche le menu quand il est actif */
  }

  .menu-toggle {
    display: block; /* Affiche l'icône hamburger */
  }

  .menu {
    padding: 10px 20px;
  }

  div.colonne1{
    width : 100%;
  }

  div.colonne2{
    width : 100%;
    padding-left: 0px;
    float: none;
  }
}

