/* Votre CSS existant avec les modifications pour le menu burger */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #47509e;
  line-height: 1.5;
  background: white;
  width: 100%;
  overflow-x: hidden;
}

/* HEADER & NAV - plein largeur */
header {
  padding: 15px 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

nav > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 100px;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Logo dans menu */
nav ul img {
  max-height: 50px;
  cursor: pointer;
}

/* Liens du menu */
nav li a {
  text-decoration: none;
  font-weight: bold;
  font-family: sans-serif;
  transition: color 0.3s;
  padding: 5px 0;
  display: inline-block;
}
@media screen and (min-width: 768px) {
  .whiteColor {
    color: white !important;
  }
  .blackColor {
    color: black;
  }
}

#section_clients {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.avis {
  display: flex;
  margin-top: 10vh;
}
.avis-aside {
  margin-left: 5vw;
  justify-content: start;
  text-align: start;
}
/* Hover sauf bouton contact */
nav li a:hover {
  color: #47509e;
}

/* Bouton Contact */
#btn_contact_nav a {
  color: white !important;
  background-color: #1607fe;
  border-radius: 12px;
  padding: 8px 20px;
}

/* Menu Burger Button */
#burgerMenuBtn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}

.burger-line {
  width: 25px;
  height: 3px;
  background-color: #47509e;
  margin: 3px 0;
  transition: 0.3s ease;
  border-radius: 3px;
}

/* Animation du burger quand actif */
#burgerMenuBtn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#burgerMenuBtn.active .burger-line:nth-child(2) {
  opacity: 0;
}

#burgerMenuBtn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay pour fermer le menu en cliquant en dehors */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.menu-overlay.active {
  display: block;
}

/* Styles responsive */
@media screen and (max-width: 768px) {
  nav > div {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Afficher le bouton burger sur mobile */
  #burgerMenuBtn {
    display: flex;
  }

  /* Cacher le texte du burger et afficher les lignes */
  #burgerMenuBtn {
    font-size: 0; /* Cache le texte "Menu BURGER" */
  }

  /* Menu principal en mode mobile */
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    background-color: white;
    text-align: left;
    transition: 0.3s ease;
    gap: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 80px 0 20px 0;
    justify-content: flex-start;
  }

  nav ul.active {
    right: 0;
  }

  /* Logo en mode mobile */
  nav ul img {
    max-height: 40px;
    margin: 20px 30px;
    align-self: flex-start;
  }

  /* Liens en mode mobile */
  nav ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 15px 30px;
    width: 100%;
    border-radius: 0;
  }

  /* Bouton contact en mode mobile */
  #btn_contact_nav a {
    background-color: #1607fe;
    color: white !important;
    margin: 15px 30px;
    border-radius: 12px;
    width: calc(100% - 60px);
    text-align: center;
  }

  /* Réduire les gaps du header */
  header {
    padding: 15px 20px;
  }

  /* Logo principal (hors menu) */
  .logo-main {
    max-height: 40px;
  }
}

/* Styles pour écrans encore plus petits */
@media screen and (max-width: 480px) {
  nav ul {
    width: 280px;
  }

  header {
    padding: 10px 15px;
  }

  nav ul li a {
    padding: 12px 20px;
    font-size: 14px;
  }
}


/* Le reste de votre CSS existant reste inchangé */

/*page accueil*/
#section_1_accueil {
  padding: 100px 20px 150px 20px;
  color: white;
  text-align: center;
  position: relative;
  margin-bottom: 200px;
}

#video-back_ground {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  margin-bottom: 70px;
}

#section_1_accueil img {
  position: relative;
  z-index: 1;
  width: 450px;
  height: auto;
  margin-bottom: 30px;
}
.card_decenalle_accueil img,
.card_vl_accueil img,
.card_sante_accueil img,
.card_emprunteur_accueil img {
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  border-radius: 15px;
  margin-bottom: 10px;
}
#section_1_accueil h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 10px;
  color: white;
  font-size: 2em;
  margin-bottom: 20px;
}

#section_1_accueil h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 10px;
  color: white;
  font-size: 1.5em;
}

#section_2_accueil {
  justify-content: center;
  display: flex;
}

#section_2_accueil img {
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  border-radius: 15px;
  margin-bottom: 10px;
}

#section_2_accueil div {
  margin: 30px;
  border-color: #333;
  border-radius: 15px;
  margin-bottom: 10px;
}

.btn_rdv_accueil {
  margin: 60px;
  display: inline-block;
  background-color: #1607fe;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
}

#section_3_accueil {
  margin: 50px;
}

#section_3_accueil h2 {
  margin: 40px;
}

#section_3_accueil p {
  margin-bottom: 80px;
}

.flou_text_accueil {
  transition: box-shadow 0.3s ease; /* effet doux au survol */
}

.flou_text_accueil:hover {
  box-shadow: 0 0 25px rgba(131, 77, 255, 0.26); /* ombre plus large autour de toute la div */
}


/* page pro*/
#serrage_main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 40px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto 60px;
}

#serrage_main h1 {
  margin-bottom: 20px;
  color: #47509e;
  font-family: "Roboto", sans-serif;
  font-size: 2.2rem;
}

.texte_p1_pro {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #333;
}

#serrage_main img {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 15px -20px 40px rgba(80, 70, 229, 0.16),
    -15px 30px 60px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

main {
  color: black;
  text-align: center;
  height: color #47509e;
}

h2 {
  color: #47509e;
   text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.layer_blur h2 {  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);}
.layer_blur {
  margin-top: 50px;
  background-color: rgba(80, 70, 229, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(300px);
  border-radius: 12px;
  padding: 20px;
}

#assu_pro {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 40px;
}

#assu_pro > div {
  flex: 1;
  height: 250px;
  background-size: cover;
  background-position: center;
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-align: center;
}

#TNS {
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  background-image: url("./medias/sante\ tns.png");
  background-size: cover;
}

#PREVOYANCE {
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  background-image: url("./medias/prevoyance.png");
  background-size: cover;
}
#EXPATRIE {
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  background-image: url("./medias/Expatrié.png");
  background-size: cover;
}

#COLLECTIVE {
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  background-image: url("./medias/collective.png");
}

#assu_entreprise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px;
}

#assu_entreprise > div {
  height: 200px;
  background-size: cover;
  background-position: center;

  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 10px 15px 5px 3px #7f7f7f;
  margin: 10px;
  text-align: center;
}

.VL {
  background-image: url("./medias/vl.png");
}

.rcp {
  background-image: url("./medias/rcp.png");
}

.DECENNALE {
  background-image: url("./medias/decennale.png");
}

.mrp {
  background-image: url("./medias/multi\ risque.png");
}

.coutainer_bleu_pro {
  color: white;
  margin-top: 80px;
  text-align: left;
  background-color: #5046e5;
  padding: 20px;
}

.coutainer_bleu_pro div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact_btn {
  color: black;
  text-align: center;
  font-weight: bold;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
}

.section_quatre h2 {
  margin-top: 60px;
  margin-bottom: 50px;
}

.section_quatre h3 {
  margin-bottom: 24px;
}

.btn_devis {
  display: inline-block;
  margin-top: 50px;
  color: white;
  background-color: #1607fe;
  padding: 10px 20px;
  border-radius: 5px;
}

/* page particulier*/
#section_1_part {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 40px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto 60px;
}

#section_1_part img {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 15px -20px 40px rgba(80, 70, 229, 0.16),
    -15px 30px 60px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

#section_1_part h1 {
  color: #47509e;
  margin-bottom: 50px;
  margin-bottom: 20px;
  color: #47509e;
  font-family: "Roboto", sans-serif;
  font-size: 2.2rem;
}

#card_section_2_part {
  margin: 50px auto; /* espace haut/bas et centrage horizontal */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* s’adapte à la taille de l’écran */
  gap: 30px; /* espace équilibré entre les cartes */
  max-width: 1200px; /* limite la largeur totale pour recentrer le contenu */
  padding: 0 20px; /* petit espace sur les côtés pour respirer */
}

#card_section_2_part div {
  border: solid 2px #5046e5;
  border-radius: 15px;
  padding: 20px; /* espace intérieur équilibré */
  background-color: white; /* facultatif : pour mieux détacher du fond */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* léger relief */
}

#card_section_2 img {
  margin: 10px;
}

#troisieme_section_part h2 {
  margin-bottom: 40px;
}

#femme_medecin_part {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 40px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto 60px;
}

#femme_medecin_part h2 {
  margin-bottom: 20px;
  color: #47509e;
  font-family: "Roboto", sans-serif;
  margin-bottom: 20px;
  color: #47509e;
  font-family: "Roboto", sans-serif;
  font-size: 2.2rem;
}

#femme_medecin_part img {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 15px -20px 40px rgba(80, 70, 229, 0.16),
    -15px 30px 60px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.color_p_part {
  color: #5046e5;
}

/* page contact*/
#formualaire_contact {
  text-align: center;
  background-color: white;
  margin-bottom: 10vh;
}

#allignement_contact {
  display: flex;
}

.bouton_contact {
  margin: 0px;
  margin-top: 150px;
  margin-bottom: 10vh;
  color: white;
  background-color: #5046e5;
  padding: 30px;
}

#formualaire_contact h3 {
  margin-top: 40px;
  margin-bottom: 50px;
  color: black;
}
#contactPage {
  margin-bottom: 10vh;
}
#background_img_contact {
  position: absolute;
  height: 150vh;
  width: 100vw;
  margin-bottom: 70px;
  background-image: url("./medias/back_ground_contact.png");
  object-fit: cover;
  justify-content: center;
  padding-bottom: 20vh;
  margin-bottom: 20vh;
  z-index: -10;
}

#formualaire_contact input,
#formualaire_contact select,
#formualaire_contact textarea {
  width: 60%; /* ajuste selon ton design */
  max-width: 500px; /* pour ne pas dépasser sur grand écran */
  padding: 10px;
  box-sizing: border-box;
  display: block;
  margin: 10px auto; /* centre les champs et espace entre eux */
  border-radius: 6px; /* arrondir un peu les bords */
  border: 1px solid #ccc; /* couleur de bordure douce */
}

/* Footer */
#coutainer_footer {
  color: white;
}

#coutainer_footer:visited {
  color: white;
}

#coutainer_footer > img {
  margin-top: 30px;
  max-height: 70px;
  margin-bottom: 50px;
}

#coutainer_footer {
  padding-top: 50px;
  padding-bottom: 50px;
  margin-top: 200px;
  background-color: #5046e5;
}

footer img {
  margin-top: 30px;
  max-height: 70px;
}

#colonne_1 ul,
#colonne_2 ul,
#colonne_3 ul {
  list-style: none;
  margin: 50px;
  color: #f7f7f9;
}

#colonne_1 a,
#colonne_3 a,
#colonne_2 a {
  list-style: none;
  color: #f7f7f9;
}

#colonne_1 li,
#colonne_3 li,
#colonne_2 li {
  cursor: pointer;
}

#colonne_3 p {
  font-weight: bold;
  color: #fafafc;
}

#colonne_3 img {
  width: 30px;
  cursor: pointer;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas: "logo menu_footer";
}

.menu_footer {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0px 0px;
  grid-area: menu_footer;
}

.submenu_footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas: "left_menu menu_droit";
  grid-area: 1 / 1 / 2 / 2;
}

.left_menu {
  grid-area: left_menu;
}
.menu_droit {
  grid-area: menu_droit;
}
.socials_footer {
  grid-area: 1 / 2 / 2 / 3;
}
.logo {
  grid-area: logo;
}

footer .logo {
  margin-left: 50px;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto&display=swap");

/* CSS à ajouter dans votre style.css existant - CAROUSEL PARTENAIRES */

/* Container principal du carousel partenaires */
#carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin: 50px auto;
  height: 120px;
  overflow: hidden;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

/* Track du carousel avec animation infinie */
.carousel-track {
  display: flex;
  width: calc(200%);
  height: 100%;
  animation: scroll-partners 30s linear infinite;
  align-items: center;
}

/* Chaque slide partenaire */
.partner-slide {
  min-width: calc(100% / 16); /* Ajustez selon le nombre de partenaires */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.partner-slide:hover {
  background-color: #f8f9fa;
  transform: scale(1.05);
}

/* Logos des partenaires */
.partner-logo {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.partner-slide:hover .partner-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Animation pour le défilement */
@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause au survol */
#carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Gradients sur les bords pour effet de fondu */
#carousel::before,
#carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

#carousel::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

#carousel::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

/* Style pour le nom si logo ne charge pas */
.partner-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: #47509e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  #carousel {
    height: 100px;
    margin: 30px auto;
  }

  .partner-slide {
    min-width: calc(100% / 12);
    padding: 15px;
  }

  .partner-logo {
    max-width: 100px;
    max-height: 60px;
  }

  .carousel-track {
    animation-duration: 25s;
  }
}

@media (max-width: 480px) {
  #carousel {
    height: 80px;
    margin: 20px auto;
  }

  .partner-slide {
    min-width: calc(100% / 8);
    padding: 10px;
  }

  .partner-logo {
    max-width: 80px;
    max-height: 50px;
  }

  .carousel-track {
    animation-duration: 20s;
  }
}

@media screen and (max-width: 768px) {
  #video-back_ground {
    width: auto;        /* largeur automatique pour mobile */
    height: 100vh;      /* hauteur pleine */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Section 1 Accueil */
  #section_1_accueil {
    padding: 80px 15px 120px 15px;
  }

  #section_1_accueil h1 {
    font-size: 1.4em;
  }

  #section_1_accueil h2 {
    font-size: 1.1em;
  }

  /* Section 2 - Cards */
  #section_2_accueil {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
  }

  #section_2_accueil div {
    width: 90%;
    margin: 15px 0;
  }

  /* Section Clients */
  .avis {
    flex-direction: column;
    align-items: center;
    margin-top: 5vh;
  }

  .avis-aside {
    margin-left: 0;
    text-align: center;
  }

  /* Section 3 Accueil - Texte flou */
  #section_3_accueil .flou_text_accueil {
    padding: 20px;
    margin: 20px;
    box-shadow: none; /* enlever l’ombre par défaut sur mobile */
    transition: box-shadow 0.3s ease-in-out;
  }

  #section_3_accueil .flou_text_accueil:hover {
    box-shadow: 0 0 30px rgba(131, 77, 255, 0.26); /* légère ombre sur hover */
  }
}
@media screen and (max-width: 768px) {
  /* page pro */
  #serrage_main,
  #section_1_part,
  #femme_medecin_part {
    flex-direction: column !important;
    align-items: center;
    padding: 20px;
    gap: 20px;
  }

  #serrage_main img,
  #section_1_part img,
  #femme_medecin_part img {
    margin-top: 70px;
    flex: unset;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .texte_p1_pro,
  .texte {
    text-align: center;
    font-size: 1rem;
  }

  h1 {
    text-align: center;
    margin: 50px;
    font-size: 1.8rem;
  }

  h2 {
    text-align: center;
    margin: 30px;
    font-size: 1.5rem;
  }

  h3 {
    margin: 30px;
    font-size: 1.2rem;
    text-align: center;
  }

  #assu_pro {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 20px;
  }

  #assu_pro > div {
    padding: 50px;
    height: 250px;
    background-size: cover; /* pour conserver la taille et éviter la déformation */
    background-position: center;
  }

  /* Adaptation mobile pour la section coutainer_bleu_pro , page pro*/

  .coutainer_bleu_pro div {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* espace entre le texte et le bouton */
  }

  .coutainer_bleu_pro .contact_btn {
    width: 90%;
    text-align: center;
    margin: 0 auto;
    font-size: 1rem;
    padding: 12px 0;
  }
}
/* page particulier */
@media screen and (max-width: 768px) {
  #card_section_2_part {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media screen and (max-width: 768px) {
  .contact_btn,
  .btn_devis {
    width: 90%;
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* Section devis / formulaire contact */
#troisieme_section_part,
#formualaire_contact {
  padding: 20px;
}

#formualaire_contact input,
#formualaire_contact select,
#formualaire_contact textarea {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.bouton_contact {
  padding: 20px;
  font-size: 1.5rem;
  margin-top: 100px;
  margin-bottom: 50px;
}

/* Footer */

/* Footer mobile */
@media screen and (max-width: 768px) {
  #coutainer_footer {
    flex-direction: column; /* vertical sur mobile */
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  #colonne_1,
  #colonne_2,
  #colonne_3 {
    margin: 0;
  }

  .container,
  .menu_footer,
  .submenu_footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  #coutainer_footer img {
    margin: 0 auto 20px auto;
  }
}