/* ===== Header (compact) ===== */
.zr-header{
  position:sticky; top:0; z-index:40;
  -webkit-backdrop-filter:saturate(180%) blur(8px);
  backdrop-filter:saturate(180%) blur(8px);
  background:color-mix(in oklab, var(--zr-surface), transparent 5%);
  border-bottom:1px solid var(--zr-border);
}
.zr-header__bar{
  height:56px; display:flex; align-items:center; justify-content:space-between;
}
.zr-brand{ display:flex; align-items:center; gap:.55rem; }
.zr-brand__logo{ width:28px; height:28px; border-radius:12px; object-fit:contain; background:transparent; }
.zr-brand__name{ font-weight:600; letter-spacing:.2px; display:none; font-size:var(--fs-14); }
@media (min-width:640px){ .zr-brand__name{ display:inline; } }

/* Desktop nav */
.zr-nav--desktop{ display:none; align-items:center; gap:.2rem; }
@media (min-width:768px){ .zr-nav--desktop{ display:flex; } }

.nav-link{
  padding:.28rem .5rem;
  border-radius:var(--radius);
  font-weight:500;
  font-size:var(--fs-13);
  line-height:1.2;
  display:inline-flex; align-items:center;
  color:inherit; background:transparent; border:0; cursor:pointer; appearance:none;
}
.nav-link:hover{ background:var(--zr-elevated); }

/* Dropdown */
.nav-group{ position:relative; }
.nav-group > .nav-link::after{
  content:"";
  width:0; height:0; margin-left:.4rem;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  opacity:.8; transform:translateY(1px);
}
.nav-group > .nav-link.is-open::after{ transform:translateY(-2px) rotate(180deg); }

.projet-panel{
  position:absolute; left:50%; top:calc(100% + 8px);
  transform:translateX(-50%);
  width:680px; max-width:92vw;
  background:var(--zr-surface); border:1px solid var(--zr-border);
  border-radius:14px; box-shadow:var(--zr-shadow);
  padding:14px; display:none;
  pointer-events:none;              /* << don’t catch hover when closed */
}
.projet-panel.open{ display:block; pointer-events:auto; }

.projet-panel .grid{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
@media (max-width:640px){ .projet-panel .grid{ grid-template-columns:1fr; } }

.projet-item{
  display:flex; align-items:flex-start; gap:10px;
  padding:10px; border-radius:12px; border:1px solid transparent;
}
.projet-item:hover{ background:var(--zr-elevated); border-color:var(--zr-border); }
.projet-item__title{ font-weight:700; margin-bottom:.2rem; font-size:var(--fs-14); }
.projet-item__desc{ font-size:var(--fs-13); color:var(--zr-muted); line-height:1.45; }

.icon-tile{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:9999px; background:var(--zr-cta); color:#fff; flex:0 0 36px;
}
.icon-tile svg{ width:18px; height:18px; display:block; }

/* Right CTA (desktop) */
.zr-cta--desktop{ display:none; }
@media (min-width:768px){ .zr-cta--desktop{ display:block; } }

/* Mobile */
.zr-mobile-controls{ display:flex; align-items:center; gap:.4rem; }
@media (min-width:768px){ .zr-mobile-controls{ display:none; } }
.burger{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:var(--radius); border:1px solid transparent; background:transparent; cursor:pointer;
}
.burger:hover{ background:var(--zr-elevated); border-color:var(--zr-border); }
.burger svg{ width:20px; height:20px; display:block; }
.burger.is-open svg .line1{ transform:translateY(6px) rotate(45deg); }
.burger.is-open svg .line2{ opacity:0; }
.burger.is-open svg .line3{ transform:translateY(-6px) rotate(-45deg); }
.burger svg .line1, .burger svg .line2, .burger svg .line3{
  transform-origin:12px 12px; transition:transform .2s ease, opacity .2s ease;
}

/* Mobile sheet */
.overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:49; }
.sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:var(--zr-surface); border:1px solid var(--zr-border);
  border-top-left-radius:18px; border-top-right-radius:18px;
  display:flex; flex-direction:column;
  padding:12px 12px 0; transform:translateY(36px); opacity:0; transition:all .25s ease;
  max-height:85vh; font-size:var(--fs-16);
  pointer-events:none;              /* << inert when not opened */
}
.sheet.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
.sheet__header{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px; }
.sheet__title{ font-weight:700; font-size:1rem; }
.sheet__close{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:var(--radius); border:1px solid transparent; background:transparent; cursor:pointer;
  font-size:20px; line-height:1;
}
.sheet__close:hover{ background:var(--zr-elevated); border-color:var(--zr-border); }
.sheet__nav{ margin-top:6px; padding-bottom:10px; overflow:auto; padding-left:2px; padding-right:2px; }
.sheet__link{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 8px; border-radius:var(--radius); margin:2px 0; border:1px solid transparent;
}
.sheet__link:hover{ background:var(--zr-elevated); border-color:var(--zr-border); }
.sheet__group{ padding:8px; margin:6px 0 8px; border:1px solid #E8EFEC; border-radius:12px; background:color-mix(in oklab, #fff, transparent 15%); }
.sheet__group-title{ font-weight:700; margin:0 2px 6px; font-size:var(--fs-14); }
.sheet__cards{ display:grid; gap:8px; }
.sheet-card{ display:flex; gap:10px; align-items:flex-start; padding:10px; border-radius:12px; border:1px solid #E2E8E5; background:#fff; }
.sheet-card:hover{ background:#EEF3F1; }
.sheet-card .icon-tile{ width:34px; height:34px; }
.sheet-card .icon-tile svg{ width:16px; height:16px; }
.sheet-card__title{ font-weight:700; margin-bottom:.1rem; font-size:var(--fs-14); }
.sheet-card__desc{ font-size:var(--fs-13); color:var(--zr-muted); line-height:1.4; }
.sheet__footer{
  position:sticky; bottom:0;
  background:linear-gradient(to top, var(--zr-surface), color-mix(in oklab, var(--zr-surface), transparent 30%));
  padding:10px 0 14px; margin-top:auto; border-top:1px solid var(--zr-border);
}

/* Softer nav weight */
.nav-link{ font-weight:500; }  /* keep readable but not heavy */