/* Page d'accueil — l'abonnement site vitrine.
   Chargée uniquement par la classe `saas-home`. S'appuie sur les jetons de
   site.css (--paper, --ink, --accent, --line, --max) et sur .wrap. */

.saas-home { --sx-glow: radial-gradient(60% 70% at 70% 15%, #7751ea2e, transparent 70%); }

.sx-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}

.sx-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 58px; padding: 8px 10px 8px 26px;
  border-radius: 999px; border: 1px solid transparent;
  color: #14102a; background: linear-gradient(135deg, #d6c6ff, var(--accent));
  font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sx-button span {
  display: grid; place-items: center; width: 40px; aspect-ratio: 1;
  border-radius: 50%; background: #14102a; color: #fff;
  transition: transform .35s ease;
}
.sx-button:hover { transform: translateY(-2px); box-shadow: 0 18px 44px #7751ea3d; }
.sx-button:hover span { transform: translateX(3px) rotate(45deg); }
.sx-button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.sx-button-quiet span { background: var(--accent); color: #14102a; }

.sx-text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: .9rem; font-weight: 560;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.sx-text-link:hover { color: var(--accent); border-color: var(--accent); }

.sx-micro { margin: 22px 0 0; color: var(--muted); font-size: .84rem; }

.sx-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px 70px; align-items: end; margin-bottom: 56px; }
.sx-head h2 { margin: 16px 0 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .97; }
.sx-head > p { max-width: 42ch; margin: 0 0 6px; color: var(--muted); line-height: 1.65; }

/* ------------------------------------------------------------------ hero */
.sx-hero { position: relative; padding: 154px 0 100px; overflow: hidden; background: radial-gradient(ellipse 65% 72% at 83% 45%, #4429705c, transparent 72%), #0c0b12; border-bottom: 1px solid var(--line); }
.sx-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 42% 55% at 0% 0%, #54338824, transparent 80%); pointer-events: none; }
.sx-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(36px, 5vw, 74px); align-items: center; }
.sx-hero h1 { margin: 0 0 24px; font-size: clamp(3rem, 5.9vw, 5.9rem); }
.sx-lead { max-width: 46ch; margin: 0 0 32px; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; }
.sx-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.sx-hero-copy, .sx-hero-media { min-width: 0; }
.sx-story {
  position: relative; display: grid; gap: 12px; padding: 20px;
  border: 1px solid #7959bd7d; border-radius: 30px;
  background: linear-gradient(145deg, #241a39, #130f20 64%, #26163d);
  box-shadow: 0 34px 90px #05040cc4, inset 0 1px 0 #ffffff19;
}
.sx-story::before {
  content: ""; position: absolute; z-index: -1; inset: 10% -10%;
  background: #7e54e466; filter: blur(70px); pointer-events: none;
}
.sx-story-number {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 11px;
  color: #dfd0ff; background: #9e72ff2c;
  font-size: .72rem; font-weight: 850; letter-spacing: .04em;
}
.sx-story-prompt, .sx-story-result {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid #ffffff1c; border-radius: 18px; background: #ffffff0c;
}
.sx-story-prompt b, .sx-story-result b { display: block; color: #f5f1ff; font-size: .9rem; line-height: 1.3; }
.sx-story-prompt p, .sx-story-result p { margin: 4px 0 0; color: #c4b8d9; font-size: .85rem; line-height: 1.4; }
.sx-story-site {
  display: block; overflow: hidden; border: 1px solid #9c7cd36e; border-radius: 20px;
  background: #11121c; box-shadow: 0 16px 40px #0008;
  transition: transform .25s ease, border-color .25s ease;
}
.sx-story-site:hover { transform: translateY(-3px); border-color: var(--accent); }
.sx-story-site:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sx-story-browser { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 18px; background: #201932; }
.sx-story-browser strong { color: #fff; font-size: .9rem; font-weight: 720; }
.sx-story-browser-mark { margin-left: auto; color: #bba0ed; font-size: .67rem; font-weight: 850; letter-spacing: .16em; }
.sx-story-visual { position: relative; isolation: isolate; height: clamp(200px, 21vw, 310px); overflow: hidden; }
.sx-story-visual::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0b0c1cec 0%, #1113268c 47%, transparent 95%); }
.sx-story-visual img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.sx-story-visual-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; padding: 28px; }
.sx-story-visual-copy small { color: #ded4f5; font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.sx-story-visual-copy strong { margin: 8px 0 16px; color: #fff; font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.sx-story-visual-copy span { padding: 9px 13px; border: 1px solid #ffffff7d; border-radius: 100px; color: #fff; font-size: .75rem; font-weight: 700; }
.sx-story-result { background: #20172e; }
.sx-story-result-icon { display: grid; place-items: center; flex: none; margin-left: auto; width: 36px; height: 36px; border-radius: 50%; color: #261a40; background: var(--accent); font-size: 1.15rem; }
.sx-story-note { max-width: 48ch; margin: 14px auto 0; color: #c5b9d9; font-size: .79rem; line-height: 1.5; text-align: center; }

/* ------------------------------------------------------------- objection */
.sx-objection { padding: 96px 0; background: var(--soft); border-block: 1px solid var(--line); }
.sx-objection-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 70px; align-items: center; margin-bottom: 58px; }
.sx-quote { margin: 0; font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
.sx-objection-head > p { margin: 0; max-width: 46ch; color: var(--ink-2); line-height: 1.7; }
.sx-rassure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sx-rassure article { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.sx-rassure h3 { margin: 0 0 10px; font-size: 1.03rem; letter-spacing: -.02em; }
.sx-rassure p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.62; }

/* ---------------------------------------------------------------- étapes */
.sx-steps { padding: 112px 0; }
.sx-steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sx-steps-list li { display: grid; align-content: start; gap: 24px; padding: 28px; border: 1px solid #574176; border-radius: 24px; background: linear-gradient(145deg, #241a36, #15111f); }
.sx-steps-list span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #e6d9ff; background: #9e72ff2c; font-size: .82rem; font-weight: 800; letter-spacing: .06em; }
.sx-steps-list h3 { margin: 0 0 10px; font-size: 1.28rem; }
.sx-steps-list p { margin: 0; color: var(--muted); line-height: 1.68; }

/* -------------------------------------------------------------- exemples */
.sx-demos { padding: 112px 0; background: var(--soft); border-block: 1px solid var(--line); }
.sx-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sx-demo {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); transition: transform .4s ease, border-color .4s ease;
}
.sx-demo:hover { transform: translateY(-5px); border-color: #4b3f74; }
.sx-demo-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #15121f; }
.sx-demo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sx-demo:hover .sx-demo-media img { transform: scale(1.04); }
.sx-demo-body { display: grid; gap: 9px; align-content: start; padding: 26px 24px 28px; }
.sx-demo-body b { font-size: 1.22rem; font-weight: 640; letter-spacing: -.03em; }
.sx-demo-body i { color: var(--accent); font-size: .72rem; font-weight: 800; font-style: normal; letter-spacing: .16em; text-transform: uppercase; }
.sx-demo-body > span { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.sx-demo-body em { margin-top: 8px; color: var(--ink); font-size: .82rem; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.sx-demos-note { margin: 34px 0 0; text-align: center; }
.sx-demos-note a { color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------------- outil */
.sx-tool { padding: 112px 0; }
.sx-tool-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.sx-tool h2 { margin: 16px 0 22px; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .98; }
.sx-tool p { max-width: 54ch; margin: 0 0 26px; color: var(--ink-2); line-height: 1.72; }
.sx-tool-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sx-tool-list li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.sx-tool-list li:last-child { border-bottom: 1px solid var(--line); }
.sx-tool-list b { font-size: 1.05rem; font-weight: 620; }
.sx-tool-list span { color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------------- inclus */
.sx-included { padding: 112px 0; background: var(--soft); border-block: 1px solid var(--line); }
.sx-included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sx-included article { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.sx-included h3 { margin: 0 0 11px; font-size: 1.08rem; }
.sx-included p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.64; }

/* ------------------------------------------------------------ comparatif */
.sx-compare { padding: 112px 0; }
.sx-table-scroll { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.sx-table th, .sx-table td { padding: 20px 18px; text-align: left; border-top: 1px solid var(--line); }
.sx-table thead th { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-top: 0; }
.sx-table thead .is-us { color: var(--accent); }
.sx-table tbody th { font-weight: 560; color: var(--ink-2); }
.sx-table tbody td:last-child { color: var(--ink); font-weight: 600; background: #7751ea12; }
.sx-table tbody td:nth-child(2) { color: var(--muted); }

/* ----------------------------------------------------------------- prix */
.sx-price { padding: 112px 0; background: var(--soft); border-block: 1px solid var(--line); }
.sx-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.sx-plan { position: relative; display: grid; align-content: start; padding: 38px 32px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.sx-plan.is-featured { border-color: #6f58b8; box-shadow: 0 30px 80px #7751ea26; }
.sx-plan-badge { position: absolute; top: -12px; left: 32px; padding: 6px 14px; border-radius: 999px; color: #14102a; background: var(--accent); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sx-plan-badge.is-quiet { color: var(--ink); background: var(--lavender); }
.sx-plan h3 { margin: 0 0 14px; font-size: 1.22rem; }
.sx-plan-price { display: flex; align-items: baseline; gap: 8px; }
.sx-plan-price strong { font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 640; letter-spacing: -.05em; line-height: 1; }
.sx-plan-price span { color: var(--muted); font-size: 1.05rem; }
.sx-plan-price i { font-style: normal; }
.sx-plan small { margin: 12px 0 24px; color: var(--muted); font-size: .84rem; }
.sx-plan ul { display: grid; gap: 11px; margin: 0 0 30px; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.sx-plan li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.sx-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.sx-plan .sx-button { justify-self: stretch; }
.sx-price-note { margin: 32px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* ------------------------------------------------------------------ FAQ */
.sx-faq { padding: 112px 0; }
.sx-faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px 70px; align-items: start; }
.sx-faq h2 { margin: 16px 0 0; font-size: clamp(2.3rem, 4.2vw, 4rem); line-height: .98; }
.sx-faq details { border-top: 1px solid var(--line); }
.sx-faq details:last-child { border-bottom: 1px solid var(--line); }
.sx-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 1.03rem; font-weight: 560; list-style: none; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.sx-faq details[open] summary::after { content: "–"; }
.sx-faq details p { margin: 0 0 24px; max-width: 62ch; color: var(--muted); line-height: 1.72; }

/* ------------------------------------------------------- dernier appel */
.sx-last { padding: 128px 0; text-align: center; background: var(--soft); border-block: 1px solid var(--line); }
.sx-last h2 { margin: 16px auto 32px; max-width: 18ch; font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: .98; }
.sx-last .sx-micro { margin-top: 20px; }

/* ---------------------------------------------------------------- agence */
.sx-agency { padding: 104px 0 120px; }
.sx-agency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sx-agency h2 { margin: 16px 0 20px; font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1; }
.sx-agency > div > p { max-width: 48ch; margin: 0 0 24px; color: var(--muted); line-height: 1.7; }
.sx-agency-list { display: grid; gap: 2px; }
.sx-agency-list a { display: flex; align-items: baseline; gap: 18px; padding: 24px 4px; border-top: 1px solid var(--line); }
.sx-agency-list a:last-child { border-bottom: 1px solid var(--line); }
.sx-agency-list b { flex: 1; font-size: 1.12rem; font-weight: 580; }
.sx-agency-list span { color: var(--muted); font-size: .92rem; }
.sx-agency-list i { color: var(--accent); font-style: normal; }
.sx-agency-list a:hover b { color: var(--accent); }

/* ------------------------------------------------------------- tablette */
@media (max-width: 1040px) {
  .sx-hero-grid, .sx-tool-grid, .sx-agency-grid, .sx-faq-grid, .sx-objection-head { grid-template-columns: 1fr; }
  .sx-head { grid-template-columns: 1fr; align-items: start; }
  .sx-rassure, .sx-steps-list, .sx-demo-grid, .sx-included-grid { grid-template-columns: repeat(2, 1fr); }
  .sx-hero-grid { max-width: 720px; }
  .sx-story-visual { height: clamp(220px, 42vw, 330px); }
}

/* -------------------------------------------------------------- mobile */
@media (max-width: 680px) {
  .sx-hero { padding: 116px 0 68px; }
  .sx-hero-grid { gap: 42px; }
  .sx-hero h1 { font-size: clamp(2.9rem, 12vw, 4.6rem); }
  .sx-kicker { font-size: .65rem; letter-spacing: .12em; }
  .sx-story { padding: 12px; border-radius: 24px; }
  .sx-story-prompt, .sx-story-result { padding: 12px; gap: 10px; }
  .sx-story-visual { height: 195px; }
  .sx-story-visual-copy { padding: 22px; }
  .sx-story-browser { min-height: 58px; padding: 10px 12px; }
  .sx-story-browser-mark { display: none; }
  .sx-story-note { font-size: .78rem; }
  .sx-objection, .sx-steps, .sx-demos, .sx-tool, .sx-included, .sx-compare, .sx-price, .sx-faq, .sx-agency { padding: 72px 0; }
  .sx-last { padding: 84px 0; }
  .sx-rassure, .sx-steps-list, .sx-demo-grid, .sx-included-grid, .sx-price-grid { grid-template-columns: 1fr; }
  .sx-price-grid { max-width: 420px; margin-inline: auto; }
  .sx-cta-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .sx-cta-row .sx-button { justify-content: space-between; }
  .sx-text-link { align-self: flex-start; }
  .sx-head { margin-bottom: 40px; }
  .sx-steps-list li { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-demo, .sx-demo-media img, .sx-button, .sx-button span, .sx-story-site { transition: none; }
}

/* --------------------------------------------------------- liste d'attente */
.sx-wait { padding: 96px 0 118px; }
.sx-wait-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.sx-wait h1 { margin: 0 0 24px; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .99; }
.sx-wait-steps { display: grid; gap: 2px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: wait; }
.sx-wait-steps li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); counter-increment: wait; }
.sx-wait-steps li:last-child { border-bottom: 1px solid var(--line); }
.sx-wait-steps li::before { content: "0" counter(wait); color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; padding-top: 4px; }
.sx-wait-steps h3 { margin: 0 0 6px; font-size: 1.04rem; }
.sx-wait-steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.sx-wait .sx-micro { margin-top: 28px; }

.sx-wait-form {
  display: grid; gap: 18px; padding: 36px 32px 34px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
  box-shadow: 0 30px 80px #05040c66;
}
.sx-wait-head { margin-bottom: 4px; }
.sx-wait-head span { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.sx-wait-head h2 { margin: 12px 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
.sx-wait-form label { display: grid; gap: 9px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sx-wait-form input, .sx-wait-form select {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); background: var(--paper);
  font-size: 1rem; font-weight: 500; letter-spacing: normal; text-transform: none;
}
.sx-wait-form input:focus, .sx-wait-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sx-wait-form .sx-button { margin-top: 8px; justify-self: stretch; }
.sx-wait-note { margin: 0; color: var(--muted); font-size: .82rem; letter-spacing: normal; text-transform: none; }
.sx-wait .bot-field { position: absolute; left: -9999px; }

@media (max-width: 1040px) { .sx-wait-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .sx-wait { padding: 64px 0 80px; } .sx-wait-form { padding: 28px 22px 26px; } }
