/* =========================================================
   HEADER.CSS â€” Navigation, burger, back-top
   ========================================================= */

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,250,254,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 12px rgba(60,40,120,0.07);
}

.nav-pill {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 3rem;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 68px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

header .site-branding a img {
	height: 30px; width: auto; max-width: none;
}

.nav-sep {
  flex: 1;
  height: 18px;
  background: transparent;
}

.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links a {
  font-size: 13.5px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gray-100); color: #000; }
.nav-cta-mobile { display: none; }

/* Bulle active */
.nav-links a.active {
  background: var(--gray-100);
  color: var(--black);
  font-weight: 700;
}

/* CTA â€” dÃ©borde au-dessus et en dessous de la pill */
.btn-nav {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 18px;
  height: 46px;
  border-radius: 100px;
  background: linear-gradient(160deg, #9333ea 0%, #6d28d9 100%);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 0 0 4px;
  box-shadow: 0 4px 14px rgba(109,40,217,0.4);
  transition: opacity .2s, transform .2s;
}
.btn-nav:hover {
  opacity: 1;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(109,40,217,0.4);
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}
.btn-nav:active { transform: translateY(1px); }

/* Animation chargement nav */
body:not(.loaded) nav { opacity: 0; transform: translateY(16px); }
nav { transition: opacity .5s ease, transform .5s ease; }
body.loaded nav { opacity: 1; transform: translateY(0); }

/* RETOUR EN HAUT */
#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15,87,173,0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 50;
}
#back-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-top:hover { background: var(--coral); box-shadow: 0 4px 16px rgba(30,27,75,0.25); }

/* BURGER */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .burger { display: flex; }
  .btn-nav { display: none; }
  header { background: #ede9fe; }
  .nav-pill { padding: 0 1.25rem; height: 60px; justify-content: space-between; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 16px 32px rgba(30,27,75,0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 16px;
    font-weight: 600;
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background .2s;
  }
  .nav-links a:active { background: var(--gray-100); }
  a.nav-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 1.5rem 1.5rem;
    padding: .9rem 1rem;
    border-radius: 100px;
    background: linear-gradient(160deg, #9333ea 0%, #6d28d9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }
  .nav-cta-mobile:hover {
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
  }
  .nav-sep { display: none; }
  .burger span { background: rgba(255,255,255,0.9); }
}

/* Fix override bouton rose du theme parent */
.faq-question:hover, .faq-question:focus {
	  background-color: transparent;
	  color: var(--blue);
}
.faq-question:focus {
	  outline: 2px solid var(--blue);
	  outline-offset: -2px;
}
.contact-form button.btn-primary:hover, .contact-form button.btn-primary:focus {
	  background-color: #ffffff;
	  color: var(--black);
}
.contact-form button.btn-primary:focus {
	  outline: 2px solid var(--blue);
	  outline-offset: 2px;
}
.burger:hover, .burger:focus {
	  background-color: transparent;
}
.burger:focus {
	  outline: 2px solid var(--blue);
	  outline-offset: 2px;
}

.contact-form button.btn-primary {
	background-color: #ffffff;
	color: var(--black);
	border: none;
}