/* Rexor Closer — site v1 (19/10/2026). Thème unique sombre, contrastes AA vérifiés sur --bg et --surface. */
:root {
  --bg: #070a12;
  --bg2: #0b1020;
  --surface: #10172b;
  --surface2: #151e37;
  --line: #22304f;
  --text: #eaf0ff;
  --muted: #a3afca;
  --mint: #7cf5c4;
  --blue: #6e8bff;
  --violet: #b18cff;
  --warn: #ffcf70;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --wrap: 1160px;
  --gutter: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #a8ffe0; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: #001; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.grad { background: linear-gradient(92deg, var(--mint), var(--blue) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--mint); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(124, 245, 196, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(124, 245, 196, 0); } }

/* Boutons */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h);
  padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 16px/1 Manrope, system-ui, sans-serif; color: #04110b;
  background: linear-gradient(135deg, var(--mint), #5fe0ff); box-shadow: 0 10px 30px rgba(124, 245, 196, .25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { color: #04110b; transform: translateY(-1px); box-shadow: 0 14px 38px rgba(124, 245, 196, .35); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { color: var(--text); border-color: var(--mint); box-shadow: none; }
.btn--small { --h: 42px; padding: 0 18px; font-size: 14.5px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); background: rgba(7, 10, 18, .72); border-bottom: 1px solid rgba(34, 48, 79, .6); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand b { font-weight: 800; }
.brand__mark { width: 30px; height: 30px; color: var(--text); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; padding: 0 11px; }
.nav__burger span { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; }
.nav__mobile { display: grid; gap: 4px; padding: 10px var(--gutter) 18px; border-top: 1px solid var(--line); }
.nav__mobile a:not(.btn) { color: var(--text); text-decoration: none; padding: 12px 4px; font-weight: 600; }
.nav__mobile[hidden] { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; min-height: min(860px, 100svh); display: flex; align-items: center; }
.hero__canvas { position: absolute; right: -4%; top: 50%; translate: 0 -50%; width: min(820px, 58vw); aspect-ratio: 1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero__canvas.is-on { opacity: 1; }
.hero__glow { position: absolute; inset: auto -10% -40% auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 139, 255, .22), rgba(124, 245, 196, .08) 55%, transparent 72%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9d3ea; max-width: 40ch; }
.lead em { font-style: normal; color: var(--text); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 7px; }
.hero__bubbles { position: relative; display: grid; gap: 12px; padding: 10px 0; max-width: 470px; justify-self: end; margin-top: 120px; }
.bubble {
  max-width: 88%; padding: 13px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45;
  border: 1px solid rgba(34, 48, 79, .8); background: rgba(16, 23, 43, .58); backdrop-filter: blur(6px); box-shadow: var(--shadow);
  opacity: 0; translate: 0 14px; animation: rise .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d);
}
.bubble--in { justify-self: start; border-bottom-left-radius: 6px; }
.bubble--out { justify-self: end; border-bottom-right-radius: 6px; background: linear-gradient(135deg, rgba(110, 139, 255, .3), rgba(124, 245, 196, .12)); border-color: rgba(124, 245, 196, .35); }
.bubble--link .chip { margin-right: 6px; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-block: 1px solid rgba(34, 48, 79, .55); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; max-width: 22ch; margin-bottom: 18px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(124, 245, 196, .45); transform: translateY(-2px); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }
.card__icon { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface2); margin-bottom: 16px; }

/* Démo */
.demo { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--mint); background: rgba(124, 245, 196, .1); border: 1px solid rgba(124, 245, 196, .3); }
.chip--btn { cursor: pointer; font-family: inherit; padding: 9px 14px; }
.chip--btn:hover { background: rgba(124, 245, 196, .18); }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 540px; overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__head small { display: block; color: var(--muted); font-size: 12.5px; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 200deg, var(--mint), var(--blue), var(--violet), var(--mint)); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px rgba(124, 245, 196, .4); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg--me { background: linear-gradient(135deg, rgba(110, 139, 255, .35), rgba(124, 245, 196, .2)); border: 1px solid rgba(124, 245, 196, .3); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg--note { align-self: center; font-size: 13px; color: var(--warn); background: rgba(255, 207, 112, .08); border: 1px dashed rgba(255, 207, 112, .4); }
.msg--typing { align-self: flex-start; color: var(--muted); font-size: 14px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); padding: 0 14px; font: 500 15px Manrope, system-ui, sans-serif; }
.chat__form input:focus { outline: none; border-color: var(--mint); }
.chat__note { font-size: 12px; color: var(--muted); margin: 0; padding: 0 16px 12px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.steps li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; color: #04110b; background: linear-gradient(135deg, var(--mint), var(--blue)); margin-bottom: 14px; }
.steps h3 { font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Règles */
.rules { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.never li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 50px; position: relative; color: var(--muted); }
.never li b { color: var(--text); }
.never li::before { content: "✕"; position: absolute; left: 18px; top: 15px; color: #ff8fa3; font-weight: 800; }

/* Canaux */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 14px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.channel b { font-size: 18px; }
.channel p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

/* Prix */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan--hot { border-color: rgba(124, 245, 196, .55); background: linear-gradient(180deg, rgba(124, 245, 196, .08), var(--surface) 40%); box-shadow: 0 20px 60px rgba(124, 245, 196, .08); }
.plan__tag { position: absolute; top: -13px; left: 28px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #04110b; background: var(--mint); padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan__pitch { color: var(--muted); font-size: 15px; margin: -4px 0 14px; min-height: 3em; }
.plan li b { color: var(--text); }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.plan__price b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.plan__price span { color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; color: #c9d3ea; flex: 1; }
.plan li::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 9px; }
.terms-box { margin-top: 22px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 14px; color: var(--muted); }
.terms-box p:last-child { margin: 0; }
.terms-box b { color: var(--text); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; color: var(--mint); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Appel final */
.final { text-align: center; overflow: hidden; }
.final__in { display: grid; justify-items: center; gap: 10px; }
.final .h2 { max-width: 26ch; }
.final::before { content: ""; position: absolute; inset: 20% 20% auto; height: 320px; background: radial-gradient(closest-side, rgba(110, 139, 255, .18), transparent); pointer-events: none; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 48px 0 30px; background: var(--bg2); }
.foot__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot__links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.foot__links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot__links a:hover { color: var(--text); }
.foot .brand { margin-bottom: 12px; }
.foot__copy { margin-top: 28px; }

/* Pages légales et pages simples */
.doc { padding: 60px 0 90px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 2em; }
.doc p, .doc li { color: #c9d3ea; }
.doc .draft { border: 1px dashed var(--warn); color: var(--warn); padding: 12px 16px; border-radius: 12px; font-size: 14px; }

/* Responsive */
@media (max-width: 980px) {
  .nav__links, .nav__in > .btn { display: none; }
  .nav__burger { display: block; }
  .hero { padding: 40px 0 70px; min-height: auto; }
  .hero__in, .demo, .rules { grid-template-columns: 1fr; }
  .hero__canvas { right: -38%; top: auto; bottom: -6%; translate: 0 0; width: 135vw; opacity: 0; }
  .hero__canvas.is-on { opacity: .8; }
  .hero__bubbles { max-width: 560px; margin-top: 18px; justify-self: stretch; }
  .cards3, .channels, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .chat { height: 500px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .foot__links { grid-template-columns: 1fr; }
  .bubble { font-size: 14.5px; }
}
