/* Sucropolis · site vitrine. Même structure que lumondia.com et orbimaniax.com, aux couleurs du jeu :
   rose bonbon, crème et or ; Fredoka pour le texte, Pacifico pour le logo. */
@font-face{font-family:Fredoka;font-weight:500;font-display:swap;src:url(/fonts/fredoka-500.woff2) format('woff2')}
@font-face{font-family:Fredoka;font-weight:600;font-display:swap;src:url(/fonts/fredoka-600.woff2) format('woff2')}
@font-face{font-family:Fredoka;font-weight:700;font-display:swap;src:url(/fonts/fredoka-700.woff2) format('woff2')}
@font-face{font-family:Pacifico;font-weight:400;font-display:swap;src:url(/fonts/pacifico-400.woff2) format('woff2')}

:root {
  --bg: #fff4f9;
  --bg2: #ffe3ef;
  --ink: #4a1638;
  --muted: #8a4a72;
  --rose: #ff3d8b;
  --rose2: #ff8fbf;
  --lilac: #b98cff;
  --gold: #ffc83d;
  --card: #ffffffcc;
  --line: #f3c4dc;
  --radius: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; overflow-x: hidden; line-height: 1.55; color: var(--ink);
  font: 500 17px/1.55 Fredoka, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, #ffd0e6 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 30%, #ead9ff 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 80%, #ffe2cf 0%, transparent 70%),
    var(--bg);
}
a { color: var(--rose); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { max-width: 760px; }

/* Texte dégradé rose → lilas */
.grad { background: linear-gradient(90deg, var(--rose), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* En-tête */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
header.top { position: sticky; top: 0; z-index: 5; padding: 12px 0; background: #fff4f9d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #f3c4dc80; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--rose); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 400 26px/1 Pacifico, cursive; padding-bottom: 4px; }
nav.links { display: flex; align-items: center; gap: 20px; font-size: 16px; font-weight: 600; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--ink); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: #fff; border: 0;
  background: linear-gradient(180deg, #ff7fb0, var(--rose)); box-shadow: 0 5px 0 #c2185b, 0 14px 30px #ff3d8b33;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.small { padding: 8px 16px; font-size: 15px; box-shadow: 0 3px 0 #c2185b; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 600; opacity: .85; line-height: 1.1; }
.btn span { line-height: 1.15; }
.btn[data-store] { background: #2b0d22; box-shadow: 0 5px 0 #000, 0 14px 30px #4a163833; font-size: 18px; min-width: 210px; padding: 12px 24px 12px 18px; border-radius: 16px; }
.btn[data-store].soon { cursor: default; opacity: .9; }
.btn[data-store].soon:hover { transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Héros */
.hero { position: relative; padding: 34px 0 70px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kicker { display: inline-block; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--rose); background: #ff3d8b14; border: 1px solid #ff3d8b33; padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin: 0; font: 400 clamp(64px, 10vw, 118px)/1.15 Pacifico, cursive; color: var(--rose); text-shadow: 0 4px 0 #fff, 0 18px 50px #ff3d8b40; }
.hero .tag { margin: 6px 0 10px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; }
.hero p.lead { max-width: 34em; margin: 0; font-size: 19px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; color: var(--muted); background: #fff9; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.rings-deco { position: absolute; width: min(600px, 125%); aspect-ratio: 1; pointer-events: none; }
.rings-deco .spin { transform-origin: 300px 300px; animation: spin 16s linear infinite; }
.rings-deco .spin2 { transform-origin: 300px 300px; animation: spin 11s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Téléphone avec captures en fondu */
.phone {
  position: relative; width: min(320px, 76vw); aspect-ratio: 1320 / 2868; margin: 0 auto;
  border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #fff, #ffd6ea 45%, #e6d6ff);
  box-shadow: 0 0 0 1.5px #ffffff, 0 30px 80px #b0306f40, 0 0 120px #ff8fbf55;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg2); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fade 21s infinite; }
.phone .screen img:nth-child(1) { animation-delay: 0s; } .phone .screen img:nth-child(2) { animation-delay: 3s; }
.phone .screen img:nth-child(3) { animation-delay: 6s; } .phone .screen img:nth-child(4) { animation-delay: 9s; }
.phone .screen img:nth-child(5) { animation-delay: 12s; } .phone .screen img:nth-child(6) { animation-delay: 15s; }
.phone .screen img:nth-child(7) { animation-delay: 18s; }
@keyframes fade { 0% { opacity: 0; } 3% { opacity: 1; } 14.3% { opacity: 1; } 18% { opacity: 0; } 100% { opacity: 0; } }

/* Sections */
section { padding: 64px 0; }
section h2 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
section .sub { max-width: 40em; margin: 0 0 36px; font-size: 19px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--rose); }
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--rose)); }

/* Cartes */
.card {
  position: relative; overflow: hidden; isolation: isolate; padding: 24px;
  background: var(--card); border: 1.5px solid #fff; border-radius: var(--radius);
  box-shadow: 0 18px 44px #b0306f18, inset 0 0 0 1px #f3c4dc66;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), #ff8fbf26, transparent 70%); }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px #b0306f26, inset 0 0 0 1px #ff8fbf88; }
.card:hover::after { opacity: 1; }
.card h3 { margin: 10px 0 6px; font-size: 22px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Comment jouer */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 0 0 26px; text-align: center; }
.step .scene { display: block; width: 100%; height: auto; aspect-ratio: 240 / 150; background: radial-gradient(120% 100% at 50% 0%, #fff, #ffe3ef 60%, #f4e6ff); border-bottom: 1px solid #f3c4dc88; }
.step h3 { margin: 16px 24px 6px; font-size: 28px; color: var(--rose); }
.step p { margin: 0 24px; }
.scene text { font: 700 13px/1 Fredoka, sans-serif; }

/* Fonctionnalités */
.ico-tile { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(160deg, #fff, #ffe8f3); box-shadow: inset 0 0 0 1px #f3c4dc, 0 8px 20px #ff3d8b1f; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.ico-tile svg { width: 32px; height: 32px; }
.feat:hover .ico-tile { transform: translateY(-2px) rotate(-6deg) scale(1.06); }

/* Mondes */
.worlds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.worlds li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.worlds .dot { width: 46px; height: 46px; flex: none; border-radius: 50%; box-shadow: 0 6px 16px #b0306f33, inset 0 -4px 8px #0001; }
.worlds b { display: block; font-size: 17px; line-height: 1.2; }
.worlds small { color: var(--muted); font-size: 14px; }
.worlds .n { font-size: 12px; font-weight: 700; color: var(--rose); }

/* Galerie */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px max(16px, calc((100% - 1120px) / 2)) 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery img { width: clamp(200px, 23vw, 250px); height: auto; flex: none; border-radius: 26px; border: 4px solid #fff; scroll-snap-align: center; box-shadow: 0 20px 44px #b0306f2e; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.gallery img:hover { transform: translateY(-6px) rotate(-1deg); }

/* Amies */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split .shot { width: min(280px, 70vw); height: auto; justify-self: center; border-radius: 32px; border: 4px solid #fff; box-shadow: 0 30px 70px #b0306f33, 0 0 90px #b98cff40; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ffc4de 55%, #ff8fbf); box-shadow: 0 3px 8px #ff3d8b40; }

/* FAQ */
details { position: relative; margin: 10px 0; padding: 14px 18px; background: var(--card); border: 1.5px solid #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px #f3c4dc66; transition: box-shadow .25s; }
details summary { cursor: pointer; list-style: none; padding-right: 34px; font-weight: 700; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ''; position: absolute; right: 18px; top: 19px; width: 10px; height: 10px; border-right: 2.5px solid var(--rose); border-bottom: 2.5px solid var(--rose); transform: rotate(45deg); transition: transform .25s; }
details[open] { box-shadow: inset 0 0 0 1.5px #ff8fbf, 0 10px 30px #ff3d8b14; }
details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
details p { margin: 10px 0 0; color: var(--muted); }
.more { margin-top: 18px; font-weight: 600; }

/* Bandeau final */
.band { position: relative; text-align: center; overflow: hidden; background: linear-gradient(180deg, #ffffff66, #ffe3efcc); border-block: 1.5px solid #fff; }
.band .cta { justify-content: center; }
.band .sub { margin-inline: auto; }
.band-logo { position: relative; width: 84px; height: 84px; margin: 0 auto 16px; }
.band-logo img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 30px #ff3d8b33; }
.band-logo::before, .band-logo::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid #ff8fbf88; animation: pulse 3.2s ease-out infinite; }
.band-logo::after { animation-delay: 1.6s; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Pages de texte */
main.doc { padding: 30px 0 70px; }
main.doc .wrap { max-width: 760px; }
main.doc h1 { margin: 10px 0 8px; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
main.doc .meta { margin-bottom: 30px; color: var(--muted); }
main.doc h2 { margin: 34px 0 8px; font-size: 24px; }
main.doc p, main.doc li { color: #5e2a4c; }
main.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
main.doc th, main.doc td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
main.doc th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.box { margin: 18px 0; padding: 20px 22px; background: var(--card); border: 1.5px solid #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px #f3c4dc88; }
.box.rose { box-shadow: inset 0 0 0 1.5px #ff8fbf; }
ol.howto li { margin: 6px 0; }

footer { padding: 36px 0 50px; font-size: 15px; color: var(--muted); border-top: 1.5px solid #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
.foot-brand { display: flex; gap: 12px; align-items: center; }

/* Apparition au scroll (seulement si le JS tourne) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }

@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap { text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .cta, .chips { justify-content: center; }
  .grid, ol.steps { grid-template-columns: 1fr; }
  nav.links a:not(.btn) { display: none; }
  section { padding: 46px 0; }
  .hero { padding-top: 20px; }
  .rings-deco { width: 100%; }
}
@media (max-width: 420px) { .worlds { grid-template-columns: 1fr; } .btn[data-store] { min-width: 0; width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
  .phone .screen img { animation: none; } .phone .screen img:first-child { opacity: 1; }
  .rings-deco .spin, .rings-deco .spin2, .band-logo::before, .band-logo::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sucropolis : 4 captures au lieu de 7 */
.phone .screen img { animation-name: fade4; animation-duration: 12s; }
@keyframes fade4 { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
