/* Créalab Studio — style commun à toutes les pages */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --cream: #fff6ec;
  --cream-2: #fbe3cf;
  --pink: #f4a7bf;
  --pink-deep: #e0607e;
  --rose: #c95a7c;
  --brown: #6b3f2a;
  --brown-soft: #8a5a44;
  --green: #5cc160;
  --green-deep: #3f9a45;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(107, 63, 42, 0.18);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-deep); }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* --- barre du haut --- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--cream-2);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--brown); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { color: var(--pink-deep); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--brown); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.top nav a:hover { background: var(--cream-2); }

/* --- boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.15rem; text-decoration: none; cursor: pointer;
  color: var(--white); background: var(--green);
  box-shadow: 0 6px 0 var(--green-deep), var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-deep); }
.btn.pink { background: var(--pink-deep); box-shadow: 0 6px 0 var(--rose), var(--shadow); }
.btn small { display: block; font-weight: 500; font-size: 0.8rem; opacity: 0.9; }

/* --- titres de section --- */
section { padding: 64px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; color: var(--rose); }
.lead { text-align: center; max-width: 640px; margin: 0 auto 36px; color: var(--brown-soft); }

/* --- grand bandeau du jeu --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 230, 238, 0.85), rgba(255, 246, 236, 0.97)), url("../sweet-fusion/img/fond.webp") center / cover;
  padding: 56px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--pink-deep); text-shadow: 0 3px 0 var(--white), 0 6px 18px rgba(201, 90, 124, 0.25); }
.hero .tagline { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 600; margin-bottom: 18px; }
.hero p { color: var(--brown-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.hero .note { font-size: 0.9rem; color: var(--brown-soft); }
.phone {
  width: min(300px, 80%); margin-inline: auto; border-radius: 34px; overflow: hidden;
  border: 8px solid var(--white); box-shadow: var(--shadow); transform: rotate(2deg);
}
.floaters img { position: absolute; width: 74px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .floaters img { animation: none; } }

/* --- cartes --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 3px solid var(--cream-2);
}
.card img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 8px; }
.card h3 { color: var(--pink-deep); font-size: 1.25rem; }
.card p { margin: 0; color: var(--brown-soft); }

/* --- exemple de fusion --- */
.merge {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: var(--white); border-radius: var(--radius); padding: 20px; margin: 0 auto 36px; max-width: 560px;
  box-shadow: var(--shadow); font-size: 2rem; font-weight: 700; color: var(--pink-deep);
}
.merge img { width: 84px; height: 84px; background: var(--cream); border-radius: 20px; padding: 6px; }

/* --- règles numérotées --- */
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 760px; margin-inline: auto; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative; background: var(--white); border-radius: 22px;
  padding: 18px 20px 18px 74px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--pink-deep); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}
.steps b { color: var(--rose); }

/* --- captures d'écran --- */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; }
.shots figure { margin: 0; flex: 0 0 min(240px, 70%); scroll-snap-align: center; text-align: center; }
.shots img { border-radius: 24px; border: 6px solid var(--white); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 10px; font-weight: 600; }

/* --- bloc téléchargement --- */
.download { background: linear-gradient(135deg, #ffd6e2, #fff0d9); }
.download .box {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; max-width: 760px; margin-inline: auto; text-align: center;
}
.download .btn { flex-direction: column; gap: 2px; }
.download ol { text-align: left; max-width: 560px; margin: 22px auto 0; padding-left: 22px; }
.download li { margin-bottom: 8px; }
.warn { background: #fff4d6; border: 2px solid #f4d27a; border-radius: 16px; padding: 12px 16px; margin-top: 18px; text-align: left; font-size: 0.95rem; }

/* --- questions --- */
details { background: var(--white); border-radius: 18px; padding: 16px 20px; margin: 0 auto 12px; max-width: 760px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; color: var(--rose); }
details p { margin: 10px 0 0; color: var(--brown-soft); }

/* --- accueil du studio --- */
.studio-hero { text-align: center; padding: 72px 0 40px; background: linear-gradient(180deg, #ffe3ec, var(--cream)); }
.studio-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); color: var(--pink-deep); }
.studio-hero p { max-width: 620px; margin: 0 auto; color: var(--brown-soft); font-size: 1.15rem; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.game {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.15s;
}
.game:hover { transform: translateY(-4px); }
.game .cover { height: 190px; background: linear-gradient(135deg, #ffc7d8, #ffe9c9); display: flex; align-items: center; justify-content: center; gap: 4px; }
.game .cover img { width: 96px; height: 96px; object-fit: contain; }
.game .body { padding: 20px; }
.game h3 { color: var(--pink-deep); font-size: 1.5rem; margin-bottom: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--cream-2); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.game.soon { opacity: 0.7; }
.game.soon .cover { background: repeating-linear-gradient(45deg, #f6eadf, #f6eadf 14px, #fbf3ea 14px, #fbf3ea 28px); font-size: 3rem; }

/* --- bas de page --- */
footer { background: var(--brown); color: #f7e6da; text-align: center; padding: 28px 16px; font-size: 0.95rem; }
footer a { color: #ffd0de; }

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .actions { justify-content: center; }
  .floaters { display: none; }
  .top { position: static; }
  .card { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .card img { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
  .card h3 { margin-bottom: 4px; align-self: end; }
  .card p { align-self: start; font-size: 0.95rem; }
  .merge { flex-wrap: nowrap; gap: 8px; font-size: 1.5rem; padding: 14px; }
  .merge img { width: 64px; height: 64px; border-radius: 16px; }
  .steps li { padding: 14px 16px 14px 60px; }
  .steps li::before { left: 14px; top: 14px; width: 34px; height: 34px; font-size: 1.05rem; }
  .shots figure { flex-basis: 190px; }
  .phone { width: min(230px, 70%); }
  .top .wrap { flex-wrap: wrap; justify-content: center; row-gap: 4px; padding: 8px 0; }
  .top nav { flex-wrap: nowrap; }
  .top nav a { padding: 4px 10px; font-size: 0.95rem; white-space: nowrap; }
  section { padding: 48px 0; }
}
