:root {
  --bg: #0f0f12;
  --surface: #1a1a20;
  --text: #e8e6e3;
  --muted: #8b8685;
  --accent: #7c9c6b;
  --accent-hover: #8faf7c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: relative;
}

/* Raccoon decoration */
.deco {
  position: fixed;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.deco--top-right {
  top: 4.5rem;
  right: 1rem;
}

.deco--bottom-left {
  bottom: 2rem;
  left: 1rem;
}

@media (min-width: 640px) {
  .deco--top-right {
    right: 2rem;
  }
  .deco--bottom-left {
    left: 2rem;
  }
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Smooth scroll et ancres visibles */
html {
  scroll-behavior: smooth;
}

#contact {
  scroll-margin-top: 5rem;
}

#jeux {
  scroll-margin-top: 5rem;
}

#games {
  scroll-margin-top: 5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 15, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: none;
  width: 100%;
  min-height: 3.125rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.logo img {
  display: block;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.header nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-image {
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--surface);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.section p {
  margin: 0;
  color: var(--muted);
}

/* Game cards */
.game-card {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card__icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 22px;
  object-fit: cover;
}

.game-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.game-card__desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-card__link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

.game-card__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Bloc contact avec bouton mail */
.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contact h2 {
  margin: 0;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(124, 156, 107, 0.35);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  background: rgba(124, 156, 107, 0.15);
  color: var(--accent-hover);
  border-color: var(--accent);
}

.contact-email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact {
  padding-bottom: 3rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
  text-align: center;
}

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