/* Page d'accueil des sites Mochi (Kawaii Habits, Kawaii Vibes) : pastel, rond, kawaii. Même fichier dans les deux dépôts ;
   la couleur d'accent de chaque app vient de body[data-app]. */
:root {
  --bg: #FFF8EF;
  --bg-2: #FDEFF4;
  --card: #FFFFFF;
  --ink: #5B4257;
  --soft: #8E7689;
  --line: #F3E3EA;
  --pink: #FF8FAB;
  --pink-deep: #F0668C;
  --pink-soft: #FFD9E3;
  --mint: #8FE3C8;
  --mint-deep: #3FB893;
  --mint-soft: #DCF7EE;
  --lav: #C3B1FF;
  --lav-deep: #8A6FEA;
  --lav-soft: #EDE7FF;
  --butter: #FFE48A;
  --butter-soft: #FFF6D3;
  --sky: #A7DCF7;
  --sky-soft: #E2F4FD;
  --peach-soft: #FFEBDD;
  --accent: var(--pink);
  --accent-deep: var(--pink-deep);
  --accent-soft: var(--pink-soft);
  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(91, 66, 87, 0.35);
}
body[data-app="habits"] { --accent: var(--mint); --accent-deep: var(--mint-deep); --accent-soft: var(--mint-soft); }
body[data-app="vibes"] { --accent: var(--lav); --accent-deep: var(--lav-deep); --accent-soft: var(--lav-soft); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[data-lang] { display: none; }
[data-lang].on { display: revert; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 239, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 10px -4px rgba(91, 66, 87, 0.4); }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 800; font-size: 15px; }
.nav a { text-decoration: none; color: var(--soft); }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: var(--soft); font: inherit; font-weight: 900; font-size: 13px;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }

/* ---------- Boutons et badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: #fff; font-weight: 900; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; border-bottom: 5px solid var(--pink-deep);
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 9px 18px 9px 14px; min-width: 170px;
}
.store svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store strong { display: block; font-size: 17px; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* ---------- Héros ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px);
}
.hero::before { width: 520px; height: 520px; right: -120px; top: -60px; background: var(--accent-soft); }
.hero::after { width: 340px; height: 340px; left: -140px; bottom: -80px; background: var(--butter-soft); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px;
}
.eyebrow img { width: 26px; height: 26px; border-radius: 8px; }
h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; font-weight: 900; margin: 18px 0 16px; letter-spacing: -0.5px; }
.mark { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 90%, transparent 90%); padding: 0 4px; }
.lead { font-size: 19px; color: var(--soft); margin: 0 0 24px; max-width: 34em; }
.stage { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 40px; padding: 9px; background: #fff;
  box-shadow: var(--shadow), 0 0 0 2px var(--line);
}
.phone img { border-radius: 32px; width: 100%; height: auto; }
.stage .phone.a { left: 8%; top: 30px; transform: rotate(-6deg); z-index: 2; }
.stage .phone.b { right: 4%; top: 0; transform: rotate(5deg); }
.float {
  position: absolute; z-index: 3; background: var(--card); border-radius: 22px; padding: 12px 16px;
  font-weight: 800; font-size: 15px; line-height: 1.35; box-shadow: var(--shadow); max-width: 270px;
  border: 2px solid var(--line); animation: bob 5s ease-in-out infinite;
}
.float.f2 { animation-delay: -1.6s; }
.float.f3 { animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.band { background: var(--bg-2); }
.center { text-align: center; }
.kicker {
  display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 4px 12px;
}
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; font-weight: 900; margin: 14px 0 12px; }
h3 { font-size: 21px; font-weight: 900; margin: 12px 0 6px; line-height: 1.25; }
.sub { color: var(--soft); font-size: 18px; max-width: 40em; margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px; border: 2px solid var(--line); text-align: left; }
.step p { margin: 0; color: var(--soft); }
.blob {
  width: 60px; height: 60px; border-radius: 22px; display: grid; place-items: center; font-size: 30px;
  transform: rotate(-6deg);
}

/* Galerie d'écrans, défilement horizontal */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 20px 26px;
  margin: 0 auto; max-width: 1180px; scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 230px; scroll-snap-align: center; text-align: center; }
.gallery .phone { position: static; width: 230px; }
.gallery figcaption { font-weight: 800; margin-top: 14px; font-size: 15px; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 22px 16px; text-align: center; border: 2px solid var(--line); }
.stat b { display: block; font-size: 40px; font-weight: 900; line-height: 1; color: var(--accent-deep); }
.stat span { color: var(--soft); font-weight: 800; font-size: 15px; }

/* Fonctionnalités alternées */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .text { order: 2; }
.feature .shot { position: relative; display: flex; justify-content: center; }
.feature .shot::before {
  content: ''; position: absolute; inset: 8% 6%; border-radius: 48% 52% 44% 56%; background: var(--accent-soft); z-index: -1;
}
.feature .shot .phone { position: static; width: 280px; transform: rotate(-3deg); }
.feature.flip .shot .phone { transform: rotate(3deg); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-weight: 700; }
.ticks li::before {
  content: '♡'; flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 900; font-size: 14px; margin-top: 1px;
}

/* Cartes d'affirmation (Kawaii Vibes) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.quote {
  border-radius: 24px; padding: 22px 20px 54px; font-weight: 800; font-size: 17px; line-height: 1.4; position: relative;
  min-height: 170px; box-shadow: var(--shadow);
}
.quote small { position: absolute; left: 20px; bottom: 18px; font-size: 12px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; opacity: .7; }
.q-morning { background: linear-gradient(160deg, #FFF0B8, #FFD3C4); }
.q-love { background: linear-gradient(160deg, #FFD9E3, #EDE7FF); }
.q-night { background: linear-gradient(160deg, #3A3470, #6E5CB8); color: #FFF4D6; }
.q-brave { background: linear-gradient(160deg, #DCF7EE, #C9E8FA); }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; align-items: stretch; }
.plan { background: var(--card); border-radius: var(--radius); padding: 26px 24px; border: 3px solid var(--line); position: relative; }
.plan.best { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan .ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--accent-deep); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 14px; border-radius: 999px;
}
.plan .price { font-size: 38px; font-weight: 900; line-height: 1.1; margin: 8px 0 2px; }
.plan .price small { font-size: 16px; color: var(--soft); }
.plan .per { color: var(--soft); font-weight: 800; font-size: 15px; min-height: 24px; }
.plan .trial { display: inline-block; margin-top: 12px; background: var(--butter-soft); border-radius: 999px; padding: 3px 12px; font-weight: 900; font-size: 14px; }
.fine { color: var(--soft); font-size: 14px; margin-top: 18px; }

/* FAQ */
.faq { max-width: 780px; margin: 30px auto 0; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 4px 22px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-deep); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; color: var(--soft); }

/* Appel final */
.final {
  background: linear-gradient(140deg, var(--accent-soft), var(--pink-soft) 60%, var(--butter-soft));
  border-radius: 40px; padding: 54px 28px; text-align: center; position: relative; overflow: hidden;
}
.final img.mascot { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 8px; box-shadow: var(--shadow); }
.final .stores { justify-content: center; margin-top: 22px; }

footer { padding: 34px 0 46px; text-align: center; color: var(--soft); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; font-weight: 800; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero { padding-top: 34px; }
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .stage { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; }
  .stage .phone.a { left: 0; }
  .stage .phone.b { right: 0; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plan.best { transform: none; }
  .stats, .cards { grid-template-columns: 1fr 1fr; }
  section { padding: 54px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .stage { height: 410px; }
  .phone { width: 180px; border-radius: 32px; }
  .phone img { border-radius: 25px; }
  .float { font-size: 13px; max-width: 170px; padding: 9px 12px; }
  .store { min-width: 0; flex: 1 1 150px; }
  .cards { grid-template-columns: 1fr; }
  .feature .shot .phone { width: 240px; }
}

img[data-lang].on { display: block; }

@media (max-width: 520px) { .quote { min-height: 0; padding-bottom: 46px; } }

/* ---------- Pages simples (aide, suppression du compte) ---------- */
body.page > .wrap { max-width: 820px; }
body.page .top { position: static; display: flex; align-items: center; justify-content: space-between; height: 76px; background: none; border: 0; backdrop-filter: none; }
body.page main { padding-bottom: 30px; }
body.page section { padding: 22px 0; }
body.page h1 { font-size: clamp(34px, 5vw, 48px); margin: 10px 0 12px; }
body.page h2 { font-size: 28px; margin: 6px 0 14px; }
body.page details { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 4px 22px; margin: 12px 0; }
body.page summary { cursor: pointer; font-weight: 900; padding: 14px 0; }
body.page details p { margin: 0 0 16px; color: var(--soft); }
body.page .note { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 16px 20px; margin: 12px 0; color: var(--soft); }
body.page .steps { display: block; margin: 10px 0 0; padding-left: 22px; }
body.page .steps li { margin: 8px 0; }
body.page a { color: var(--ink); font-weight: 800; text-decoration-color: var(--accent-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.page .brand { color: var(--ink); }
