/* Page de présentation : même style « boîte SMS » que le jeu. Mobile d'abord. Polices et couleurs : base.css. */
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.45 var(--font);
  background: var(--bg);
}

h1, h2, h3 { margin: 0.4em 0; font-weight: 600; }
h2 { font-family: var(--logo); font-weight: 500; font-size: 2rem; text-align: center; }
p { margin: 0.5em 0; }
a { color: var(--bleu); }

.orange { --c: var(--orange); }
.bleu { --c: var(--bleu); }
.vert { --c: var(--vert); }
.rouge { --c: var(--rouge); }

/* En-tête : accroche et exemple dans un téléphone */
.hero {
  display: grid;
  gap: 32px;
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.hero-text { max-width: 480px; text-align: center; }

.authors { margin: 18px 0 0; font-family: "Caveat", cursive; font-size: 1.35rem; font-weight: 600; }
.logo {
  margin: 0;
  font-family: var(--logo);
  font-size: 7rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.logo.small { font-size: 3rem; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; margin: 4px 0 18px; }
.pill {
  position: relative;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-size: 0.9rem;
}
.pill::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -5px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: var(--c);
}

.pitch { font-size: 1.6rem; font-weight: 600; line-height: 1.25; }
mark { padding: 0 6px; border-radius: 10px; background: var(--mark); color: inherit; }
.sub { color: var(--muted); }
.free { color: var(--muted); font-size: 0.9rem; }

.play {
  display: inline-block;
  margin: 14px 0 4px;
  padding: 12px 48px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
}
.play:hover { filter: brightness(1.05); }
.play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Téléphone à bord noir, comme le jeu sur ordinateur */
.phone {
  position: relative;
  width: min(320px, 100%);
  margin: 0;
  padding: 18px 18px 22px;
  border: solid var(--ink);
  border-width: 34px 12px 30px;
  border-radius: 34px;
  background: var(--bg);
  box-shadow: 0 0 0 2px #8a8a8a, 0 16px 40px rgb(0 0 0 / 20%);
  font-size: 1rem;
}
.phone::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  border-top: 4px dotted #555;
}
.phone .label { margin: 0; font-weight: 600; }
.phone .card {
  margin: 6px 4px 18px;
  padding: 10px 14px;
  border: var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-1.5deg);
  font-size: 1.7rem;
  font-weight: 600;
}
.phone .card span { padding: 0 10px; border-radius: 14px; background: var(--mark); }
.bubble {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 16px;
  border-radius: 22px 22px 22px 4px;
  background: var(--c);
  color: #fff;
  font-size: 1.3rem;
}
.count { margin: 2px 0 0 4px; color: var(--muted); font-size: 0.85rem; }
.guess {
  width: fit-content;
  max-width: 85%;
  margin: 6px 0 0 auto;
  padding: 4px 12px;
  border-radius: 18px 18px 4px 18px;
  background: #eee;
}
.guess b { color: var(--muted); font-weight: 600; }
.phone figcaption {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--box);
  text-align: center;
  font-weight: 600;
}

/* Sections */
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 32px 0; }

.steps ol {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: var(--box);
  counter-increment: step;
}
.step h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; font-size: 1.4rem; }
.step h3::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 6px;
  background: var(--c);
  color: #fff;
  font-size: 1.1rem;
}

.how, .box { max-width: 640px; margin: 0 auto; text-align: center; }
.box {
  margin-bottom: 32px;
  padding: 24px 20px;
  border: var(--border);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--ink);
}
.box h2 { margin-top: 0; }
.hand { font-family: "Caveat", cursive; font-size: 1.3em; font-weight: 600; }

footer {
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  background: var(--page);
  text-align: center;
}
footer p { margin: 0; }

/* Grand écran : accroche à gauche, téléphone à droite ; étapes côte à côte */
@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr auto; align-items: center; padding-top: 48px; gap: 64px; }
  .hero-text { justify-self: end; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
}

/* Page de contact */
.center { text-align: center; }
.contact { max-width: 520px; padding-bottom: 48px; }
.home { color: inherit; text-decoration: none; }
.editors { margin-top: 16px; padding: 12px 16px; border: var(--border); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.form { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--box); }
.form label { display: block; margin-bottom: 14px; }
.form label > span { display: block; margin-bottom: 4px; font-weight: 600; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  width: 100%;
  padding: 10px 12px;
  border: var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--mark); outline-offset: 0; }
.form .play { display: block; margin: 8px auto 0; border: none; font: inherit; font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.form .play:disabled { background: #d6d6d6; color: var(--muted); }
.trap { position: absolute; left: -9999px; }
.status { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; text-align: center; font-weight: 600; }
.status.ok { background: #fff; }
.status.error { background: #fdebef; color: var(--danger); }
