:root {
  --bg-gradient-start: #f3f7ff;
  --bg-gradient-end: #fdfcff;
  --primary: #1f9ad6;
  --accent: #f4b400;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border-soft: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-xl: 26px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, var(--bg-gradient-start), var(--bg-gradient-end));
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

.page-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  padding: 6px;
  background: #fcfcfc; /* fond blanc pour se fondre avec le logo */
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}


.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

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

.brand-title {
  font-family: "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI Rounded", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.lang-switch-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 6px 0 10px;
  display: none;
}

.lang-switch-button {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-switch-button.active {
  background: linear-gradient(135deg, #1f9ad6, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.lang-switch-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-block {
  display: none;
  animation: fadeIn 0.22s ease-out;
}

.lang-block.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 26px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  line-height: 1.2;        /* augmente un peu l’espace vertical */
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #06b6d4, #ec4899, #f97316);
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;   /* évite certains bugs de clipping */
  padding: 4px 0;          /* rajoute un léger “air” haut/bas */
}


.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
  color: var(--text-muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.4);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.btn-secondary-link span {
  color: var(--primary);
  font-weight: 500;
}

.hero-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* GAMES SECTION */
.games-section {
  margin-bottom: 38px;
}

.section-heading-row {
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 650;
  margin-bottom: 4px;
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 16px 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.game-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-title {
  font-weight: 640;
  margin-bottom: 2px;
}

.game-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.game-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* gameplay screenshots inside cards */
.game-screenshot {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.game-screenshot img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.game-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.store-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #0ea5e9;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.35);
}

.store-link:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.pill {
  font-size: 0.82rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: var(--text-muted);
}

/* EXTRAS SECTION: daily / stats / trophies */
.extras-section {
  margin-bottom: 36px;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8fafc;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.feature-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.feature-title {
  font-size: 1rem;
  font-weight: 620;
  margin-bottom: 4px;
  color: var(--text-main);
}

/* DEVICES SECTION: iPad / Mac */
.devices-section {
  margin-bottom: 32px;
}

.devices-inner {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  text-align: center;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.devices-image {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.devices-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* CONTACT SECTION */
.contact-section {
  margin-bottom: 34px;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* FOOTER */
footer.site-footer {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Privacy page */
.privacy-main {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.privacy-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 18px 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  font-size: 0.96rem;
  color: var(--text-muted);
}

.privacy-card h1 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

.privacy-card h2 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 1.08rem;
  color: var(--text-main);
}

.privacy-card p {
  margin: 4px 0 8px;
}

.privacy-card ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.privacy-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .games-grid,
  .extras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  header.site-header {
    flex-direction: row;
    align-items: center;
  }

  .brand-title {
    font-size: 1.18rem;
  }

  .hero-text {
    padding: 24px 16px 24px;
  }

  .games-grid,
  .extras-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-wrapper {
    padding-inline: 16px;
  }

  .lang-switch-label {
    display: none;
  }
}
