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

  /* bande passante */
  .carousel-inner img {
    max-height: 705px;
    object-fit: cover; /* Permet de préserver l'aspect proportionnel de l'image */
    width: 100%;
    margin-bottom: 45px;
  }
  
  /* wrapper Section */
.wrapper {
    display: flex;
    flex-direction: column; /* Aligne les sections verticalement */
    justify-content: center; /* Centre les éléments verticalement */
    align-items: center; /* Centre les sections horizontalement */
    padding: 20px;
    gap: 50px; /* Espace entre les sections */
    background-color: #589226;
    text-align: center;
  }
  
  .first-section, .right {
    display: flex;
    justify-content: center; /* Aligne le contenu horizontalement */
    align-items: center; /* Aligne les éléments verticalement */
    gap: 20px; /* Espace entre l'image et le texte */
    max-width: 1200px; /* Largeur maximale pour éviter une trop grande expansion */
  }
  
  .first-section img, .right img {
    width: 320px;
    height: auto;
  }
  
  .text-box, .text-left {
    flex: 1; /* Prend 50% de la largeur disponible */
  }
  
  .text-box h1, .text-left h1 {
    font-size: 42px;
    color: #FDFFFC;
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .text-left h1{
    right: -19%;
    position: relative;
  }
  
  .right img{
    position: relative;
    right: -10%;
  }
  
  .text-box p {
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
    color: #223843;
  }
  
  .text-box strong {
    color: #FDFFFC;
  }
  
  .inline-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
  }
  
  .inline-list li {
    display: inline-block;
    background: #fdfffc;
    color: #223843;
    font-weight: bold;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  }

  /*Section mission */
.mission {
    padding: 50px;
    color: #223843;
    text-align: center;
  }
  
  .mission h1 {
    font-size: 42px;
    font-weight: bold;
    color: #223843;
    margin-bottom: 15px;
  }
  
  .mission-description {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #DD7230 ; 
    margin-bottom: 40px; /* Espacement avant les cartes */
    max-width: 800px; /* Limite la largeur pour une meilleure lisibilité */
    margin-left: auto;
    margin-right: auto; /* Centre le texte horizontalement */
  }
  
  .cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    text-decoration: none;
  }
  
  .card {
    background-color: #D89393;
    border: none;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    color: #FDFFFC;
    text-decoration: none; /* Supprimer soulignement */
    display: block; /* Rendre tout cliquable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card .image-cards {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 15px auto; /* Centre horizontalement et espace en bas */
    display: block;
  }
  
  .card h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .card:hover{
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
  }

  /* Section Actualités */
.actualites {
    background: #589226;
    padding: 50px 20px;
    text-align: center;
  }
  
  .actualites h1 {
    font-size: 2.5rem;
    color: #FDFFFC;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .actualites-description {
    font-size: 1.2rem;
    color: #223843;
    margin-bottom: 30px;
  }
  
  .webinaire-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .webinaire-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  }
  
  .webinaire-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease; /* Transition pour le zoom */
  }
  
  /* Effet de zoom sur l'image au survol de la carte */
  .webinaire-image:hover {
    transform: scale(3.1);
  }
    
  .webinaire-info {
    text-align: left;
  }
  
  .webinaire-info h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #f58634;
    margin-bottom: 10px;
  }
  
  .webinaire-info p {
    font-size: 1rem;
    color: #223843;
    margin: 5px 0;
  }
  
  .webinaire-info button {
    background-color: #223843;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 30px ;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .webinaire-info button:hover {
    background-color: #445c69;
    transform: scale(1.05);
  }

  /* pied de page */
  footer{
    margin-top: 50px; 
    background: #223843;
    height: auto;
    width: 100vw;
    color: #FDFFFC;
  }

  .footer-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-content img{
    width: 155px;
  }

  .footer-content p{
    font-size: 20px;
    color: #D89393;
    font-weight: bold;
    position: relative;
    bottom: 10px;
  }

  .footer-content .accroche{
    text-transform: uppercase;
  }

  .socials {
    display: inline-flex;
    list-style: none;
    height: auto;
    width: 100%;
    margin-bottom: 15px;
    justify-content: center;
  }

  .socials li a{
    text-decoration: none;
    color: inherit; /* 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;
  }
  
  .socials .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);
  }
  
  .socials .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);
  }
  
  .socials .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);
  }
  
  .socials .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .socials .icon:hover span,
  .socials .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  }
  
  .socials .facebook:hover,
  .socials .facebook:hover .tooltip,
  .socials .facebook:hover .tooltip::before {
    background: #1877f2;
    color: #fff;
  }
  
  .socials .mail:hover:hover,
  .socials .mail:hover:hover .tooltip,
  .socials .mail:hover:hover .tooltip::before {
    background: #D89393;
    color: #fff;
  }
  
  .socials .instagram:hover,
  .socials .instagram:hover .tooltip,
  .socials .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
  }

  .footer-bottom{
    border-top: 2px solid #D89393;
    width: 100vw;
    padding: 20px 0;
    text-align: center !important;
  }

  .footer-bottom p{
    font-size: 18px;
    word-spacing: 2px;
    text-transform: capitalize;
    position: relative;
    top: 6px;
  }

  .footer-bottom span{
    text-transform: uppercase;
    opacity: .4;
  }

    /* menu responsive version mobile */
    @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: 40%; /* Espacement entre le logo et le menu */
        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;
      }
      /* wrapper */
      .wrapper{
          flex-direction: column; /* Aligne les éléments horizontalement */
          flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
          justify-content: center;
          align-items: center;
          gap: 20px;
      }

      .first-section, .right {
        flex-direction: column; /* Organisation horizontale */
        align-items: center;
        text-align: center;
        gap: 15px;
        width: 100%;
        flex-wrap: wrap; /* Permet de mieux gérer l'affichage */
      }
    
      .first-section img, .right img {
        width: 250px; /* Réduire la taille des images */
        height: auto;
      }

      .right img {
        right: 0;
      }
    
      .text-box, .text-left {
        flex: 1; /* Ajuster la largeur pour équilibrer avec les images */
        min-width: 200px;
      }
    
      .text-box h1, .text-left h1 {
        font-size: 30px; /* Réduire la taille des titres */
      }

      .text-left h1{
        right: 0;
        text-align: center;
      }
    
      .text-box p {
        font-size: 14px; /* Adapter la taille du texte */
        line-height: 1.4;
      }
    
      .inline-list li {
        font-size: 14px;
        padding: 5px 10px;
      }

      /* section mission */
      .mission-description {
        font-size: 16px; /* Réduit légèrement la taille pour mobile */
        line-height: 1.5;
        text-align: center; /* Centre le texte pour une meilleure lisibilité */
        padding: 0 15px; /* Ajoute un léger padding pour éviter que le texte colle aux bords */
      }
    
      /* Met seulement "Engagé pour la santé des femmes." en majuscule */
      .mission-description::before {
        content: "ENGAGÉ POUR LA SANTÉ DES FEMMES.";
        font-weight: bold;
        text-transform: uppercase;
        display: block;
        margin-bottom: 5px;
      }

      /* Changer le texte en version courte sur mobile
  .mission-description::after {
    content: "Promotion de solutions médicales en santé intime et reproductive.";
    display: block;
  } */

  /* Cacher le texte original sur mobile */
  .mission-description .original-text {
    display: none;
  }
  /* .mission-description br,
  .mission-description {
    display: none;
  } */

      .cards {
        flex-direction: column; /* Met les cartes en colonne */
        align-items: center; /* Centre les cartes */
        gap: 15px; /* Réduit l'espace entre les cartes */
      }
    
      .card {
        width: 90%; /* Augmente la largeur des cartes */
        max-width: 300px; /* Évite qu'elles deviennent trop grandes */
        padding: 15px; /* Ajuste l'espace intérieur */
      }
    
      .card .image-cards {
        width: 120px; /* Augmente légèrement la taille des images */
        height: 120px;
      }
    
      .card h3 {
        font-size: 1.1rem; /* Ajuste la taille du texte */
      } 
      
      /* section actualité */
      .actualites {
        padding: 30px 10px;
      }
    
      .actualites h1 {
        font-size: 2rem;
      }
    
      .actualites-description {
        font-size: 1rem;
        margin-bottom: 20px;
      }
    
      .webinaire-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 15px;
        max-width: 90%;
      }
    
      .webinaire-image {
        width: 165px;
        height: 165px;
      }
    
      /* Désactiver le zoom de l'image au survol sur mobile */
      .webinaire-image:hover {
        transform: none;
      }
    
      .webinaire-info {
        text-align: center;
      }
    
      .webinaire-info h3 {
        font-size: 1.1rem;
      }
    
      .webinaire-info p {
        font-size: 0.9rem;
      }
    
      .webinaire-info button {
        padding: 10px 20px;
        font-size: 0.9rem;
      }
    }
    
    /* 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;
    }
  }
