/* ================================================================
   agent.css — Agent Aizora · Editorial Conversation (thème CLAIR)
   Système autonome : tokens, layout éditorial asymétrique, motion.
   ================================================================ */

@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-Variable.woff2') format('woff2'),
       url('../fonts/Chillax-Variable.woff') format('woff');
  font-weight: 200 700;
  font-display: swap;
}

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:        #F5F6FA;
  --bg-tint:   #ECEDFB;
  --surface:   #FFFFFF;
  --surface-2: #F1F2F9;

  --ink:   #0A0820;
  --ink-2: #1c1a33;
  --text:  #43465a;
  --muted: #7a7e92;

  --border:   #E6E8F2;
  --border-2: #d7dae9;

  --indigo:      #7130F0;
  --indigo-d:    #5a20d0;
  --indigo-soft: #efe9fe;
  --cyan:        #72f9ff;
  --callie:      #F5A7F5;

  --r-pill: 999px;
  --r:      28px;
  --r-md:   18px;
  --r-sm:   10px;
  --r-xs:   4px;

  --sh-sm: 0 1px 2px rgba(20,18,43,.05), 0 6px 18px rgba(20,18,43,.05);
  --sh:    0 12px 34px rgba(20,18,43,.09);
  --sh-lg: 0 30px 70px rgba(20,18,43,.12);
  --sh-accent: 0 26px 60px rgba(113,48,240,.20);

  --ease: cubic-bezier(.33,1,.68,1);
  --ease-pop: cubic-bezier(.34,1.56,.64,1);
  --dur:  .35s;
  --nav-h: 74px;
  --mq-h:  62px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Chillax', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: normal; }
::selection { background: var(--indigo); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; border: 3px solid var(--bg); }

/* ─── CURSEUR (natif partout — curseur personnalisé désactivé) ─ */
#cursor, #cursor-ring { display: none !important; }

/* ─── LAYOUT ──────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.sec  { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.sec--tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--indigo-d);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo);
  box-shadow: 0 0 0 4px var(--indigo-soft); }

.sec-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04;
  letter-spacing: -.02em; color: var(--ink);
  margin-top: 1rem;
}
.sec-title em { color: var(--indigo); }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 720px; }
.sec-head--right { margin-left: auto; text-align: right; }
.sec-head--right .eyebrow { flex-direction: row-reverse; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.35rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
  white-space: nowrap;
}
.btn i { font-size: .8em; transition: transform var(--dur) var(--ease); }
.btn-lg { padding: .95rem 1.8rem; font-size: .98rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 22px rgba(113,48,240,.28); }
.btn-primary:hover { background: var(--indigo-d); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(113,48,240,.34); }
.btn-primary:hover i { transform: translateX(3px); }

.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--indigo); }

.btn-line { background: var(--surface); color: var(--ink); border: 1px solid var(--border-2); }
.btn-line:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.btn-line--onaccent { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line--onaccent:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ─── NAV ─────────────────────────────────────────────────── */
header { position: sticky; top: 0; z-index: 900; }
#navbar {
  height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  background: rgba(245,246,250,.65);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
#navbar.scrolled { background: rgba(245,246,250,.82); box-shadow: 0 4px 24px rgba(20,18,43,.06); }
.nav-logo { justify-self: start; }
.nav-logo img { height: 54px; width: auto; }
.nav-links { justify-self: center; display: flex; gap: 2.2rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text); position: relative; transition: color var(--dur); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--indigo); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-ctas { display: flex; align-items: center; gap: .8rem; justify-self: end; grid-column: 3; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; grid-column: 3; justify-self: end; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 899;
  background: rgba(245,246,250,.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.mobile-menu .btn { font-family: 'Chillax', sans-serif; font-size: 1rem; margin-top: .5rem; }

/* ─── HERO ────────────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: calc(100vh - var(--nav-h) - var(--mq-h));
  padding: clamp(1.5rem, 4vw, 3rem) 0; }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; z-index: -1; }
.hero-orb--1 { width: 460px; height: 460px; top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(113,48,240,.28), transparent 70%); }
.hero-orb--2 { width: 420px; height: 420px; bottom: -160px; right: -80px;
  background: radial-gradient(circle, rgba(114,249,255,.30), transparent 70%); }

.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(2.7rem, 6.5vw, 5.4rem); line-height: .98; letter-spacing: -.03em;
  color: var(--ink); margin: 1.4rem 0 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line-in { display: block; transform: translateY(110%); animation: lineUp .95s var(--ease) forwards; }
.hero-title .line:nth-child(1) .line-in { animation-delay: .06s; }
.hero-title .line:nth-child(2) .line-in { animation-delay: .18s; }
.hero-title .line:nth-child(3) .line-in { animation-delay: .30s; }
.hero-title em { background: linear-gradient(105deg, var(--indigo), var(--callie));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text); max-width: 30rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero-trust { font-size: .85rem; color: var(--muted); }
.hero-trust i { color: var(--indigo); margin-right: .35rem; }

.hero-visual { position: relative; padding-bottom: 4.5rem; }

/* Widget mock (popup + bulle lanceur, façon vrai widget) */
.widget-pop { position: relative; z-index: 2; width: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: none; }
.widget-x { margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.widget-launcher {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-d));
  box-shadow: 0 12px 30px rgba(113,48,240,.45);
}
.widget-launcher img { width: 30px; height: 30px; }
.launcher-ping {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--indigo); opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ─── CHAT WINDOW ─────────────────────────────────────────── */
/* Chat flat : boîte blanche, bordure très discrète, aucune ombre */
.chat-window {
  position: relative; width: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: none;
}
.chat-header { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); background: transparent; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: #fff; }
.chat-id { display: flex; flex-direction: column; gap: .1rem; }
.chat-name { font-size: .9rem; font-weight: 600; color: var(--ink); }
.chat-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chat-scenario { margin-left: auto; font-size: .7rem; color: var(--indigo-d); background: var(--indigo-soft);
  border-radius: var(--r-pill); padding: .28rem .7rem; white-space: nowrap; }
.chat-body { display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.2rem 1.1rem; height: 340px; overflow-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 44px, #000 100%); }
.chat-body::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* ancrage bas propre (respecte toujours le padding bas, contrairement à flex-end) */
.chat-body > :first-child { margin-top: auto; }
.chat-window--demo .chat-body { height: 500px; }

.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble { max-width: 82%; padding: .68rem .9rem; font-size: .9rem; line-height: 1.5; border-radius: 16px; animation: msgIn .34s var(--ease) both; }
.chat-msg--user .chat-bubble { background: var(--indigo); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-msg--agent .chat-bubble { background: var(--surface-2); color: var(--ink-2); border-radius: 16px 16px 16px 4px; }
.chat-lang { display: block; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: .2rem; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chat-typing { display: inline-flex; gap: 5px; padding: .8rem 1rem; background: var(--surface-2); border-radius: 16px 16px 16px 4px; animation: msgIn .24s var(--ease) both; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.chat-typing span:nth-child(1) { animation-delay: -.32s; background: var(--indigo); }
.chat-typing span:nth-child(2) { animation-delay: -.16s; background: var(--callie); }
.chat-typing span:nth-child(3) { background: var(--cyan); }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ─── MARQUEE ─────────────────────────────────────────────── */
.marquee { overflow: hidden; height: var(--mq-h); display: flex; align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.mq { font-family: 'Syne', sans-serif; font-weight: 600; font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--ink); white-space: nowrap; padding-right: 0; display: inline-flex; align-items: center; }
.mq-sep { display: inline-block; width: 9px; height: 9px; margin: 0 1.4rem; transform: rotate(45deg);
  background: var(--indigo); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── CARDS (base + varied radius signature) ─────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--indigo-soft); color: var(--indigo); font-size: 1.2rem; margin-bottom: 1.15rem; }
.card h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: .55rem; }
.card p { font-size: .93rem; color: var(--text); }

/* ─── PROBLÈME (asymétrique, rayons variés) ──────────────── */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.problem-grid .card { display: flex; flex-direction: column; }
.card--a { border-radius: var(--r) var(--r) var(--r) var(--r-xs); }
.card--b { border-radius: var(--r-md); }
.card--c { border-radius: var(--r-xs) var(--r) var(--r) var(--r); }
.card-fix { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border-2);
  font-size: .85rem; font-weight: 500; color: var(--indigo-d); }
.card-fix::before { content: '→'; margin-right: .45rem; }

/* ─── DÉMO (split + sticky) ──────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.demo-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
.demo-lead { color: var(--text); margin: 1rem 0 1.8rem; }
.demo-tabs, .dash-tabs { display: flex; flex-direction: column; gap: .6rem; }
.demo-tabs { align-items: flex-start; }
.dash-tabs { align-items: stretch; }
.dash-tab-row { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.demo-tab, .dash-tab { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 500; font-size: .9rem;
  transition: border-color var(--dur), color var(--dur), background var(--dur); }
.demo-tab:hover, .dash-tab:hover { border-color: var(--indigo); color: var(--indigo); }
.demo-tab.active, .dash-tab.active { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(113,48,240,.25); }

/* ─── DASHBOARD (config du cerveau) ──────────────────────── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.dash-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
/* Colonne gauche : fenêtre en haut, discussion qui remplit le reste, ancrée en bas */
.dash-stage { display: flex; flex-direction: column; }

.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(1.3rem, 2.5vw, 1.85rem); box-shadow: var(--sh); }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--border); }
.dash-panel-title { display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'Syne', sans-serif; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.dash-panel-title i { color: var(--indigo); font-size: .95rem; }

.cfg-status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  font-size: .74rem; font-weight: 500; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: .3rem .7rem; transition: color var(--dur), border-color var(--dur); }
.cfg-status i { font-size: .6rem; color: var(--muted); }
.cfg-status.is-writing { color: var(--indigo-d); border-color: var(--border-2); }
.cfg-status.is-writing i { color: var(--indigo); animation: cfgPulse 1s var(--ease) infinite; }

.cfg-field + .cfg-field { margin-top: 1.3rem; }
.cfg-label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: .5rem; }
.cfg-help { display: block; font-size: .76rem; color: var(--muted); margin-top: .5rem; }

.cfg-code { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 1rem 1.15rem; height: 250px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.cfg-code--faq { height: 152px; }
.cfg-code::-webkit-scrollbar { width: 8px; }
.cfg-code::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
.cfg-code code { display: block; font-family: 'Chillax', system-ui, sans-serif; font-size: .9rem;
  line-height: 1.85; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }

.tok-h { color: var(--indigo); font-weight: 500; }
.tok-b { color: var(--ink); font-weight: 600; }
.tok-n { color: var(--indigo); font-weight: 600; }
.tok-r { color: var(--muted); }

.cfg-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: text-bottom;
  background: var(--indigo); animation: cfgBlink 1.05s steps(2, start) infinite; }

.cfg-input { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .85rem 1.15rem; font-size: .9rem; color: var(--muted); }

/* Mini-discussion sous la fenêtre : bulles sans cadre, style messagerie */
.dash-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem;
  margin-top: 1.6rem; padding: 0 .2rem; overflow: hidden; }
.dash-chat:empty { display: none; }
.dash-chat .chat-msg { align-items: flex-end; gap: .55rem; }
.dash-chat .chat-bubble { max-width: 86%; box-shadow: var(--sh-sm); animation: chatPop .42s var(--ease-pop) both; }
.dash-chat .chat-msg--agent .chat-bubble { background: var(--surface); }
.dash-chat .chat-typing { box-shadow: var(--sh-sm); animation: chatPop .32s var(--ease-pop) both; }
.chat-mini-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: #fff; font-size: .72rem;
  animation: chatPop .42s var(--ease-pop) both; }
@keyframes chatPop {
  0%   { opacity: 0; transform: translateY(-14px) scale(.9); }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

/* Séparateur « ou » entre les exemples et le générateur */
.dash-or { display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0 1.2rem;
  color: var(--muted); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.dash-or::before, .dash-or::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }

/* Générateur IA — groupe de saisie intégré dans la colonne de droite */
.dash-gen { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.dash-gen-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.dash-gen-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--indigo-soft); color: var(--indigo); font-size: .95rem; }
.dash-gen-title { display: block; font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); }
.dash-gen-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.dash-gen-input { width: 100%; resize: vertical; min-height: 84px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: .85rem 1.15rem;
  font-family: 'Chillax', system-ui, sans-serif; font-size: .92rem; color: var(--ink-2); line-height: 1.6;
  transition: border-color var(--dur); }
.dash-gen-input::placeholder { color: var(--muted); }
.dash-gen-input:focus { outline: none; border-color: var(--indigo); }
.dash-gen-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.dash-gen-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.4rem;
  border-radius: var(--r-pill); background: var(--indigo); color: #fff; font-weight: 500; font-size: .9rem;
  box-shadow: 0 8px 20px rgba(113,48,240,.25); transition: background var(--dur), box-shadow var(--dur); }
.dash-gen-btn:hover { background: var(--indigo-d); }
.dash-gen-btn:disabled { background: var(--border-2); color: var(--muted); box-shadow: none; cursor: default; }
.dash-gen-msg { font-size: .84rem; font-weight: 500; color: var(--muted); }
.dash-gen-msg.is-error { color: #e5484d; }

@keyframes cfgBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes cfgPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ─── BENTO FONCTIONNALITÉS ──────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.feat { display: flex; flex-direction: column; border-radius: var(--r-md); }
.feat p { flex: 1; }
.feat--wide { grid-column: span 2; }
.feat:nth-child(3) { border-radius: var(--r-xs) var(--r-md) var(--r-md) var(--r-md); }
.feat:nth-child(6) { border-radius: var(--r-md) var(--r-md) var(--r-xs) var(--r-md); }
.feat--accent { background: linear-gradient(160deg, #fff, var(--indigo-soft)); border-color: transparent; }
.feat--accent .card-ico { background: #fff; }
.tag-mg { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--indigo-d);
  background: var(--indigo-soft); border-radius: var(--r-pill); padding: .1rem .55rem; margin-left: .2rem; }

/* ─── STEPS (numéroté) ───────────────────────────────────── */
.steps { display: grid; gap: 1rem; max-width: 880px; margin-bottom: 2.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.6rem 1.8rem; box-shadow: var(--sh-sm); }
.step:nth-child(even) { margin-left: clamp(0px, 6vw, 5rem); }
.step-num { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--indigo); opacity: .35; }
.step-body h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.step-body p { font-size: .93rem; color: var(--text); }

/* ─── SNIPPET ─────────────────────────────────────────────── */
.snippet { max-width: 880px; border: 1px solid var(--border-2); border-radius: var(--r-md); overflow: hidden;
  background: var(--ink); box-shadow: var(--sh); }
.snippet-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem;
  background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.snippet-label { font-size: .78rem; color: rgba(255,255,255,.65); }
.snippet-copy { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 500;
  color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm); padding: .4rem .8rem; transition: border-color var(--dur), background var(--dur); }
.snippet-copy:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.snippet-copy.copied { color: var(--cyan); border-color: rgba(114,249,255,.5); }
.snippet-code { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; }
.snippet-code code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .84rem; color: var(--cyan); white-space: pre; }

/* ─── TÉMOIGNAGES ─────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.quote { display: flex; flex-direction: column; border-radius: var(--r) var(--r) var(--r-xs) var(--r); }
.quote--up { border-radius: var(--r-md); }
.quote blockquote { font-size: 1.02rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1.4rem; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .82rem; font-weight: 600; }
.who strong { display: block; font-size: .88rem; color: var(--ink); }
.who small { font-size: .75rem; color: var(--muted); }

/* ─── TARIFS ──────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.plan { display: flex; flex-direction: column; border-radius: var(--r-md); }
.plan--featured { border: 1.5px solid var(--indigo); box-shadow: var(--sh-accent); position: relative; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .9rem; border-radius: var(--r-pill); }
.plan-name { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.plan-desc { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.plan-amount { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.plan-per { font-size: .85rem; color: var(--muted); }
.plan-feats { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; flex: 1; }
.plan-feats li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text); }
.plan-feats .fa-check { color: var(--indigo); font-size: .75rem; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-help { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.faq-help a { color: var(--indigo); font-weight: 600; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left;
  font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: 1.35rem 0; }
.faq-q i { flex-shrink: 0; color: var(--indigo); transition: transform var(--dur) var(--ease); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a p { padding-bottom: 1.35rem; color: var(--text); font-size: .95rem; max-width: 46ch; }

/* ─── CTA ─────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--indigo-d), var(--indigo)); color: #fff;
  border-radius: var(--r); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); }
.cta-orb { position: absolute; width: 480px; height: 480px; border-radius: 50%; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(114,249,255,.4), transparent 70%); filter: blur(30px); }
.cta-title { position: relative; font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.cta-title em { color: var(--cyan); }
.cta-sub { position: relative; max-width: 40rem; margin: 0 auto 2rem; color: rgba(255,255,255,.85); }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-note { position: relative; margin-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.8); }
.cta-note i { color: var(--cyan); margin-right: .35rem; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 28px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .9rem; color: var(--muted); max-width: 30ch; margin-bottom: 1.3rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-2); color: var(--text); transition: border-color var(--dur), color var(--dur); }
.socials a:hover { border-color: var(--indigo); color: var(--indigo); }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: .95rem; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .88rem; color: var(--muted); transition: color var(--dur); }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }

/* ─── GHOST WORDS (gros textes de fond très subtils) ─────── */
.has-ghost { position: relative; }
.has-ghost > .wrap { position: relative; z-index: 1; }
/* calque de découpe : contient le débordement sans casser les colonnes sticky */
.ghost-clip { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.ghost {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: 'Syne', sans-serif; font-weight: 800; line-height: .8;
  font-size: clamp(7rem, 22vw, 19rem); letter-spacing: -.05em;
  color: var(--ink); opacity: .028; white-space: nowrap;
}
.ghost--l { left: -.04em; }
.ghost--r { right: -.04em; }

/* ─── PERSONNALISATION ───────────────────────────────────── */
.customize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.customize-text { color: var(--text); margin: 1rem 0 1.8rem; max-width: 42ch; }
.custom-controls { display: flex; flex-direction: column; gap: 1.4rem; }
.custom-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.swatches { display: flex; gap: .7rem; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 2px transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch.active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatch-more { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed var(--border-2); color: var(--muted); font-size: 1.3rem; line-height: 1; }
.custom-hint { margin-top: .9rem; font-size: .82rem; color: var(--muted); max-width: 40ch; }
.ico-opts { display: flex; gap: .6rem; flex-wrap: wrap; }
.ico-opt { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface);
  color: var(--muted); display: grid; place-items: center; font-size: 1rem; transition: border-color .2s, color .2s, background .2s; }
.ico-opt:hover { border-color: var(--indigo); color: var(--indigo); }
.ico-opt.active { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-soft); }
.ico-more { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px dashed var(--border-2); color: var(--muted); font-size: 1.2rem; line-height: 1; }

/* Aperçu = réplique fidèle du vrai widget Aizora */
.customize-preview { display: flex; justify-content: center;
  --brand: #7130F0; --brand-d: #C471F5; --h1: #160f30; --h2: #5b21b6; }
.pw-wrap { position: relative; width: 100%; max-width: 360px; padding-bottom: 70px; }
.pw { width: 100%; border-radius: 20px; overflow: hidden; background: #F3F5FF;
  box-shadow: 0 12px 48px rgba(10,8,32,.22), 0 4px 16px rgba(113,48,240,.12); }

.pw-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .875rem 1rem; overflow: hidden; background: linear-gradient(120deg, var(--h1), var(--h2));
  transition: background .6s var(--ease); }
.pw-orb { position: absolute; top: -1.5rem; right: -1.5rem; width: 6rem; height: 6rem; border-radius: 50%;
  opacity: .25; filter: blur(28px); background: linear-gradient(135deg, #72F9FF, #F5A7F5); }
.pw-head-left { position: relative; z-index: 1; display: flex; align-items: center; gap: .625rem; }
.pw-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-size: .85rem; background: var(--brand); transition: background .6s var(--ease); }
.pw-id strong { display: block; font-size: .85rem; font-weight: 600; color: #fff; line-height: 1.2; }
.pw-status { display: inline-flex; align-items: center; gap: .3rem; font-size: .62rem; color: rgba(255,255,255,.55); margin-top: .1rem; }
.pw-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.pw-head-right { position: relative; z-index: 1; display: flex; align-items: center; gap: .5rem; }
.pw-new { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .62rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 500; }
.pw-new i { font-size: .58rem; }
.pw-x { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .8rem; }

.pw-body { padding: 1rem; display: flex; flex-direction: column; gap: .9rem; min-height: 210px; background: #F3F5FF; }
.pw-row { display: flex; align-items: flex-end; gap: .5rem; }
.pw-row--agent { justify-content: flex-start; }
.pw-row--user { justify-content: flex-end; }
.pw-mini { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; margin-bottom: .1rem;
  color: #fff; font-size: .58rem; background: var(--brand); transition: background .6s var(--ease); }
.pw-msg { max-width: 78%; padding: .6rem .85rem; font-size: .82rem; line-height: 1.5; }
.pw-msg--agent { background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pw-msg--user { background: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: background .6s var(--ease); }

.pw-input { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; background: #fff; border-top: 1px solid #eef0f6; }
.pw-field { flex: 1; padding: .55rem .9rem; font-size: .8rem; color: var(--muted); border: 1px solid #e5e7eb; border-radius: 12px; background: #F3F5FF; }
.pw-send { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: .8rem;
  background: var(--brand); transition: background .6s var(--ease); }
.pw-powered { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .35rem 0 .7rem; background: #fff;
  font-size: .6rem; letter-spacing: .04em; color: #b0b4c0; }
.pw-powered img { height: 12px; width: auto; }

.pw-launcher { position: absolute; right: 4px; bottom: 0; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.05rem;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(17,15,40,.24); transition: background .6s var(--ease); }

/* ─── PAGE LÉGALE (terms.html) ───────────────────────────── */
.legal-hero { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 0; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.legal-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 500; font-size: .9rem;
  transition: border-color var(--dur), color var(--dur), background var(--dur); }
.legal-tab:hover { border-color: var(--indigo); color: var(--indigo); }
.legal-tab.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.legal-card { margin: 2.5rem 0 clamp(3rem, 7vw, 6rem); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--sh-sm); }
.legal-section { display: none; }
.legal-section.active { display: block; animation: msgIn .4s var(--ease) both; }
.legal-section h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin-bottom: .5rem; }
.legal-section h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; color: var(--ink); margin: 1.8rem 0 .6rem; }
.legal-section p { color: var(--text); margin-bottom: .8rem; line-height: 1.7; }
.legal-section ul { margin: 0 0 1rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; list-style: disc; }
.legal-section li { color: var(--text); line-height: 1.6; }
.legal-section a { color: var(--indigo); font-weight: 500; }
.legal-section strong { color: var(--ink-2); }

/* ─── REVEAL (IntersectionObserver) ──────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 460px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat--wide { grid-column: span 1; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-aside { position: static; }
  .demo-tabs { flex-direction: row; flex-wrap: wrap; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-aside { position: static; }
  .dash-tab-row { justify-content: flex-start; }
  .dash-stage { display: block; }
  .dash-chat { flex: none; overflow: visible; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .customize-grid { grid-template-columns: 1fr; gap: 3rem; }
  .problem-grid, .quotes, .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .step:nth-child(even) { margin-left: 0; }
  .sec-head--right { text-align: left; margin-left: 0; }
  .sec-head--right .eyebrow { flex-direction: row; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line-in { transform: none; }
  .marquee-track { animation: none; }
  .cfg-caret { display: none; }
}
