/* Sticky nav: capsule couture */
.sticky-nav{
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 999;

  padding: 0 16px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}
.sticky-nav.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,.34);
  border: 1px solid rgba(20,19,17,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(0,0,0,.09);
}

/* =========================
   HOME ICON (couture absolue)
   ========================= */

/* Utilise <a class="brand home-link" ...> */
.sticky-inner .brand.home-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  padding: 0;                 /* on annule le padding texte */
  border-radius: 999px;

  /* couture absolue : petit disque verre + bord fin */
  border: 1px solid rgba(20,19,17,.12);
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  text-decoration: none;
  color: var(--ink);
  opacity: .92;

  transition:
    background 220ms ease,
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.sticky-inner .brand.home-link:hover{
  background: rgba(255,255,255,.45);
  border-color: rgba(176,141,87,.55); /* accent très discret */
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transform: translateY(-1px);
  opacity: 1;
}

.sticky-inner .brand.home-link svg{
  display: block;
}

/* Si tu gardes encore un lien texte .brand ailleurs, il restera stylé comme avant */
.sticky-inner .brand:not(.home-link){
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
  padding: 8px 10px;
  border-radius: 999px;
  opacity: .9;
  transition: background 220ms ease, opacity 220ms ease;
}
.sticky-inner .brand:not(.home-link):hover{
  background: rgba(255,255,255,.45);
  opacity: 1;
}

/* Liens desktop: très fins, sans “boutons” */
.sticky-links{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sticky-link{
  text-decoration: none;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;

  padding: 8px 6px;
  border-radius: 10px;
  position: relative;
  transition: color 220ms ease, opacity 220ms ease;
  opacity: .88;
}

.sticky-link::after{
  content:"";
  position:absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity 220ms ease, transform 220ms ease;
}
.sticky-link:hover{
  color: var(--ink);
  opacity: 1;
}
.sticky-link:hover::after{
  opacity: .85;
  transform: scaleX(1);
}

/* état actif */
.sticky-link.is-active{
  color: var(--ink);
}
.sticky-link.is-active::after{
  opacity: .95;
  transform: scaleX(1);
}

/* Burger (mobile only) */
.sticky-burger{
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(20,19,17,.14);
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
}

.sticky-burger span{
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
}
.sticky-burger span:nth-child(1){ top: 16px; }
.sticky-burger span:nth-child(2){ top: 24px; }

/* état ouvert -> croix élégante */
.sticky-nav.is-open .sticky-burger span:nth-child(1){
  top: 20px;
  transform: rotate(45deg);
}
.sticky-nav.is-open .sticky-burger span:nth-child(2){
  top: 20px;
  transform: rotate(-45deg);
}

/* Panel mobile */
.sticky-panel{
  max-width: 1120px;
  margin: 10px 0 0;
  padding: 10px;

  border-radius: 18px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(20,19,17,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.10);

  display: grid;
  gap: 8px;
}

.sticky-item{
  text-decoration: none;
  color: var(--ink);
  padding: 12px 12px;
  border-radius: 14px;

  font-size: .92rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .9;

  transition: background 220ms ease, opacity 220ms ease;
}
.sticky-item:hover{
  background: rgba(255,255,255,.55);
  opacity: 1;
}

/* Responsive */
@media (max-width: 820px){
  .sticky-inner{
    grid-template-columns: auto 1fr auto;
  }
  .sticky-links{ display: none; }   /* on cache les liens */
  .sticky-burger{ display: inline-flex; }
}

@media (max-width: 820px){
  /* La nav ne doit plus prendre toute la largeur visuelle */
  .sticky-nav{
    top: 12px;
    padding: 0 12px;
  }

  /* Capsule compacte, pas étirée */
  .sticky-inner{
    max-width: 420px;
    margin: 0;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  /* Cache bien la zone desktop */
  .sticky-links{ display: none !important; }

  /* Home icon sur mobile : un poil plus grand */
  .sticky-inner .brand.home-link{
    width: 42px;
    height: 42px;
  }

  /* Burger plus chic + mieux centré */
  .sticky-burger{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(20,19,17,.14);
    background: rgba(255,255,255,.25);
  }

  .sticky-burger span{
    left: 12px;
    right: 12px;
  }

  /* Panel mobile : aligné sous la capsule, largeur maîtrisée */
  .sticky-panel{
    max-width: 420px;
    margin: 10px auto 0;
    padding: 10px;
    border-radius: 18px;
  }

  .sticky-item{
    padding: 12px 12px;
    font-size: .88rem;
    letter-spacing: .14em;
  }
}
