/* Header & Footer partagés (style index-v2, header fond noir) */
.w { max-width: 1340px; margin: 0 auto; padding: 0 20px; }

/* HEADER — fond noir */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.hdr-logo { display: flex; align-items: center; }
.hdr-logo-box {
  height: 36px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hdr-logo-box .hdr-logo-img { height: 28px; width: auto; max-width: 220px; display: block; object-fit: contain; }
.hdr-nav { display: flex; gap: 2px; align-items: center; }
.hdr-nav a {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .2s;
  letter-spacing: .6px;
  font-family: 'JetBrains Mono', monospace;
}
.hdr-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.hdr-nav a.act { color: #000; background: rgb(215, 230, 38); }
.hdr-nav .sep { width: 1px; height: 20px; background: rgba(255,255,255,.25); margin: 0 6px; }
.hdr-dropdown { position: relative; }
.hdr-dropdown-toggle {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: all .2s;
  font-family: 'JetBrains Mono', monospace;
}
.hdr-dropdown-toggle:hover { color: #fff; background: rgba(255,255,255,.12); }
.hdr-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  padding: 10px 0 6px 0;
  display: none;
  z-index: 200;
}
.hdr-dropdown:hover .hdr-dropdown-menu { display: block; }
.hdr-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.hdr-dropdown-menu a:hover { background: rgba(255,255,255,.1); color: #ff6b82; }

@media (max-width: 768px) {
  .hdr-nav { display: none; }
  .hdr-mobile-toggle { display: flex; }
}
@media (min-width: 769px) {
  .hdr-mobile-overlay,
  .hdr-mobile-menu { display: none !important; }
}

/* Menu mobile (hamburger + panneau) — thème sombre */
.hdr-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 -6px 0 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  transition: background .2s, color .2s;
  position: relative;
  z-index: 151;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}
.hdr-mobile-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.hdr-mobile-toggle svg { display: block; pointer-events: none; }
.hdr-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}
.hdr-mobile-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.hdr-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  max-width: 100%;
  height: 100vh;
  background: #1a1a1a;
  border-left: 1px solid rgba(255,255,255,.15);
  box-shadow: -4px 0 24px rgba(0,0,0,.4);
  z-index: 160;
  padding: 60px 0 24px 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.hdr-mobile-menu.is-open { transform: translateX(0); }
.hdr-mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.hdr-mobile-menu-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.hdr-mobile-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s, color .2s;
}
.hdr-mobile-menu a:hover { background: rgba(255,255,255,.1); color: #ff6b82; }
.hdr-mobile-menu .hdr-mobile-group-label {
  display: block;
  padding: 14px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  font-family: 'JetBrains Mono', monospace;
}
.hdr-mobile-menu .hdr-mobile-group-label:first-of-type { padding-top: 8px; }

/* FOOTER */
.ftr { padding: 40px 0 28px; background: #111118; margin-top: 32px; }
.ftr-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ftr-col-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.ftr-links { display: flex; flex-direction: column; gap: 8px; }
.ftr-links a { font-size: 12.5px; color: rgba(255,255,255,.6); transition: color .2s; }
.ftr-links a:hover { color: #ff6b82; }
.ftr-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr-brand img, .ftr-logo-img { height: 72px; width: auto; max-width: 480px; display: block; object-fit: contain; }
.ftr-tagline { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }
.ftr-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ftr-copy { font-size: 11px; color: rgba(255,255,255,.3); }
.ftr-legal { display: flex; gap: 16px; }
.ftr-legal a { font-size: 11px; color: rgba(255,255,255,.3); transition: color .2s; }
.ftr-legal a:hover { color: rgba(255,255,255,.6); }

@media (max-width: 1024px) {
  .ftr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ftr-grid { grid-template-columns: 1fr; }
}
