/* ============================================================
   Emargio — page d'accueil (design éditorial chaleureux)
   Chargée uniquement sur la landing. Scopée sous .lp.
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

body { background: #FBF6EF; }

.lp {
  --bg: #FBF6EF;
  --bg-2: #F4EADD;
  --paper: #FFFFFF;
  --ink: #221A13;
  --ink-soft: #6E6055;
  --line: #E9DDCB;
  --accent: #FF5722;
  --accent-deep: #DC3F16;
  --accent-tint: #FFE2D5;
  --gold: #E8A23D;
  --ok: #1F9D55;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  /* grain subtil */
  position: relative;
}
.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp h1, .lp h2, .lp h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.lp p { margin: 0; }
.lp a { text-decoration: none; }
.lp a:not(.lp-btn) { color: inherit; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
html { scroll-behavior: smooth; }
.lp [id] { scroll-margin-top: 84px; }

/* boutons */
.lp-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
  white-space: nowrap;
}
.lp-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(255,87,34,.6); }
.lp-btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255,87,34,.7); }
.lp-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.lp-btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.lp-btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.lp-btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(34,26,19,.4); }
.lp-btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ---------- En-tête ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(251,246,239,.82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.lp-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(34,26,19,.5); }
.lp-header-inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.lp-brand-badge {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 16px -6px rgba(255,87,34,.7);
}
.lp-nav { display: none; margin-left: auto; gap: 4px; align-items: center; }
.lp-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-soft); transition: color .15s, background .15s; }
.lp-nav a:hover { color: var(--ink); background: var(--bg-2); }
.lp-header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp-header-cta .lp-login { display: none; font-weight: 600; color: var(--ink-soft); padding: 8px 12px; }
.lp-header-cta .lp-login:hover { color: var(--ink); }
@media (min-width: 920px) {
  .lp-nav { display: flex; }
  .lp-header-cta { margin-left: 0; }
  .lp-header-cta .lp-login { display: inline; }
}

/* ---------- Hero ---------- */
.lp-hero { position: relative; padding: 54px 0 40px; }
.lp-hero::before {
  /* halo doux derrière le visuel */
  content: ''; position: absolute; right: -10%; top: 4%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,87,34,.18), transparent 62%);
  pointer-events: none; z-index: 0;
}
.lp-hero-grid { position: relative; z-index: 1; display: grid; gap: 38px; grid-template-columns: 1fr; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-tint);
  padding: 7px 14px; border-radius: 999px;
}
.lp-hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 22px 0 0; }
.lp-mark { position: relative; white-space: nowrap; color: var(--accent-deep); }
.lp-mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .34em; z-index: -1;
  background: var(--accent-tint); transform: rotate(-1.2deg); border-radius: 4px;
}
.lp-hero .lp-sub { font-size: 1.18rem; color: var(--ink-soft); margin: 22px 0 0; max-width: 33ch; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-trustline { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-soft); }
.lp-trustline span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trustline .dot { color: var(--ok); font-weight: 800; }

/* visuel hero : téléphone + cartes flottantes */
.lp-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.lp-phone {
  position: relative; width: 248px; height: 500px; border-radius: 42px;
  background: linear-gradient(160deg, #2b231b, #100c08); padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(34,26,19,.6), inset 0 0 0 2px rgba(255,255,255,.06);
  transform: rotate(-4deg); z-index: 2;
}
.lp-phone-screen { width: 100%; height: 100%; border-radius: 32px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.lp-ph-top { background: var(--accent); color: #fff; padding: 20px 18px 16px; }
.lp-ph-top .org { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.lp-ph-top .ttl { font-family: var(--display); font-size: 1.05rem; margin-top: 4px; line-height: 1.1; }
.lp-ph-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.lp-ph-field { height: 34px; border-radius: 8px; background: #F1ECE4; }
.lp-ph-field.sm { width: 70%; }
.lp-ph-sign { flex: 1; border: 2px dashed #Dcd3c6; border-radius: 12px; position: relative; min-height: 90px; }
.lp-ph-sign svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-ph-btn { height: 40px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: .82rem; display: grid; place-items: center; }

.lp-float {
  position: absolute; background: #fff; border-radius: 16px; padding: 13px 15px;
  box-shadow: 0 22px 48px -22px rgba(34,26,19,.45); z-index: 3;
  border: 1px solid var(--line);
}
.lp-float-qr { top: 6%; left: 2%; transform: rotate(-6deg); }
.lp-float-qr .qr { width: 76px; height: 76px; display: block; }
.lp-float-qr .cap { font-size: .68rem; font-weight: 700; text-align: center; margin-top: 6px; color: var(--ink-soft); }
.lp-float-done { bottom: 8%; right: 0; display: flex; align-items: center; gap: 10px; transform: rotate(3deg); }
.lp-float-done .check { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.lp-float-done .t { font-size: .78rem; font-weight: 700; line-height: 1.2; }
.lp-float-done .t small { display: block; font-weight: 500; color: var(--ink-soft); }

@media (min-width: 920px) {
  .lp-hero { padding: 78px 0 64px; }
  .lp-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 30px; }
}

/* ---------- Bande de réassurance ---------- */
.lp-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.lp-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.lp-trust-item { padding: 22px 18px; text-align: center; }
.lp-trust-item .ic { font-size: 1.5rem; }
.lp-trust-item .lab { font-weight: 700; margin-top: 6px; font-size: .96rem; }
.lp-trust-item .sub { font-size: .82rem; color: var(--ink-soft); }
@media (min-width: 760px) { .lp-trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections génériques ---------- */
.lp-section { padding: 72px 0; }
.lp-section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.lp-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.lp-section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-top: 12px; }
.lp-section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 14px; }

/* fonctionnalités */
.lp-features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .lp-features { grid-template-columns: repeat(3, 1fr); } }
.lp-feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.lp-feat:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(34,26,19,.45); }
.lp-feat .ic { width: 54px; height: 54px; border-radius: 15px; background: var(--accent-tint); display: grid; place-items: center; font-size: 26px; }
.lp-feat h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.lp-feat p { color: var(--ink-soft); }

/* étapes illustrées */
.lp-steps { background: var(--ink); color: #F6EFE4; position: relative; }
.lp-steps .lp-kicker { color: var(--gold); }
.lp-steps .lp-section-head h2 { color: #fff; }
.lp-steps .lp-section-head p { color: #C9BCAC; }
.lp-steps-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lp-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .lp-steps-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-step { position: relative; }
.lp-step-media {
  position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
  background: linear-gradient(150deg, #34291e, #221a13);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.lp-step-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-step-media .ph { font-size: 3rem; opacity: .5; } /* repli si image absente */
.lp-step-num {
  position: absolute; top: -14px; left: -10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgba(255,87,34,.8); border: 3px solid var(--ink);
}
.lp-step h3 { color: #fff; font-size: 1.22rem; margin: 18px 0 7px; }
.lp-step p { color: #C9BCAC; font-size: .96rem; }

/* tarifs */
.lp-pricing { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
@media (min-width: 740px) { .lp-pricing { grid-template-columns: 1fr 1fr; } }
.lp-price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; position: relative;
}
.lp-price.feat { border: 2px solid var(--accent); box-shadow: 0 30px 60px -34px rgba(255,87,34,.55); }
.lp-price .badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-tint); padding: 5px 12px; border-radius: 999px; }
.lp-price .amount { font-family: var(--display); font-size: 2.8rem; font-weight: 600; margin: 14px 0 2px; }
.lp-price .amount small { font-size: 1rem; font-family: var(--sans); color: var(--ink-soft); font-weight: 500; }
.lp-price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.lp-price li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.lp-price li::before { content: '✓'; color: var(--ok); font-weight: 800; }

/* FAQ */
.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.lp-faq summary { font-family: var(--display); font-size: 1.18rem; font-weight: 600; padding: 16px 40px 16px 0; cursor: pointer; list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--accent); transition: transform .25s; font-family: var(--sans); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { color: var(--ink-soft); padding: 0 10px 18px 0; }

/* CTA final */
.lp-cta { padding: 8px 0 80px; }
.lp-cta-card {
  background: linear-gradient(135deg, #FF6A3D, var(--accent-deep)); color: #fff;
  border-radius: 30px; padding: 56px 30px; text-align: center; position: relative; overflow: hidden;
}
.lp-cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% -10%, rgba(255,255,255,.25), transparent 50%); }
.lp-cta-card h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); position: relative; }
.lp-cta-card p { position: relative; margin: 14px auto 28px; max-width: 46ch; opacity: .95; font-size: 1.1rem; }
.lp-cta-card .lp-btn-light { position: relative; }

/* pied de page */
.lp-footer { background: var(--ink); color: #C9BCAC; padding: 50px 0 40px; }
.lp-footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.lp-footer .lp-brand { color: #fff; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lp-footer-links a { color: #C9BCAC; transition: color .15s; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* ---------- Animations ---------- */
.lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.lp-reveal.in { opacity: 1; transform: none; }
.lp-load > * { opacity: 0; transform: translateY(18px); animation: lpUp .8s cubic-bezier(.2,.8,.2,1) forwards; }
.lp-load > *:nth-child(1) { animation-delay: .05s; }
.lp-load > *:nth-child(2) { animation-delay: .15s; }
.lp-load > *:nth-child(3) { animation-delay: .25s; }
.lp-load > *:nth-child(4) { animation-delay: .35s; }
.lp-load > *:nth-child(5) { animation-delay: .45s; }
.lp-hero-visual { opacity: 0; animation: lpFloat 1s .35s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lpUp { to { opacity: 1; transform: none; } }
@keyframes lpFloat { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.lp-phone { animation: lpBob 6s ease-in-out infinite; }
.lp-float-qr { animation: lpBob 5s ease-in-out infinite; }
.lp-float-done { animation: lpBob 7s ease-in-out .5s infinite; }
@keyframes lpBob { 0%,100% { transform: var(--bob-base, rotate(-4deg)) translateY(0); } 50% { transform: var(--bob-base, rotate(-4deg)) translateY(-12px); } }
.lp-phone { --bob-base: rotate(-4deg); }
.lp-float-qr { --bob-base: rotate(-6deg); }
.lp-float-done { --bob-base: rotate(3deg); }

@media (prefers-reduced-motion: reduce) {
  .lp-reveal, .lp-load > *, .lp-hero-visual, .lp-phone, .lp-float-qr, .lp-float-done { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}
