/* ───────────────────────────────────────────────
   Puffle — site vitrine. Design system aligné sur l'app.
   Mobile-first, responsive.
   ─────────────────────────────────────────────── */
:root {
  --mint: #14D39A;
  --mint-dark: #0E9E74;
  --mint-soft: #D7F7EC;
  --violet: #6C4DF6;
  --violet-soft: #EDE9FF;
  --coral: #FF5C6C;
  --coral-soft: #FFE1E4;
  --ink: #0E1122;
  --cloud: #F4F6FB;
  --card: #FFFFFF;
  --muted: #6B7280;
  --line: #E7EAF3;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(14, 17, 34, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo img { width: 34px; height: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  padding: 13px 22px; border-radius: 999px; transition: transform .12s ease, opacity .12s ease;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-mint { background: var(--mint); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ─── Hero ─── */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint-soft); color: var(--mint-dark);
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); margin: 18px 0 26px; max-width: 30ch; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 80%); filter: drop-shadow(0 20px 40px rgba(108, 77, 246, .25)); }

/* ─── Waitlist form ─── */
.waitform { display: flex; gap: 10px; max-width: 440px; flex-wrap: wrap; }
.waitform input {
  flex: 1; min-width: 200px; padding: 15px 18px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
}
.waitform input:focus { outline: none; border-color: var(--violet); }
.form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-msg.ok { color: var(--mint-dark); }
.form-msg.err { color: var(--coral); }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ─── Sections ─── */
section { padding: 56px 0; }
.section-tag { color: var(--violet); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
h2 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 900; letter-spacing: -.5px; margin: 8px 0 14px; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 56ch; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .emoji { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #c9cede; max-width: 52ch; margin: 0 auto 26px; font-size: 18px; }
.band .waitform { margin: 0 auto; justify-content: center; }
.band input { border-color: transparent; }

.problem { background: linear-gradient(180deg, var(--mint-soft), var(--cloud)); border-radius: 28px; padding: 44px 32px; text-align: center; }
.big-num { font-size: clamp(48px, 10vw, 92px); font-weight: 900; color: var(--mint-dark); line-height: 1; letter-spacing: -2px; }

/* ─── Footer ─── */
footer { background: var(--ink); color: #aeb4c7; padding: 48px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
footer a { display: block; padding: 6px 0; color: #aeb4c7; font-size: 15px; }
footer a:hover { color: #fff; }
.foot-note { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 22px; font-size: 13px; color: #7c8299; }
.foot-note strong { color: #aeb4c7; }

/* ─── Pages légales / contenu ─── */
.page { background: var(--card); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin: 40px 0; }
.page h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.page h2 { font-size: 22px; margin: 28px 0 8px; }
.page p, .page li { color: #2b3040; font-size: 16px; margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-weight: 700; margin-bottom: 20px; }
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ─── Animations au scroll ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } .floaty, .blob { animation: none !important; } }

/* ─── Dégradés & texte ─── */
.grad {
  background: linear-gradient(105deg, var(--mint) 0%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 .grad { display: inline-block; }

/* ─── Décor : blobs flous + puffs barrées flottantes ─── */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }
.blob-1 { width: 320px; height: 320px; background: var(--mint); top: -80px; right: -60px; animation: drift 14s ease-in-out infinite; }
.blob-2 { width: 260px; height: 260px; background: var(--violet); bottom: -100px; left: -80px; animation: drift 18s ease-in-out infinite reverse; }
.hero .wrap { position: relative; z-index: 1; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.08); } }

.floaty { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

.deco-puff { position: absolute; z-index: 0; opacity: .12; pointer-events: none; }
.deco-puff.p1 { width: 70px; top: 14%; left: 6%; animation: float 7s ease-in-out infinite; }
.deco-puff.p2 { width: 54px; bottom: 12%; right: 8%; animation: float 9s ease-in-out infinite reverse; }
.section-rel { position: relative; overflow: hidden; }

/* petite puff barrée inline (accent de section) */
.nopuff-badge { width: 68px; height: 68px; margin: 0 auto 6px; }

/* ─── Boutons : brillance + lift ─── */
.btn { position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(108,77,246,.18); }
.btn-mint { box-shadow: 0 8px 20px rgba(20,211,154,.28); }
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }

.step, .feature { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover, .feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,17,34,.12); }

/* ─── Mockup téléphone (écrans d'app recréés en CSS) ─── */
.phone {
  width: 290px; max-width: 84%; aspect-ratio: 290 / 600;
  background: #0E1122; border-radius: 46px; padding: 11px;
  box-shadow: 0 44px 90px rgba(14,17,34,.38), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative; margin: 0 auto;
}
.phone::before { /* Dynamic Island */
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; background: #0E1122; border-radius: 999px; z-index: 4;
}
.screen { width: 100%; height: 100%; background: linear-gradient(180deg, #FDFEFF, var(--cloud)); border-radius: 36px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.screen::after { /* home indicator */
  content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 5px; border-radius: 3px; background: rgba(14,17,34,.22); z-index: 5;
}
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px 2px; font-size: 13px; font-weight: 800; color: var(--ink); }
.sbar .icons { display: flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: 1px; }
.app-pad { padding: 10px 18px 4px; flex: 1; display: flex; flex-direction: column; }

/* barre d'onglets */
.tabbar { display: flex; justify-content: space-around; align-items: center; padding: 8px 6px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.7); }
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 700; color: var(--muted); }
.tabbar .tab.on { color: var(--violet); }
.tabbar .tab .ic { font-size: 18px; }

/* chips & cartes mini */
.chips { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.chip { background: var(--mint-soft); color: var(--mint-dark); font-size: 10px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.chip.v { background: var(--violet-soft); color: var(--violet); }
.chip.c { background: var(--coral-soft); color: #C1121F; }
.mini-card { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 14px rgba(14,17,34,.05); margin-bottom: 10px; }
.mini-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; }
.mini-card .row span { color: var(--muted); font-weight: 600; }
.bar { height: 8px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--mint), var(--mint-dark)); }

.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--mint-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.app-head b { font-size: 15px; } .app-head .sub { font-size: 12px; color: var(--muted); display: block; }
.ring { width: 112px; height: 112px; border-radius: 50%; margin: 2px auto 2px;
  background: conic-gradient(var(--mint) 0turn 0.62turn, var(--line) 0.62turn 1turn);
  display: flex; align-items: center; justify-content: center; }
.ring-in { width: 92px; height: 92px; border-radius: 50%; background: #FDFEFF; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in b { font-size: 26px; font-weight: 900; line-height: 1; } .ring-in span { font-size: 10px; color: var(--muted); }
.mini-caption { text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.sos {
  margin: auto auto 8px; width: 122px; height: 122px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8A96, var(--coral) 60%, #E5384B);
  box-shadow: 0 16px 34px rgba(255,92,108,.45); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; animation: pulse 2.4s ease-in-out infinite;
}
.sos b { font-size: 17px; font-weight: 900; } .sos span { font-size: 10px; opacity: .92; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-head b { font-size: 14px; } .chat-head .badge { font-size: 10px; color: var(--violet); font-weight: 700; }
.bubbles { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: flex-end; overflow: hidden; }
.bub { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: 12.5px; line-height: 1.4; }
.bub.bot { background: var(--card); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: 0 3px 10px rgba(14,17,34,.06); }
.bub.me { background: var(--mint); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.typing { align-self: flex-start; display: flex; gap: 4px; background: var(--card); padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 5px; box-shadow: 0 3px 10px rgba(14,17,34,.06); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-cta { text-align: center; margin: 12px 0 6px; }
.chat-cta .pill { display: inline-block; background: var(--mint-soft); color: var(--mint-dark); font-size: 11px; font-weight: 800; padding: 8px 16px; border-radius: 999px; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px 14px 16px; }
.chat-input .box { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 11px; color: var(--muted); }
.chat-input .send { width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }

.showcase { background: linear-gradient(180deg, var(--cloud), var(--violet-soft)); border-radius: 28px; padding: 48px 24px; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 30px; }
.showcase-grid .txt h3 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.showcase-grid .txt p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .waitform { margin: 0 auto; justify-content: center; }
  .hero-art { order: -1; }
  .steps, .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav .btn { padding: 10px 16px; font-size: 14px; }
  .page { padding: 26px 20px; }
}

/* ── Sélecteur de langue FR/EN (partagé) ── */
.lang-switch{display:inline-flex;gap:2px;background:rgba(108,77,246,.08);border-radius:999px;padding:3px}
.lang-switch button{border:0;background:transparent;font:inherit;font-weight:800;font-size:13px;color:var(--violet);padding:6px 12px;border-radius:999px;cursor:pointer;opacity:.55}
.lang-switch button.on{background:var(--violet);color:#fff;opacity:1}
