/* Bascule : pages d'assistance et de confidentialité, dans l'univers du jeu
   (ciel violet au coucher du soleil, contours épais, poids colorés). */
:root {
  --sky-1: #5a4bc8; --sky-2: #8b6bc8; --sky-3: #d98f8a; --sky-4: #f3b27a;
  --hill: #6f5fb3;
  --ink: #2a2140; --ink-soft: #4a4166; --muted: #6b6386;
  --paper: #fff9f0; --white: #ffffff; --line: #e7dfd2;
  --gold: #f6c544; --orange: #f08a3c; --pink: #e8649a; --purple: #8a5cf0; --teal: #1fb39b; --red: #e14b4b; --green: #7ed36b;
  --display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.65 var(--body); background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #3b5bdb; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* ---------- Ciel ---------- */
.sky {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 78%, var(--sky-4) 100%);
  padding-top: env(safe-area-inset-top, 0px);
}
.sky::after { /* collines */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 140px;
  background: radial-gradient(60% 100% at 25% 100%, var(--hill) 60%, transparent 61%), radial-gradient(55% 90% at 80% 100%, #7d6cc0 60%, transparent 61%);
  pointer-events: none;
}
.cloud { position: absolute; width: 160px; height: 46px; background: var(--white); border-radius: 40px; opacity: .92; box-shadow: 0 6px 0 rgba(42, 33, 64, .08); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--white); border-radius: 50%; }
.cloud::before { width: 64px; height: 64px; left: 26px; top: -30px; }
.cloud::after { width: 84px; height: 84px; left: 66px; top: -44px; }
.cloud--a { top: 120px; left: -40px; }
.cloud--b { top: 130px; right: 4%; transform: scale(.75); }
.cloud--c { top: 330px; right: 34%; transform: scale(.55); opacity: .7; }
.sun { position: absolute; width: 120px; height: 120px; border-radius: 50%; right: 22%; top: 150px; background: radial-gradient(circle, #ffb08a 0%, #ff8a6b 55%, rgba(255, 138, 107, 0) 72%); }

/* ---------- En-tête ---------- */
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: .01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 3px solid var(--ink); }
.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--white); text-decoration: none; font: 600 15px/1 var(--display); padding: 9px 14px; border-radius: 999px; background: rgba(42, 33, 64, .22); }
.top nav a:hover { background: rgba(42, 33, 64, .4); }

/* ---------- Héros ---------- */
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 20px; padding-bottom: 110px; }
.app-icon { width: 108px; height: 108px; border-radius: 26px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); margin-bottom: 22px; }
.title {
  font: 700 clamp(56px, 9vw, 92px)/.95 var(--display); margin: 0; color: var(--white); letter-spacing: .01em;
  text-shadow: 0 4px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink), 3px 4px 0 var(--ink), -3px 4px 0 var(--ink);
}
.subtitle { font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--display); color: #fff1c9; margin: 18px 0 12px; }
.hero p.lead { font-size: 18px; max-width: 34em; color: #fdf8ff; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.chips li { font: 600 14px/1 var(--display); padding: 9px 13px; border-radius: 999px; background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); }
/* Boutons de téléchargement : badge officiel Apple (non modifié) et Google Play à venir */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.store-badge img { height: 56px; width: auto; display: block; }
.store-badge:hover img { filter: brightness(1.12); }
.store-soon { display: inline-flex; align-items: center; height: 56px; padding: 0 20px; border-radius: 12px; font: 600 16px/1 var(--display); color: #6b6386; background: #ddd8ea; border: 2px solid #b9b2cf; cursor: not-allowed; user-select: none; }

/* Téléphones (avec Dynamic Island) */
.phones { position: relative; display: flex; justify-content: center; align-items: center; justify-self: center; width: 100%; }
.phone { position: relative; flex: none; width: min(270px, 62vw); padding: 9px; border-radius: 42px; background: var(--ink); box-shadow: 0 10px 0 rgba(42, 33, 64, .35), 0 30px 60px -20px rgba(42, 33, 64, .6); }
.phone::before { content: ""; position: absolute; z-index: 2; top: calc(9px + 1.3%); left: 50%; transform: translateX(-50%); width: 32%; aspect-ratio: 3.6 / 1; border-radius: 999px; background: #000; }
.phone img { border-radius: 33px; width: 100%; height: auto; aspect-ratio: 923 / 2000; object-fit: cover; }
.phone--main { z-index: 2; transform: rotate(2deg); }
.phone--side { z-index: 1; width: min(200px, 46vw); opacity: .95; }
.phone--left { margin-right: -70px; transform: rotate(-9deg) translateY(30px); }
.phone--right { margin-left: -70px; transform: rotate(9deg) translateY(30px); }

/* ---------- Sections ---------- */
.section { padding-top: 70px; padding-bottom: 10px; }
.section h2 { font: 700 clamp(30px, 4vw, 40px)/1.1 var(--display); margin: 0 0 10px; }
.section .intro { color: var(--muted); margin: 0 0 30px; max-width: 40em; }
.card { background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 0 6px 0 var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { padding: 26px 24px 24px; }
.step h3 { font: 700 22px/1.2 var(--display); margin: 16px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* Poids façon jeu */
.weight { position: relative; display: inline-grid; place-items: center; width: 64px; height: 50px; margin-top: 12px; background: var(--c, var(--orange)); border: 3px solid var(--ink); border-radius: 12px 12px 16px 16px; clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.weight-wrap { position: relative; display: inline-block; padding-top: 12px; }
.weight-wrap::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 22px; transform: translateX(-50%); border: 5px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; }
.weight span { min-width: 34px; padding: 1px 6px; border-radius: 8px; background: var(--white); border: 2px solid var(--ink); font: 700 20px/1.2 var(--display); text-align: center; }

/* Aide */
.faq { display: grid; gap: 14px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font: 600 19px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--ink); font: 700 20px/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .answer p { margin: 0; }
.faq .answer p + p { margin-top: 10px; }
.dot { width: 14px; height: 14px; border-radius: 4px; border: 2.5px solid var(--ink); background: var(--c); flex: none; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 28px; background: #fff3d6; }
.contact h2 { margin: 0 0 6px; }
.contact p { margin: 0; color: var(--ink-soft); max-width: 36em; }
.mail { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); color: var(--ink); text-decoration: none; padding: 15px 22px; border-radius: 16px; background: var(--teal); color: var(--white); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.mail:hover { transform: translateY(1px); box-shadow: 0 4px 0 var(--ink); }
.mail:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.mail svg { width: 20px; height: 20px; }

/* Page de texte (confidentialité) */
.doc-hero { position: relative; z-index: 1; padding-top: 10px; padding-bottom: 100px; }
.doc-hero .title { font-size: clamp(38px, 6vw, 60px); }
.doc-hero p { color: #fdf8ff; margin: 16px 0 0; max-width: 40em; }
.doc { position: relative; z-index: 2; margin-top: -70px; padding: clamp(22px, 4vw, 44px); }
.doc h2 { font: 700 24px/1.25 var(--display); margin: 34px 0 8px; display: flex; align-items: center; gap: 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-soft); }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.updated { display: inline-block; font: 600 14px/1 var(--display); padding: 8px 12px; border-radius: 999px; background: rgba(42, 33, 64, .25); color: var(--white); margin-top: 18px; }
.todo { background: #fff0b8; border: 1.5px dashed #c99a00; border-radius: 6px; padding: 0 5px; color: var(--ink); }

/* Pied de page */
.foot { margin-top: 70px; padding-top: 26px; padding-bottom: 34px; border-top: 2px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 90px; }
  .phone--main { width: min(230px, 56vw); }
  .phone--side { width: min(170px, 38vw); }
  .phone--left { margin-right: -60px; }
  .phone--right { margin-left: -60px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mail { margin-left: 0; }
  .cloud--c, .sun { display: none; }
}
@media (max-width: 520px) {
  .stores { flex-direction: column; align-items: flex-start; }
  .top nav a { font-size: 14px; padding: 8px 11px; }
  .brand span { display: none; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mail:hover, .mail:active { transform: none; } }
