/* header2.css - Code CSS complet et corrigé */



@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');



/* Le header reste fixe en haut de la page.
  `position: fixed;` le sort du flux normal du document.
*/
header {
  background: transparent;
  box-shadow: none;
  position: fixed; /* **Ceci assure que le header reste toujours visible.** */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Assure que le header est au-dessus de tout le reste */
  padding: 0.8rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Important pour cacher les débordements de l'animation */
  /* --- Ligne 'position: relative;' supprimée ici car elle annulait 'fixed' --- */
  /* La `position: absolute` du pseudo-élément `::before` fonctionnera correctement
     par rapport au `header` même si le `header` est `fixed`. */
}

/* Pseudo-élément pour l'animation "eau" simulée derrière le header */
header::before {
  content: '';
  position: absolute; /* Il est positionné par rapport au header parent */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 400% 400%; /* Plus grand pour un mouvement plus fluide */
  animation: moveWaterLike 20s ease infinite alternate; /* Ralentit l'animation */
  z-index: -1; /* Placé derrière le contenu du header */
  filter: blur(15px); /* Adoucit l'animation et la rend plus aquatique */
  opacity: 0.7; /* Réduit l'opacité pour un effet plus subtil */
}

@keyframes moveWaterLike {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.header-main-bar {
  max-width: 650px;
  width: 100%;
  border-radius: 9999px;
  padding: 0.3rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
  background-color: rgba(255, 255, 255, 0.1); /* Légèrement plus transparent */
  backdrop-filter: blur(35px); /* Blur augmenté pour un effet de verre plus fort */
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.25); /* Bordure subtile pour la définition */
  position: relative; /* Assure que le contenu est au-dessus du pseudo-élément de l'animation */
}

.logo-circle-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  order: 1;
}

.logo-circle-container:hover {
  transform: translateY(-2px); /* Effet de soulèvement plus prononcé */
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.logo-default {
  display: block;
  filter: brightness(1.7);
}
.logo-hover {
  display: none;
}
.logo:hover .logo-default {
  display: none;
}
.logo:hover .logo-hover {
  display: block;
}

.nav-rectangle-container {
  background-color: rgba(255, 255, 255, 0.1); /* Conforme au glassmorphism */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
  order: 2;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
}

.nav-menu {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  padding: 0.4rem;
  position: relative;
  z-index: 2;
}

.nav-menu .active-highlight {
  position: absolute;
  background-color: var(--color-gray-light);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  height: calc(100% - 8px);
  top: 4px;
  left: 0;
  width: 0;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  z-index: 1;
}

.nav-menu a {
  color: var(--color-white);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.7rem 0.4rem;
  transition: color 0.2s ease;
  border-radius: 9999px;
  flex-grow: 1;
  text-align: center;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nav-menu a.active-segment {
  color: var(--color-red);
  font-weight: 600;
}

.nav-menu a:not(.active-segment):hover {
  color: var(--color-gray-medium);
}

.header-buttons {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  order: 3;
}

.btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.devis-btn {
  width: auto;
  border-radius: 9999px;
  padding: 0.1rem 1.2rem;
  font-size: 0.9rem;
}

.devis-btn img {
  height: 1.1rem;
  width: 1.1rem;
  filter: brightness(0.3);
  vertical-align: middle;
}

.call-btn img {
  height: 1.1rem;
  width: 1.1rem;
}

.call-btn {
    margin-top: 2px;
}

@media (max-width: 700px) {
  .header-main-bar {
    max-width: 95vw;
    justify-content: space-between;
    padding: 0.1rem 0.5rem;
    gap: 0.6rem;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .header-main-bar .nav-rectangle-container,
  .header-main-bar .devis-btn {
    display: none;
  }

  .header-main-bar .call-btn {
    display: flex;
    order: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-left: auto;
  }
  .header-main-bar .call-btn img {
    filter: brightness(1);
  }

  .header-main-bar .header-buttons {
    display: flex;
    order: 2;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
  }

  .mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    width: 90%;
  }

  .mobile-nav-menu a {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.8rem 0;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-menu a:hover,
  .mobile-nav-menu a.active-segment-mobile {
    background-color: var(--color-gray-light);
    color: var(--color-red);
  }

  .mobile-nav-menu .btn.devis-btn-mobile {
    width: auto;
    border-radius: 9999px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--color-red);
    color: var(--color-white);
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  .mobile-nav-menu .btn.devis-btn-mobile:hover {
    background-color: #d1202e;
    transform: translateY(-1px);
  }

  .hamburger-btn {
    display: flex;
    order: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }

  .hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
    transition: background-color 0.3s ease;
  }

  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
  }

  .hamburger-icon::before {
    top: -8px;
  }
  .hamburger-icon::after {
    top: 8px;
  }

  .hamburger-btn.open .hamburger-icon {
    background-color: transparent;
  }
  .hamburger-btn.open .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  .hamburger-btn.open .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

@media (min-width: 701px) {
  .hamburger-btn,
  .mobile-menu-overlay,
  .mobile-nav-menu .btn.devis-btn-mobile {
    display: none !important;
  }
  .header-main-bar .devis-btn,
  .header-main-bar .call-btn {
    display: flex;
  }
}

    
.white-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Adjusted background to be at the bottom of the page */
  background: radial-gradient(ellipse at bottom, rgb(95, 159, 233) 0%, rgba(233, 43, 43, 0) 70%);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}