/* ==========================================================================
   R.O.S.E.S. — header.css  refonte complète
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}

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

/* ── Logo ── */
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0; margin-right: 24px;
}
.brand-logo-fallback {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--c-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: .86rem; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.brand-meta  { font-size: .57rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }

/* ── Nav desktop ── */
.nav-main {
  display: flex; align-items: center;
  flex: 1; overflow: hidden; min-width: 0;
}
.nl {
  display: block;
  font-size: .8rem; font-weight: 500;
  color: var(--c-text-soft);
  padding: 0 8px; height: 58px;
  line-height: 58px;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
  flex-shrink: 0;
}
.nl:hover  { color: var(--c-brand); }
.nl.active { color: var(--c-brand); font-weight: 700; border-bottom-color: var(--c-brand); }

/* ── Actions droite ── */
.nav-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; margin-left: 12px;
}
.nav-compte-btn { white-space: nowrap; }

.nav-cart {
  position: relative; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-soft); transition: color var(--tr); flex-shrink: 0;
}
.nav-cart:hover { color: var(--c-text); }
.nav-cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 15px; height: 15px; padding: 0 3px;
  background: var(--c-brand); color: #fff;
  font-size: .52rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ── Burger ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 34px; height: 34px;
  background: none; border: 1px solid var(--c-border);
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--c-text);
  transition: transform .22s ease, opacity .22s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Drawer mobile ── */
.nav-mobile {
  display: none;
  position: fixed; top: 58px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 190;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.nav-mobile.open {
  display: block;
  transform: translateX(0);
}
.nav-mobile-inner { padding: 8px 0 40px; }
.nav-mobile a {
  display: block; padding: 14px 24px;
  font-size: .95rem; font-weight: 500;
  color: var(--c-text-soft);
  border-bottom: 1px solid var(--c-border-soft);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}
.nav-mobile a:hover { background: var(--c-bg-soft); color: var(--c-text); }
.nav-mobile-sep {
  height: 1px; background: var(--c-border);
  margin: 10px 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .nl { padding: 0 6px; font-size: .77rem; }
}
@media (max-width: 920px) {
  .nl { padding: 0 5px; font-size: .74rem; }
  .nav-compte-btn { display: none; }
}
@media (max-width: 768px) {
  .nav-main       { display: none; }
  .nav-burger     { display: flex; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
  .brand { margin-right: 8px; }
}

/* ════ FOOTER ════ */
.site-footer {
  background: var(--c-text); color: #9ca3af;
  padding: 52px 0 22px; margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
@media (max-width:720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width:440px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  color: #e5e7eb; font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #1f2937;
}
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col a  { color: #9ca3af; font-size: .83rem; transition: color var(--tr); }
.footer-col a:hover { color: #e5e7eb; }
.footer-brand p { color: #6b7280; margin-top: 10px; font-size: .82rem; line-height: 1.65; max-width: 28ch; }
.footer-brand .brand-name strong { color: #e5e7eb; }
.footer-brand .brand-meta { color: #4b5563; }
.footer-brand .brand-logo-fallback { background: var(--c-brand-mid); }
.footer-bottom {
  margin-top: 36px; padding-top: 14px;
  border-top: 1px solid #1f2937;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: .74rem; color: #4b5563;
}

/* ── Liens moins essentiels cachés sur écrans moyens ── */
@media (max-width: 1050px) {
  .nl-hide-md { display: none; }
}

/* ── Menu "Plus" sur écrans moyens ─────────────────────────────────────── */
.nav-more { position:relative; display:none; }
@media (max-width:1050px) { .nav-more { display:block; } }
@media (max-width:768px)  { .nav-more { display:none; } }

.nav-more-btn {
  cursor:pointer; background:none; border:none;
  font-family:inherit; height:58px; line-height:58px;
  font-size:1rem; font-weight:700; letter-spacing:.1em;
  color:var(--c-text-soft);
  padding:0 10px;
  white-space:nowrap;
  flex-shrink:0;
}
.nav-more-btn:hover { color:var(--c-brand); }

.nav-more-panel {
  position:absolute; top:58px; right:0;
  background:#fff; border:1px solid var(--c-border);
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  min-width:200px; z-index:300;
}
.nm-link {
  display:block; padding:11px 16px;
  font-size:.84rem; color:var(--c-text-soft);
  border-bottom:1px solid var(--c-border-soft);
  transition:background var(--tr),color var(--tr);
}
.nm-link:last-child { border-bottom:none; }
.nm-link:hover { background:var(--c-bg-soft); color:var(--c-brand); }

/* ── Fix menu Plus - liens sur une seule ligne ── */
.nav-more-panel {
  min-width: 220px !important;
  white-space: nowrap;
}
.nm-link {
  white-space: nowrap !important;
  padding: 12px 18px !important;
}
