/* Hero UI–inspired: variables & base */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #f59e0b;
  --bg: #0f0f12;
  --bg-card: #18181c;
  --bg-card-hover: #1f1f24;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.25);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--secondary);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Nav – Hero-style */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,18,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-card);
}

/* CTA button – style unifié sur toutes les pages */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus {
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover,
a.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, var(--primary) 100%);
}
.btn-primary:active,
a.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}
.btn-outline:active {
  transform: scale(0.98);
}

/* Hero section */
.hero {
  padding: 1.2rem 0 1.6rem;
  text-align: center;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.hero-text {
  flex: 1 1 320px;
  max-width: 560px;
}

.hero-text .btn {
  margin-top: 0.25rem;
}

.hero-image {
  flex: 0 1 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  color: var(--text-muted);
  max-width: 100%;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

/* Cards – Hero-style */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,58,237,.3);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* Grid – centré sur toutes les pages (index, offre, jeux, guide, contact) */
.grid {
  display: grid;
  gap: 0.6rem;
  justify-content: center;
  justify-items: stretch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 920px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  max-width: 960px;
}

/* Sections – contenu centré au milieu de la page */
.section {
  padding: 1.2rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section .container {
  flex: 0 1 auto;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section .container > .grid {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.section .container > .grid.grid-3 {
  max-width: 960px;
}
.section .container > .section-title {
  text-align: center;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-align: center;
  width: 100%;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  list-style: none;
}
.footer-links a { color: var(--text-muted); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .hero { padding: 0.8rem 0 1.2rem; }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-image { width: 100%; max-width: 400px; margin: 0 auto; }
  .section { padding: 0.8rem 0; }
}

/* Page header – centré comme les sections */
.page-header {
  padding: 0.8rem 0 0.6rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-header .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.2rem;
}
.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Content block */
.content-block {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.8rem;
  box-sizing: border-box;
}
.content-block h2 {
  font-size: 1.35rem;
  margin: 0.6rem 0 0.3rem;
}
.content-block p {
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.content-block ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-muted);
}
.content-block ul li { margin-bottom: 0.35rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.content-block .table-wrap { max-width: 100%; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}
tr:hover td { background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: none; }
@media (max-width: 768px) {
  th, td { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0.8rem 0;
}

.cta-strip .btn {
  margin-top: 0.5rem;
}
