/* ===== Composant : navbar (components/navbar.html) ===== */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #063b5c 0%, #087ea4 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -18px rgba(6, 59, 92, 0.8);
}
.hd-in {
  margin: 0 auto;
  padding: 12px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.hd-logo {
  justify-self: start;
}
.hd-logo img {
  display: block;
  /* L'image du logo a de larges marges vides : agrandie, avec des marges
     négatives pour ne pas épaissir la navbar. */
  height: 138px;
  margin: -23px 0;
  width: auto;
  max-width: none;
  /* logo en blanc ; le bandeau « SOLUTIONS » passe en noir, son texte
     reste lisible en blanc */
  filter: grayscale(1) invert(1) brightness(5);
  transition: transform 0.2s;
}
.hd-logo:hover img {
  transform: scale(1.03);
}
.hd-nav {
  display: contents;
  white-space: nowrap;
}
.hd-links {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}
.hd-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.hd-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 10px 16px;
  border-radius: 12px;
  transition:
    background 0.15s,
    color 0.15s;
}
.hd-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
/* page courante : simple pastille */
.hd-nav a.on {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
}
/* Se connecter : bouton contour blanc */
.hd-nav .hd-login {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 9px 20px;
}
.hd-nav .hd-login:hover,
.hd-nav .hd-login.on {
  background: #fff;
  color: #063b5c;
}
/* Créer mon compte : bouton blanc, texte bleu */
.hd-nav .hd-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #063b5c;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 22px;
  border-radius: 12px;
  transition:
    transform 0.15s,
    background 0.15s;
}
.hd-nav .hd-cta:hover,
.hd-nav .hd-cta.on {
  background: #e8f2f8;
  color: #063b5c;
  transform: translateY(-1px);
}
.hd-nav .hd-cta svg {
  transition: transform 0.15s;
}
.hd-nav .hd-cta:hover svg {
  transform: translateX(3px);
}

/* ----- burger (mobile) ----- */
.burger-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.burger {
  display: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
  border-radius: 12px;
  transition: background 0.15s;
}
.burger:hover {
  background: rgba(255, 255, 255, 0.14);
}
.burger i {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.burger-cb:checked + .burger i:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-cb:checked + .burger i:nth-child(2) {
  opacity: 0;
}
.burger-cb:checked + .burger i:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
.burger-cb:focus-visible + .burger {
  outline: 2px solid #5adbcb;
}

@media (max-width: 1480px) {
  .hd-in {
    padding: 12px 28px;
    gap: 20px;
  }
  .hd-logo img {
    height: 96px;
    margin: -16px 0;
  }
  .hd-nav a {
    font-size: 16px;
    padding: 10px 12px;
  }
}
@media (max-width: 1260px) {
  .hd-in {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
  }
  .hd-logo img {
    height: 84px;
    margin: -14px 0;
  }
  .burger {
    display: flex;
  }
  /* menu déroulant : carte blanche, liens sombres */
  .hd-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e3ecf2;
    border-radius: 20px;
    box-shadow: 0 24px 50px -20px rgba(6, 59, 92, 0.5);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
  }
  .burger-cb:checked ~ .hd-nav {
    display: flex;
  }
  .hd-links,
  .hd-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .hd-auth {
    margin-top: 8px;
  }
  .hd-nav a {
    color: #063b5c;
    padding: 14px 16px;
    font-size: 17px;
  }
  .hd-nav a:hover,
  .hd-nav a.on {
    background: #e8f2f8;
    color: #084d71;
  }
  .hd-nav .hd-login {
    text-align: center;
    border-color: #084d71;
  }
  .hd-nav .hd-login:hover {
    background: #084d71;
    color: #fff;
  }
  .hd-nav .hd-cta {
    justify-content: center;
    padding: 15px 22px;
    background: linear-gradient(135deg, #063b5c 0%, #087ea4 100%);
    color: #fff;
  }
  .hd-nav .hd-cta:hover,
  .hd-nav .hd-cta.on {
    background: linear-gradient(135deg, #063b5c 0%, #087ea4 100%);
    color: #fff;
    filter: brightness(1.12);
  }
}
@media (max-width: 600px) {
  .hd-in { padding: 8px 16px; }
  .hd-logo img { height: 72px; margin: -12px 0; }
  .hd-nav { left: 8px; right: 8px; }
}

/* =====================================================================
   Finitions (refonte visuelle)
   ===================================================================== */
.hd {
  box-shadow: 0 8px 30px -18px rgba(6, 59, 92, 0.7);
}
.hd-nav .hd-cta {
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.45);
}
