/* ═══════════════════════════════════════════════
   Islands Games — style.css
   CSS commun à toutes les pages
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --ocean-deep: #0a2e42;
  --ocean-mid: #0d5c7a;
  --ocean-blue: #1270a0;
  --teal: #008080;
  --teal-light: #10b0b0;
  --turquoise: #40e0d0;
  --turquoise-light: #90f0e0;
  --sand: #f8f5ef;
  --sand-warm: #f0ead8;
  --white: #ffffff;
  --text-dark: #0a2232;
  --text-mid: #2a6080;
  --text-light: rgba(255,255,255,0.75);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  color: var(--text-dark);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 86px;
  background: rgba(10, 40, 62, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(64,224,208,0.18);
}
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.88); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.03em; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--turquoise); }
.nav-btn {
  background: var(--turquoise) !important;
  color: var(--ocean-deep) !important;
  padding: 10px 24px !important; border-radius: 6px !important;
  font-weight: 700 !important; font-size: 14px !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s, transform 0.1s !important;
}
.nav-btn:hover {
  background: var(--turquoise-light) !important;
  transform: translateY(-1px);
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.88); border-radius: 2px; transition: all 0.25s;
}
.nav-burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger-open span:nth-child(2) { opacity: 0; }
.nav-burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (pages internes) ── */
.page-hero {
  background: linear-gradient(180deg, #0d3352 0%, #135d8a 50%, #1888b8 100%);
  padding: calc(86px + 60px) 20px 70px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(64,224,208,0.18) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.3;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-block;
  background: rgba(64,224,208,0.12);
  border: 1px solid rgba(64,224,208,0.3);
  color: var(--turquoise); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 4px; margin-bottom: 20px;
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px; color: rgba(255,255,255,0.75);
  font-weight: 500; max-width: 480px; margin: 0 auto; line-height: 1.65;
}

/* ── SECTIONS ── */
.section { padding: 80px 20px; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px; text-align: center;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; color: var(--text-dark);
  letter-spacing: -0.02em; margin-bottom: 10px; text-align: center;
}
.section-sub {
  font-size: 15px; color: var(--text-mid);
  font-weight: 500; margin-bottom: 40px; line-height: 1.65; text-align: center;
}

/* ── GAME CARDS ── */
.games-grid {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
}
.game-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 12px rgba(10,46,66,0.08), 0 8px 32px rgba(10,46,66,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer; text-decoration: none; display: block;
  border: 1px solid rgba(10,46,66,0.06);
}
.game-card:hover { transform: translateY(-5px); box-shadow: 0 12px 48px rgba(10,46,66,0.14); }
.game-thumb {
  width: 100%; height: 185px;
  background: linear-gradient(135deg, #071d2e 0%, #1270a0 50%, #40e0d0 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.game-thumb canvas { display: block; width: 100%; height: 100%; }
.game-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,29,46,0.4); opacity: 0; transition: opacity 0.2s;
}
.game-card:hover .game-thumb-overlay { opacity: 1; }
.play-icon {
  width: 56px; height: 56px; background: var(--turquoise);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ocean-deep);
  box-shadow: 0 6px 24px rgba(64,224,208,0.5);
}
.game-info { padding: 20px 22px 22px; }
.game-badge {
  display: inline-block; background: rgba(0,128,128,0.08);
  color: var(--teal); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.game-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; color: var(--text-dark);
  margin-bottom: 8px; font-weight: 700; letter-spacing: -0.01em;
}
.game-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; font-weight: 500; }
.btn-play-game {
  width: 100%; background: var(--ocean-deep); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  padding: 11px; border-radius: 6px; border: none; cursor: pointer;
  letter-spacing: 0.06em; transition: background 0.2s;
}
.btn-play-game:hover { background: var(--ocean-mid); }

/* ── MORE COMING ── */
.more-coming {
  text-align: center; margin-top: 48px; padding: 28px 40px;
  background: rgba(0,128,128,0.06); border-radius: 10px;
  max-width: 480px; margin-left: auto; margin-right: auto;
  border: 1px solid rgba(64,224,208,0.2);
}
.more-coming p { font-size: 14px; color: var(--text-mid); font-weight: 500; }

/* ── EXPLORE CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(10,46,66,0.07), 0 6px 28px rgba(10,46,66,0.05);
  border: 1px solid rgba(10,46,66,0.07);
  text-decoration: none; display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(10,46,66,0.12); }
.card-thumb {
  height: 170px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #071d2e, #1270a0, #40e0d0);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,29,46,0.35); opacity: 0; transition: opacity 0.2s;
}
.card:hover .card-thumb-overlay { opacity: 1; }
.card-play-icon {
  width: 52px; height: 52px; background: var(--turquoise);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ocean-deep);
  box-shadow: 0 4px 20px rgba(64,224,208,0.5);
}
.card-body { padding: 20px 22px 22px; }
.card-badge {
  display: inline-block; background: rgba(0,128,128,0.08);
  color: var(--teal); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em;
}
.card-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.card-btn {
  width: 100%; background: var(--ocean-deep); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  padding: 10px; border-radius: 6px; border: none; cursor: pointer;
  letter-spacing: 0.06em; transition: background 0.2s; text-align: center;
  display: block; text-decoration: none;
}
.card-btn:hover { background: var(--ocean-mid); }
.card-soon { opacity: 0.55; pointer-events: none; }
.card-soon .card-btn { background: rgba(10,46,66,0.3); }

/* ── BACK LINK ── */
.back-link {
  display: inline-block; margin-top: 24px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.back-link:hover { color: var(--turquoise); }

/* ── FOOTER ── */
footer {
  background: #0c2f48; padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(64,224,208,0.1);
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--turquoise); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 0 18px; height: 76px; }
  .nav-logo img { height: 50px; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(10, 40, 62, 0.97);
    border-bottom: 1px solid rgba(64,224,208,0.15); z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a {
    padding: 14px 24px; font-size: 15px; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
  }
  .nav-btn { margin: 12px 24px 16px !important; display: block !important; text-align: center; }
  .page-hero { padding-top: calc(76px + 48px); }
  footer { padding: 28px 20px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
