/* Page d'accueil, confidentialité et suppression des données (lot 9). Identité « Émeraude » de l'appli
   (client/TabletopClient/Palette.cs, 2026-10-17) : mêmes couleurs, mêmes arrondis, même police
   (Bricolage Grotesque, servie d'ici : aucune police chargée chez un tiers), mêmes emblèmes de jeux
   (web/img/games, dessinés par l'appli). Refaite le 2026-10-25 : plus vivante (autocollants, ruban
   qui défile, emblèmes qui flottent), sans rien bouger pour qui préfère moins d'animations. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #0F5C49;           /* Palette.Emerald.Background */
  --bg-deep: #0B4B3B;
  --surface: #1A6B57;      /* Surface */
  --surface-alt: #136250;  /* SurfaceAlt */
  --line: rgba(255, 248, 236, 0.13); /* Border */
  --ink: #FFF8EC;          /* Foreground */
  --muted: #C8E4D8;        /* Muted */
  --soft: #E3F1EA;
  --primary: #F6BE4F;      /* Primary (jaune) */
  --on-primary: #3A2604;
  --accent: #F08A6A;       /* Accent (corail) */
  --on-accent: #3B1408;
  --blue: #8DB4E6;         /* CardsFamily */
  --on-blue: #0E2340;
  --sage: #A4DCBD;         /* OriginalFamily */
  --dark-ink: #2A1C06;     /* Ink */
  --link: #FBD98A;
  --radius: 18px;          /* CardRadius */
  --button-radius: 14px;   /* ButtonRadius */
  --shadow: 0 14px 34px rgba(3, 28, 21, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 248, 236, 0.07) 1.2px, transparent 0) 0 0 / 26px 26px,
    radial-gradient(1100px 600px at 80% -160px, rgba(246, 190, 79, 0.2) 0%, transparent 70%),
    radial-gradient(900px 600px at -10% 30%, rgba(240, 138, 106, 0.12) 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; }
strong, b { font-weight: 600; }

a { color: var(--link); text-underline-offset: 0.15em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ───────── Barre du haut ───────── */
.top {
  max-width: 1160px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { border-radius: 11px; box-shadow: 0 4px 12px rgba(3, 28, 21, 0.35); }
.top-right { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }
.langs a:not([aria-current]):hover { color: var(--ink); }
/* Ancien lien de langue (pages Confidentialité et Suppression) */
.lang { color: var(--soft); text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; }

/* ───────── Boutons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.85rem 1.45rem; border-radius: var(--button-radius); text-decoration: none; font-weight: 700;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; box-shadow: 0 5px 0 #C8902A; }
.btn.big { font-size: 1.12rem; padding: 1rem 1.7rem; }
.btn.small { padding: 0.5rem 1rem; font-size: 0.92rem; box-shadow: 0 3px 0 #C8902A; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #C8902A; }

/* ───────── En-tête ───────── */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 2rem 16px 3.2rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem;
}
.kicker {
  display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.9rem; border-radius: 999px;
  background: rgba(164, 220, 189, 0.16); color: var(--sage); font-weight: 700; font-size: 0.92rem;
  transform: rotate(-1.5deg);
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 0.98; margin: 0 0 1rem; letter-spacing: -0.035em; font-weight: 800; }
.num {
  display: inline-block; background: var(--primary); color: var(--on-primary);
  padding: 0 0.22em; border-radius: 0.22em; transform: rotate(-4deg); margin-right: 0.08em;
  box-shadow: 0 6px 0 #C8902A;
}
.tagline { font-size: 1.15rem; color: var(--soft); margin: 0 0 1.3rem; max-width: 50ch; }
/* Le grand bouton, puis les deux stores côte à côte, juste en dessous et de la même largeur. */
.cta { margin: 1rem 0 0.8rem; display: grid; gap: 0.85rem; width: min(100%, 460px); }
.cta > .btn.big { width: 100%; }

/* Badges des stores : noirs, deux lignes (« Disponible sur » / « Google Play »), comme ceux des stores. */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; }
.stores .store {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 14px; border-radius: 14px;
  background: #0B0B0B; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); transition: transform 0.15s ease, filter 0.15s ease;
}
.stores .store:hover { transform: translateY(-2px); filter: brightness(1.3); }
.stores .store:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.store::before { content: ""; flex: none; width: 28px; height: 28px; background: center / contain no-repeat; }
.store.play::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2300D7FE'/%3E%3Cstop offset='.45' stop-color='%2300F076'/%3E%3Cstop offset='.75' stop-color='%23FFD500'/%3E%3Cstop offset='1' stop-color='%23FF3A44'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M5 2.8v18.4a1 1 0 0 0 1.5.86l15.9-9.2a1 1 0 0 0 0-1.72L6.5 1.94A1 1 0 0 0 5 2.8z' fill='url(%23g)'/%3E%3C/svg%3E"); }
.store.apple::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%230D96F6'/%3E%3Cpath d='M12 6v8m-4-3.5 4 4 4-4M7.5 17.5h9' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.store span { display: grid; line-height: 1.12; text-align: left; }
.store small { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.store strong { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.join { margin: 1rem 0 0; max-width: 520px; background: var(--surface); padding: 0.8rem 1rem; border-radius: var(--radius); border: 2px dashed var(--accent); }
.join a { color: var(--ink); font-weight: 700; }

/* Téléphone de l'en-tête et emblèmes qui flottent autour */
.hero-art { position: relative; min-height: 560px; display: flex; justify-content: center; align-items: center; }
.phone {
  margin: 0; background: #0A1F19; padding: 9px; border-radius: 34px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 248, 236, 0.1);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.hero-phone { width: 270px; transform: rotate(4deg); position: relative; z-index: 1; }
.float { position: absolute; width: 92px; height: 92px; border-radius: 24px; filter: drop-shadow(0 10px 16px rgba(3, 28, 21, 0.4)); animation: bob 5s ease-in-out infinite; z-index: 2; }
.f1 { top: 4%; left: 6%; --r: -12deg; }
.f2 { top: 12%; right: 2%; --r: 10deg; animation-delay: -1.2s; width: 78px; height: 78px; }
.f3 { bottom: 10%; left: 2%; --r: 8deg; animation-delay: -2.4s; width: 84px; height: 84px; }
.f4 { bottom: 2%; right: 8%; --r: -8deg; animation-delay: -3.1s; }
.f5 { top: 46%; left: -4%; --r: -4deg; animation-delay: -0.6s; width: 64px; height: 64px; z-index: 0; }
.f6 { top: 50%; right: -3%; --r: 14deg; animation-delay: -4s; width: 70px; height: 70px; z-index: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -0.4)); } }

/* ───────── Ruban des jeux qui défile ───────── */
.ribbon {
  background: var(--primary); color: var(--on-primary); transform: rotate(-2deg); margin: 0 -20px;
  padding: 12px 0; overflow: hidden; box-shadow: 0 10px 28px rgba(3, 28, 21, 0.35);
}
.ribbon-track { display: flex; width: max-content; animation: scroll 60s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.ribbon img { width: 44px; height: 44px; border-radius: 12px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────── Contenu ───────── */
main { max-width: 1160px; margin: 0 auto; padding: 0 16px 2rem; }
section { margin: 4.2rem 0; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.05; margin: 0 0 1.4rem; letter-spacing: -0.03em; font-weight: 800; }

/* Trois façons de jouer : des autocollants de couleur */
.modes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.mode { border-radius: 24px; padding: 1.5rem 1.4rem 1.6rem; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.mode svg { width: 58px; height: 58px; display: block; margin-bottom: 0.8rem; }
.mode h3 { margin: 0 0 0.45rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.mode p { margin: 0; font-size: 1.02rem; }
.mode.coral { background: var(--accent); color: var(--on-accent); transform: rotate(-1.6deg); }
.mode.blue { background: var(--blue); color: var(--on-blue); transform: rotate(1.2deg) translateY(10px); }
.mode.yellow { background: var(--primary); color: var(--on-primary); transform: rotate(-0.8deg); }
.mode:hover { transform: rotate(0) translateY(-4px); }
.mode svg { fill: currentColor; stroke: currentColor; }
.mode svg .eye { fill: var(--ink); }
.mode.yellow svg { fill: none; }

/* Captures : des téléphones en éventail, qui défilent au doigt */
.strip {
  display: flex; gap: 22px; overflow-x: auto; padding: 18px 16px 30px; margin: 0 -16px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--surface) transparent;
}
.strip .phone { flex: 0 0 auto; width: 224px; scroll-snap-align: center; transition: transform 0.2s ease; }
.strip .phone:nth-child(odd) { transform: rotate(-2.5deg); }
.strip .phone:nth-child(even) { transform: rotate(2deg) translateY(14px); }
.strip .phone:hover { transform: rotate(0) scale(1.03); }
.phone figcaption { text-align: center; font-weight: 700; font-size: 0.95rem; line-height: 1.25; padding: 0.7rem 0.4rem 0.3rem; color: var(--ink); }

/* Jeux : filtres et tuiles comme l'accueil de l'appli */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.3rem; }
.chip {
  font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer;
  padding: 0.5rem 1.1rem; border-radius: 999px; background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.games { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.game {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.game:hover { transform: translateY(-3px) rotate(-0.6deg); background: #1F7560; }
.game:hover img { animation: wiggle 0.5s ease; }
.game img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; }
.game h3 { margin: 0; font-size: 1.15rem; }
.game .meta { margin: 0 0 0.35rem; color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.game p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(6deg) scale(1.06); } }

/* Et aussi */
.more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.more li {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.2rem;
  color: var(--soft); position: relative;
}
.more li::before {
  content: "✓"; position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage); color: var(--bg); font-weight: 800; font-size: 0.9rem;
}

/* Télécharger : un grand panneau jaune */
.download {
  background: var(--primary); color: var(--on-primary); border-radius: 30px; text-align: center;
  padding: 2.6rem 1.4rem 2.4rem; box-shadow: 0 10px 0 #C8902A, var(--shadow); transform: rotate(-0.6deg);
}
.download h2 { margin-bottom: 0.8rem; }
.download p { max-width: 56ch; margin: 0 auto 1rem; font-size: 1.05rem; }
.download a { color: var(--on-primary); }
.download .btn { background: var(--bg); color: var(--ink); border: 0; box-shadow: 0 5px 0 #062E24; }
.download .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #062E24; }
.download .muted { color: #6B4A10; }
.download .stores { max-width: 460px; margin: 0 auto; }
.download-icon { border-radius: 24px; margin: -4.4rem auto 0.6rem; display: block; box-shadow: var(--shadow); transform: rotate(-6deg); }

footer { text-align: center; padding: 2rem 16px 2.6rem; color: var(--muted); font-size: 0.92rem; }
footer p { margin: 0.3rem 0; }

/* Les cartes de jeu mènent à la page du jeu : toute la carte est cliquable, par le lien de son titre. */
.game { position: relative; }
.game h3 a { color: inherit; text-decoration: none; }
.game h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.game h3 a:focus-visible { outline: none; }
.game:has(a:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ───────── Page d'un jeu (/jeux/…, /en/games/…, /nl/spellen/…) ───────── */
.game-main { max-width: 920px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0; }
.crumbs a { color: var(--muted); }
.game-hero { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; margin: 2rem 0 0; }
.game-emblem { width: 144px; height: 144px; border-radius: 34px; transform: rotate(-5deg); filter: drop-shadow(0 12px 18px rgba(3, 28, 21, 0.45)); }
.game-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin: 0 0 0.8rem; letter-spacing: -0.035em; font-weight: 800; }
.game-hero .tagline { margin-bottom: 0.7rem; }
.lead { color: var(--muted); margin: 0 0 0.4rem; max-width: 56ch; }
.game-page section { margin: 3.2rem 0; }
.essentials-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.essentials-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 1.05rem; }
.essentials-list strong { color: var(--primary); }
.rules { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem 1.8rem 1.2rem; }
.rules h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; color: var(--primary); }
.rules h2 + h3 { margin-top: 0; }
.rules p, .rules li { max-width: 68ch; color: var(--soft); }
.rules p { margin: 0 0 0.6rem; }
.rules ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.rules li { margin: 0.3rem 0; }
.game-page .download { margin-top: 5rem; }
.games.compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ───────── Petits écrans ───────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 2rem; gap: 0.5rem; }
  .tagline { margin-left: auto; margin-right: auto; }
  .cta { margin-left: auto; margin-right: auto; }
  .join { margin-left: auto; margin-right: auto; }
  .hero-art { min-height: 430px; }
  .hero-phone { width: 210px; }
  .float { width: 70px; height: 70px; }
  .f2, .f3 { width: 60px; height: 60px; }
  .f5, .f6 { display: none; }
  .modes ul { grid-template-columns: 1fr; }
  .mode.blue { transform: rotate(1.2deg); }
  .game-hero { grid-template-columns: 1fr; gap: 1rem; justify-items: center; text-align: center; }
  .game-emblem { width: 112px; height: 112px; }
  .game-hero .tagline, .lead { margin-left: auto; margin-right: auto; }
  .rules { padding: 1.2rem 1.1rem 0.8rem; }
}
@media (max-width: 480px) {
  .top { padding: 12px 16px; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .langs a { padding: 4px 7px; }
  .top .btn.small { display: none; }
  .games { grid-template-columns: 1fr; }
  .strip .phone { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .ribbon-track { animation: none; }
  .ribbon-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ribbon-track > span:nth-child(n + 25) { display: none; }
  .game:hover img { animation: none; }
  .game-emblem { transform: none; }
}

/* ───────── Politique de confidentialité et suppression des données (même feuille) ───────── */
main.doc { padding-top: 2rem; max-width: 760px; }
main.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; }
main.doc li { margin: 0.3rem 0; }
