/******************************  FOOTER  *********************************************************/
/* Footer General */
footer {
  background-color: #f7f3f3;
  color: #0a0a0a;
  padding: 16px 5px 5px 5px; /* Ajustement du padding */
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
}
/* Container Principal */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-container p:last-child {
  font-size: 12px;
}

/* Section Gauche : Logo */
.footer-left {
  flex: 1;
  text-align: left;
  padding: 0 20px; /* Juste un peu d'espace de chaque côté */
}

.footer-left img {
  margin: 0;
}

.footer-logo {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
  margin-top: 10px;
}

/* Section Centre : Informations */
.footer-center {
  flex: 1;
  text-align: center;
}

.footer-center h3 {
  margin: 5px 0;
  font-size: 16px;
  font-weight: 500;
  color: #0275b9;
}

.footer-center p {
  margin: 5px 0;
  line-height: 1.5;
}

/* Section Droite : Réseaux sociaux */
.footer-right {
  flex: 1;
  text-align: right;
}

.footer-right h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.social-icons a {
  color: #413fce;
  text-decoration: none;
  margin: 0 15px;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      text-align: center;
  }

  .footer-left, .footer-center, .footer-right {
      margin-bottom: 20px;
  }

  .footer-right {
      text-align: center;
  }
}

/* SECTION AVANT PIED DE PAGE */
.footer-top-container {
  background-color: #0275b9;
  padding: 30px 0;
  border-top: 2px solid #0275b9;
  font-family: 'Rubik', sans-serif;
}

.footer-top-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* Espacement et alignement */
.footer-top-left, 
.footer-top-center, 
.footer-top-right {
  flex: 1;
  padding: 0 15px;
}

/* Titre */
.footer-top-container h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 30px;
  font-family: rubik, sans-serif;
}

/* Texte */
.footer-top-container p {
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
  margin: 20px 0;
  display: flex;
}

/* Icônes */
.footer-top-container i {
  margin-right: 8px;
  color: #ffffff;
}

/* Liens */
.footer-top-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-top-container ul li {
  margin-bottom: 5px;
}

.footer-top-container ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-top-container ul li a:hover {
  color: #a7f053;
}

/* Formulaire Newsletter */
.footer-top-right form {
  display: flex;
  flex-direction: column;
}

.footer-top-right input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 14px;
  width: 100%;
}

.footer-top-right button {
  background-color: #ffbf10;
  color: #fafafa;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
}

.footer-top-right button:hover {
  background-color: #21f132;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top-content {
      flex-direction: column;
      text-align: left;  /* Change de center à left pour aligner tout à gauche */
  }

  .footer-top-left, 
  .footer-top-center, 
  .footer-top-right {
      padding: 10px 0;
  }

  .footer-top-container h4,
  .footer-top-container p,
  .footer-top-container ul {
      text-align: left; /* Assure que les titres, paragraphes et listes sont également alignés à gauche */
  }

  /* Alignement des icônes et liens */
  .footer-top-container i {
      margin-left: 0;  /* Évite tout décalage à droite des icônes */
  }

  .footer-top-container ul li a {
      text-align: left;  /* Aligne les liens à gauche dans les listes */
  }
}
/******************************   HEADER Barre menu  ********************************************/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f3f3;
  height: 90px;
  font-family: RUBIK, sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0 20px;
  position: relative;
}

.logo-block {
  display: flex;
  align-items: center;
  margin-left: 0;
  height: 100%;
}

.logo {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
}

h4 a {
  font-size: 15px;
  color: rgb(51, 96, 247);
  margin: 0;
  text-decoration: none;
  font-family: rubik;
}

nav {
  max-width: 1400px; /* Limite la largeur du menu */
  margin: 0 auto; /* Centre le menu */
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center; /* Centrer les menus horizontalement */
  width: 100%; /* Prendre toute la largeur disponible */
  z-index: 10;
}

.menu li {
  margin-left: 20px;
  padding-right: 10px;
}

.menu a {
  text-decoration: none;
  color: #0275b9;
  font-weight: 500;
  transition: color 0.3s;
  font-family: Rubik;
  text-transform: uppercase;
  font-size: small;
}

.menu a:hover {
  color: #ffbf10;
}

/* Sous-menu */
.submenu {
  position: absolute;
  z-index: 1000;
  background-color: hsl(0, 20%, 96%);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  text-align: left;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  white-space: nowrap;
  font-weight: bold;
}

.submenu a {
  font-family: 'Rubik', sans-serif;
}

.submenu li {
  margin: 0;
  padding: 12px 24px;
}

.submenu a {
  text-decoration: none;
  color: #0275b9;
  font-size: 13px;
  display: block;
  font-weight: normal;
  transition: background-color 0.3s, color 0.3s;
}

/* Afficher le sous-menu au survol */
.dropdown {
  position: relative;
}

.dropdown:hover .submenu {
  display: block;
}

.dropdown::after {
  content: "";
  display: inline-block;
  color: #0275b9;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

/* ===================== MOBILE ===================== */

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #0275b9;
  transition: all 0.3s ease;
}

/* Menu mobile - cacher par défaut */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }

  .logo-block {
    margin-left: 0 !important;
    margin-right: 0; /* Réduire l'espace à droite */
  }

  .logo {
    height: 50px;
  }

  /* Affichage du hamburger */
  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  /* Menu mobile caché par défaut */
  nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #f7f3f3; /* Ajout de fond pour les menus et sous-menus */
    flex-direction: column;
    padding: 10px 0;
    text-align: center;
    z-index: 100;
  }

  /* Menu vertical sur mobile */
  .menu {
    flex-direction: column;
    width: 100%;
    text-align: left;
    background-color: #f7f3f3; /* Même couleur d'arrière-plan que le header */
  }

  .menu li {
    width: 100%;
    padding: 10px 20px;
  }

  .menu a {
    font-size: 14px;
    font-weight: bold;
  }

  /* Sous-menu */
  .submenu {
    position: static; /* Changer en position statique pour mobile */
    display: none;
    background-color: #f7f3f3;
    box-shadow: none;
    padding: 0;
  }

  .submenu li {
    padding: 10px 20px;
  }

  .submenu a {
    font-size: 14px;
  }

  /* Afficher le menu mobile au clic */
  nav.active {
    display: flex;
  }

  /* Activer les sous-menus sur mobile */
  .dropdown.active .submenu {
    display: block;
  }
}
/**************************************** Header Top Bar *******************************************/
.top-bar {
  background-color: #0275b9;
  color: #fcf8f8;
  font-size: 13px;
  display: flex;
  height: 25px;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  font-size: smaller;
  font-family: rubik, sans-serif;
}

/* Lien dans la top bar */
.top-bar a {
  text-decoration: none;
  font-size: small;
  color: #ddd;
}

.top-bar a:hover {
  color: #ffbf10;
}

/* Section contacts */
.contact-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.contact-info i {
  margin-right: 5px;
  color: #fff;
}

/* ===================== Responsive pour mobile ===================== */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 10px;
  }

  .contact-info {
    display: flex;
    flex-direction: column;  /* Aligner verticalement */
    align-items: center;     /* Centrer les éléments */
    gap: 10px;               /* Espacement entre les éléments */
    width: 100%;
  }

  /* Afficher seulement téléphone et email */
  .contact-info .contact-phone,
  .contact-info .contact-email {
    display: block;
  }

  /* Masquer la section "Nous suivre" */
  .contact-info .social-media {
    display: none;
  }

  /* Masquer les autres sections comme l'adresse et le site web */
  .contact-info .contact-adresse,
  .contact-info .contact-autre {
    display: none;
  }

  /* Ajuster la taille des icônes pour le mobile */
  .contact-info i {
    font-size: 16px;
    margin-right: 8px;
  }

  /* Optionnel: ajuster la couleur des liens */
  .contact-info a {
    color: #fff;
    text-decoration: none;
  }
}



/************************************* page Acceuil ************************************************/

/************************************* Diaporama *******************************/

body {
  margin: 0;
  padding: 0;
  font-family: rubik, sans-serif;
}

/* Section héroïque */
.hero-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 70vh; /* Prend toute la hauteur de l'écran */
  margin: 0;
  padding: 0;
  margin-bottom: 0;
  z-index: 1;
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
}

/* Slides */
.slide {
  display: none;
  position: relative;
}

.slide-image {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

/* Captions */
.caption {
  position: absolute;
  top: 30%;
  left: 30px;
  transform: translateY(-50%);
  color: rgb(255, 255, 255);
  font-size: 40px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: left;
  line-height: 1.5;
  max-width: 30%;
  white-space: normal;
}

/* Navigation buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 10px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  transition: 0.3s;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Points indicateurs */
.dots-container {
  text-align: center;
  position: relative;
  top: 20px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

/* Responsive Design */
@media (max-width: 768px) {
  .slide-image {
    height: auto;
  }

  .caption {
    font-size: 18px;
    padding: 8px 15px;
  }
}

/*************************************  Section Présentation ****************************************/

/* Section Présentation */
.presentation-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background-color: #f4f4f4;
  margin: 0;
}

.presentation-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
}

.left-column,
.right-column {
  flex: 1;
  margin-right: 20px;
}

/* Slider d'images */
.image-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.image-slide {
  display: none;
}

.image-slide img {
  width: 100%;
  border-radius: 10px;
}

/* Navigation pour le slider */
.prev-slide,
.next-slide {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  user-select: none;
}

.prev-slide {
  left: 10px;
}

.next-slide {
  right: 10px;
}

.prev-slide:hover,
.next-slide:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Texte de présentation */
.right-column h2 {
  font-size: 28px;
  color: #0275b9;
  margin-bottom: 15px;
  font-family: rubik, sans-serif;
}

.right-column p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-family: "Roboto", sans-serif;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .presentation-container {
    flex-direction: column;
  }

  .right-column {
    margin-top: 20px;
    text-align: center;
  }

  .prev-slide,
  .next-slide {
    top: auto;
    bottom: 10px;
    transform: none;
  }
}

/****************************************Section Nos Services ******************************************/
.services-section {
  padding: 20px;
  background-color: #D3D3D3;
  text-align: center;
}

.services-section h2 {
  font-size: 40px;
  font-weight: bolder;
  color: #0275b9;
  margin-bottom: 20px;
  font-family: 'Rubik', sans-serif;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-row {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.service-row a {
  text-decoration: none;
  color: #0275b9;
  font-family: rubik, sans-serif;
  font-weight: bold;
}

.service-row a:hover {
  color: #ffbf10;
  transition: color 0.3s ease;
  transform: scale(1.02);
}

.service-box {
  flex: 1;
  max-width: 300px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: rubik, sans-serif;
}

.service-box h3 {
  font-size: 15px;
  color: #0275b9;
  margin-bottom: 10px;
}

.service-box h3:hover {
  cursor: pointer;
}

.service-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.service-box:hover {
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-row {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    max-width: 90%;
  }
}

.offers-container {
  text-align: center;
  margin-top: 20px;
}

.offer-link {
  display: inline-block;
  margin: 10px;
  font-size: 18px;
  font-weight: 500;
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.offer-link a {
  color: #fff;
  text-decoration: none;
}

.offer-link:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/************************** Section Contact *****************************************/


.contact-section {
  display: inline-block;
  margin: 10px;
  font-size: 18px;
  font-weight: 500;
  background-color: #0275b9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-section a {
  text-decoration:none;
  color:black;
  font-size:20PX;
}
.contact-section a:hover {
 
  color:yellow;
  
}
/* ===================== Responsive pour mobile ===================== */
@media (max-width: 768px) {
  .contact-section {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
    background-color: #0275b9;
    border-radius: 0;
    border: none;
    max-width: 100%;
    z-index: 0; /* S'assurer que le header passe devant */
  }

  /* Empêcher le fond vert de dépasser dans le header */
  .contact-section::before {
    content: "";
    display: block;
    height: 10px; /* Ajuste la hauteur pour masquer le problème */
    background-color: white; /* Même couleur que le header */
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
  }

  /* Assurer que le header reste au-dessus */
  .top-bar,
  header {
    position: relative;
    z-index: 3;
  }

  /* Empêcher tout déplacement horizontal */
  body {
    overflow-x: hidden;
  }
}
/*********************************** page merci ******************************************************/
.thank-you-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background-color: #f9f9f9;
  padding: 20px;
  text-align: center;
}

.thank-you-container {
  max-width: 600px;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-container h1 {
  font-size: 36px;
  color: #0275b9;
  margin-bottom: 20px;
  font-family: 'Rubik', sans-serif;
}

.thank-you-container p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
  font-family: 'Rubik', sans-serif;
}

.cta-button {
  background-color: #ffbf10;
  color: #0275b9;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e0a80d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .thank-you-container {
      padding: 20px;
  }

  .thank-you-container h1 {
      font-size: 28px;
  }

  .thank-you-container p {
      font-size: 16px;
  }
}

/* Petits écrans (smartphones) */
@media (max-width: 576px) {
  body {
    font-size: 14px !important;
  }

  .container {
    width: 95% !important;
    padding: 10px !important;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav {
    margin-right: 0;
    justify-content: flex-end; /* Cela aligne le menu à droite */
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left, .footer-center, .footer-right {
    margin-bottom: 10px !important;
  }
}

/* Tablettes (écrans moyens) */
@media (min-width: 577px) and (max-width: 1024px) {
  .container {
    width: 90% !important;
  }

  .menu li {
    margin-left: 10px !important;
    padding-right: 5px !important;
  }

  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* Grands écrans */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  .menu {
    justify-content: space-between;
  }

  .footer-container {
    max-width: 1200px !important;
    margin: 0 auto;
  }
}