/* ==========================================================================
   Roses Informatique — header.css (v4 — menu uniforme)
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.93);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-soft);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 12px; position: relative;
}

/* Logo */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--color-text);
  text-decoration: none; flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-brand), #3b82f6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px -3px rgba(30,64,175,.45);
}
.brand-meta { font-size: .68rem; color: var(--color-text-muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; display: block; }

/* Nav centre */
.nav-main { display: flex; align-items: center; flex: 1; justify-content: center; }
.nav-top-links { display: flex; align-items: center; gap: 2px; }
.nav-top-links > a {
  font-size: .87rem; font-weight: 500; color: var(--color-text-soft);
  padding: 6px 10px; border-radius: 8px; text-decoration: none;
  transition: color .14s, background .14s; white-space: nowrap;
}
.nav-top-links > a:hover { background: var(--color-bg-tint); color: var(--color-text); }
.nav-top-links > a.active { color: var(--color-brand); background: var(--color-brand-soft); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: .87rem; font-weight: 500; color: var(--color-text-soft);
  background: transparent; border: none; padding: 6px 10px; border-radius: 8px;
  cursor: pointer; transition: color .14s, background .14s; white-space: nowrap;
}
.nav-drop-btn:hover { background: var(--color-bg-tint); color: var(--color-text); }
.nav-drop-btn.active { color: var(--color-brand); background: var(--color-brand-soft); }
.nav-caret { font-size: .62rem; opacity: .55; }

.nav-drop-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px; background: #fff; border: 1px solid var(--color-border);
  border-radius: 12px; box-shadow: 0 8px 30px -4px rgba(0,0,0,.13);
  padding: 8px; z-index: 300;
}
.nav-drop-panel.open { display: block; }
.nav-drop-panel--wide {
  display: none; min-width: 360px;
  grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
}
.nav-drop-panel--wide.open { display: grid; }
.nav-drop-section { display: flex; flex-direction: column; gap: 0; }
.nav-drop-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--color-text-muted); padding: 6px 10px 3px;
}
.nav-drop-panel a, .nav-dots-col a {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; color: var(--color-text-soft);
  padding: 8px 10px; border-radius: 8px; text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-drop-panel a:hover, .nav-dots-col a:hover { background: var(--color-bg-tint); color: var(--color-text); }

/* Actions droite */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cart {
  position: relative; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-bg-tint); color: var(--color-text);
  text-decoration: none; transition: all .15s; font-size: 1rem;
}
.nav-cart:hover { background: var(--color-brand-soft); color: var(--color-brand); }
.nav-cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--color-brand); color: #fff; font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* Bouton ⋮ trois points */
.nav-dots-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--color-border);
  background: transparent; cursor: pointer;
  font-size: 1.3rem; color: var(--color-text-soft); line-height: 1;
  transition: background .15s, border-color .15s; flex-shrink: 0;
}
.nav-dots-btn:hover { background: var(--color-bg-tint); border-color: var(--color-brand-soft); }

/* Panneau ⋮ mega-menu */
.nav-dots-panel {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--color-border);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.13); z-index: 250; padding: 24px 0;
}
.nav-dots-panel.open { display: block; }
.nav-dots-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.nav-dots-col { display: flex; flex-direction: column; }
.nav-dots-col .nav-drop-label { padding: 0 10px 4px; }

/* Bouton hamburger mobile */
.nav-toggle {
  display: none; width: 36px; height: 36px;
  background: transparent; border: 1.5px solid var(--color-border);
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  color: var(--color-text-soft); align-items: center; justify-content: center;
}
.nav-compte-btn { white-space: nowrap; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-top-links > a, .nav-drop-btn { font-size: .82rem; padding: 5px 7px; }
  .nav-compte-btn { display: none; }
}
@media (max-width: 860px) {
  .nav-main   { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-dots-btn { display: none; }
  .nav-dots-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .nav-dots-inner { grid-template-columns: 1fr; }
  .nav-dots-panel { padding: 16px 0; }
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 80px 0 30px; margin-top: 80px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase; }
.site-footer a  { color: #cbd5e1; font-size: .9rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width:800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-meta { color: #94a3b8; }
.footer-brand p { color: #94a3b8; margin-top: 14px; max-width: 32ch; font-size: .88rem; line-height: 1.6; }
.footer-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid #1e293b;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: #94a3b8;
}
