/* Thème médiéval sombre : pierre / bois / doré */
html { scroll-behavior: smooth; }
body {
  background-color: #100e0c;
  background-image:
    radial-gradient(ellipse at top, rgba(212, 168, 74, .07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 100% 900px, 48px 48px, 48px 48px;
  background-repeat: no-repeat, repeat, repeat;
  color: #e7dfd3;
  font-family: 'Inter', system-ui, sans-serif;
}
.font-medieval { font-family: 'Cinzel', serif; }

.gold-text {
  background: linear-gradient(180deg, #f8e3a3 0%, #d4a84a 55%, #9c7424 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Logo pixel art 64x64 : agrandi sans flou */
.pixel { image-rendering: pixelated; }
.float { animation: float 5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
@keyframes float { 50% { transform: translateY(-10px); } }

.card {
  background: linear-gradient(180deg, #221e1a, #191613);
  border: 1px solid rgba(212, 168, 74, .16);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 12px 30px rgba(0, 0, 0, .35);
}
.card-hover { transition: transform .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(212, 168, 74, .4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 10px; font-weight: 600;
  transition: filter .15s, transform .15s; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-gold { background: linear-gradient(180deg, #e6bd5f, #b8862d); color: #1d1408; border: 1px solid #f0cf7a66; box-shadow: 0 4px 18px rgba(212, 168, 74, .25); }
.btn-wood { background: linear-gradient(180deg, #4d3522, #33241a); color: #f1e4cc; border: 1px solid #6b4a2b; }
.btn-discord { background: #5865f2; color: #fff; }

.nav-link { padding: .5rem .8rem; border-radius: 8px; color: #c9bfb2; font-weight: 500; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-link.is-active { color: #f0cf7a; }

.field {
  width: 100%; padding: .75rem 1rem; border-radius: 10px;
  background: #12100e; border: 1px solid #3a332c; color: #fff;
}
.field:focus { outline: none; border-color: #d4a84a; box-shadow: 0 0 0 3px rgba(212, 168, 74, .2); }

/* Séparateur orné ◆ */
.ornament { display: flex; align-items: center; gap: 1rem; color: #d4a84a; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 168, 74, .5), transparent); }

/* Pastille statut serveur */
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #a33; }
.status.is-on .dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: #221e1a; border: 1px solid #d4a84a; color: #f0cf7a;
  padding: .75rem 1.25rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px);
}

.prose-b2b h2 { font-family: 'Cinzel', serif; font-size: 1.5rem; color: #f0cf7a; margin-bottom: .75rem; }
.prose-b2b h3 { font-weight: 600; color: #fff; margin: 1.25rem 0 .4rem; }
.prose-b2b p, .prose-b2b li { color: #c9bfb2; line-height: 1.7; }
.prose-b2b ul { list-style: none; padding: 0; }
.prose-b2b li { padding-left: 1.2rem; position: relative; margin: .3rem 0; }
.prose-b2b li::before { content: '◆'; position: absolute; left: 0; color: #d4a84a; font-size: .6rem; top: .45rem; }
.prose-b2b code { background: #12100e; border: 1px solid #3a332c; padding: .1rem .4rem; border-radius: 6px; color: #f0cf7a; font-size: .9em; }
section[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
