/* polices */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); /*paragraphe*/
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap'); /*titre*/

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Évite tout débordement horizontal */
  }
  
  *{
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Montserrat", sans-serif;
  }

  body{
    background: #FDFFFC;
  }

  /* loader */
  .loader {
    width: 100%;
    height: 100%;
    z-index: 10000;    
  }
  
  .loader {
    width: 100%;
    height: 100%;
    background: rgb(216,147,147);
    background: linear-gradient(63deg, rgba(216,147,147,1) 0%, rgba(253,255,252,1) 99%);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
  }
  
  .fadeOut {
    opacity: 0;
    transition: opacity 600ms ease;
  }
  
  .hidden {
    z-index: -1000;
  }
  
  .circle {
    width: 90px;
    height: 90px;
    border: 5px solid #589226;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .circle .symbol {
    font-size: 1.5rem;
    color: #589226;
    animation: fade 2s infinite;
  }
  
  .slogan {
    margin-top: 20px;
    margin-left: 20px;
    font-size: 1rem;
    color: #223843;
    font-weight: bold;
  }
  
  @keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* header-barre de navigation */
  nav{
    background: #223843;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 10%;
    padding-right: 10%;
  }
  
  .logo{
    width: 165px;
  }
  
  nav ul li{
  display: inline-block;
  padding: 10px 20px ;
  list-style: none;
  font-size: 17px;
  }
  
  nav ul li a{
    text-decoration: none;
    font-weight: bold;
    color: #D89393;
  }
  
  nav ul li a:hover{
    color: #FDFFFC;
    transition: .3s;
  }

  /* sous menu */
.submenu{
    display: none; /* Masquer le sous-menu par défaut */
    position: absolute;
    top: 100%; /* Positionner en dessous du parent */
    left: 50%; /* Centrer horizontalement */
    transform: translateX(-50%); /* Ajuster le centrage */
    padding: 10px 0; /* Espacement vertical */
    width: max-content; /* Ajuster la largeur au contenu */
    background-color: #589226;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
  }
  
  .submenu li {
    display: block;
  }
  
  .submenu li a {
    color: #FDFFFC;
  }
  
  .submenu li a:hover {
    color: #D89393;
  }
  
  .dropdown {
    position: relative; /* Nécessaire pour le positionnement absolu de .submenu */
  }
  
  /* Affichage du sous-menu au survol */
  .dropdown:hover .submenu {
    display: block;
  }

  /* menu hamburger */
  .hamburger{
    display: none;
    cursor: pointer;
  }

  .hamburger i{
    font-size: 30px;
    color: #D89393;
  }

  /* menu responsive */
  @media screen and (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    /* Menu caché par défaut sur mobile */
    nav ul {
      display: none;
      flex-direction: column;
      width: 100%;
      padding: 20px 0;
      position: absolute;
      top: 9%;
      left: 0;
      background: #223843;
      z-index: 5;
    }
  
    nav ul li {
      display: block;
      text-align: center;
      padding: 15px;
    }
  
    nav ul li a {
      font-size: 20px;
    }
  
    /* Afficher le menu quand activé */
    nav ul.active {
      display: block;
    }
  
    .dropdown .submenu {
      position: static;
      transform: none;
      width: 100%;
      display: none;
    }
  
    .dropdown:hover .submenu {
      display: block;
    }
  }
  
  /* Version tablette */
@media screen and (max-width: 1103px) {
  /* Lorsque la taille de l'écran est plus grande que mobile mais plus petite que desktop */
  .hamburger {
    display: block;
  }

  nav ul {
    display: none; /* Menu caché par défaut */
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
    position: absolute;
    top: 25%;
    left: 0;
    background: #223843;
    z-index: 5;
  }

  nav ul li {
    display: block;
    text-align: center;
    padding: 15px;
  }

  nav ul li a {
    font-size: 18px; /* Taille plus petite que sur mobile */
  }

  /* Affichage du menu quand activé */
  nav ul.active {
    display: block;
  }

  /* Sous-menu version tablette */
  .dropdown .submenu {
    position: static;
    transform: none;
    width: 100%;
    display: none;
  }
}

  /* infos entreprise */
  .container {
    width: 80%;
    margin: 50px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h2 {
    text-align: center;
    color: #333;
}

.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 5px 0;
}

/* formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #223843;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #445c69;
}

/* réseaux sociaux */
.social-links {
    text-align: center;
    margin-top: 20px;
    display: inline-flex;
    list-style: none;
    height: auto;
    width: 100%;
    justify-content: center;
}

.social-links li a{
    text-decoration: none;
    color: #fff; /* Hérite la couleur définie dans l'élément parent */
    display: inline-flex; /* S'aligne avec le comportement du conteneur */
    align-items: center;
    justify-content: center;
  }

  .social-links .icon {
    position: relative;
    background: #223843;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .social-links .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }


  .social-links .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .social-links .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .social-links .icon:hover span,
  .social-links .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  }
  
  .social-links .facebook:hover,
  .social-links .facebook:hover .tooltip,
  .social-links .facebook:hover .tooltip::before {
    background: #1877f2;
    color: #fff;
  }
  
  .social-links .mail:hover:hover,
  .social-links .mail:hover:hover .tooltip,
  .social-links .mail:hover:hover .tooltip::before {
    background: #D89393;
    color: #fff;
  }
  
  .social-links .instagram:hover,
  .social-links .instagram:hover .tooltip,
  .social-links .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
  }

  /* map */
  .map {
    margin-top: 20px;
    text-align: center;
}

iframe {
    width: 100%;
    height: 300px;
    border: 0;
}