/* État initial */
/* Styles pour le menu mobile */




/*
#mobileNav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 0;
  background-color: #333;
}

#mobileNav.visible {
  max-height: 1000px; /* Assez grand pour contenir tout le menu */
  /*
  opacity: 1;
}

#mobileNav li {
  padding: 10px 15px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#mobileNav.visible li {
  transform: translateY(0);
  opacity: 1;
}




/* ============================= */
/* === GLOBAL ================= */
/* ============================= */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  font-size: 18px;
  scroll-behavior: smooth;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  max-width: 1000px;
  margin: auto;
  border-radius: 15px;
  color: white;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  font-size: 1.25rem;
  line-height: 1.8;
}

main h1, main h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

#adresse {
  color: black;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  background-color: rgb(255, 255, 255);
}

#who-text {
  font-size: 1.5rem;
}

iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ============================= */
/* === HEADER ================= */
/* ============================= */
header {
  display: flex;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  color: white;
  position: relative;
  min-height: 120px; /* ⇦ Hauteur minimale souhaitée */
}


.header-left,
.header-right {
  display: flex;
  align-items: center;
  min-width: 150px;
}

.header-left nav,
.nav-left, .nav-right,
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-right a,
.nav-left a,
nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

header nav a,
header .dropbtn,
.nav-right a,
.nav-left a,
nav a {
  transition: all 0.3s ease;
}

header nav a:hover,
.nav-right a:hover,
.nav-left a:hover,
nav a:hover,
header .dropbtn:hover {
  transform: scale(1.1);
  text-decoration: underline;
}

.header-right {
  gap: 1rem;
  justify-content: flex-end;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img.logo {
  height: 90px;
  width: auto;
  display: block;
}

.lang-switch {
  font-size: 1.3rem;
  text-decoration: none;
  color: white;
  padding: 0.5rem;
}

.lang-switch:hover {
  color: #ccc;
  cursor: pointer;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
}

#langBtn {
  cursor: pointer;
  background-color: #333;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0.6em;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.2s;
}

#langBtn:hover,
#langBtn:focus {
  background-color: #e0e0e0;
  outline: none;
  transform: scale(1.1);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 120px;
  z-index: 1000;
  background-color: #333;
  border: 1px solid #555;
  padding: 0.5rem;
  border-radius: 5px;
  z-index: 100;
}

/* Items du menu */
.lang-menu [role="menuitem"] {
  padding: 0.5em 1em;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.lang-menu [role="menuitem"]:hover,
.lang-menu [role="menuitem"]:focus {
  background-color: #f2f2f2;
  outline: none;
}

.lang-menu button,
.lang-menu a {
  display: block;
  color: white;
  padding: 5px 10px;
  font-size: 1.1rem;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu a:hover {
  background-color: #444;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.2rem;
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  padding-top: 0.4rem;
  left: 0;
  background-color: #222;
  min-width: 220px;
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 999;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 0.1s;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  padding-left: 20px;
  transition: all 0.3s ease;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.dropdown-content a:hover {
  padding-left: 25px;
  color: #fff;
  text-decoration: underline; /* Ajoutez un soulignement pour l'effet de survol */
}




/* ============================= */
/* === IMAGE SECTION (Services) */
/* ============================= */
.image-section {
  background-color: white;
  padding: 40px 20px;
}

.titre-image {
  text-align: center;
  margin-bottom: 30px;
}

.titre-image h2 {
  color: #000;
  font-size: 2.5rem;
  margin: 0;
}

.image-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.image-box {
  text-align: center;
}

.image-box a {
  display: block;
  transition: transform 0.3s ease;
}

.image-box a:hover {
  transform: scale(1.05);
}

.image-box img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.image-box p {
  margin-top: 10px;
  color: #000;
  font-size: 1.1rem;
}

/* ============================= */
/* === FORMULAIRE DE CONTACT === */
/* ============================= */
section#contact {
  padding: 50px 20px;
  max-width: 600px;
  margin: auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

section#contact h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 2rem;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 1.2rem;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.1rem;
}

form button {
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}

form button:hover {
  background-color: #555;
}

/* ============================= */
/* === FOOTER ================= */
/* ============================= */
footer {
  padding: 0;
  background-color: #222;
  color: #fff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: nowrap;
  width: 100%;
}

.footer-center {
  text-align: center;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  padding: 0;
}

.footer-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-left h3,
.footer-right h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.footer-left a,
.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-left a:hover,
.footer-right a:hover {
  text-decoration: underline;
}

.footer-center a {
  color: #aaa;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
  color: #ccc;
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-container {
    padding: 20px 15px;
  }
}

/* ============================= */
/* === RESPONSIVE FOOTER ====== */
/* ============================= */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    padding: 15px 10px;
    text-align: center;
    font-size: 0.85rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
  }

  .footer-right {
    align-items: center;
  }

  .footer-left {
    margin-right: 0;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ============================= */
/* === Header mobile (logo + burger) ================= */
/* ============================= */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  padding: 10px 15px;
}

.mobile-header button {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-logo img {
  flex: 1;
  max-width: 100px;
  align-self: center;
  margin-top: 30px;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.mobile-logo {
  width: 100px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================= */
/* === Menu navigation mobile complémentaire ================= */
/* ============================= */
.mobile-nav {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  background-color: #333;
  padding: 10px;
  position: relative;
  z-index: 1000;
}

.mobile-nav li {
  margin: 10px 0;
}

.mobile-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #007BFF;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
}

/* ============================= */
/* === Burger menu (mobile) ================= */
/* ============================= */
.mobile-menu {
  display: none;
}

.burger {
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 22px;
}

.burger div {
  height: 3px;
  background-color: #eee;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-btn {
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.burger-line {
  height: 4px;
  background-color: #333;
  border-radius: 4px;
  transition: 0.3s;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

@media (max-width: 768px) {
  .nav-dark {
    display: none !important;
  }

  .burger {
    display: flex;
  }

  .menu {
    flex-direction: column;
    gap: 0;
    background-color: #1f1f1f;
    position: fixed;
    top: 56px;
    right: 0;
    width: 220px;
    height: calc(100% - 56px);
    padding-top: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu > li {
    border-bottom: 1px solid #333;
  }

  .menu > li > a {
    padding: 15px 20px;
  }

  .submenu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    background: #2b2b2b;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-submenu.open > .submenu {
    max-height: 500px;
  }

  .submenu li a {
    padding-left: 40px;
  }
}

/* ============================= */
/* === Hero banner ================= */
/* ============================= */
.hero-banner {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-text {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
}

/* ============================= */
/* === Navigation desktop ================= */
/* ============================= */
.nav-dark {
  position: relative;
  display: block;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-center.logo {
  flex: 1;
  justify-content: center;
}

.menu > li > a,
.dropbtn {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 0.5rem;
}

.menu > li > a {
  color: #eee;
  text-decoration: none;
  padding: 8px 5px;
  display: inline-block;
  position: relative;
  font-weight: 600;
  transition: color 0.3s;
}

.menu > li > a:hover {
  color: #ff6f61;
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  background-color: #2b2b2b;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  min-width: 160px;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
}

.submenu li a {
  color: #ddd;
  padding: 8px 20px;
  display: block;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.submenu li a:hover {
  background-color: #ff6f61;
  color: #fff;
  border-radius: 3px;
}

/* ============================= */
/* === Lang switcher ================= */
/* ============================= */
.lang-switcher {
  position: relative;
}

#langMenu {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  z-index: 10;
}

#langMenu button {
  background: none;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

#langMenu button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Bouton langue mobile */
#langBtnMobile {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s;
}

#langBtnMobile:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

/* Menu déroulant langue mobile */
#langMenuMobile {
  margin-top: 5px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  display: none;
  position: relative;
  z-index: 999;
}

#langMenuMobile button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

#langMenuMobile button:hover {
  background-color: #f5f5f5;
}

/* ============================= */
/* === Responsive global styles (max-width: 768px) ================= */
/* ============================= */
.mobile-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

@media (max-width: 768px) {
  body {
    background-position: top center;
    background-attachment: scroll;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    min-height: 80px;
  }

  .header-left,
  .header-center,
  .header-right {
    flex: none;
    width: 100%;
    text-align: center;
  }

  nav.nav-left,
  nav.nav-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .lang-switcher {
    margin-top: 0.5rem;
  }

  .hero-banner {
    height: 50vh;
    padding: 1rem;
  }

  .hero-text {
    padding: 1rem;
    font-size: 1rem;
  }

  main {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 100px;
  }

  .image-container {
    flex-direction: column;
  }

  .image-box {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .image-box img {
    width: 100vw;
    height: auto;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    min-width: unset;
  }

  .social-icons {
    justify-content: center;
  }

  header#main-header {
    display: none;
  }

  .mobile-menu {
    display: block;
    background-color: #333;
    padding: 1rem;
    position: relative;
    z-index: 1000;
  }

  #burgerToggle {
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }

  #mobileNav {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    flex-direction: column;
    gap: 1rem;
  }

  #mobileNav.visible {
    display: flex;
  }

  #mobileNav li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
  }

  #mobileNav li a:hover,
  #mobileNav li a:focus {
    color: #ffd700;
  }

  .hidden {
    display: none;
  }

  .visible {
    display: block;
  }
}

/* ============================= */
/* === Nav links styling ================= */
/* ============================= */
nav a {
  margin-right: 1rem;
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

label {
  color: black !important;
}

/* Ajoutez ces styles à votre section <style> existante */
.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-20px);
}

.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in, transform 0.5s ease-out;
}

@keyframes fadeInAndSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobileNav {
  animation: fadeInAndSlide 0.5s ease-out forwards;
}
