/*
Theme Name: IPTV Abonnement Belgique
Theme URI: https://iptvabonnementbelgique.shop
Author: IPTV Abonnement Belgique
Author URI: https://iptvabonnementbelgique.shop
Description: Thème « Nuit Belge » pour iptvabonnementbelgique.shop — boutique d'abonnement IPTV pour la Belgique (fr-BE), design sombre, Sora, jaune et rouge belges.
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2026.1
Requires at least: 5.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: iptvbelgique

BlankSlate WordPress Theme 2011-2024
BlankSlate is distributed under the terms of the GNU GPL
*/

/* ═══ Nuit Belge — design tokens ═══
   Utility classes come from tailwind.min.css (static build). Only the small custom layer lives here. */
:root {
  --nb-bg: #0A0F1F;
  --nb-bg-deep: #070B17;
  --nb-surface: #121A30;
  --nb-raised: #1A2442;
  --nb-border: #26314F;
  --nb-text: #EEF1F8;
  --nb-muted: #A3ADC6;
  --nb-yellow: #FDDA24;
  --nb-red: #EF3340;
  --nb-green: #22C55E;
  --nb-radius: 14px;
  --nb-font: 'Sora', 'Sora Fallback', system-ui, sans-serif;
  --nb-header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nb-header-h) + 12px); }
html, body {
  background-color: var(--nb-bg);
  color: var(--nb-text);
  font-family: var(--nb-font);
  overflow-x: hidden;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* neutralise legacy base rules (src/input.css) that paint header/nav/footer/main */
header, nav, footer, main { background-color: transparent !important; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
::selection { background: var(--nb-yellow); color: var(--nb-bg); }
:focus-visible { outline: 2px solid var(--nb-yellow); outline-offset: 3px; }

/* ═══ Buttons ═══ */
.nb-btn, .nb-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.6em; border-radius: 999px;
  font-family: var(--nb-font); font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.nb-btn { background: var(--nb-yellow); color: var(--nb-bg); border: 1px solid var(--nb-yellow); }
.nb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(253,218,36,.6); color: var(--nb-bg); }
.nb-btn-ghost { background: transparent; color: var(--nb-text); border: 1px solid var(--nb-border); }
.nb-btn-ghost:hover { border-color: var(--nb-yellow); color: var(--nb-yellow); transform: translateY(-2px); }
.nb-btn-sm { min-height: 44px; padding: .6em 1.2em; font-size: .92rem; }

/* ═══ Section helpers ═══ */
.nb-eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nb-yellow);
}
.nb-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--nb-red); border-radius: 2px; }
.nb-card { background: var(--nb-surface); border: 1px solid var(--nb-border); border-radius: var(--nb-radius); }
.nb-chip {
  display: inline-flex; align-items: center; gap: .45em; min-height: 36px; padding: .4em .95em;
  border-radius: 999px; border: 1px solid var(--nb-border); background: var(--nb-raised);
  color: var(--nb-text); font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.nb-flag { display: inline-flex; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.nb-flag i { flex: 1; }

/* ═══ Marquee (CSS only) ═══ */
.nb-marquee { overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nb-marquee-track { display: flex; align-items: center; gap: 14px; width: max-content; animation: nb-marquee 60s linear infinite; }
.nb-marquee:hover .nb-marquee-track { animation-play-state: paused; }
@keyframes nb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══ Horizontal scroll-snap rows ═══ */
.nb-snap { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--nb-border) transparent; }
.nb-snap > * { scroll-snap-align: start; flex-shrink: 0; }

/* ═══ Accordion (details/summary) ═══ */
.nb-acc { border: 1px solid var(--nb-border); border-radius: var(--nb-radius); background: var(--nb-surface); transition: border-color .2s ease; }
.nb-acc[open] { border-color: rgba(253,218,36,.55); }
.nb-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; min-height: 56px; font-weight: 600; color: var(--nb-text); }
.nb-acc summary::-webkit-details-marker { display: none; }
.nb-acc summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--nb-raised); color: var(--nb-yellow); font-size: 1.1rem; font-weight: 700; transition: transform .25s ease; }
.nb-acc[open] summary::after { transform: rotate(45deg); }
.nb-acc .nb-acc-body { padding: 0 20px 18px; color: var(--nb-muted); line-height: 1.7; font-size: .95rem; }

/* ═══ Header ═══ */
#mainHeader { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; border-bottom: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease; }
#mainHeader.is-solid { background-color: rgba(10,15,31,.96) !important; border-bottom-color: var(--nb-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar #mainHeader { top: 32px; }
@media (max-width: 782px) { .admin-bar #mainHeader { top: 46px; } }
.nb-nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--nb-text); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.nb-nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--nb-yellow); transform: scaleX(0); transition: transform .25s ease; }
.nb-nav-link:hover, .nb-nav-link.active { color: var(--nb-yellow); }
.nb-nav-link:hover::after, .nb-nav-link.active::after { transform: scaleX(1); }
#mobileMenu { position: fixed; inset: 0; z-index: 99999; background: var(--nb-bg); display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
#mobileMenu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
body.menu-open { overflow: hidden; touch-action: none; }

/* ═══ Long-form content (pages, posts) ═══ */
.nb-prose { color: #C9D0E2; font-size: 1.05rem; line-height: 1.8; }
.nb-prose > * + * { margin-top: 1.1em; }
.nb-prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; line-height: 1.25; color: var(--nb-text); }
.nb-prose h3 { margin-top: 1.8em; font-size: 1.25rem; font-weight: 700; color: var(--nb-yellow); }
.nb-prose h4 { margin-top: 1.5em; font-size: 1.05rem; font-weight: 700; color: var(--nb-text); }
.nb-prose ul { list-style: disc; padding-left: 1.4em; }
.nb-prose ol { list-style: decimal; padding-left: 1.4em; }
.nb-prose li + li { margin-top: .4em; }
.nb-prose li::marker { color: var(--nb-yellow); }
.nb-prose strong { color: var(--nb-text); }
.nb-prose a { color: var(--nb-yellow); text-decoration: underline; text-decoration-color: rgba(253,218,36,.35); text-underline-offset: 3px; font-weight: 600; }
.nb-prose a:hover { text-decoration-color: var(--nb-yellow); }
.nb-prose blockquote { border-left: 3px solid var(--nb-red); background: var(--nb-surface); padding: 1em 1.4em; border-radius: 0 var(--nb-radius) var(--nb-radius) 0; color: var(--nb-text); }
.nb-prose img { border-radius: var(--nb-radius); border: 1px solid var(--nb-border); }
.nb-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.nb-prose th { background: var(--nb-raised); color: var(--nb-yellow); text-align: left; padding: 10px 14px; }
.nb-prose td { border-bottom: 1px solid var(--nb-border); padding: 10px 14px; }
.nb-prose iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: var(--nb-radius); }
.nb-prose .post-cta, .nb-prose div[style*="background"] { color: var(--nb-text); }

/* WordPress core bits */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav-links a { color: var(--nb-yellow); font-weight: 600; }
.comment-form input, .comment-form textarea { width: 100%; background: var(--nb-surface); border: 1px solid var(--nb-border); border-radius: 10px; color: var(--nb-text); padding: 10px 12px; }
.comment-form .submit { background: var(--nb-yellow); color: var(--nb-bg); border-radius: 999px; padding: 10px 22px; font-weight: 700; width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nb-marquee-track { animation: none; }
  .nb-btn, .nb-btn-ghost, #mobileMenu { transition: none; }
}
