:root {
  --bg: #0b0b0d;
  --bg-alt: #0f0f12;
  --bg-red: #110809;
  --surface: #141417;
  --surface-2: #1b1b20;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --soft: #c4c4cc;
  --muted: #a1a1aa;
  --dim: #8b8b94;
  --red: #d71920;
  --red-light: #ff4d55;
  --red-bg: rgba(255, 60, 66, 0.14);
  --green: #22c55e;
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Barlow', sans-serif;
  --marker: 'Permanent Marker', cursive;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Pas de défilement horizontal : clip (et non hidden) garde l'en-tête collant */
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--red-light); }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-transform: uppercase; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 14px; }

/* Scrollbar : pastille sombre qui passe au rouge au survol (Chrome, Edge, Safari) ; version simplifiée sur Firefox */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a31; border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::-webkit-scrollbar-thumb:active { background: var(--red-light); }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #2a2a31 var(--bg); scrollbar-width: thin; }
}

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; stroke-width: 1.5; }
.i--xl { width: 34px; height: 34px; stroke-width: 1.5; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.accent { color: var(--red-light); }
.eyebrow { font-family: var(--marker); font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-light); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: filter 0.2s, border-color 0.2s, color 0.2s;
}
.btn--sm { min-height: 44px; min-width: 44px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 18px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.15); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.24); color: var(--text); background: rgba(11, 11, 13, 0.4); }
.btn--ghost:hover { border-color: var(--red-light); color: #fff; }
.btn--link { padding: 0 8px; color: var(--red-light); }
.btn--white { background: #fff; color: #b3141a; }
.btn--white:hover { color: #b3141a; filter: brightness(0.94); }
.btn--outline-white { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline-white:hover { border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, 0.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; transition: padding 0.25s; }
.site-header.is-scrolled .nav { padding-top: 8px; padding-bottom: 8px; }
.brand img { display: block; height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a, .mobile-menu a { color: var(--soft); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 0; }
.nav-links a:hover, .mobile-menu a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; color: var(--text); cursor: pointer; }
.mobile-menu { display: flex; flex-direction: column; padding: 4px var(--gutter) 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1141px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .brand img { height: 40px; }
}

/* Héros */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 780px; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% 45%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.62) 40%, rgba(11, 11, 13, 0) 75%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.4) 0%, rgba(11, 11, 13, 0) 22%, rgba(11, 11, 13, 0) 70%, var(--bg) 100%);
}
.hero-content { padding-top: 120px; padding-bottom: 96px; }
.hero h1 { margin-top: 20px; max-width: 820px; font-weight: 800; font-size: clamp(52px, 8vw, 112px); line-height: 0.9; letter-spacing: 0.005em; }
.lead { margin-top: 28px; max-width: 560px; font-size: 19px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
@media (max-width: 700px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero-bg { height: 600px; object-position: 82% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 11, 13, 0.55) 0, rgba(11, 11, 13, 0.15) 140px, rgba(11, 11, 13, 0.25) 280px, rgba(11, 11, 13, 0.9) 420px, var(--bg) 520px); }
  .hero-content { padding-top: 48px; padding-bottom: 40px; }
  .hero h1 { font-size: 56px; }
  .hero h1::after { content: ''; display: block; height: 180px; }
  .lead { font-size: 16px; }
  .actions .btn { width: 100%; }
}

/* Statut serveur */
.status { margin-top: 48px; display: inline-flex; flex-wrap: wrap; align-items: stretch; background: rgba(20, 20, 23, 0.86); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.status-cell { display: flex; align-items: center; gap: 10px; padding: 14px 22px; font-weight: 600; font-size: 15px; }
.status-cell + .status-cell { border-left: 1px solid var(--line); }
.status-cell[hidden] + .status-cell { border: 0 !important; }
.status-cell strong { font-family: var(--display); font-size: 24px; line-height: 1; }
.status-cell .muted { font-weight: 400; }
.status-connect { padding: 6px 6px 6px 22px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.status.is-online .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--red-bg); border: 0; border-radius: 4px; color: var(--red-light); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 700px) {
  .status { display: flex; }
  .status-cell { flex: 1 1 100%; }
  .status-cell + .status-cell { border-left: 0; border-top: 1px solid var(--line); }
  .status-connect { justify-content: space-between; padding-left: 16px; }
}

/* Sections */
.section { padding: 88px 0 80px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.section--red { background: var(--bg-red); border-bottom: 1px solid rgba(215, 25, 32, 0.25); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 40px; }
.section-head > div { flex: 1 1 520px; max-width: 660px; }
.section-head > p, .section-head > .aside { flex: 1 1 320px; max-width: 440px; color: var(--muted); font-size: 17px; }
.aside { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.h2 { margin-top: 14px; font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 0.95; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > :first-child { flex: 1 1 340px; max-width: 440px; }
.split > :last-child { flex: 2 1 520px; min-width: 0; }
.split .text { margin-top: 24px; color: var(--muted); font-size: 17px; }
.section--red .split .text { color: #b4b4bc; }

/* Grilles et cartes */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(255, 77, 85, 0.5); transform: translateY(-3px); }
.card h3 { font-weight: 700; font-size: 25px; letter-spacing: 0.02em; }
.card p { color: var(--muted); font-size: 15px; }
.card-pad { padding: 28px; }
.card-pad h3 { margin: 22px 0 8px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.icon-badge { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 4px; background: var(--red-bg); color: var(--red-light); }
.ph { position: relative; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--red-light); background: var(--surface-2); }
.ph--tall { height: 190px; }
.ph--photo { overflow: hidden; padding: 0; gap: 0; background: #0d0d0f; }
.ph--photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.ph--photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 10, 12, 0.55), transparent 45%); }
.card:hover .ph--photo img { transform: scale(1.05); }
.ph--phone { justify-content: flex-start; overflow: hidden; background-image: radial-gradient(circle at 50% 100%, rgba(215, 25, 32, 0.35), transparent 70%); }
.ph--phone img { flex: none; width: 150px; height: auto; margin-top: 18px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); transition: transform 0.3s; }
.card:hover .ph--phone img { transform: translateY(-6px); }
.card--dark { background: rgba(255, 255, 255, 0.025); border-color: rgba(215, 25, 32, 0.24); color: var(--red-light); }
.card--dark h3 { margin: 20px 0 8px; color: var(--text); }
.card--dark p { color: #b4b4bc; }

/* Carte */
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.chip[aria-pressed="true"] { background: var(--red-bg); border-color: var(--red-light); color: #fff; }
.chip small { font-family: var(--body); font-size: 12px; opacity: 0.7; }
.map { position: relative; z-index: 0; height: 620px; border: 1px solid var(--line); border-radius: 6px; background: #17406a; font-family: var(--body); }
@media (max-width: 700px) { .map { height: 460px; } }
.blip { position: absolute; left: 50%; top: 50%; width: var(--blip, 22px); height: var(--blip, 22px); transform: translate(-50%, -50%); transition: width 0.15s, height 0.15s; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.blip::before, .blip::after { content: ''; position: absolute; inset: 0; background: var(--img) center / contain no-repeat; }
/* Silhouette à la couleur du blip, puis le sprite en multiplication : le blanc prend la couleur, le contour reste noir */
.blip::before { background: var(--c); -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat; }
.blip::after { mix-blend-mode: multiply; }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip, .map .leaflet-tooltip { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.map .leaflet-tooltip { border-radius: 4px; font-size: 13px; font-weight: 600; }
.map .leaflet-tooltip-top::before { border-top-color: var(--surface); }
.map .leaflet-popup-content { margin: 14px 16px; }
.map .leaflet-popup-content small { color: var(--red-light); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.map .leaflet-popup-content strong { display: block; margin-top: 2px; font-family: var(--display); font-size: 20px; line-height: 1.1; text-transform: uppercase; }
.map .leaflet-popup-content p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.map .leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--line); }
.map .leaflet-bar a:hover { background: var(--surface-2); color: #fff; }

/* Devblog */
.post { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 20px; }
.post time { font-size: 13px; color: var(--dim); }
.post h3 { font-size: 26px; line-height: 1.05; }
.post .link-arrow { margin-top: auto; font-size: 16px; }

/* Page devblog */
.hero--small { min-height: 460px; }
.hero--small .hero-content { padding-top: 88px; padding-bottom: 72px; }
.hero--small h1 { font-size: clamp(48px, 7vw, 88px); }
.nav-links a[aria-current], .mobile-menu a[aria-current] { color: var(--red-light); }
.posts-full { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.post-full { padding: clamp(24px, 4vw, 40px); scroll-margin-top: 96px; }
.post-full:hover { transform: none; }
.post-full time { font-size: 13px; color: var(--dim); }
.post-full h2 { margin: 10px 0 8px; font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1; }
.post-body p { margin-top: 12px; color: var(--soft); font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 20px; }
.gallery:empty { display: none; }
.gallery img { display: block; width: 100%; border-radius: 4px; }
.post-full .link-arrow { margin-top: 16px; font-size: 16px; }
.empty { color: var(--muted); font-size: 17px; }
@media (max-width: 700px) {
  .hero--small .hero-bg { height: 100%; }
  .hero--small::before { background: linear-gradient(180deg, rgba(11, 11, 13, 0.6) 0%, rgba(11, 11, 13, 0.85) 60%, var(--bg) 100%); }
  .hero--small h1 { font-size: 48px; }
  .hero--small h1::after { display: none; }
}

/* Appel à l’action et boutique */
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.cta > * { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 48px); border-radius: 6px; }
.cta-discord { flex: 3 1 520px; background: var(--red); }
.cta-discord h2 { font-weight: 800; font-size: clamp(40px, 5.5vw, 68px); line-height: 0.92; color: #fff; }
.cta-discord .accent { color: #fff; }
.cta-discord p { margin-top: 18px; max-width: 460px; font-size: 18px; color: #fff; }
.cta-shop { flex: 2 1 340px; background: var(--surface); border: 1px solid var(--line); }
.cta-shop .eyebrow { display: flex; align-items: center; gap: 10px; }
.cta-shop h2 { margin-top: 14px; font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 0.95; }
.cta-shop p { margin-top: 16px; color: var(--muted); }
.cta-shop .btn { align-self: flex-start; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: #08080a; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand { flex: 1 1 280px; max-width: 340px; }
.footer-brand img { display: block; height: 72px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-cols div { display: flex; flex-direction: column; gap: 4px; }
.footer-cols p { margin-bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-cols a { display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--dim); font-size: 13px; }
