/* Billibob Games — DA « billibob le chien » : chaleureux, rond, crème + chocolat. */

:root {
  /* Fond & surfaces (crème chaude) */
  --bg:        #f8eedd;
  --bg-2:      #f3e6d2;
  --surface:   #fffbf4;
  --cream:     #f4decc;   /* le crème du logo */

  /* Encre (chocolat du logo) */
  --ink:       #2b2116;
  --ink-soft:  #6f5e49;
  --ink-faint: #a08e76;

  /* Accents du logo */
  --caramel:      #d89c55;
  --caramel-deep: #bd7f37;
  --coral:        #e36f5d;
  --coral-deep:   #cf5340;

  --white-warm: #fff8ef;
  --line:   rgba(43,33,22,0.10);
  --line-2: rgba(43,33,22,0.16);
  --shadow:   0 14px 34px -16px rgba(43,33,22,0.40);
  --shadow-sm:0 6px 16px -10px rgba(43,33,22,0.35);

  --maxw: 1040px;
  --radius: 26px;

  /* Empreinte de patte (motif décoratif), couleur via currentColor */
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%232b2116'%3E%3Cellipse cx='32' cy='44' rx='16' ry='13'/%3E%3Cellipse cx='13' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='51' cy='28' rx='6.5' ry='8.5'/%3E%3Cellipse cx='23' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='41' cy='16' rx='6' ry='8'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Taches douces caramel / corail + grain chaud en fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(680px 460px at 84% -6%, rgba(216,156,85,0.20), transparent 62%),
    radial-gradient(620px 460px at 8% 4%, rgba(227,111,93,0.12), transparent 60%),
    radial-gradient(900px 600px at 50% 116%, rgba(216,156,85,0.16), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--coral-deep); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

h1, h2, h3, .display { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; font-weight: 800; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Rangée d'empreintes décorative */
.paws {
  height: 26px;
  margin: 0.5rem auto 0;
  background-image: var(--paw);
  background-repeat: repeat-x;
  background-size: 26px 26px;
  opacity: 0.16;
  width: min(260px, 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(2rem, 6vh, 3.5rem);
  text-align: center;
}
.hero-logo {
  width: min(440px, 78vw);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(43,33,22,0.14));
}
.tagline {
  max-width: 30ch;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.6vw, 1.32rem);
  font-weight: 700;
}
.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.7rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.98rem;
}
.hero-contact:hover { text-decoration: none; border-color: var(--caramel); }
.hero-contact .paw-ico { width: 1.1em; height: 1.1em; }

/* ───────────────────────── Cartes jeux ───────────────────────── */
.section-label {
  text-align: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin: 1.5rem 0 1.2rem;
}
.games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  padding-bottom: 3.5rem;
}
.game {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.7rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.game:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(43,33,22,0.45);
}
.game.tuilo:hover { border-color: var(--caramel); }
.game.lumira:hover { border-color: var(--coral); }

/* bande d'accent en haut de carte */
.game::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.game.tuilo::before { background: linear-gradient(90deg, var(--caramel), #67d98a); }
.game.lumira::before { background: linear-gradient(90deg, var(--coral), #5fb8ff); }

.game-emblem {
  width: 86px; height: 86px;
  border-radius: 22px;
  margin-bottom: 1.3rem;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.game-title { margin: 0; font-size: 2rem; line-height: 1; color: var(--ink); }
.game-pitch { margin: 0.7rem 0 0; font-size: 1.04rem; color: var(--ink-soft); font-weight: 600; }
.game-meta {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}
.tag.accent-tuilo { background: rgba(216,156,85,0.22); color: var(--caramel-deep); }
.tag.accent-lumira { background: rgba(227,111,93,0.20); color: var(--coral-deep); }

/* Emblème Tuilo : grille de gemmes dessinée en CSS */
.tuilo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 9px;
  background: linear-gradient(160deg, #1b4233, #0e2a20);
}
.tuilo-grid i { border-radius: 6px; background: rgba(255,255,255,0.06); }
.tuilo-grid i.b { background: linear-gradient(160deg, #5fb8ff, #2070d8); }
.tuilo-grid i.r { background: linear-gradient(160deg, #ff7a86, #e02d42); }
.tuilo-grid i.g { background: linear-gradient(160deg, #67d98a, #239a4f); }
.tuilo-grid i.a { background: linear-gradient(160deg, #ffd05a, #e8951a); }

/* Emblème Lumira : vraie icône cosmique */
.lumira-emblem { background-size: cover; background-position: center; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  border-top: 2px solid var(--line);
  padding: 2.2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-face { width: 34px; height: 34px; border-radius: 10px; }
.site-footer nav { display: flex; gap: 1.3rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* ───────────────────────── Page confidentialité ───────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 2.4rem 1.25rem 5rem; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.legal-home { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 800; }
.legal-home:hover { text-decoration: none; color: var(--caramel-deep); }
.legal-home img { width: 30px; height: 30px; border-radius: 9px; }
.legal-card {
  margin-top: 1.4rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 0.2rem; color: var(--ink); }
.legal .updated { color: var(--ink-faint); font-size: 0.9rem; font-weight: 700; margin: 0 0 1.6rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 0.45rem; color: var(--caramel-deep); }
.legal p, .legal li { color: var(--ink-soft); font-weight: 600; }
.legal strong { color: var(--ink); font-weight: 800; }
.legal a { color: var(--coral-deep); }
.legal .lead {
  background: var(--cream);
  border: 2px solid rgba(216,156,85,0.30);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}
.legal ul { padding-left: 1.2rem; }
.legal .legal-footer {
  margin-top: 2.4rem;
  border-top: 2px solid var(--line);
  padding-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Bascule de langue */
.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  border: 2px solid var(--line-2);
  border-radius: 999px;
  padding: 0.22rem;
  background: var(--surface);
}
.lang-switch button {
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white-warm); }

[data-lang] { display: none; }
[data-lang].is-active { display: block; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 720px) {
  .games { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game { transition: none; }
}
