/* =============== Styles existants Meeples & Co =============== */
/* (ici tu colles tout ton CSS actuel, inchangé) */

body { margin:0; font-family: system-ui, Arial, sans-serif; background:#0b0f1a; color:#e6edf3; }
body.has-fixed-header { padding-top: var(--header-h); }
body.nav-open { overflow: hidden; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.68);
  z-index: 3200;
}
.nav-backdrop[hidden] { display: none !important; }

.site-footer { background:#111827; padding:12px 20px; display:flex; align-items:center; justify-content:space-between; }
.site-footer a { color:#e6edf3; margin-right:12px; text-decoration:none; }
.container { padding:20px; }
.card { background:#111827; border:1px solid #1f2937; border-radius:8px; padding:16px; margin-bottom:12px; }
button, .btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.85));
  color: #031320;
  border: none;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover, button:focus-visible,
.btn:hover, .btn:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: rgba(226, 232, 240, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.32);
  box-shadow: none;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: rgba(103, 232, 249, 0.55);
  color: #f8fafc;
  background: rgba(103, 232, 249, 0.08);
}

input, textarea, select { width:100%; padding:8px; margin:6px 0 12px; background:#0f172a; color:#e6edf3; border:1px solid #1f2937; border-radius:6px; }
label { font-weight:600; }
.hero3d { width:100%; height:60vh; border-radius:12px; overflow:hidden; border:1px solid #1f2937; }
.grid { display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* =============== Titres uniformisés =============== */
/* Import de la police Orbitron */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Titres avec effet néon */
.page-title, h1, h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 0.5em auto 0.7em auto;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 10px);
  text-shadow:
    0 0 5px #38bdf8,
    0 0 10px #38bdf8,
    0 0 15px #38bdf8,
    0 0 20px #38bdf8;
  animation: titleGlow 2.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow:
      0 0 5px #38bdf8,
      0 0 10px #38bdf8,
      0 0 15px #38bdf8,
      0 0 20px #38bdf8;
  }
  100% {
    text-shadow:
      0 0 2px #38bdf8,
      0 0 5px #38bdf8,
      0 0 8px #38bdf8,
      0 0 12px #38bdf8;
  }
}

/* Taille responsive */
@media (max-width: 768px) {
  .page-title, h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
@media (min-width: 769px) {
  .page-title, h1 { font-size: 2.4rem; }
  h2 { font-size: 1.6rem; }
}
/* ==== FIX halo slider vs. articles ==== */

/* Si ton slider est encapsulé dans l’un de ces conteneurs,
   on coupe explicitement le halo pour tout ce qui est dedans. */
.slider,
.home-slider,
.hero,
.hero-slider,
#home-slider {
  /* variable “garde‑fou” si ton halo l’utilise déjà */
  --halo-enabled: 0;
}

/* Extinction brutale du halo dans la zone slider,
   même si des éléments héritent d'une classe .card commune. */
.slider .card::before,
.slider .card::after,
.home-slider .card::before,
.home-slider .card::after,
.hero .card::before,
.hero .card::after,
.hero-slider .card::before,
.hero-slider .card::after,
#home-slider .card::before,
#home-slider .card::after {
  content: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
  background: none !important;
  pointer-events: none !important;
}

/* Si ton halo dépend d’une variable, on la remet à 1 hors slider pour
   éviter tout « effet domino » sur les autres sections (ex: les articles). */
:root { --halo-enabled: 1; }

/* Exemple de garde si ton règle d’origine est conditionnée :
   .card::before { opacity: var(--halo-enabled, 1); }
*/

/* Désactiver le halo pour les cartes avec la classe card--no-halo */
.card.card--no-halo::before,
.card.card--no-halo::after {
  content: none !important;
  animation: none !important;
  box-shadow: none !important;
  background: none !important;
}
/* === Sticky Header Layout === */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --line: #1f2937;
  --text: #e6edf3;
  --brand: #38bdf8;
  --header-h: 84px; /* default, recalculated in JS */
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Ubuntu, Arial, sans-serif;
  padding-top: var(--header-h);
}
/* Prevent headings from being hidden under the fixed header */
h1, h2, .page-title { scroll-margin-top: calc(var(--header-h) + 10px); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  display: block;
  padding: 0;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(10px, 1.8vw, 18px) clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: nowrap;
  box-sizing: border-box;
  min-height: clamp(72px, 7vh, 92px);
}


.logo-wrap { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-width: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-badge {
  width: clamp(56px, 6vw, 74px);
  height: clamp(56px, 6vw, 74px);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-badge:hover { transform: translateY(-2px) scale(1.04); }
.brand-title { font-weight: 900; letter-spacing: 0.3px; white-space: nowrap; }


.nav {
  margin-left: auto;
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: clamp(16px, 6vw, 32px);
  left: clamp(16px, 6vw, 32px);
  display: none;
  padding: 0;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.55);
  backdrop-filter: saturate(160%) blur(18px);
  max-height: calc(100vh - var(--header-h) - 24px);
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow: hidden;
  z-index: 3500;
  z-index: 3500;
}

.nav.open {
  display: block;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 5vw, 28px);
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-label {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.68);
}

.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-close:hover,
.nav-close:focus-visible {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-item a:not(.btn):hover,
.nav-item a:not(.btn):focus-visible {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.32);
  color: #f8fafc;
  transform: translateX(4px);
}

.nav .btn {
  align-self: stretch;
  justify-content: center;
  width: 100%;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #0ea5e9 30%));
  color: #001018;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.35);
}

.nav .btn:hover,
.nav .btn:focus-visible {
  filter: brightness(1.06);
}

@media (max-width: 860px) {
  .site-header .container {
    gap: 18px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .site-header .container {
    padding: 10px 14px;
  }
  .brand-badge {
    width: 60px;
    height: 60px;
  }
  .brand-title {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .nav {
    right: 12px;
    left: 12px;
    border-radius: 20px;
  }
  .nav-inner {
    padding: 18px 16px;
  }
  .burger {
    width: 42px;
    height: 42px;
  }
  z-index: 3500;
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
  .nav-close {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 861px) {
  .site-header .container {
    gap: 28px;
  }
  .burger {
    display: none;
  }
  .nav-backdrop {
    display: none !important;
  }
  .nav {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    flex: 0 0 auto;
  }
  .nav.open {
    display: flex;
  }
  .nav-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    overflow: visible;
  }
  .nav-head {
    display: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .nav-item a {
    padding: 8px 16px;
    border-radius: 999px;
    transform: none;
  }
  .nav-item a:not(.btn):hover,
  .nav-item a:not(.btn):focus-visible {
    transform: none;
    background: rgba(56, 189, 248, 0.16);
    border-color: transparent;
    color: #f8fafc;
  }
  .nav .btn {
    width: auto;
    padding: 8px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
  }
  z-index: 3500;
}




.btn-ghost {
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.28);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: rgba(103, 232, 249, 0.55);
  color: #f8fafc;
  background: rgba(103, 232, 249, 0.08);
}

/* ===== 3D Tilt (vignettes) ===== */
/* Applies to cards used as vignettes across pages. Non-intrusive defaults. */
.article-card,
.post-card,
.page-wrap .grid > .card {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --tilt-s: 1;
  --tilt-tx: 0px;
  --tilt-ty: 0px;
  transform: perspective(1000px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry)) scale(var(--tilt-s));
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  will-change: transform;
}

/* depth: stronger when active */
.article-card.tilt-active,
.post-card.tilt-active,
.page-wrap .grid > .card.tilt-active {
  box-shadow: 0 18px 40px rgba(3, 7, 18, 0.55), 0 2px 10px rgba(103, 232, 249, 0.08);
}

/* inner media slight parallax */
.article-card .tilt-media,
.post-card .tilt-media,
.page-wrap .grid > .card .tilt-media {
  transform: translate3d(var(--tilt-tx), var(--tilt-ty), 0);
  transition: transform 160ms ease;
  will-change: transform;
}

/* ensure images keep rounded corners when translating */
.article-card .tilt-media img,
.post-card .tilt-media img,
.page-wrap .grid > .card .tilt-media img { border-radius: inherit; display: block; }

/* Subtle specular shine reacting to pointer (tilt) */
@media (hover:hover) {
  .article-card .media::after,
  .post-thumb::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .65;
    background:
      radial-gradient(600px 220px at calc(50% + (var(--tilt-tx,0px) * .6)) calc(0% + (var(--tilt-ty,0px) * .6)), rgba(255,255,255,0.12), transparent 60%),
      linear-gradient(120deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 44%);
    transition: opacity 200ms ease, transform 160ms ease;
  }
  .article-card.tilt-active .media::after,
  .post-card.tilt-active .post-thumb::after {
    opacity: .9;
  }
  /* Also boost shine on simple hover for article list */
  .post-card:hover .post-thumb::after { opacity: .85; }
}



