/* 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;
  }
}

  /* usage */
.usage{
    margin-top: 30px;
    text-align: center; /* Centrer le texte */
  }
  
  .usage h1{
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #D89393;
    font-weight: normal;
  }
  .container {
    display: flex;
    justify-content: center; /* Centre les cartes horizontalement */
    gap: 1.5rem; /* Espacement entre les cartes */
    flex-wrap: wrap; /* Permet de s'adapter aux petits écrans */
    margin: 0 auto; /* Centre le conteneur */
    padding: 0 15px;
    max-width: 1200px; /* Limite la largeur totale */
  }
  
  .card {
    box-shadow: 0 8px 32px 0 #d8939370; 
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 10px;
    padding: 1rem;
    width: 300px;
    text-align: center;
    width: 800px;
  }
  
  .card img{
    width: 80%; /* Utilise toute la largeur disponible */
    height: auto; /* Garde les proportions */
    border-radius: 10px; /* Ajoute un léger arrondi */
    margin-bottom: 1rem; 
  }
  
  .title {
    margin: 1rem 0;
    color: #223843;
  }
  
  .learn-more {
    background-color: #223843;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 30px ;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .learn-more:hover {
    background-color: #445c69;
  }
  