/* =========================================================================
   nicoow.fr/gnap — la page du jeu « Gnap ! »
   Pâte à modeler et pastels : la même charte que le jeu (corail, crème, encre brune, police Fredoka).
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFF6EE; color: #4B3226;
  font-family: 'Nunito', system-ui, sans-serif; font-size: 1.05rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #D4523E; }
h2, h3 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; line-height: 1.15; color: #5A3527; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); text-align: center; margin: 0 0 1.6rem; }
h3 { font-size: 1.3rem; margin: .4rem 0 .5rem; }

/* ── en haut : retour à nicoow.fr ── */
.gnap-haut { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 1rem 1.25rem; }
.gnap-retour {
  display: inline-flex; gap: .4rem; align-items: center;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.75); color: #6E5142; text-decoration: none; font-weight: 700; font-size: .9rem;
  backdrop-filter: blur(6px);
}
.gnap-retour:hover { background: #fff; color: #4B3226; }

/* ── le haut de la page : le ciel, les créatures, le logo ── */
.gnap-hero {
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  padding: 5rem 1.5rem 3rem;
  background:
    linear-gradient(90deg, rgba(255,246,238,.9) 0%, rgba(255,246,238,.6) 34%, rgba(255,246,238,0) 50%),
    #C4E4FA url(/assets/gnap-hero.webp) right bottom / cover no-repeat;
}
.gnap-hero-texte { max-width: 34rem; margin-left: max(0px, calc((100vw - 72rem) / 2)); }
.gnap-logo { margin: 0 0 .6rem; }
.gnap-logo img { width: min(360px, 78vw); }
.gnap-accroche { font-size: 1.25rem; margin: 0 0 .8rem; color: #6E5142; }
.gnap-accroche strong { color: #D4523E; }
.gnap-pitch { margin: 0 0 1.6rem; color: #6E5142; }
.gnap-infos { margin: 1rem 0 0; font-size: .9rem; color: #9C8072; font-weight: 700; }

/* ── le gros bouton, « en pâte » ── */
.gnap-telecharger {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .95rem 2.2rem .85rem; border-radius: 22px;
  background: #F28066; color: #fff; text-decoration: none;
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 1.45rem; line-height: 1.1;
  box-shadow: 0 6px 0 #C95F48, 0 14px 30px rgba(201,95,72,.28);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.gnap-telecharger:hover { background: #F69A83; transform: translateY(-2px); box-shadow: 0 8px 0 #C95F48, 0 18px 34px rgba(201,95,72,.3); }
.gnap-telecharger:active { transform: translateY(4px); box-shadow: 0 2px 0 #C95F48; }
.gnap-petit { font-family: 'Nunito', system-ui, sans-serif; font-size: .82rem; font-weight: 700; opacity: .92; }

/* ── les sections ── */
.gnap-section { max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem 1rem; }
.gnap-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gnap-carte {
  position: relative; padding: 2rem 1.5rem 1.4rem; border-radius: 26px;
  background: #fff; border: 2px solid #F3DCCD; box-shadow: 0 8px 0 #F3DCCD;
}
.gnap-carte p { margin: 0; color: #6E5142; }
.gnap-chiffre {
  position: absolute; top: -1.1rem; left: 1.4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #F28066; color: #fff; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 3px 0 #C95F48;
}

.gnap-galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.gnap-galerie figure { margin: 0; }
.gnap-galerie img { border-radius: 20px; border: 3px solid #fff; box-shadow: 0 10px 28px rgba(75,50,38,.16); }
.gnap-galerie figcaption { text-align: center; margin-top: .5rem; font-weight: 800; color: #9C8072; font-size: .92rem; }

.gnap-amis { text-align: center; }
.gnap-etapes {
  list-style: none; counter-reset: etape; padding: 0; margin: 0 auto; max-width: 44rem; text-align: left;
  display: grid; gap: .9rem;
}
.gnap-etapes li {
  counter-increment: etape; position: relative; padding: 1rem 1.2rem 1rem 3.6rem;
  background: #fff; border-radius: 20px; border: 2px solid #F3DCCD;
}
.gnap-etapes li::before {
  content: counter(etape); position: absolute; left: 1rem; top: .95rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: #B0DEA0; color: #2F5E2B; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700;
}
code { font-family: 'Fredoka', system-ui, sans-serif; background: #FFE3DC; color: #C95F48; padding: .05rem .45rem; border-radius: 8px; letter-spacing: .08em; }
.gnap-note { color: #9C8072; font-size: .95rem; }
.gnap-amis .gnap-note { max-width: 44rem; margin: 1.2rem auto 0; }

.gnap-installer {
  max-width: 44rem; margin: 0 auto; text-align: center;
  padding: 2rem 1.5rem; border-radius: 26px; background: #fff; border: 2px solid #F3DCCD;
}
.gnap-installer p { margin: 0 0 1rem; }
.gnap-telecharger-bas { margin-top: .6rem; }

.gnap-pied { margin-top: 4rem; padding: 1.4rem 1rem 2rem; text-align: center; font-size: .9rem; color: #9C8072; }
.gnap-pied a { color: #6E5142; font-weight: 700; }

/* ── écran moyen ou étroit : les créatures sous le texte, pas derrière (l'image entière, en bas, sur toute la largeur) ── */
@media (max-width: 1180px) {
  .gnap-hero {
    min-height: auto; padding-top: 4.5rem; padding-bottom: calc(56.25vw + 1rem);
    background: #FFF6EE url(/assets/gnap-banniere.webp) center bottom / 100% auto no-repeat;
  }
  .gnap-hero-texte { margin: 0 auto; text-align: center; }
  .gnap-logo img { margin: 0 auto; }
}

/* ── en étroit (téléphone) ── */
@media (max-width: 860px) {
  .gnap-hero-texte { text-align: left; }
  .gnap-logo img { margin: 0; }
  .gnap-cartes, .gnap-galerie { grid-template-columns: 1fr; gap: 1.8rem; }
  .gnap-section { padding-top: 3rem; }
}

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