/* Tamalou — page de présentation, dans la DA du jeu (Godot) :
   scène bleu nuit, cartes claires en relief, boutons « en relief », Space Grotesk. */

:root {
  --navy: #1c2952;
  --night: #0d1530;
  --night-2: #142046;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f0efe8;
  --border: #e3e2dc;
  --ink: #1c1208;
  --ink-soft: #6b5d4f;
  --ink-ghost: #b5a898;
  --red: #d64f4f;
  --red-deep: #b03a3a;
  --green: #4a9e68;
  --gold: #d4a22e;
  --purple: #8b5cf6;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.red { color: var(--red); }

/* ---------- Logo ---------- */
.logo { text-decoration: none; font-weight: 700; font-size: 30px; letter-spacing: -1px; }
.logo.small { font-size: 22px; }
.logo-a { color: #fff; }
.logo-b { color: var(--red); }
.footer .logo-a { color: var(--ink); }

/* ---------- Boutons en relief ---------- */
.btn {
  --face: var(--red); --edge: var(--red-deep); --text: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 10px; border: 0; border-radius: 14px;
  background: var(--face); color: var(--text);
  box-shadow: inset 0 -5px 0 var(--edge), 0 6px 18px rgba(0, 0, 0, .18);
  font: 700 15px/1 "Space Grotesk", sans-serif; letter-spacing: .5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, filter .12s, box-shadow .12s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--edge), 0 2px 8px rgba(0, 0, 0, .2); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-red { --face: var(--red); --edge: var(--red-deep); }
.btn-dark { --face: rgba(255, 255, 255, .08); --edge: rgba(0, 0, 0, .35); box-shadow: inset 0 -5px 0 var(--edge), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn-white { --face: #fff; --edge: #d6d1c4; --text: var(--ink); }
.btn-big { padding: 17px 26px 14px; font-size: 17px; border-radius: 16px; }
.btn-small { padding: 10px 16px 8px; font-size: 14px; box-shadow: inset 0 -4px 0 var(--edge); }
.btn.is-soon { cursor: default; opacity: .9; }
.btn.is-soon:hover, .btn.is-soon:active { transform: none; filter: none; }
.soon {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 8px; background: var(--gold); color: #fff;
}

/* ---------- En-tête bleu nuit ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 600px at 70% 30%, rgba(60, 90, 190, .35), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
  padding-bottom: 120px;
}
/* Symboles de cartes en fond, très discrets */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M30 18c6 8 14 12 14 20a7 7 0 0 1-12 4l2 8h-8l2-8a7 7 0 0 1-12-4c0-8 8-12 14-20z'/%3E%3Cpath d='M90 78c-4-6-12-6-12 2 0 7 12 14 12 18 0-4 12-11 12-18 0-8-8-8-12-2z'/%3E%3C/g%3E%3C/svg%3E");
}
.nav {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 22px 24px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: rgba(255, 255, 255, .75); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: #fff; }

.hero-body {
  position: relative; z-index: 2; max-width: 1160px; width: 100%; margin: auto; padding: 24px 24px 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.kicker.dark { color: var(--ink-ghost); }
h1 {
  margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -2.5px; font-weight: 700;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.lead { margin: 22px 0 30px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 34em; }
.lead strong { color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .6); font-size: 14px; }
.hero-facts b { display: block; color: #fff; font-size: 26px; letter-spacing: -.5px; }

/* Éventail de cartes qui flotte et suit la souris */
.fan { position: relative; height: 420px; perspective: 1200px; }
.fan .card {
  position: absolute; left: 50%; top: 50%; width: 170px; margin: -120px 0 0 -85px;
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform-origin: 50% 120%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.felt {
  position: absolute; left: 50%; bottom: -520px; width: 1700px; height: 700px; margin-left: -850px;
  border-radius: 50%; background: radial-gradient(ellipse at 50% 20%, #8a1c2a, #4a0a14 70%);
  box-shadow: inset 0 18px 0 rgba(212, 162, 46, .55), 0 -10px 60px rgba(0, 0, 0, .4);
}

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.scroll-hint svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--surface-2); }
.section.dark {
  color: #fff;
  background: linear-gradient(180deg, var(--night-2), var(--night));
}
h2 { margin: 0 0 40px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.5px; line-height: 1.08; max-width: 18em; }
h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.4px; }
p { line-height: 1.6; }
.note { margin: 28px 0 0; color: var(--ink-soft); font-size: 15px; }

/* Cartes claires en relief */
.tile, .feature, .power {
  position: relative; background: var(--surface); border-radius: var(--radius);
  box-shadow: inset 0 -6px 0 var(--border), 0 10px 30px rgba(28, 18, 8, .06);
  padding: 26px 26px 30px;
}
.tile p, .feature p, .power p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 -6px 0 var(--border), 0 10px 30px rgba(28, 18, 8, .06);
}
.step-text { padding: 22px 26px 30px; }
.step-text p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step-text h3 { display: flex; align-items: center; gap: 10px; }
.num {
  display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
/* Petites scènes de table (feutrine) avec de vraies cartes du jeu */
.scene {
  position: relative; height: 210px;
  background: radial-gradient(ellipse at 50% 35%, #8a1c2a, #4a0a14 75%);
}
.scene .c { position: absolute; width: 70px; border-radius: 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.scene-memo .c1 { left: calc(50% - 64px); top: 20px; }
.scene-memo .c2 { left: calc(50% + 6px); top: 20px; }
.scene-memo .c3 { left: calc(50% - 64px); top: 108px; }
.scene-memo .c4 { left: calc(50% + 6px); top: 108px; }
.scene-memo .c { width: 58px; }
.scene-memo .up { box-shadow: 0 0 0 3px #e5c46a, 0 10px 22px rgba(0, 0, 0, .45); }
.step-card:hover .scene-memo .up { transform: translateY(-6px); }
.eye {
  position: absolute; right: 22px; top: 18px; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; color: #e5c46a;
}
.eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.scene-burn .pile { left: calc(50% - 62px); top: 40px; transform: rotate(-8deg); }
.scene-burn .thrown { left: calc(50% - 10px); top: 52px; transform: rotate(10deg); }
.step-card:hover .scene-burn .thrown { transform: rotate(4deg) translate(-14px, -6px); }
.scene-burn .flame {
  position: absolute; left: 50%; top: 105px; width: 150px; height: 150px; margin-left: -75px; margin-top: -75px;
  border-radius: 50%; border: 4px solid #f2a23a; box-shadow: 0 0 30px rgba(242, 162, 58, .55), inset 0 0 22px rgba(242, 162, 58, .35);
}
.burn-label {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-weight: 700; font-size: 18px; color: #ffd27a; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.scene-tamalou { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.tama-btn {
  padding: 16px 30px 12px; border-radius: 16px; background: var(--red); color: #fff;
  font-size: 24px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: inset 0 -6px 0 var(--red-deep), 0 12px 26px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.step-card:hover .tama-btn { transform: scale(1.06) rotate(-2deg); }
.score {
  padding: 6px 14px; border-radius: 20px; background: rgba(0, 0, 0, .3); color: #ffd84d;
  font-weight: 700; font-size: 15px;
}
.badge {
  display: inline-flex; width: 52px; height: 52px; border-radius: 15px; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2);
}
.badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-navy { background: var(--navy); }
.b-red { background: var(--red); }
.b-gold { background: var(--gold); }
.b-green { background: var(--green); }
.b-purple { background: var(--purple); }

.powers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.power { display: flex; gap: 20px; align-items: center; padding: 20px 24px 24px; }
.power img { width: 86px; flex: none; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); transform: rotate(-4deg); transition: transform .3s; }
.power:hover img { transform: rotate(3deg) translateY(-4px); }

/* Grande capture en haut, puis 3 et 2 par rangée (grille de 6 colonnes) */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.shot { margin: 0; grid-column: span 2; }
.shot.big { grid-column: span 6; }
.shot.wide { grid-column: span 3; }
.shot img { border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { margin-top: 10px; color: rgba(255, 255, 255, .6); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Saison en cours (couleurs et décor selon la saison : data-theme) ---------- */
[hidden] { display: none !important; }
.season {
  --s-bg1: #3a1a08; --s-bg2: #6b2e0c; --s-accent: #f2a23a; --s-glow: rgba(242, 162, 58, .35);
  position: relative; overflow: hidden; padding: 90px 0; color: #fff;
  background: radial-gradient(900px 500px at 80% 0%, var(--s-glow), transparent 65%), linear-gradient(180deg, var(--s-bg1), var(--s-bg2));
}
.season[data-theme="hiver"] { --s-bg1: #0b1f3a; --s-bg2: #1d4a73; --s-accent: #9fd8ff; --s-glow: rgba(120, 220, 200, .28); }
.season[data-theme="printemps"] { --s-bg1: #1d3a24; --s-bg2: #3f6e3a; --s-accent: #ffb3cf; --s-glow: rgba(255, 179, 207, .3); }
.season[data-theme="ete"] { --s-bg1: #0d3550; --s-bg2: #1b6f8a; --s-accent: #ffd24a; --s-glow: rgba(255, 210, 74, .35); }
.season .wrap { position: relative; z-index: 1; }
.season h2 { margin-bottom: 16px; }
.season-lead { margin: 0; max-width: 40em; font-size: 18px; color: rgba(255, 255, 255, .82); }
.season-left { margin: 18px 0 0; }
.season-left span {
  display: inline-block; padding: 7px 14px 6px; border-radius: 20px; font-weight: 700; font-size: 14px;
  background: rgba(0, 0, 0, .28); color: var(--s-accent); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.season-sub { margin: 46px 0 18px; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.prize {
  position: relative; background: var(--surface); color: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 -6px 0 var(--border), 0 14px 34px rgba(0, 0, 0, .3);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.prize:hover { transform: translateY(-5px) rotate(-.6deg); }
.prize-img {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 10px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--s-bg2) 55%, #fff), var(--s-bg1));
}
.prize-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.prize-body { padding: 12px 14px 18px; }
.prize-cat { margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-ghost); }
.prize h4 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.3px; line-height: 1.2; }
.prize-tag {
  display: inline-block; padding: 4px 9px 3px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-soft);
}
.prize-tag.premium { background: var(--gold); color: #fff; }
.prize-tag.price { background: var(--navy); color: #fff; line-height: 1.35; }
.prize-until { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.season-cta { margin-top: 44px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.season-cta p { margin: 0; color: rgba(255, 255, 255, .75); }
/* Décor qui tombe doucement (feuilles, flocons, pétales) */
.season-deco { position: absolute; inset: 0; pointer-events: none; }
.season-deco i {
  position: absolute; top: -40px; display: block; width: 18px; height: 18px; opacity: .55;
  background: center / contain no-repeat; animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(40px, 50vh) rotate(180deg); }
  100% { transform: translate(-10px, 110vh) rotate(360deg); }
}
/* Pastille « Saison en cours » au-dessus du titre de l'en-tête */
.season-pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 8px 14px 7px; border-radius: 20px;
  background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.season-pill:hover { background: rgba(255, 255, 255, .16); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212, 162, 46, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212, 162, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 162, 46, 0); } }

/* ---------- Image agrandie au clic ---------- */
.shot img, .power img, .prize-img img { cursor: zoom-in; }
.zoom {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 20px; background: rgba(8, 12, 30, .88); cursor: zoom-out; opacity: 0; transition: opacity .2s;
}
.zoom.open { opacity: 1; }
.zoom img {
  max-width: min(94vw, 1500px); max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.94); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.zoom.open img { transform: none; }
.zoom--item img { width: min(80vw, 520px); max-height: 70vh; object-fit: contain; box-shadow: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.zoom p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; text-align: center; max-width: 40em; }

/* ---------- Bandeau télécharger ---------- */
.download { padding: 70px 0; background: var(--red); color: #fff; }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.download h2 { margin: 0 0 8px; }
.download p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.download .btn-red { --face: var(--navy); --edge: #0d1530; }

/* ---------- Pied de page ---------- */
.footer { padding: 34px 0; background: var(--bg); color: var(--ink-soft); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Apparition douce des blocs au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 960px) {
  .hero-body { grid-template-columns: 1fr; padding-top: 24px; }
  .fan { height: 320px; order: -1; }
  .fan .card { width: 128px; margin: -90px 0 0 -64px; }
  .steps, .powers, .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot, .shot.wide { grid-column: span 1; }
  .shot.big { grid-column: span 2; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .wrap, .nav, .hero-body { padding-left: 16px; padding-right: 16px; }
  .steps, .powers, .features, .gallery { grid-template-columns: 1fr; }
  .shot.big, .shot.wide, .shot { grid-column: span 1; }
  .section { padding: 64px 0; }
  .hero { padding-bottom: 90px; }
  .lead { font-size: 17px; }
  .btn-big { width: 100%; justify-content: center; }
  .hero-facts { gap: 18px; }
  .season { padding: 64px 0; }
  .season-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prize h4 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-deco { display: none; }
  .fan .card, .reveal { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pages légales (confidentialité, conditions) ---------- */
.legal-head { background: radial-gradient(120% 140% at 50% 0%, var(--navy), var(--night)); color: #fff; padding: 22px 0 40px; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.legal-head h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -1px; }
.legal-date { margin: 8px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.legal { max-width: 820px; padding-top: 34px; padding-bottom: 50px; line-height: 1.65; }
.legal h2 { margin: 34px 0 10px; font-size: 22px; letter-spacing: -0.3px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--red); }
.legal ul { padding-left: 20px; }
.legal-intro { font-size: 18px !important; color: var(--ink) !important; }
.legal-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.legal-table .row { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 15px; }
.legal-table .row:first-child { border-top: 0; }
.legal-table .row.head { background: var(--surface-2); font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.legal-table .row span:first-child { color: var(--ink); font-weight: 600; }
.legal-table .row span:last-child { color: var(--ink-soft); }
.legal-links { margin-top: 40px; }
.footer a { color: var(--ink-soft); }
@media (max-width: 640px) {
  .legal-table .row { grid-template-columns: 1fr; gap: 4px; }
}
