/* ===============================
   Header / Nav (global)
   =============================== */

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  gap:18px;
}

.brand, .brand a{display:flex; align-items:center;}

.brandLogo{
  height: 25px;
  width: auto;
  max-height: none;
  max-width: none;
  display: block;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:70px;
  color:#2a2a2a;
  font-weight:500;
}

.navlinks a{opacity:.9}
.navlinks a:hover{color: var(--green); font-weight:900;}
.navlinks a.active{
  color: var(--green);
  font-weight:900;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.burger{display:none}

/* ===============================
   Credits pill (global)
   =============================== */

.appRight{
  display:flex;
  align-items:center;
  gap:14px;
}

.creditsPill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border: 1px solid rgba(37,179,106,.5);
  color: rgba(37,179,106,.95);
  font-weight:500;
  background: rgba(255,255,255,.65);
  white-space:nowrap;
  line-height:1;
}

.creditsPill > div{
  display:flex;
  align-items:center;
  gap:6px;
  line-height:1;
}

.creditsPill .plus{
  width:22px;
  height:22px;
  border-radius:999px;
  background: rgba(37,179,106,.9);
  display:grid;
  place-items:center;
  color:#fff;
  text-decoration:none;
  flex: 0 0 auto;
  padding:0;
  transition: background .15s ease, transform .12s ease;
}

/* protège si jamais un <img> est utilisé */
.creditsPill .plus img{
  width:14px;
  height:14px;
  max-width:14px;
  display:block;
}
.creditsPill .plus svg{
  width:14px;
  height:14px;
  display:block;
  pointer-events:none;
}

.creditsPill .plus:hover{
  background: var(--green-dark);
  transform: scale(1.05);
}
.creditsPill .plus:active{
  transform: scale(0.95);
}

/* ===============================
   Responsive menu
   =============================== */

@media (max-width: 920px){

  header{ z-index:6000; }

  .brand{ position:relative; z-index:6200; }
  .nav{ position:relative; z-index:6100; }

  .burger{
    position: relative;
    z-index: 6200;
    display:inline-flex;
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.12);
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.55);
  }
  .burger::before{
    content:"≡";
    font-size:25px;
    font-weight:900;
    color: var(--green);
  }
  .burger[aria-expanded="true"]::before{
    content:"✕";
    font-size:18px;
  }

  .navlinks{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: calc(var(--header-h, 72px) + 18px) 22px 22px;
    background: rgba(246,242,234,.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 4000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }

  .navlinks.isOpen{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
}
