/* /pegi18/assets/css/header.css
   Header PEGI18 — style "classified / cyber-grimoire"
   Fonts: Audiowide, Keania One, Iceland, Turret Road
*/

:root{
  --p18-bg0: #060a12;
  --p18-bg1: rgba(10, 16, 28, .82);
  --p18-bg2: rgba(10, 16, 28, .58);
  --p18-line: rgba(255,255,255,.10);
  --p18-line2: rgba(255,255,255,.16);

  --p18-text: rgba(231,237,247,.92);
  --p18-muted: rgba(170,183,205,.82);

  --p18-blue: rgba(90,167,255,.95);
  --p18-teal: rgba(35,213,179,.95);
  --p18-gold: rgba(242,193,78,.95);
  --p18-red: rgba(255,77,109,.95);
  --p18-green: rgba(59,242,122,.95);

  --p18-radius: 18px;
  --p18-radius2: 14px;
  --p18-shadow: 0 18px 55px rgba(0,0,0,.55);

  --p18-font-body: "Turret Road", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --p18-font-h1: "Audiowide", cursive;
  --p18-font-h2: "Keania One", cursive;
  --p18-font-mono: "Iceland", monospace;
}

body.pegi18{
  font-family: var(--p18-font-body);
}

/* ambience (si tu veux les garder) */
.p18-noise{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.p18-scanlines{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.08;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.08) 0px,
    rgba(255,255,255,.08) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  mix-blend-mode: soft-light;
}

.p18-header{
  position:relative;
  z-index:50;
  margin:0 auto;
  max-width: 1080px;
  padding: 14px 18px 0;
}

.p18-bar{
  border-radius: var(--p18-radius);
  border: 1px solid var(--p18-line);
  background: linear-gradient(180deg, var(--p18-bg1), var(--p18-bg2));
  box-shadow: var(--p18-shadow);
  overflow:hidden;
}

.p18-bar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  background: rgba(0,0,0,.10);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.p18-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--p18-text);
  min-width:0;
}

.p18-brand__mark{
  width: 44px;
  height: 44px;
  border-radius: var(--p18-radius2);
  background:
    radial-gradient(circle at 30% 25%, rgba(35,213,179,.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(90,167,255,.25), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.10);
  position:relative;
  flex:0 0 auto;
}
.p18-brand__mark::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius: 12px;
  border: 1px dashed rgba(35,213,179,.35);
  transform: rotate(7deg);
  opacity:.75;
}

.p18-brand__txt{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.p18-brand__k{
  font-family: var(--p18-font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(90,167,255,.9);
  line-height: 1.1;
}
.p18-brand__n{
  font-family: var(--p18-font-h2);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.p18-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.p18-seal{
  font-family: var(--p18-font-mono);
  letter-spacing: .18em;
  font-weight: 800;
  font-size: 11px;
  color: var(--p18-gold);
  border: 1px solid rgba(242,193,78,.35);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  text-transform: uppercase;
  white-space: nowrap;
}

.p18-chip{
  font-family: var(--p18-font-mono);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--p18-muted);
  background: rgba(0,0,0,.10);
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space: nowrap;
}
.p18-chip__txt{ color: var(--p18-text); }
.p18-chip__dim{ opacity:.78; }
.p18-ico{ filter:saturate(1.05); }

.p18-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(90,167,255,.35);
  background: rgba(90,167,255,.10);
  color: var(--p18-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.p18-sub{
  border-color: rgba(35,213,179,.28);
  background: rgba(35,213,179,.08);
}
.p18-sub.on{
  border-color: rgba(59,242,122,.30);
  background: rgba(59,242,122,.10);
  color: var(--p18-green);
}
.p18-sub.off{
  border-color: rgba(255,77,109,.30);
  background: rgba(255,77,109,.10);
  color: var(--p18-red);
}

.p18-burger{
  width: 44px;
  height: 44px;
  border-radius: var(--p18-radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  cursor: pointer;
  display:none;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
}
.p18-burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(231,237,247,.9);
  border-radius: 2px;
}

.p18-nav{
  display:flex;
  padding: 10px 12px 12px;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.p18-links{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}

.p18-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: var(--p18-radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  color: var(--p18-text);
  text-decoration:none;
  font-family: var(--p18-font-body);
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.p18-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  background: rgba(0,0,0,.14);
}
.p18-link:active{ transform: translateY(0); }

.p18-link.primary{
  border-color: rgba(35,213,179,.35);
  background: linear-gradient(135deg, rgba(35,213,179,.16), rgba(90,167,255,.10));
  box-shadow: 0 0 0 4px rgba(35,213,179,.05);
}

/* Mobile */
@media (max-width: 860px){
  .p18-burger{ display:inline-flex; }
  .p18-nav{ display:none; }
  .p18-bar.is-open .p18-nav{ display:flex; }

  .p18-nav{
    flex-direction: column;
    align-items: stretch;
  }

  .p18-right{
    width: 100%;
    justify-content: space-between;
  }

  .p18-seal{ display:none; }
}
