/* Wayback CF Template — style.css */
:root {
  --accent: #b8862e;
  --accent-dark: #a6741c;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --header-bg: #1a1a2e;
  --header-text: #ffffff;
  --nav-active-bg: var(--accent);
  --nav-hover-bg: rgba(255,255,255,0.1);
  --footer-bg: #1a1a2e;
  --footer-text: #9ca3af;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo-accent { color: var(--accent); }

/* ── Nav desktop ── */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-desktop a, .nav-desktop span {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-desktop a:hover { background: var(--nav-hover-bg); color: #fff; }
.nav-desktop a.active { background: var(--accent); color: #fff; }

/* ── Mega menu (details/summary natif, aucun JS requis pour ouvrir/fermer) ── */
.mega-menu { position: relative; }
.mega-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  list-style: none;
  color: rgba(255,255,255,0.8);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.mega-menu-trigger::-webkit-details-marker { display: none; }
.mega-menu-trigger::marker { content: ''; }
.mega-menu-trigger::after {
  content: '▾';
  font-size: 0.7em;
  margin-left: 0.1rem;
  transition: transform 0.15s;
}
.mega-menu[open] .mega-menu-trigger::after { transform: rotate(180deg); }
.mega-menu-trigger:hover, .mega-menu-trigger.active { background: var(--nav-hover-bg); color: #fff; }
.mega-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  gap: 2.5rem;
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  padding: 1.75rem;
  min-width: 600px;
  z-index: 200;
}
.mega-menu-col { display: flex; flex-direction: column; gap: 0.5rem; min-width: 170px; }
.mega-menu-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.mega-menu-col a { color: var(--text); text-decoration: none; font-size: 0.96rem; padding: 0.15rem 0; }
.mega-menu-col a:hover { color: var(--accent); }
.mega-menu-col-all { justify-content: flex-end; border-left: 1px solid var(--border); padding-left: 1.75rem; }
.mega-menu-viewall { color: var(--accent) !important; font-weight: 600; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ── Nav mobile ── */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.85rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--accent); }

/* ── Container ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Main content ── */
main { min-height: 60vh; }

/* ── Page header ── */
.page-header {
  background: linear-gradient(135deg, var(--header-bg) 0%, #2d2d5e 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-header .meta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Page body ── */
.page-body {
  padding: 2.5rem 1.5rem;
}

.page-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}

.page-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.page-body p {
  margin-bottom: 1rem;
  color: var(--text);
}

.page-body ul, .page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-body li { margin-bottom: 0.4rem; }

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.page-body table th {
  background: var(--header-bg);
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
}

.page-body table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.page-body table tr:nth-child(even) td { background: var(--bg-alt); }

/* ── Images ── */
.page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

/* ── CTA block ── */
.cta-block {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
}

.cta-block p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.9);
}

.btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ── Highlight callout (maillage inter-pages) ── */
.highlight-callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
}
.highlight-callout p { margin: 0; }
.highlight-callout a { color: var(--accent); font-weight: 600; }

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
}

.site-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .page-header { padding: 2rem 1rem; }
  .page-body { padding: 1.5rem 1rem; }
  .cta-block { padding: 1.5rem 1rem; }

  /* Mega menu en accordeon inline (pas d'overlay) dans le nav mobile */
  .nav-mobile .mega-menu-trigger {
    color: rgba(255,255,255,0.85);
    padding: 0.85rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-mobile .mega-menu-panel {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    color: inherit;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 0 0.75rem 1rem;
    min-width: 0;
  }
  .nav-mobile .mega-menu-col-all { border-left: none; padding-left: 0; }
  .nav-mobile .mega-menu-col h4 { color: rgba(255,255,255,0.4); }
  .nav-mobile .mega-menu-col a { color: rgba(255,255,255,0.75); padding: 0.3rem 0; }
}


/* ── App hero (Glory of Rome) ── */
.app-hero { display: flex; align-items: center; gap: 2.5rem; padding: 1.5rem 0 2.5rem; flex-wrap: wrap; }
.app-hero-text { flex: 1 1 360px; min-width: 280px; }
.app-hero-badge { display: inline-block; background: var(--bg-alt); color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.app-hero-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.9rem; color: var(--text); border-bottom: none; }
.app-hero-sub { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; max-width: 520px; }
.app-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.store-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--header-bg); color: #fff; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.15s; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn-icon { font-size: 1.4rem; }
.store-btn-small { display: block; font-size: 0.68rem; opacity: 0.75; line-height: 1; }
.store-btn-big { display: block; font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.store-btn-web { background: var(--accent); }
.app-hero-note { font-size: 0.82rem; color: var(--text-muted); max-width: 520px; }
.app-hero-mockup { flex: 0 0 auto; display: flex; justify-content: center; width: 100%; max-width: 230px; margin: 0 auto; }
.phone-frame { width: 230px; height: 460px; background: var(--header-bg); border-radius: 34px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.phone-screen { height: 100%; background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; color: #fff; }
.phone-topbar { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 700; padding: 0.9rem 0.9rem 0.6rem; background: rgba(0,0,0,0.15); }
.phone-city { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.9rem; align-content: start; }
.tile { background: rgba(255,255,255,0.15); border-radius: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.phone-bottombar { display: flex; justify-content: space-around; font-size: 0.7rem; font-weight: 600; padding: 0.8rem; background: rgba(0,0,0,0.2); }
/* ── Comparatif jeux ── */
.game-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.game-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.game-card-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.game-card-icon { font-size: 2rem; }
.game-card-head h3 { font-size: 1.15rem; margin: 0; }
.game-card-dev { font-size: 0.78rem; color: var(--text-muted); }
.game-card-features { padding-left: 1.1rem; margin-bottom: 1.1rem; font-size: 0.92rem; }
.game-card-features li { margin-bottom: 0.35rem; }
.game-card-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.game-card-links a { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; border: 1.5px solid var(--accent); padding: 0.4rem 0.7rem; border-radius: 8px; }
.game-card-links a:hover { background: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .app-hero { flex-direction: column; text-align: center; }
  .app-hero-sub, .app-hero-note { max-width: 100%; margin-left: auto; margin-right: auto; }
  .app-hero-ctas { justify-content: center; }
  .phone-frame { width: 190px; height: 380px; }
}
