/* ============================================================
   SMP Collège — feuille de style
   Design : sombre, néon doux, cartes en verre, accents Minecraft
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Silkscreen:wght@400;700&display=swap');

:root {
  --bg: #060a10;
  --bg-2: #0a101a;
  --bg-3: #0e1622;
  --panel: rgba(15, 24, 36, 0.74);
  --panel-solid: #101a28;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e8eef7;
  --muted: #94a5ba;
  --muted-2: #6d7f95;
  --green: #3ddc97;
  --green-2: #22c55e;
  --green-dark: #0d3b2a;
  --blue: #38bdf8;
  --blue-2: #2563eb;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --red: #fb7185;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Silkscreen', ui-monospace, 'Cascadia Code', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(900px 520px at 8% 4%, rgba(61, 220, 151, 0.1), transparent 62%),
    radial-gradient(800px 600px at 50% 110%, rgba(167, 139, 250, 0.08), transparent 60%),
    var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(61, 220, 151, 0.28);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--pixel);
  font-size: 0.78em;
  letter-spacing: 0.02em;
  color: #b6f5d8;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.16);
  border-radius: 7px;
  padding: 0.22em 0.45em;
  white-space: nowrap;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #04120c;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.config-banner {
  position: relative;
  z-index: 90;
  margin-top: 14px;
  padding: 11px 15px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.07);
  color: #e8d7aa;
  font-size: 0.8rem;
  line-height: 1.5;
}

.config-banner strong {
  color: var(--amber);
}

/* ------------------------------------------------------------
   Fond décoratif
   ------------------------------------------------------------ */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 80%);
}

.bg-orb {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.bg-orb--green {
  width: 440px;
  height: 440px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.28), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-orb--blue {
  width: 520px;
  height: 520px;
  top: 240px;
  right: -180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, 40px, 0) scale(1.12); }
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(6, 10, 16, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 10, 16, 0.88);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-cube {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 16px rgba(61, 220, 151, 0.28));
}

.brand-cube svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--pixel);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 24, 36, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.status-pill[data-state='online'] {
  color: #9df3c9;
  border-color: rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.08);
}

.status-pill[data-state='offline'] {
  color: #ffc2cb;
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4);
  flex-shrink: 0;
}

[data-state='online'] .status-dot,
.live-status.is-online .status-dot {
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}

[data-state='offline'] .status-dot,
.live-status.is-offline .status-dot {
  background: var(--red);
}

[data-state='loading'] .status-dot {
  animation: blink 1.1s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(15, 24, 36, 0.75);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ------------------------------------------------------------
   Boutons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), #2bbf83);
  color: #05140d;
  box-shadow: 0 12px 30px -12px rgba(61, 220, 151, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px -14px rgba(61, 220, 151, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn--small {
  padding: 9px 14px;
  font-size: 0.82rem;
  border-radius: 10px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
  padding: 74px 0 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.22);
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.1), rgba(56, 189, 248, 0.08));
  color: #b9f8dc;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.pill-ea {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.18);
  border: 1px solid rgba(61, 220, 151, 0.36);
  color: #a9f9d4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pill-sep {
  color: var(--muted-2);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(100deg, #8ff5c5 0%, var(--green) 38%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 56ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.ip-grid {
  display: grid;
  gap: 10px;
  max-width: 540px;
}

.ip-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(16, 26, 40, 0.9), rgba(12, 20, 32, 0.72));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ip-card:hover {
  border-color: rgba(61, 220, 151, 0.32);
  transform: translateY(-1px);
}

.ip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(61, 220, 151, 0.1);
  color: var(--green);
  flex-shrink: 0;
}

.ip-icon--blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--blue);
}

.ip-icon svg {
  width: 20px;
  height: 20px;
}

.ip-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ip-label {
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.ip-body code {
  margin-top: 3px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn:hover,
.copy-btn.is-copied {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.ok-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ------------------------------------------------------------
   Démo HUD
   ------------------------------------------------------------ */

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.demo-window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0a111b;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .demo-window {
  transform: rotateY(-1deg) rotateX(0deg);
}

.demo-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 26, 40, 0.8);
}

.demo-dots {
  display: flex;
  gap: 5px;
}

.demo-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
}

.demo-dots i:first-child { background: #fb7185; }
.demo-dots i:nth-child(2) { background: #fbbf24; }
.demo-dots i:nth-child(3) { background: #3ddc97; }

.demo-title {
  font-family: var(--pixel);
  font-size: 0.62rem;
  color: var(--muted);
}

.demo-live {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  border: 1px solid rgba(61, 220, 151, 0.3);
  background: rgba(61, 220, 151, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.demo-scene {
  position: relative;
  height: 430px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0c2036 0%, #102c44 44%, #173a3c 62%, #14251f 100%);
}

.demo-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at 72% 20%, rgba(56, 189, 248, 0.16), transparent 42%);
}

.demo-hills {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 26%;
  height: 38%;
  background:
    linear-gradient(160deg, transparent 46%, #13352f 47% 58%, transparent 59%),
    linear-gradient(200deg, transparent 40%, #0f2a26 41% 62%, transparent 63%),
    linear-gradient(170deg, transparent 54%, #1c4a3c 55% 70%, transparent 71%);
  filter: blur(0.3px);
  opacity: 0.9;
}

.demo-ground {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(0, 0, 0, 0.14) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #2f7a4c 0%, #24623e 26%, #1c4c33 58%, #153a29 100%);
  box-shadow: inset 0 18px 30px -20px rgba(255, 255, 255, 0.12);
}

.tablist {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 196px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(6, 12, 20, 0.66);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -18px #000;
}

.tab-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 6px;
  color: #e9f2fb;
  font-size: 0.68rem;
  font-weight: 600;
}

.tab-row--muted {
  opacity: 0.72;
}

.tag {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  font-size: 0.56rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tag--java {
  background: rgba(61, 220, 151, 0.18);
  color: var(--green);
}

.tag--bedrock {
  background: rgba(56, 189, 248, 0.18);
  color: var(--blue);
}

.tab-ping {
  margin-left: auto;
  color: #9fb3c8;
  font-size: 0.6rem;
  font-family: var(--pixel);
}

.hud {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 176px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(6, 12, 20, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -18px #000;
  font-size: 0.64rem;
}

.hud-title {
  color: #9df3c9;
  font-family: var(--pixel);
  font-size: 0.58rem;
  text-align: center;
  margin-bottom: 7px;
}

.hud-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #c6d5e6;
  padding: 1.5px 0;
  white-space: nowrap;
}

.hud-line b {
  margin-left: auto;
  color: #eaf6ff;
  font-weight: 600;
}

.hud-line .red { color: var(--red); }
.hud-line .gold { color: var(--amber); }
.hud-line .blue { color: var(--blue); }

.hud-line--dim {
  color: #72869c;
  justify-content: center;
  font-family: var(--pixel);
  font-size: 0.52rem;
}

.hud-gap {
  height: 7px;
}

.hotbar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(6, 12, 20, 0.55);
}

.slot {
  width: 25px;
  height: 25px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slot--active {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
}

.slot--head {
  background:
    radial-gradient(circle at 50% 42%, #d9b38c 0 24%, transparent 25%),
    linear-gradient(180deg, #5b3a24 0 36%, #d9b38c 37% 72%, #8d5f3e 73% 100%);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(12, 20, 32, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -22px #000;
  animation: floaty 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.78rem;
}

.float-card small {
  display: block;
  color: var(--muted-2);
  font-size: 0.66rem;
  margin-top: 2px;
}

.float-card--head {
  right: -18px;
  bottom: 78px;
}

.float-card--claim {
  left: -24px;
  bottom: 18px;
  animation-delay: -3s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.claim-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(61, 220, 151, 0.12);
  color: var(--green);
}

.claim-icon svg {
  width: 18px;
  height: 18px;
}

/* Tête pixelisée CSS */
.pixel-head {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #d9b38c;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.pixel-head--large {
  width: 84px;
  height: 84px;
  border-radius: 8px;
}

.ph-hair {
  position: absolute;
  inset: 0 0 auto 0;
  height: 34%;
  background: #5b3a24;
}

.ph-eye {
  position: absolute;
  top: 42%;
  left: 22%;
  width: 18%;
  height: 16%;
  background: #2b2b2b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ph-eye--r {
  left: auto;
  right: 22%;
}

.ph-mouth {
  position: absolute;
  left: 38%;
  bottom: 18%;
  width: 24%;
  height: 8%;
  background: #8d5f3e;
}

.pixel-head--steve .ph-hair { background: #2b1d14; }

/* ------------------------------------------------------------
   Stats
   ------------------------------------------------------------ */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 14px;
  background: rgba(10, 17, 27, 0.86);
  text-align: center;
}

.stat strong {
  font-family: var(--pixel);
  font-size: 1.1rem;
  color: var(--text);
}

.stat strong .plus {
  color: var(--green);
}

.stat span {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  padding: 92px 0 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2,
.split-copy h2,
.link-head h2,
.map-copy h2,
.final-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head p,
.split-copy p,
.link-head p,
.map-copy p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Features
   ------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(61, 220, 151, 0.05), transparent 70%),
    linear-gradient(160deg, rgba(16, 26, 40, 0.82), rgba(10, 17, 27, 0.72));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 220, 151, 0.26);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}

.feature:hover::after {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon--green {
  background: rgba(61, 220, 151, 0.1);
  border-color: rgba(61, 220, 151, 0.18);
  color: var(--green);
}

.feature-icon--amber {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.18);
  color: var(--amber);
}

.feature-icon--blue {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.18);
  color: var(--blue);
}

.feature-icon--violet {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.18);
  color: var(--violet);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-family: var(--pixel);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Rejoindre
   ------------------------------------------------------------ */

.join-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 18px;
  align-items: start;
}

.join-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 26, 40, 0.9), rgba(10, 17, 27, 0.78));
  overflow: hidden;
}

.join-tabs {
  display: flex;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 16, 0.4);
}

.join-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.join-tab svg {
  width: 18px;
  height: 18px;
}

.join-tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}

.join-tab.is-active {
  color: var(--text);
  background: rgba(61, 220, 151, 0.08);
  border-color: rgba(61, 220, 151, 0.22);
  box-shadow: 0 8px 20px -14px rgba(61, 220, 151, 0.5);
}

.join-panel {
  padding: 26px;
}

.join-panel[hidden] {
  display: none;
}

.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: steps;
}

.steps li,
.link-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(61, 220, 151, 0.24);
  background: rgba(61, 220, 151, 0.08);
  color: var(--green);
  font-family: var(--pixel);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.steps strong,
.link-step strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.steps p,
.link-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.join-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 10, 16, 0.42);
}

.join-address span {
  display: block;
  color: var(--muted-2);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.join-address code {
  font-size: 0.78rem;
}

.mini-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

.join-side {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 26, 40, 0.86), rgba(10, 17, 27, 0.76));
}

.side-card--soft {
  background: rgba(15, 24, 36, 0.45);
}

.side-label {
  display: block;
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.live-main {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.live-main strong {
  font-size: 1rem;
}

.live-meta {
  display: grid;
  gap: 9px;
  margin: 0;
}

.live-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.live-meta dt {
  color: var(--muted-2);
  font-size: 0.75rem;
}

.live-meta dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.3);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 4px;
  height: 7px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

/* ------------------------------------------------------------
   Têtes / split
   ------------------------------------------------------------ */

.split-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 300px at 100% 30%, rgba(251, 191, 36, 0.06), transparent 60%),
    linear-gradient(150deg, rgba(16, 26, 40, 0.9), rgba(9, 15, 24, 0.82));
  overflow: hidden;
}

.split-copy .btn {
  margin-top: 22px;
}

.heads-showcase {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.head-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 190px;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(24, 34, 48, 0.95), rgba(12, 19, 30, 0.92));
  box-shadow: 0 30px 60px -30px #000;
  transform: rotate(-5deg) translateX(24px);
  z-index: 2;
}

.head-card--ghost {
  position: absolute;
  transform: rotate(6deg) translateX(90px) translateY(26px) scale(0.88);
  opacity: 0.72;
  z-index: 1;
}

.head-card strong {
  font-size: 0.88rem;
  margin-top: 4px;
}

.head-card small {
  color: var(--muted-2);
  font-size: 0.66rem;
  text-align: center;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.8);
  transform: rotate(45deg);
}

.spark--1 {
  top: 16%;
  right: 10%;
  animation: floaty 5s ease-in-out infinite;
}

.spark--2 {
  bottom: 18%;
  left: 6%;
  width: 5px;
  height: 5px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(61, 220, 151, 0.8);
  animation: floaty 7s ease-in-out infinite reverse;
}

/* ------------------------------------------------------------
   Règles
   ------------------------------------------------------------ */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 12px;
}

.rule,
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 21, 32, 0.72);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rule[open],
.faq[open] {
  border-color: rgba(61, 220, 151, 0.26);
  background: rgba(15, 25, 38, 0.85);
}

.rule summary,
.faq summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.94rem;
  user-select: none;
}

.rule summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}

.rule-num {
  font-family: var(--pixel);
  font-size: 0.63rem;
  color: var(--green);
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.16);
  padding: 5px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.rule-plus {
  position: relative;
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.rule-plus::before,
.rule-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.rule-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.rule[open] .rule-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.rule-body {
  padding: 0 18px 18px 63px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.rule-body p {
  margin: 0;
}

/* ------------------------------------------------------------
   Liaison
   ------------------------------------------------------------ */

.link-panel {
  position: relative;
  padding: 38px;
  border: 1px solid rgba(61, 220, 151, 0.2);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(61, 220, 151, 0.1), transparent 60%),
    radial-gradient(600px 320px at 90% 100%, rgba(56, 189, 248, 0.08), transparent 60%),
    linear-gradient(155deg, rgba(16, 27, 41, 0.94), rgba(8, 14, 22, 0.9));
  overflow: hidden;
}

.link-head {
  max-width: 760px;
}

.sync-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 34px 0;
}

.sync-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 160px;
  padding: 18px;
  border: 1px solid rgba(61, 220, 151, 0.24);
  border-radius: 16px;
  background: rgba(61, 220, 151, 0.06);
}

.sync-device svg {
  width: 28px;
  height: 28px;
  color: var(--green);
  margin-bottom: 4px;
}

.sync-device strong {
  font-size: 0.94rem;
}

.sync-device small {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.sync-device--blue {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.06);
}

.sync-device--blue svg {
  color: var(--blue);
}

.sync-line {
  position: relative;
  flex: 0 1 180px;
  height: 2px;
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.2), var(--green), rgba(56, 189, 248, 0.2));
  border-radius: 2px;
}

.sync-line::before {
  content: '';
  position: absolute;
  inset: -6px 0;
  background: linear-gradient(90deg, transparent, rgba(61, 220, 151, 0.18), transparent);
  filter: blur(6px);
}

.sync-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9f8dc;
  box-shadow: 0 0 14px var(--green);
  transform: translateY(-50%);
  animation: sync 3s linear infinite;
}

@keyframes sync {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.sync-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: #0b1420;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-size: 0.8rem;
}

.link-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 10, 16, 0.35);
}

.link-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.link-hint {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.link-warning {
  margin: 22px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--amber);
  border-radius: 3px 10px 10px 3px;
  background: rgba(251, 191, 36, 0.07);
  color: #d8c9a4;
  font-size: 0.84rem;
  line-height: 1.65;
}

.link-warning strong {
  color: var(--amber);
}

/* ------------------------------------------------------------
   Carte
   ------------------------------------------------------------ */

.map-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(150deg, rgba(16, 26, 40, 0.9), rgba(9, 15, 24, 0.84));
  overflow: hidden;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.map-art {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(61, 220, 151, 0.18);
  border-radius: 18px;
  background: #08111b;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.map-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(61, 220, 151, 0.1), transparent 55%);
}

.map-chip {
  position: absolute;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(6, 10, 16, 0.7);
  backdrop-filter: blur(6px);
  font-family: var(--pixel);
  font-size: 0.52rem;
  color: var(--muted);
}

.map-chip--1 { top: 14px; left: 14px; color: var(--green); }
.map-chip--2 { top: 14px; right: 14px; color: #ff9d8a; }
.map-chip--3 { bottom: 14px; right: 14px; color: var(--violet); }

.map-frame-wrap {
  grid-column: 1 / -1;
  height: 520px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #07101a;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.faq summary {
  justify-content: space-between;
  font-size: 0.92rem;
}

.faq summary span {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq summary span::before,
.faq summary span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   CTA final
   ------------------------------------------------------------ */

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border: 1px solid rgba(61, 220, 151, 0.22);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(500px 220px at 10% 50%, rgba(61, 220, 151, 0.14), transparent 65%),
    linear-gradient(135deg, rgba(16, 30, 42, 0.95), rgba(9, 16, 25, 0.92));
}

.final-cta h2 {
  margin-bottom: 8px;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 14, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding: 46px 0 34px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links h3 {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--muted-2);
  font-size: 0.84rem;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.footer-note {
  color: var(--muted-2);
}

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border: 1px solid rgba(61, 220, 151, 0.32);
  border-radius: 12px;
  background: rgba(10, 20, 16, 0.95);
  color: #b9f8dc;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -20px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------
   Reveal
   ------------------------------------------------------------ */

.reveal {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 54px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-layout {
    grid-template-columns: 1fr;
  }

  .join-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .heads-showcase {
    min-height: 260px;
  }

  .link-steps {
    grid-template-columns: 1fr;
  }

  .map-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 69px;
    left: 20px;
    right: 20px;
    z-index: 120;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(8, 14, 22, 0.99);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .status-pill {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero h1 {
    letter-spacing: -0.035em;
  }

  .demo-window {
    transform: none;
  }

  .float-card--head {
    right: 6px;
    bottom: 54px;
  }

  .float-card--claim {
    left: 6px;
    bottom: 10px;
  }

  .rules-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .rule-body {
    padding-left: 18px;
  }

  .link-panel,
  .split-panel,
  .map-panel,
  .final-cta {
    padding: 24px;
  }

  .sync-visual {
    gap: 12px;
  }

  .sync-device {
    width: 125px;
    padding: 14px;
  }

  .sync-line {
    flex-basis: 70px;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-frame-wrap {
    height: 400px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding: 11px 0;
  }

  .brand-text strong {
    font-size: 0.8rem;
  }

  .brand-text small {
    font-size: 0.6rem;
  }

  .brand-cube {
    width: 32px;
    height: 32px;
  }

  .header-actions .btn--small {
    display: none;
  }

  .hero {
    padding: 42px 0 26px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .ip-card {
    padding: 10px;
  }

  .ip-body code {
    font-size: 0.72rem;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .join-panel {
    padding: 18px;
  }

  .join-side {
    grid-template-columns: 1fr;
  }

  .join-address {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-scene {
    height: 370px;
  }

  .tablist {
    width: min(46%, 162px);
    left: 10px;
    top: 10px;
    padding: 6px;
  }

  .hud {
    width: min(44%, 152px);
    right: 10px;
    top: 10px;
    padding: 8px 9px;
    font-size: 0.54rem;
  }

  .hud-title {
    font-size: 0.48rem;
  }

  .float-card {
    padding: 7px 9px;
    gap: 8px;
  }

  .float-card--head {
    right: 8px;
    bottom: 56px;
  }

  .float-card--claim {
    left: 8px;
    bottom: 56px;
  }

  .float-card strong {
    font-size: 0.68rem;
  }

  .float-card small {
    font-size: 0.58rem;
  }

  .section {
    padding-top: 68px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .split-panel {
    gap: 20px;
  }

  .heads-showcase {
    min-height: 240px;
    transform: scale(0.92);
  }

  .head-card {
    transform: rotate(-5deg) translateX(-18px);
  }

  .head-card--ghost {
    transform: rotate(6deg) translateX(46px) translateY(24px) scale(0.86);
  }

  .link-panel {
    padding: 20px;
  }

  .sync-visual {
    flex-direction: column;
  }

  .sync-line {
    width: 2px;
    height: 60px;
    flex: 0 0 60px;
    background: linear-gradient(180deg, rgba(61, 220, 151, 0.2), var(--green), rgba(56, 189, 248, 0.2));
  }

  .sync-dot {
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    animation: sync-y 3s linear infinite;
  }

  @keyframes sync-y {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ------------------------------------------------------------
   Accessibilité / mouvements réduits
   ------------------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
