/* =========================================================
   BF NATION — Feuille de style principale
   Charte couleur orangée tirée du logo BF Nation
   ========================================================= */

:root {
  --orange: #ff4612;
  --orange-bright: #ff622e;
  --orange-deep: #d8350a;
  --orange-glow: rgba(255, 70, 18, 0.45);

  --bg: #0a0a0b;
  --bg-1: #101012;
  --bg-2: #16161a;
  --bg-3: #1d1d22;
  --panel-border: rgba(255, 70, 18, 0.22);

  --text: #f3f3f4;
  --muted: #9b9ba2;
  --muted-2: #6e6e76;

  --header-h: 68px;

  --font-head: "Saira Condensed", "Oswald", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

a { color: var(--orange-bright); text-decoration: none; }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--orange); }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 56px;
  height: 4px;
  background: var(--orange);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo — la largeur est volontairement limitée pour ne pas
   manger l'écran (cf. demande). */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img, .brand svg { width: 132px; height: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.main-nav > li { list-style: none; position: relative; }
.main-nav { padding: 0; margin: 0; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover,
.nav-link.active { color: var(--orange); border-bottom-color: var(--orange); }
.nav-link .caret { font-size: 0.7em; opacity: 0.7; }

/* Dropdowns */
.has-dropdown > .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px;
  margin: 0;
  list-style: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  max-height: 70vh;
  overflow-y: auto;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--bg-3); color: var(--orange); }
.dropdown li a .year { color: var(--muted-2); font-size: 0.82em; margin-left: 8px; }

/* Social icons in header */
.header-social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 7px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.social-ico:hover { color: #0a0a0b; background: var(--orange); transform: translateY(-2px); }
.social-ico svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* Burger */
.burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--panel-border);
  border-radius: 8px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--text); transition: 0.2s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(86vh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0.75) 60%, var(--bg) 100%),
    radial-gradient(1200px 600px at 70% 30%, rgba(255,70,18,0.18), transparent 60%),
    url("../assets/hero.jpg") center/cover no-repeat,
    #14130f;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg), transparent 35%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow {
  font-family: var(--font-head);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.hero p.lead { max-width: 720px; margin: 12px auto 28px; color: #e7e7e9; font-size: 1.12rem; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; font-size: 1rem;
  padding: 13px 26px; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--orange);
  transition: 0.18s;
}
.btn-primary { background: var(--orange); color: #111; }
.btn-primary:hover { background: var(--orange-bright); color: #111; box-shadow: 0 8px 26px var(--orange-glow); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--orange); color: #111; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FEED GRID (X / Twitch / YouTube) ============ */
.feeds { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; }
.feed-card {
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
}
.feed-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(90deg, rgba(255,70,18,0.12), transparent);
}
.feed-head svg { width: 20px; height: 20px; fill: var(--orange); }
.feed-head h3 { margin: 0; font-size: 1.1rem; }
.feed-head .live-dot {
  margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: #e0245e; padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase;
}
.feed-body { flex: 1; min-height: 0; position: relative; }
.feed-body iframe { width: 100%; height: 100%; border: 0; display: block; position: absolute; inset: 0; }
.feed-body .twitter-timeline,
.feed-body .twitter-wrap { height: 100%; overflow-y: auto; }
.feed-foot { padding: 12px 16px; border-top: 1px solid var(--panel-border); text-align: center; }

/* ============ CARDS / GRID ============ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-3), #2a2a30);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph {
  font-family: var(--font-head); font-size: 1.4rem; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 2px;
}
.card .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { margin-bottom: 6px; }
.card .body .meta { color: var(--orange); font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.card .body p { color: var(--muted); font-size: 0.94rem; margin: 0 0 14px; flex: 1; }
.card .body .card-link {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; font-size: 0.92rem;
}

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
  background: rgba(255,70,18,0.15); color: var(--orange-bright); border: 1px solid var(--panel-border);
}

/* ============ GAME DETAIL PAGE ============ */
.game-hero {
  position: relative;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(255,70,18,0.10), transparent 70%), var(--bg-1);
}
.game-hero .year-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  color: var(--orange); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 8px;
}
.game-hero p.intro { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; }
.game-meta .mi { font-size: 0.92rem; }
.game-meta .mi span { display: block; color: var(--muted-2); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1px; }
.game-meta .mi strong { color: var(--text); font-weight: 600; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--panel-border); margin-bottom: 30px; }
.tab-btn {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  font-size: 1rem; color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 12px 18px; border-bottom: 3px solid transparent;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-panel { display: none; animation: fade 0.25s; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Grille d'items avec image (maps / armes / véhicules / personnages) */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.item-card {
  background: var(--bg-2); border: 1px solid var(--panel-border); border-radius: 10px;
  overflow: hidden; transition: transform 0.15s, border-color 0.15s;
}
.item-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.item-thumb {
  position: relative; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-3), #26262c);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-thumb .item-ph { color: var(--muted-2); opacity: 0.5; }
.item-thumb .item-ph svg { width: 40px; height: 40px; }
.item-thumb:not(.noimg) .item-ph { display: none; }
.item-name {
  padding: 10px 12px; font-size: 0.92rem; font-weight: 600; color: var(--text);
  border-top: 1px solid var(--panel-border);
}

/* Carrousel de fiche jeu */
.carousel { position: relative; margin-bottom: 34px; border-radius: 12px; overflow: hidden; border: 1px solid var(--panel-border); background: #000; }
.car-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide {
  position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  aspect-ratio: 16/9; background: #0e0e10;
  display: flex; align-items: center; justify-content: center;
}
.car-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-slide.car-broken { display: none; }
.car-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px; font-size: 0.9rem; color: #f0f0f0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(10,10,11,0.6); color: #fff; border: 1px solid var(--panel-border);
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.car-nav:hover { background: var(--orange); color: #0a0a0b; }
.car-nav.prev { left: 12px; } .car-nav.next { right: 12px; }
.carousel[data-single="1"] .car-nav,
.carousel[data-single="1"] .car-dots { display: none; }
.car-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.car-dot { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.4); padding: 0; }
.car-dot.active { background: var(--orange); }

.prose { max-width: 820px; }
.prose p { color: #d8d8db; margin: 0 0 16px; }
.prose strong { color: #fff; }
.prose em { color: var(--orange-bright); font-style: normal; }

/* Galerie de dossier */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}
.gphoto {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
}
.gphoto img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--bg-3);
}
.gphoto figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
}

/* ============ STAFF ============ */
.staff-group { margin-bottom: 48px; }
.staff-group h2 .accent { display: block; font-size: 0.9rem; letter-spacing: 2px; color: var(--muted); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.member {
  background: var(--bg-2); border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 22px; text-align: center; transition: 0.18s;
}
.member:hover { border-color: var(--orange); transform: translateY(-3px); }
.member .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--orange-deep), var(--orange));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-head); font-size: 2rem; color: #111; font-weight: 700;
  border: 3px solid var(--bg-3);
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 0 0 4px; font-size: 1.15rem; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.member .role { color: var(--orange); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.member .socials { display: flex; gap: 8px; justify-content: center; }
.member .socials a { color: var(--muted); }
.member .socials a:hover { color: var(--orange); }
.member .socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ============ INFO / CALLOUT ============ */
.callout {
  background: linear-gradient(135deg, rgba(255,70,18,0.10), rgba(255,70,18,0.02));
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

.timeline { border-left: 2px solid var(--panel-border); padding-left: 24px; margin: 24px 0; }
.timeline .tl { position: relative; margin-bottom: 22px; }
.timeline .tl::before {
  content: ""; position: absolute; left: -31px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--bg);
}
.timeline .tl .date { font-family: var(--font-head); color: var(--orange); font-size: 1.1rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--panel-border);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--text); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-about p { color: var(--muted); font-size: 0.92rem; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--panel-border); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 0.85rem;
}
.footer-bottom .tech { font-family: var(--font-head); letter-spacing: 2px; }

/* ============ MOBILE ============ */
.mobile-overlay {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999;
  background: rgba(8,8,9,0.98);
  padding: 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s;
}
.mobile-overlay.open { transform: translateX(0); }
.mobile-overlay .m-link {
  display: block; font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase;
  color: var(--text); padding: 14px 6px; border-bottom: 1px solid var(--bg-3);
}
.mobile-overlay .m-link:hover { color: var(--orange); }
.mobile-overlay .m-sub { padding-left: 16px; }
.mobile-overlay .m-sub a { display: block; color: var(--muted); padding: 8px 6px; font-size: 1rem; }
.mobile-overlay .m-sub a:hover { color: var(--orange); }
.mobile-overlay .m-group-title { color: var(--orange); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 6px; font-size: 0.85rem; }
.mobile-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.mobile-social .social-ico { background: var(--bg-2); color: var(--text); width: 44px; height: 44px; }

@media (max-width: 1080px) {
  .feeds { grid-template-columns: 1fr; }
  .feed-card { min-height: 460px; }
}
@media (max-width: 980px) {
  .main-nav, .header-social { display: none; }
  .burger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .brand img, .brand svg { width: 116px; }
  .game-meta { gap: 14px; }
}
