:root {
  --bg: #050814;
  --bg-alt: #0b1020;
  --card: #111729;
  --accent: #c74141;
  --accent-soft: rgba(192, 107, 255, 0.15);
  --text: #f5f7ff;
  --muted: #d0c9ff;
  --border: #1f2940;
  --danger: #a81212;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1080px;
  --transition: 0.2s ease-out;
  --font-main: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
    scroll-behavior: smooth;

}

/* Fond checker + voile sombre */

body {
  background:
    linear-gradient(180deg, rgba(5, 8, 20, 0.92), rgba(5, 8, 20, 0.92)),
    url("assets/images/checker-purple.png");
  background-size: 180px 180px;
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.96),
    rgba(5, 8, 20, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter:
    drop-shadow(4px 4px 0 rgba(0,0,0,0.4))
    drop-shadow(0 0 0 rgba(0,0,0,0));
}

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

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.brand-role {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  padding: 0.25rem 0;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--danger));
  border-radius: 999px;
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 2px solid rgba(192, 107, 255, 0.8);
  background: radial-gradient(circle at top left, rgba(192, 107, 255, 0.2), transparent);
  color: var(--text) !important;
  font-weight: 500;
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 23, 41, 0.9);
  border: 2px solid rgba(255, 107, 107, 0.6);
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5bffb0;
  box-shadow: 0 0 0 4px rgba(91, 255, 176, 0.18);
}

.hero-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 16, 32, 0.9);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Boutons cartoon */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  border: 3px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--danger));
}

.btn-ghost {
  background: rgba(11, 16, 32, 0.9);
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.45);
}

/* Hero meta */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at top, #3a2470, #0a0f21);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.hero-card-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero-card-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-card-game-title {
  font-size: 1rem;
  font-weight: 600;
}

.hero-card-game-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-card-preview {
  height: 150px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 0, var(--accent), transparent 55%),
    radial-gradient(circle at 80% 100%, var(--danger), transparent 55%),
    #050814;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      210deg,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    );
  background-size: 40px 40px;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 2.5rem 0;
}

.section::before {
  content: "";
  display: block;
  height: 40px;
  background: url("assets/images/checker-purple.png") repeat;
  opacity: 0.25;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.section-title {
  font-size: 1.6rem;
  margin: 0.2rem 0 0.3rem;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out;
}

.card-small:hover {
  transform: translateY(-6px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.card-title {
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 1px;
}

.card-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-list li {
  margin-bottom: 0.25rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.card-actions a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
}

.card-actions a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.skill-block-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-text {
  font-size: 0.95rem;
  color: var(--muted);
}

.about-text p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.about-card {
  margin:0;
  padding:0;
  overflow: hidden
}

.about-card img{
  flex-shrink: 0;
    min-width: 100%;
    min-height: 100%
}

/* Contact */

.contact-layout {
  max-width: 640px;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 3px solid rgba(192, 107, 255, 0.9);
  background: radial-gradient(circle at top left, rgba(192, 107, 255, 0.25), transparent);
  font-size: 0.9rem;
}

/* Steam images */

.game-header-image {
  width: 100%;
  border-radius: 16px;
  margin: 1rem 0;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.45);
}

/* YouTube trailers */

.youtube-trailer {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.2rem 0;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.45);
}

.youtube-trailer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page-specific */

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 800px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav {
    display: none;
  }

  .hero-grid,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }
}

h1, h2, h3, .brand-name, .section-title, .card-title, .page-title, .hero-title, .skill-block-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-video {
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.45);
  height: 260px;
  background: #000;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}