/**
 * GMod4Life BaseWars — Site public
 * Thème One Piece (tokens dans theme.css)
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
code, kbd {
  font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(244, 185, 66, 0.1);
  border: 1px solid var(--border);
  color: var(--gold2);
}
kbd { color: var(--text); }

.site-bg { z-index: 0; }
.navbar, main, .footer, .site-announce { position: relative; z-index: 1; }

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}
.container--narrow { max-width: 820px; }

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(7, 13, 24, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.brand-name {
  font-family: var(--brand);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--gold2);
  text-shadow: 0 2px 0 #7a5410, 0 4px 14px rgba(0, 0, 0, 0.5);
  line-height: 1;
}
.brand-name em {
  font-style: normal;
  color: var(--accent2);
  text-shadow: 0 2px 0 #6e1119, 0 4px 14px rgba(0, 0, 0, 0.5);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  border: 1px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active,
.nav-dd.has-active > .nav-dd-btn {
  color: var(--gold2);
  background: var(--gold-soft);
  border-color: rgba(244, 185, 66, 0.22);
}
.nav-dd { position: relative; }
.nav-dd-chevron { transition: transform var(--ease); opacity: 0.6; }
.nav-dd.is-open .nav-dd-chevron { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-dd.is-open .nav-dd-menu { display: flex; }
.nav-dd-menu a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text2);
}
.nav-dd-menu a:hover, .nav-dd-menu a.is-active { background: var(--gold-soft); color: var(--gold2); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.online-pill { padding: 6px 12px 6px 9px; font-size: 0.82rem; }
.online-pill-label { color: var(--text2); font-weight: 600; }
.online-pill .dot, .logpose .dot { display: none; }
.nav-panel {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--ease), border-color var(--ease);
}
.nav-panel:hover { background: var(--gold-soft); border-color: var(--gold); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ================= BOUTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent) 60%, #b91c2a);
  color: #fff;
  box-shadow: 0 10px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { box-shadow: 0 14px 34px var(--accent-glow); }
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--gold); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--gold); }
.btn-xl { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-nav-play { padding: 9px 16px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0 120px;
  overflow: hidden;
}
.hero::before {
  /* halo doré central */
  content: '';
  position: absolute;
  left: 50%;
  top: 30%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 185, 66, 0.14), transparent 60%);
  pointer-events: none;
}
.hero-center {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-kicker { font-size: 0.74rem; }
.hero-logo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(244, 185, 66, 0.35);
  animation: op-spin 60s linear infinite;
}
.hero-logo {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(244, 185, 66, 0.25));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.95;
}
.hero-brand-sub { font-size: 0.62em; }
.hero-tagline {
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2);
  font-weight: 500;
}
.hero-live { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.online-pill--hero { font-size: 0.95rem; padding: 10px 18px 10px 14px; }
.online-pill--hero strong { color: var(--gold2); font-size: 1.1rem; }
.hero-live-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-live-chip {
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text2);
}
.hero-live-chip strong { color: var(--text); }
.hero-live-chip.is-full { border-color: var(--accent); color: var(--accent2); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(12, 21, 38, 0.75);
  border: 1px solid var(--border);
  transition: border-color var(--ease);
}
.ip-chip:hover { border-color: var(--gold); }
.ip-chip code { background: transparent; border: none; padding: 0; font-size: 0.9rem; }
.ip-chip span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold2);
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%230c1526' d='M0,45 C240,90 480,0 720,45 C960,90 1200,0 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.9;
}

/* ================= SECTIONS ================= */
.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 42px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.section-title-lg {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub { color: var(--text2); max-width: 60ch; font-size: 1rem; }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.atout {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.atout::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--sea));
  opacity: 0.7;
}
.atout:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.atout-icon { font-size: 2rem; line-height: 1; display: block; margin-bottom: 14px; }
.atout-label {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--brand);
  font-size: 2.6rem;
  color: rgba(244, 185, 66, 0.15);
  line-height: 1;
}
.atout h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.atout p { color: var(--text2); font-size: 0.94rem; }

/* Étapes */
.section--steps { background: linear-gradient(180deg, transparent, rgba(46, 196, 230, 0.04), transparent); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  background: rgba(12, 21, 38, 0.6);
  border: 1px solid var(--border);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--brand);
  font-size: 1.6rem;
  color: #2b1d0e;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 8px 22px var(--gold-glow);
  margin-bottom: 16px;
}
.step h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text2); font-size: 0.93rem; }
.step a { color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; }

/* Actus */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
}
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.news-head h3 { font-family: var(--display); font-size: 1.02rem; font-weight: 800; }
.news-head a { font-size: 0.8rem; font-weight: 700; color: var(--gold2); }
.news-empty { color: var(--text3); font-size: 0.9rem; }
.news-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news-list li { display: flex; gap: 12px; align-items: center; }
.news-date {
  flex-shrink: 0;
  width: 48px;
  padding: 6px 0;
  text-align: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 57, 70, 0.3);
  line-height: 1;
}
.news-date strong { display: block; font-size: 1.15rem; color: var(--accent2); }
.news-date small { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; color: var(--text2); }
.news-body { display: flex; flex-direction: column; min-width: 0; }
.news-body strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-body small { font-size: 0.76rem; color: var(--text2); }
.news-changelog { display: flex; flex-direction: column; gap: 6px; }
.news-changelog strong { font-size: 1.02rem; }
.news-changelog small { color: var(--text3); font-size: 0.8rem; }
.tag-gold {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--gold-soft);
  color: var(--gold2);
  border: 1px solid rgba(244, 185, 66, 0.3);
}
.news-rules { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.news-rules a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
  transition: background var(--ease), color var(--ease);
}
.news-rules a:hover { background: var(--gold-soft); color: var(--text); }

/* Équipage — WANTED */
.section--team { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(244, 185, 66, 0.05), transparent 70%); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}
.team-grid .wanted { transform: rotate(-1deg); transition: transform var(--ease); }
.team-grid .wanted:nth-child(even) { transform: rotate(1.2deg); }
.team-grid .wanted:hover { transform: rotate(0) translateY(-6px) scale(1.02); }

/* Discord */
.discord-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(12, 21, 38, 0.8) 55%);
  border: 1px solid rgba(88, 101, 242, 0.3);
}
.discord-panel-copy .section-head { align-items: flex-start; text-align: left; margin-bottom: 0; }
.discord-panel-copy .section-title-lg { margin: 10px 0 12px; }
.discord-panel-copy .section-sub { margin-bottom: 22px; }
.discord-widget-wrap { display: flex; justify-content: center; }
.discord-widget-wrap iframe { border-radius: 16px; max-width: 100%; box-shadow: var(--shadow); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--brand);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--text2); font-size: 0.93rem; }
.faq-item a { color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; }

/* ================= FOOTER ================= */
.footer {
  padding: 34px 0 26px;
  border-top: 1px solid var(--border);
  background: rgba(5, 9, 16, 0.7);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--text2); font-size: 0.86rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-copy strong { color: var(--text); }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
}
.footer-links a:hover { color: var(--gold2); background: var(--gold-soft); }
.footer-legal { margin-top: 18px; font-size: 0.74rem; color: var(--text3); text-align: center; }
.gh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
}
.gh-pill:hover { border-color: var(--gold); color: var(--gold2); }

/* ================= ANNONCE ================= */
.site-announce {
  position: relative;
  z-index: 51;
  padding: 9px 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  background: rgba(46, 196, 230, 0.1);
}
.site-announce-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-announce-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sea);
  color: #04202a;
}
.site-announce-text { font-weight: 600; }
.site-announce-link { margin-left: auto; font-weight: 700; color: var(--gold2); }
.site-announce--wipe { background: rgba(230, 57, 70, 0.14); }
.site-announce--wipe .site-announce-badge { background: var(--accent); color: #fff; }
.site-announce--update { background: rgba(244, 185, 66, 0.12); }
.site-announce--update .site-announce-badge { background: var(--gold); color: #2b1d0e; }
.site-announce--event { background: rgba(45, 212, 160, 0.12); }
.site-announce--event .site-announce-badge { background: var(--success); color: #062a1f; }

/* ================= TOAST ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--gold);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= PAGES PUBLIQUES (changelog, galerie, events) ================= */
.pub-page { padding: 48px 0 90px; min-height: 70vh; }
.pub-hero { text-align: center; margin-bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.pub-hero h1 {
  font-family: var(--brand);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--gold2);
  text-shadow: 0 2px 0 #9a6a10, 0 4px 0 #6d4a0b, 0 8px 22px rgba(0, 0, 0, 0.55);
}
.pub-lead { color: var(--text2); max-width: 60ch; }
.pub-grid { display: flex; flex-direction: column; gap: 14px; }
.pub-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.pub-meta {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pub-card h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.pub-body { color: var(--text2); font-size: 0.95rem; }
.pub-body p + p { margin-top: 8px; }
.pub-empty {
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--border-hover);
  color: var(--text3);
}

/* Contenu riche (Quill) */
.rich-content h1, .rich-content h2, .rich-content h3 { font-family: var(--display); margin: 14px 0 8px; }
.rich-content ul, .rich-content ol { padding-left: 22px; margin: 8px 0; }
.rich-content a { color: var(--gold2); text-decoration: underline; }
.rich-content img { border-radius: 10px; margin: 10px 0; }
.rich-content blockquote { border-left: 3px solid var(--gold); padding: 8px 14px; margin: 10px 0; background: var(--gold-soft); border-radius: 0 10px 10px 0; }

/* Galerie */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gal-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg2);
  aspect-ratio: 16 / 10;
  transition: transform var(--ease), border-color var(--ease);
}
.gal-item:hover { transform: translateY(-4px) rotate(-0.5deg); border-color: var(--gold); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gal-item:hover img { transform: scale(1.05); }
.gal-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 16, 0.92));
  display: flex;
  flex-direction: column;
}
.gal-cap strong { font-size: 0.92rem; }
.gal-cap span { font-size: 0.74rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .atouts, .steps, .news-grid { grid-template-columns: 1fr 1fr; }
  .discord-panel { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-cluster {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 20px 22px;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .navbar.open .nav-cluster { display: flex; }
  .navbar.open { background: rgba(7, 13, 24, 0.95); }
  .nav-links { flex-direction: column; align-items: stretch; margin-left: 0; }
  .nav-link { justify-content: space-between; }
  .nav-dd-menu { position: static; box-shadow: none; border: none; background: transparent; padding: 0 0 0 14px; }
  .nav-actions { justify-content: space-between; }
}
@media (max-width: 640px) {
  .atouts, .steps, .news-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 100px; }
  .hero-logo-wrap, .hero-logo { width: 120px; height: 120px; }
  .footer-row { flex-direction: column; text-align: center; }
  .online-pill-label { display: none; }
}
