:root {
  --ink: #1b1f23;
  --ink-soft: #3a4148;
  --muted: #5d646b;
  --paper: #f7f4ee;
  --paper-alt: #efe9de;
  --white: #ffffff;
  --line: #e2dacb;
  --yellow: #ffc21a;
  --yellow-deep: #e9a900;
  --green: #2f7d4f;
  --hot: #c8401e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 31, 35, .10);
  --font-title: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }

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

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font: 600 1rem var(--font-body); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .chip:focus-visible, .link:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: var(--white); }
.btn--big { min-height: 60px; padding: 0 36px; font-size: 1.1rem; }
.link { font-weight: 600; text-underline-offset: 4px; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 244, 238, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.05rem var(--font-title); }
.brand__mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--yellow);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}

/* Hero */
.hero { padding: 48px 0 64px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin: 28px 0 18px; }
.reassure { font-size: .9rem; color: var(--muted); }

.hero__visual { display: flex; justify-content: center; }
.phone {
  width: 280px; padding: 12px; border-radius: 38px;
  background: var(--ink); box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.phone__screen { position: relative; height: 520px; border-radius: 28px; overflow: hidden; background: var(--white); }
.mini-site__bar { padding: 14px 16px; font: 800 .85rem var(--font-title); border-bottom: 1px solid var(--line); }
.mini-site__hero { padding: 22px 16px; background: #e8f0f7; display: grid; gap: 4px; }
.mini-site__hero strong { font: 800 1.2rem var(--font-title); }
.mini-site__hero span { font-size: .8rem; color: var(--muted); }
.mini-site__btn { justify-self: start; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: #1f5f99; color: #fff; font-style: normal; font-size: .75rem; }
.mini-site__lines { padding: 16px; display: grid; gap: 8px; }
.mini-site__lines i { display: block; height: 8px; border-radius: 4px; background: var(--paper-alt); }
.mini-site__lines i:nth-child(2) { width: 80%; }
.mini-site__lines i:nth-child(3) { width: 60%; }
.mini-chat {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 12px; border-radius: 18px; background: var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: .8rem;
}
.mini-chat__head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.mini-chat__head svg { width: 26px; height: 26px; }
.mini-chat__msg { background: var(--paper); padding: 8px 10px; border-radius: 12px 12px 12px 4px; margin-bottom: 8px; }
.mini-chat__msg--me { background: var(--yellow); margin-left: auto; width: fit-content; border-radius: 12px 12px 4px 12px; }
.mini-chat__chips { display: flex; gap: 6px; margin-bottom: 8px; }
.mini-chat__chips span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--paper-alt); }
.section__intro { max-width: 40em; color: var(--ink-soft); }

.cards3 { display: grid; gap: 16px; margin: 28px 0; }
.pain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pain__icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.pain p { color: var(--muted); margin: 0; }
.transition { font: 800 1.25rem var(--font-title); }

.steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 16px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.steps__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  font: 800 1rem var(--font-title);
}

/* Démo */
.demo { display: grid; gap: 20px; margin-top: 28px; align-items: start; }
.demo__chat { min-height: 560px; }
.demo__placeholder {
  height: 560px; display: grid; place-items: center; text-align: center; padding: 24px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.demo__placeholder button { background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; color: var(--ink); }
.example[aria-disabled="true"] { pointer-events: none; }
.demo__sample summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; background: var(--paper-alt); }
.summary__tag--hot { background: #fde3d9; color: var(--hot); }
.summary__tag--warm { background: #fff1c2; color: #7a5a00; }
.summary__tag--cold { background: #e3edf6; color: #2c5a85; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.summary__note { font-size: .85rem; color: var(--muted); margin: 0; }

/* Exemples */
.example {
  display: grid; gap: 6px; text-decoration: none; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.example__trade { font: 800 1.3rem var(--font-title); }
.example__offer { font-size: .85rem; font-weight: 600; color: var(--yellow-deep); }
.example p { color: var(--muted); margin: 4px 0; }
.example { transition: transform .12s, box-shadow .12s; }
.example:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
.example__go { margin-top: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fineprint { font-size: .85rem; color: var(--muted); }

/* Formules */
.offers { display: grid; gap: 20px; margin: 28px 0 20px; }
.offer {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
.offer--featured { border-color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.offer h3 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.offer__pitch { color: var(--muted); }
.offer__price { font: 800 2.4rem var(--font-title); margin: 4px 0 16px; }
.offer__price small { display: block; font: 500 .85rem var(--font-body); color: var(--muted); }
.offer .btn { margin-top: auto; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: .7rem; font-weight: 700;
}
.ticks--grid { margin-top: 28px; gap: 12px 32px; }

/* Mise en avant de l'assistant */
.assistant {
  display: flex; gap: 18px; align-items: flex-start; margin: 28px 0 24px; padding: 24px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.assistant__face { width: 64px; height: 64px; flex: none; }
.assistant__title { font: 800 1.3rem/1.2 var(--font-title); margin-bottom: 10px; }
.assistant__list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.assistant__list li::before { content: "→ "; font-weight: 700; }
.assistant__payoff { margin: 0; font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; margin-bottom: 4px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; width: 52px; height: 30px; flex: none; border-radius: 999px;
  background: var(--line); border: 2px solid var(--ink); transition: background .15s;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink); transition: transform .15s;
}
.switch input:checked + .switch__track { background: var(--yellow); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--yellow-deep); outline-offset: 3px; }

.offer { position: relative; }
.offer__badge {
  position: absolute; top: -14px; left: 24px; padding: 3px 12px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: .8rem; font-weight: 600;
}
.tick-assist { font-weight: 600; }
.tick-assist::before { background: var(--yellow-deep) !important; }

.subscription { margin: 24px 0 8px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.subscription__big { font: 800 1.35rem/1.3 var(--font-title); }
.subscription__big mark { background: var(--yellow); color: var(--ink); padding: 0 6px; border-radius: 4px; }
.subscription__detail { margin: 0; color: #c9ced3; font-size: .95rem; }

/* À propos */
.about { margin: 24px 0 0; padding: 24px 28px; border-left: 6px solid var(--yellow); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; }
.about p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

.final { text-align: center; }
.final h2 { margin-bottom: 28px; }

/* Pied de page */
.footer { padding: 36px 0 110px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer__inner { display: grid; gap: 10px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer p { margin: 0; }

/* Bulle de Seb */
.seb-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; }
.seb-launcher__btn {
  width: 64px; height: 64px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
}
.seb-launcher__btn svg { width: 100%; height: 100%; }
.seb-launcher__teaser {
  margin: 0; max-width: 220px; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--white); box-shadow: var(--shadow); font-size: .9rem;
  animation: pop .3s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Fenêtre flottante */
.seb-panel { position: fixed; inset: 0; z-index: 40; background: rgba(27, 31, 35, .35); display: flex; align-items: flex-end; justify-content: flex-end; }
.seb-panel[hidden] { display: none; }
.seb-panel__box { position: relative; width: 100%; height: 100%; background: var(--white); }
#chat-panel-host { height: 100%; }
.seb-panel__box .chat { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.seb-panel__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper-alt); font-size: 1.4rem; line-height: 1;
}

/* Conversation */
.chat {
  display: flex; flex-direction: column; height: 560px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat__head span { display: block; font-size: .8rem; color: var(--muted); }
.chat__face { width: 42px; height: 42px; flex: none; }
.chat__log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper); font-size: .95rem; white-space: pre-line; animation: pop .25s ease-out; }
.msg--me { align-self: flex-end; background: var(--yellow); border-radius: 16px 16px 4px 16px; }
.msg strong { font-weight: 600; }
.msg--typing { display: flex; gap: 4px; padding: 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.msg--card { max-width: 100%; width: 100%; background: transparent; padding: 0; }
.msg--card .summary { box-shadow: none; }

.chat__input { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chat__input:empty { display: none; }
.chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--white);
  font: 500 .9rem var(--font-body); color: var(--ink);
}
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--yellow); }
.chip--go { background: var(--ink); color: var(--white); }
.chip--go:hover { background: var(--ink-soft); }
.chat__text { display: flex; gap: 8px; width: 100%; }
.chat__text input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); font: 400 .95rem var(--font-body);
}
.chat__text input:focus { outline: none; border-color: var(--ink); }
.chat__form { display: grid; gap: 8px; width: 100%; }
.chat__form input[type="text"], .chat__form input[type="tel"], .chat__form input[type="email"] {
  padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: 400 .95rem var(--font-body);
}
.chat__form label { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.chat__form .chip { justify-self: start; }
.chat__error { color: var(--hot); font-size: .85rem; margin: 0; }
.chat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Petit écran : téléphone de démo plus compact */
@media (max-width: 759px) {
  .phone { width: 240px; }
  .phone__screen { height: 430px; }
  .assistant { flex-direction: column; gap: 10px; }
  .assistant__face { width: 52px; height: 52px; }
}

/* Ordinateur et tablette */
@media (min-width: 760px) {
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .offers { grid-template-columns: 1fr 1fr; }
  .ticks--grid { grid-template-columns: 1fr 1fr; }
  .seb-panel { background: transparent; pointer-events: none; padding: 0 16px 96px 0; }
  .seb-panel__box { pointer-events: auto; width: 390px; height: 620px; max-height: calc(100vh - 172px); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
  .seb-panel__box .chat { border: 2px solid var(--ink); border-radius: 20px; }
}
@media (min-width: 980px) {
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .demo { grid-template-columns: 1.2fr .8fr; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer .fineprint { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
