/* ============================================================
   Detlly — landing. Direction : fintech joueuse et rassurante.
   Fredoka (titrage rond) + Plus Jakarta Sans (texte).
   Un seul dégradé signature mandarine→framboise, accent lime,
   fond crème, blocs pleins, le cochon en mascotte.
   ============================================================ */

@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/Fredoka-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../assets/fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../assets/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../assets/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

:root {
  --cream: #fdf2ec;
  --cream-2: #fbe8e0;
  --ink: #241b2f;
  --ink-soft: #6b6475;
  --white: #ffffff;
  --mandarine: #ff7a4d;
  --framboise: #ff3d77;
  --violet: #6c4cf1;
  --lime: #b6ff5c;
  --lime-ink: #2f4d05;
  --grad-hero: linear-gradient(135deg, #ff7a4d 0%, #ff3d77 100%);
  --grad-plus: linear-gradient(135deg, #6c4cf1 0%, #ff3d77 100%);
  --radius: 30px;
  --radius-sm: 18px;
  --shadow: 0 24px 50px -24px rgba(70, 30, 60, 0.35);
  --shadow-soft: 0 14px 30px -18px rgba(70, 30, 60, 0.28);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: 'Fredoka', sans-serif; font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Jakarta', sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-hero); color: #fff; box-shadow: 0 14px 26px -12px rgba(255, 61, 119, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(255, 61, 119, .8); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- badges stores ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 15px;
  padding: 10px 18px; box-shadow: var(--shadow-soft);
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .sb-top { font-size: 11px; opacity: .8; line-height: 1.1; letter-spacing: .02em; }
.store-badge .sb-main { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.15; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(253, 242, 236, 0.82);
  border-bottom: 1px solid rgba(70, 30, 60, .06);
}
header.site .row { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; }
.brand .name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* sélecteur de langue */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--white); border: none; border-radius: 999px; padding: 9px 14px;
  font-family: 'Jakarta', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--white);
  border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none; min-width: 150px;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Jakarta', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 9px 12px; border-radius: 10px;
}
.lang-menu button:hover { background: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 66px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--framboise); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin-bottom: 20px; }
.hero p.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }
.hero .cta-row { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero .note-trial { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* blobs décoratifs */
.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; z-index: -1; }
.blob.b1 { width: 320px; height: 320px; background: #ffd9c9; top: -80px; right: -60px; }
.blob.b2 { width: 240px; height: 240px; background: #e7defc; bottom: -40px; left: -70px; }

/* mockup téléphone */
.phone {
  position: relative; width: 300px; max-width: 78vw; margin: 0 auto;
  border-radius: 46px; background: #1c1524; padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(70, 30, 60, .55); transform: rotate(-2deg);
}
.phone img { width: 100%; height: auto; display: block; border-radius: 36px; }
.hero-phone-wrap { position: relative; display: flex; justify-content: center; }
.hero-pig {
  position: absolute; width: 108px; left: -6px; bottom: -14px; z-index: 3;
  filter: drop-shadow(0 14px 22px rgba(255, 61, 119, .35));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* Le téléphone du hero flotte doucement (garde son inclinaison -2°). */
.hero-phone-wrap .phone { animation: heroPhoneFloat 5.5s ease-in-out infinite; will-change: transform; }
@keyframes heroPhoneFloat {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-16px); }
}

/* ---------- sections génériques ---------- */
section { padding: 62px 0; }
section[id] { scroll-margin-top: 86px; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 46px; }
.section-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--framboise); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 12px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- promesses (lignes éditoriales alternées) ---------- */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 46px 0; }
.promise.flip .promise-visual { order: -1; }
.promise-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: var(--lime-ink);
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 18px;
}
.promise h3 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.promise p { color: var(--ink-soft); font-size: 18px; max-width: 26em; }
.promise-visual { display: flex; justify-content: center; }
.promise-visual .phone { width: 264px; transform: rotate(2deg); }
.promise.flip .promise-visual .phone { transform: rotate(-2deg); }

/* ---------- fonctionnalités ---------- */
.features { background: var(--cream-2); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--white); border-radius: var(--radius-sm); padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.feat .ic { font-size: 30px; margin-bottom: 12px; display: block; }
.feat h4 { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.feat p { color: var(--ink-soft); font-size: 15px; }

/* ---------- prix ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; max-width: 820px; margin: 0 auto; align-items: stretch; }
.plan { background: var(--white); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.plan.plus { background: var(--grad-plus); color: #fff; box-shadow: 0 28px 54px -22px rgba(108, 76, 241, .6); position: relative; }
.plan .plan-name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px; }
.plan .price { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 46px; margin: 12px 0 2px; }
.plan .price small { font-size: 18px; font-weight: 600; opacity: .8; }
.plan .price-alt { font-size: 14px; opacity: .8; margin-bottom: 18px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 8px 0 24px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; }
.plan li .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px;
}
.plan.free li .tick { background: #eafbdc; color: var(--lime-ink); }
.plan.plus li .tick { background: var(--lime); color: var(--lime-ink); }
.plan .trial-pill {
  align-self: flex-start; background: var(--lime); color: var(--lime-ink);
  font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.plan .plan-foot { margin-top: auto; }
.plan.plus .btn-ghost { color: var(--ink); }

/* ---------- CTA final ---------- */
.final-cta .band {
  background: var(--grad-hero); color: #fff; border-radius: 36px; padding: 54px 40px;
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.final-cta p { font-size: 18px; opacity: .92; max-width: 34rem; margin: 0 auto 26px; }
.final-cta .stores { justify-content: center; }
.final-cta .store-badge { background: #fff; color: var(--ink); }
.final-cta .pig-corner { position: absolute; width: 120px; right: 26px; bottom: -12px; opacity: .95; }

/* ---------- footer ---------- */
footer.site { padding: 46px 0 40px; border-top: 1px solid rgba(70,30,60,.08); }
footer.site .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer.site .brand .name { font-size: 20px; }
footer.site .f-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site .f-links a { color: var(--ink-soft); font-weight: 600; }
footer.site .f-links a:hover { color: var(--ink); }
footer.site .copy { color: var(--ink-soft); font-size: 14px; width: 100%; }

/* ---------- hover / micro-interactions ---------- */
@media (hover: hover) {
  .feat, .plan { transition: transform .22s ease, box-shadow .22s ease; }
  .feat:hover { transform: translateY(-6px); box-shadow: 0 24px 42px -22px rgba(70, 30, 60, .38); }
  .plan:hover { transform: translateY(-5px); }
  .promise-visual .phone { transition: transform .4s cubic-bezier(.2, .7, .3, 1); }
  .promise .promise-visual:hover .phone { transform: rotate(0deg) scale(1.03); }
  .faq-item summary:hover, .faq-item summary:hover::after { color: var(--framboise); }
  .final-cta .store-badge, .hero .store-badge { transition: transform .18s ease, box-shadow .18s ease; }
  .store-badge:hover { transform: translateY(-3px); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .cta-row { align-items: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-phone-wrap { margin-top: 30px; }
  .promise { grid-template-columns: 1fr; gap: 22px; text-align: center; margin: 40px 0; }
  .promise.flip .promise-visual { order: 0; }
  .promise-num, .promise p { margin-left: auto; margin-right: auto; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  section { padding: 48px 0; }
  .final-cta .pig-corner { display: none; }
}

/* réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); padding: 2px 24px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 19px 0; font-family: 'Fredoka', sans-serif;
  font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 28px; font-weight: 400; color: var(--framboise); line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; color: var(--ink-soft); font-size: 16px; }

/* ---------- pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-family: 'Fredoka', sans-serif; font-size: 21px; margin: 30px 0 8px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal li { margin: 5px 0; }
.legal a { color: var(--violet); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 700; color: var(--framboise); }
.legal .lang-switch { float: right; font-size: 14px; }
.legal .lang-switch a { color: var(--ink-soft); font-weight: 700; margin-left: 10px; text-decoration: none; }
.legal .lang-switch a.active { color: var(--framboise); }
