:root {
  --bg: #f5f6f8;
  --bg-alt: #f5f6f8;
  --sky: #cfe0f7;
  --sky-deep: #bcd4f2;
  --card: #ffffff;
  --border: #ececef;
  --ink: #16161a;
  --muted: rgba(22, 22, 26, 0.55);
  --muted-2: rgba(22, 22, 26, 0.4);
  --blue: #007aff;
  --surface: #ebebf0;
  --radius: 22px;
  --radius-sm: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 26px; }
.container--narrow { max-width: 760px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 8px 22px -10px rgba(20, 22, 26, .6); }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(20, 22, 26, .55); }
.btn--soft { background: var(--surface); color: var(--ink); }
.btn--soft:hover { background: #e1e1e8; transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .apple { width: 15px; height: 18px; fill: currentColor; margin-top: -2px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 248, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 500; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.4px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .18s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; background: none; border: none; color: var(--ink); font-size: 22px; cursor: pointer; }

/* HERO */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
/* Halo principal, centré derrière le texte */
.hero::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 27%; top: 48%; transform: translate(-50%, -50%);
  width: clamp(380px, 46vw, 720px); aspect-ratio: 1 / 0.82;
  background: radial-gradient(ellipse at center,
    rgba(0, 122, 255, .18), rgba(90, 150, 255, .08) 52%, rgba(0, 122, 255, 0) 72%);
}
/* Halo secondaire, côté visuel */
.hero__halo {
  position: absolute; z-index: 0; pointer-events: none;
  left: 78%; top: 42%; transform: translate(-50%, -50%);
  width: clamp(300px, 32vw, 560px); aspect-ratio: 1;
  background: radial-gradient(circle at center,
    rgba(120, 170, 255, .12), rgba(120, 170, 255, 0) 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 58px); line-height: 1.06; font-weight: 500;
  letter-spacing: -1.8px; margin-bottom: 20px;
}
.accent { color: var(--blue); }
.wave { display: inline-block; font-size: .72em; vertical-align: middle; margin-left: 2px; }
.nowrap { white-space: nowrap; }
.hero__sub { font-size: 19px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 15px 4px; transition: color .18s ease;
}
.link-more__arrow { transition: transform .18s ease; }
.link-more:hover { color: var(--blue); }
.link-more:hover .link-more__arrow { transform: translateX(4px); }
.hero__trust { display: flex; align-items: center; gap: 13px; }
.hero__trust p { font-size: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg); margin-left: -10px; background: var(--sky-deep);
  box-shadow: 0 2px 6px rgba(20, 40, 90, .18);
}
.avatars img:first-child { margin-left: 0; }
.stars-inline { color: #ffb300; letter-spacing: 1px; }

/* HERO IMAGE */
.hero__visual { display: flex; justify-content: flex-end; width: 100%; }
.hero__media {
  position: relative; width: 100%; max-width: 260px;
  display: flex; align-items: center; justify-content: center;
}
.hero__media-hint { display: none; }
.hero__media img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 26px 45px rgba(20, 40, 90, .28));
}

/* SECTIONS */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

/* Halos décoratifs de section */
.section--reviews { position: relative; overflow: hidden; }
.glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.glow--reviews {
  top: 40px; left: 50%; transform: translateX(-50%);
  width: clamp(500px, 70vw, 1000px); aspect-ratio: 2.4 / 1;
  background: radial-gradient(ellipse at center,
    rgba(0, 122, 255, .10), rgba(120, 170, 255, .04) 45%, transparent 68%);
}
.section--reviews .container { position: relative; z-index: 1; }

.section--faq { position: relative; overflow: hidden; }
.glow--faq {
  bottom: 30px; left: 50%; transform: translateX(-50%);
  width: clamp(420px, 60vw, 820px); aspect-ratio: 2.4 / 1;
  background: radial-gradient(ellipse at center,
    rgba(0, 122, 255, .08), rgba(120, 170, 255, .03) 45%, transparent 68%);
}
.section--faq .container { position: relative; z-index: 1; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--blue); }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -1.3px; margin: 10px 0 12px; line-height: 1.08; }
.section__head p { color: var(--muted); font-size: 18px; }

/* GRID */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }

/* CARDS */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: #dbe6fb; box-shadow: 0 24px 50px -26px rgba(20,40,90,.4); }
.card__icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; margin-bottom: 16px; color: var(--blue);
  background: linear-gradient(160deg, #eaf1ff, #dceafb);
  box-shadow: inset 0 0 0 1px rgba(0,122,255,.08);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 7px; font-weight: 500; letter-spacing: -.4px; }
.card p { color: var(--muted); font-size: 15px; }

/* SHOWCASE — avant / après */
.showcase { padding: 100px 0; }
.showcase__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.showcase__text .eyebrow { color: var(--blue); }
.showcase__text h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -1.3px; margin: 10px 0 14px; line-height: 1.08; }
.showcase__text > p { font-size: 18px; color: var(--muted); margin-bottom: 26px; }
.howsteps { display: flex; flex-direction: column; gap: 12px; }
.howstep { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.howstep span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.showcase__visual { display: flex; justify-content: center; }

/* BEFORE / AFTER */
.ba {
  position: relative; width: 100%; max-width: 400px; aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden; user-select: none;
  box-shadow: 0 24px 60px -24px rgba(20,40,90,.5);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid #fff; }
.ba__before-wrap .ba__before { width: 400px; max-width: none; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 36px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; cursor: ew-resize; z-index: 3; }
.ba__handle span { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 15px; color: var(--blue); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.ba__tag { position: absolute; bottom: 14px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 500; z-index: 2; }
.ba__tag--before { left: 14px; background: rgba(0,0,0,.55); color: #fff; }
.ba__tag--after { right: 14px; background: #fff; color: var(--ink); }

/* DEMO — génération de descriptions IA */
.demo__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.demo__text h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -1.1px; margin: 10px 0 14px; line-height: 1.12; }
.demo__text > p { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.demo__btn { position: relative; }
.demo__btn[disabled] { opacity: .85; cursor: default; }
.demo__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.demo__btn.is-loading .demo__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo__card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 24px 60px -34px rgba(20,40,90,.4); min-height: 260px;
}
.demo__topbar { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.demo__thumb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.demo__title { font-size: 17px; font-weight: 600; letter-spacing: -.3px; min-height: 22px; }
.demo__gen { font-size: 12.5px; color: var(--blue); font-weight: 600; margin-top: 3px; }
.demo__para { color: var(--ink); font-size: 15px; line-height: 1.6; margin-bottom: 14px; min-height: 20px; }
.demo__list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.demo__list li { font-size: 15px; color: var(--ink); min-height: 20px; }
.demo__tags { font-size: 14px; color: var(--blue); font-weight: 600; min-height: 18px; }
.demo__caret { display: inline-block; width: 2px; height: 1em; background: var(--blue); margin-left: 1px; vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.demo__skeleton { display: none; flex-direction: column; gap: 13px; padding: 4px 0; }
.demo__card.loading .demo__skeleton { display: flex; }
.demo__card.loading .demo__content { display: none; }
.demo__skeleton span {
  height: 13px; border-radius: 7px;
  background: linear-gradient(90deg, #eceef2 25%, #f6f7f9 37%, #eceef2 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
}
.demo__skeleton span:nth-child(1) { width: 70%; }
.demo__skeleton span:nth-child(2) { width: 95%; }
.demo__skeleton span:nth-child(3) { width: 88%; }
.demo__skeleton span:nth-child(4) { width: 55%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* STATS */
.stats { padding: 70px 0; border-bottom: 1px solid var(--border); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(32px, 4.5vw, 46px); font-weight: 500; letter-spacing: -1.5px; color: var(--ink); }
.stat span { color: var(--muted); font-size: 14px; }

/* TESTIMONIALS */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.stars { color: #ffb300; margin-bottom: 12px; letter-spacing: 1px; font-size: 14px; }
.quote p { font-size: 16px; margin-bottom: 18px; }
.quote footer { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.quote footer { gap: 12px; }
.quote__av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(20,40,90,.18); }
.quote footer span { font-weight: 600; color: var(--ink); }

/* PRICING */
.pricing { align-items: stretch; margin-top: 6px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--blue); box-shadow: 0 20px 50px -28px rgba(0,122,255,.5); }
.plan__badge { position: absolute; top: -12px; left: 28px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 500; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 19px; margin-bottom: 10px; font-weight: 500; }
.plan__price { font-size: 42px; font-weight: 500; letter-spacing: -1.6px; }
.plan__price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan__desc { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.plan ul { list-style: none; margin-bottom: 24px; flex: 1; }
.plan li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--border); font-size: 15px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 500; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 22px; }
.faq__item summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::after { content: '+'; font-size: 22px; color: var(--muted-2); }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }

/* CTA */
.cta { padding: 96px 0; }
.cta__inner {
  background: linear-gradient(180deg, var(--sky), var(--sky-deep));
  border-radius: 32px; text-align: center; padding: 64px 28px;
}
.cta h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 500; letter-spacing: -1.4px; margin-bottom: 12px; }
.cta p { color: rgba(16,30,60,.6); font-size: 18px; margin-bottom: 26px; }
.cta__note { display: block; margin-top: 14px; font-size: 13px; color: rgba(16,30,60,.55); }

/* FOOTER */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer__col h4 { font-size: 14px; margin-bottom: 14px; font-weight: 500; }
.footer__col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color .18s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; color: var(--muted); font-size: 13px; }
.footer__social { display: flex; gap: 18px; }
.footer__social a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer__social a:hover { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .hero__text { order: 1; } .hero__visual { order: 0; justify-content: center; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  /* Halos recentrés derrière le texte en version empilée */
  .hero::after { left: 50%; top: 70%; width: clamp(320px, 85vw, 560px); }
  .hero__halo { left: 50%; top: 24%; width: clamp(300px, 70vw, 480px); opacity: .8; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .showcase__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 44px 24px; }
  .demo__inner { grid-template-columns: 1fr; gap: 34px; }
  .demo__text { text-align: center; }
  .demo__btn { width: 100%; }
  .howsteps { align-items: center; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 20px 26px; border-bottom: 1px solid var(--border); gap: 16px; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 14px; }
  .section { padding: 70px 0; }
}
