/* ==========================================================================
   Isens Evolution — site public
   sections.css : chaque section de la page d'accueil
   ========================================================================== */

/* =========================================================== BANNIERE === */
.hero { position: relative; padding: calc(var(--header-h) + 62px) 0 96px; overflow: hidden; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.hero-deco .b1 { width: 460px; height: 460px; background: #b7e08a; left: -140px; top: -120px; }
.hero-deco .b2 { width: 400px; height: 400px; background: #ffd39a; right: 22%; top: -180px; animation-delay: -6s; }
.hero-deco .b3 { width: 420px; height: 420px; background: #cfc0f5; right: -120px; top: 190px; animation-delay: -11s; }
@keyframes drift { to { transform: translate(38px, 34px) scale(1.14); } }
.hero-deco .grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 21, 36, .13) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 72%);
  opacity: .5;
}

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 62px); align-items: center; }
.hero-text { max-width: 620px; }
.js .hero-text > * { opacity: 0; transform: translateY(20px); animation: riseIn .9s var(--ease) forwards; }
.js .hero-text > *:nth-child(1) { animation-delay: .05s; }
.js .hero-text > *:nth-child(2) { animation-delay: .14s; }
.js .hero-text > *:nth-child(3) { animation-delay: .24s; }
.js .hero-text > *:nth-child(4) { animation-delay: .34s; }
.js .hero-text > *:nth-child(5) { animation-delay: .44s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* Le surlignage suit le texte, meme quand il passe a la ligne. */
h1 .hl {
  background-image: linear-gradient(95deg, rgba(108, 179, 63, .42), rgba(247, 148, 29, .42));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0 .26em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: swipe .9s var(--ease) .7s forwards;
}
@keyframes swipe { to { background-size: 100% .26em; } }
@media (prefers-reduced-motion: reduce) { h1 .hl { background-size: 100% .26em; animation: none; } }

/* Mouvement reduit : on garde la mise en page, on retire les boucles. */
@media (prefers-reduced-motion: reduce) {
  .js .hero-text > * { opacity: 1; transform: none; animation: none; }
  .hero-deco .blob, .studio-glow, .ai-dot { animation: none; }
  .sb, .term-line { animation: none; }
  .caret { animation: none; }
}

.hero .lead { font-size: clamp(17px, 1.4vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-proof { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 0; }
.hero-proof svg { flex: none; margin-top: 3px; }

/* ------- Le demonstrateur d'editeur ------- */
.studio { position: relative; }
.studio-glow {
  position: absolute; inset: 8% -6% -10% -4%; border-radius: 40px; z-index: -1;
  background: conic-gradient(from 210deg, rgba(108, 179, 63, .35), rgba(247, 148, 29, .3), rgba(124, 92, 224, .32), rgba(47, 134, 222, .3), rgba(108, 179, 63, .35));
  filter: blur(46px); opacity: .55; animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.studio-win {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1600px) rotateY(-5deg) rotateX(1.5deg);
  transition: transform .7s var(--ease);
}
.studio-win:hover { transform: perspective(1600px) rotateY(-2deg); }
@media (max-width: 1100px) { .studio-win, .studio-win:hover { transform: none; } }

.studio-bar { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line-2); background: #fcfdff; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #e3e7ef; }
.dots i:nth-child(1) { background: #febc2e; } .dots i:nth-child(2) { background: #28c840; } .dots i:nth-child(3) { background: #e3e7ef; }
.studio-path { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.studio-path b { color: #c3cad8; margin: 0 2px; }
.studio-publish {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--green-d); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: background-color .2s, transform .2s var(--spring);
}
.studio-publish:hover { background: #58a328; transform: translateY(-1px); }
.studio-publish.is-busy { background: #8aa79a; pointer-events: none; }

.studio-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 396px; }
.studio-palette { border-right: 1px solid var(--line-2); padding: 14px 10px; background: #fbfcfe; }
.studio-palette-title { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #9aa3b4; margin: 0 6px 10px; }
.studio-palette li { margin-bottom: 5px; }
.pal-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 11px;
  background: #fff; font: inherit; font-size: 12.8px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--spring), border-color .2s, color .2s;
}
.pal-btn:hover { transform: translateX(3px); border-color: var(--line); color: var(--ink); }
.pal-btn .pi { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.studio-hint { font-size: 10.8px; color: #a8b0bf; margin: 12px 6px 0; line-height: 1.45; }

.studio-canvas {
  padding: 16px; background: #fff; background-image: radial-gradient(circle at 1px 1px, #eef1f7 1px, transparent 0);
  background-size: 18px 18px; max-height: 430px; overflow-y: auto;
}
.studio-canvas::-webkit-scrollbar { width: 9px; }
.studio-canvas::-webkit-scrollbar-track { background: transparent; }
.studio-canvas::-webkit-scrollbar-thumb { background-color: #dbe1ec; border: 2px solid transparent; background-clip: padding-box; }
.sb { position: relative; border-radius: 14px; padding: 14px 15px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); animation: sbIn .5s var(--spring) both; }
@keyframes sbIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.sb.is-out { animation: sbOut .32s var(--ease) forwards; }
@keyframes sbOut { to { opacity: 0; transform: translateX(22px) scale(.96); margin-bottom: -60px; } }
.sb::before {
  content: attr(data-label); position: absolute; top: -8px; left: 12px; padding: 1px 8px; border-radius: 999px;
  background: var(--c, var(--green-d)); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.sb:hover::before { opacity: 1; transform: none; }
.sb:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.sb-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s; }
.sb:hover .sb-tools { opacity: 1; transform: none; }
.sb-tools button {
  width: 25px; height: 25px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); padding: 0; transition: color .2s, border-color .2s, background-color .2s;
}
.sb-tools button:hover { color: var(--ink); border-color: #cfd6e2; }
.sb-tools .t-ai:hover { color: var(--purple); border-color: var(--purple); background: #f6f2ff; }
.sb-tools .t-del:hover { color: var(--red); border-color: var(--red); background: #fdf1ef; }

.sb h4 { font-size: 15.5px; margin: 0 0 4px; }
.sb p { font-size: 12.8px; line-height: 1.55; color: var(--muted); margin: 0; }
.sb .ph-line { height: 8px; border-radius: 4px; background: #eef1f7; margin-top: 7px; }
.sb .ph-line:nth-child(odd) { width: 86%; }
.sb-img { height: 74px; border-radius: 10px; background: linear-gradient(120deg, #dfeccf, #fde7c6 55%, #e6dcfb); display: grid; place-items: center; color: #93a08a; }
.sb-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sb-cols div { height: 52px; border-radius: 9px; background: #f4f6fb; }
.sb-cta { display: flex; gap: 8px; align-items: center; }
.sb-cta span { height: 28px; padding: 0 14px; border-radius: 999px; background: var(--green-d); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; }
.sb-cta em { height: 28px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.4px var(--line); font-size: 11.5px; font-weight: 700; font-style: normal; color: var(--ink-2); display: inline-flex; align-items: center; }
.sb.is-ai { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 92, 224, .12); }
.sb .ai-flag {
  position: absolute; top: -9px; left: 12px; z-index: 2; font-size: 9.5px; font-weight: 800; color: var(--purple);
  display: inline-flex; align-items: center; gap: 5px; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; border: 1px solid color-mix(in srgb, var(--purple) 45%, #fff); border-radius: 999px; padding: 2px 9px;
}
.sb .caret { display: inline-block; width: 2px; height: 1em; background: var(--purple); vertical-align: -.16em; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.studio-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 16px; font-size: 12.8px; font-weight: 600;
  box-shadow: var(--shadow); transition: opacity .3s, transform .4s var(--spring); max-width: 88%; text-align: center;
}
.studio-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.studio-caption { font-size: 12.5px; color: var(--muted); margin: 14px 4px 0; max-width: 52ch; }

/* Vue « publiee » : le cadre d'edition disparait */
.studio-win.is-live .studio-palette { display: none; }
.studio-win.is-live .studio-body { grid-template-columns: minmax(0, 1fr); }
.studio-win.is-live .studio-canvas { background-image: none; padding: 0; }
.studio-win.is-live .sb { border-color: transparent; box-shadow: none; border-radius: 0; margin: 0; padding: 18px 20px; }
.studio-win.is-live .sb-tools, .studio-win.is-live .sb::before { display: none; }

@media (max-width: 980px) {
  .hero { padding-top: calc(var(--header-h) + 34px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-body { min-height: 0; }
}
@media (max-width: 560px) {
  .studio-body { grid-template-columns: 1fr; }
  .studio-palette { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .studio-palette ul { display: flex; flex-wrap: wrap; gap: 5px; }
  .studio-palette li { margin: 0; }
  .studio-hint { display: none; }
}

/* ============================================================ CHIFFRES == */
.stats { padding: 0 0 clamp(40px, 6vw, 70px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 26px 24px 24px; }
.stat-n { display: block; font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.stat-l { display: block; font-weight: 700; color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.stat-s { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }

/* ====================================================== BLOCS COMMUNS === */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 76px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--rev .split-text { order: 2; }
.split--form { align-items: start; }
@media (max-width: 940px) {
  .split, .split--wide { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split-text { order: 0; }
}

.ticks { margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f9423' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks--night li::before { background-color: rgba(108, 179, 63, .18); }
.ticks--sm { gap: 10px; margin-top: 18px; }
.ticks--sm li { font-size: 14.5px; padding-left: 28px; }
.ticks--sm li::before { width: 18px; height: 18px; background-size: 11px; }

.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.cta-note { font-size: 13.5px; color: var(--muted); max-width: 26ch; }

.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.feat-head { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.feat-head:first-child { padding-top: 0; }
.feat-head h3 { font-size: 17.5px; margin: 0 0 3px; }
.feat-head p { font-size: 14.5px; color: var(--muted); margin: 0; }
.feat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.feat-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 12.8px; font-weight: 600; color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; }

/* ================================================================ IA ==== */
.ai-lab { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 22px; align-items: start; }
.ai-list { display: grid; gap: 6px; }
.ai-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 13px 15px; border: 1px solid transparent; border-radius: 14px; background: transparent;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background-color .22s, border-color .22s, transform .22s var(--spring), color .2s;
}
.ai-list button:hover { background: #fff; border-color: var(--line); transform: translateX(3px); }
.ai-list button[aria-selected="true"] { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.ai-list .n { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--line-2); color: var(--muted); transition: background-color .22s, color .22s; }
.ai-list button[aria-selected="true"] .n { background: var(--purple); color: #fff; }

.ai-stage { background: var(--night); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ai-stage-bar { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(124, 92, 224, .22); color: #cbb9ff; font-size: 12px; font-weight: 700; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #a98cff; box-shadow: 0 0 0 0 rgba(169, 140, 255, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(169, 140, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 140, 255, 0); } }
.ai-stage-title { font-size: 13.5px; font-weight: 700; color: #e7ecf6; }
/* Hauteur fixe : la frappe ne doit pas faire grandir la page sous le lecteur. */
.ai-stage-body { padding: 24px 24px 6px; height: 300px; overflow-y: auto; }
.ai-prompt { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: #c6cfe0; }
.ai-prompt-label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b7794; flex: none; }
.ai-answer { font-size: 15px; line-height: 1.68; color: #e9edf5; white-space: pre-wrap; margin-top: 4px; }
.ai-answer .caret { display: inline-block; width: 8px; height: 1.05em; background: #8fd34f; vertical-align: -.16em; animation: blink .9s steps(1) infinite; }
.ai-answer b { color: #fff; }
.ai-answer .tag { display: inline-block; padding: 2px 9px; border-radius: 7px; background: rgba(108, 179, 63, .16); color: #a4dd6f; font-size: 12.5px; font-weight: 700; margin-right: 6px; }
.ai-stage-foot { display: flex; align-items: center; gap: 16px; padding: 16px 24px 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ai-foot-note { font-size: 12.8px; color: #78859e; }

.providers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.providers-lbl { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0; }
.providers-list { display: flex; flex-wrap: wrap; gap: 8px; }
.providers-list li { padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.providers-note { flex: 1 1 320px; font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 940px) { .ai-lab { grid-template-columns: minmax(0, 1fr); } }

/* ========================================================== DONNEES ===== */
.sql-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.sql-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.sql-card header { margin-bottom: 16px; }
.sql-card h3 { margin: 10px 0 0; }
.sql-card h3 code { font-size: .85em; color: var(--muted); }
.sql-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sql-card--bad .sql-tag { background: #fdecea; color: #c2402c; }
.sql-card--good .sql-tag { background: var(--green-l); color: var(--green-d); }
.sql-card--good { border-color: color-mix(in srgb, var(--green) 40%, #fff); box-shadow: 0 30px 60px -40px rgba(79, 148, 35, .55); }
.code { margin: 0; padding: 16px 18px; border-radius: 14px; background: #0f1524; color: #c8d3e6; font-family: var(--mono); font-size: 12.5px; line-height: 1.62; overflow-x: auto; }
.code .c-k { color: #7cc4ff; font-weight: 600; }
.code .c-s { color: #a4dd6f; }
.code .c-n { color: #ffb86b; }
.code .c-f { color: #d7a8ff; }
.sql-notes { margin-top: 16px; display: grid; gap: 9px; }
.sql-notes li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.sql-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #d7dced; }
.sql-card--good .sql-notes li::before { background: var(--green); }
@media (max-width: 880px) { .sql-compare { grid-template-columns: 1fr; } }

.modules { margin-top: clamp(40px, 5vw, 64px); }
.modules h3 { margin-bottom: 20px; }
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modules-grid li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: transform .3s var(--spring), border-color .3s, box-shadow .3s; }
.modules-grid li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green) 40%, #fff); box-shadow: var(--shadow); }
.modules-grid b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.modules-grid span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.modules-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 78ch; }
@media (max-width: 880px) { .modules-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modules-grid { grid-template-columns: 1fr; } }

/* ======================================================== COMPARATIF ==== */
.vs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.vs-switch { position: relative; display: none; gap: 4px; padding: 5px; background: var(--soft); border-radius: 999px; margin-bottom: 20px; }
.vs-btn { flex: 1; position: relative; z-index: 1; height: 42px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.vs-btn.is-on { color: var(--ink); }
.vs-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring); }
.vs-switch.is-right .vs-pill { transform: translateX(100%); }

.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { text-align: left; padding: 15px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.vs-table thead th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.vs-table thead th:nth-child(3) { color: var(--green-d); }
.vs-table tbody th { font-size: 15.5px; font-weight: 700; color: var(--ink); width: 28%; }
.vs-table tr:last-child th, .vs-table tr:last-child td { border-bottom: 0; }
.vs-bar { position: relative; display: inline-block; padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #b0442f; }
.vs-bar::before {
  content: ""; position: absolute; inset: 0; background: #fdecea; border-radius: 10px;
  clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease);
}
.vs-bar b { position: relative; font-weight: 700; }
.vs-bar--good { color: var(--green-d); }
.vs-bar--good::before { background: var(--green-l); }
.is-in .vs-bar::before, .vs-bar.is-shown::before { clip-path: inset(0 0 0 0); }
.vs-note { font-size: 13.5px; color: var(--muted); margin: 18px 4px 0; }

@media (max-width: 760px) {
  .vs-switch { display: flex; }
  .vs-table thead { display: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .vs-table tbody th { padding: 0 0 8px; width: auto; }
  .vs-table td { padding: 0; }
  .vs[data-vs="wp"] td[data-side="isens"], .vs[data-vs="isens"] td[data-side="wp"] { display: none; }
}

/* ========================================================= SECURITE ===== */
.section--night { overflow: hidden; }
.section--night::before {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 179, 63, .22), transparent 66%); pointer-events: none;
}
.mfa-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px 30px 26px; max-width: 420px; margin-inline: auto;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7);
}
.mfa-top img { width: 124px; height: auto; margin-bottom: 20px; }
/* La carte est blanche dans une section sombre : on remet l'encre d'origine. */
.section--night .mfa-card h3 { color: var(--ink); font-size: 22px; margin: 0 0 6px; }
.mfa-sub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.mfa-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mfa-otp i {
  height: 54px; border-radius: 13px; border: 1.6px solid var(--line); display: grid; place-items: center;
  font-style: normal; font-size: 22px; font-weight: 800; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .25s var(--spring);
}
.mfa-otp i.is-filled { border-color: var(--green); transform: translateY(-2px); }
.mfa-otp i.is-active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(108, 179, 63, .16); }
.mfa-state {
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; height: 42px;
  border-radius: 12px; background: var(--green-l); color: var(--green-d); font-weight: 700; font-size: 14.5px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--spring);
}
.mfa-state.is-on { opacity: 1; transform: none; }
.mfa-log { margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 16px; display: grid; gap: 9px; }
.mfa-log li { font-size: 12.8px; color: var(--muted); font-family: var(--mono); }
.mfa-log b { color: var(--ink-2); margin-right: 8px; }
.mfa-log .is-warn { color: #c2402c; }
.mfa-log .is-warn b { color: #c2402c; }

/* ========================================================= PILOTAGE ==== */
.term { background: var(--night); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #0a0e1a; color: #7d8aa3; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.term-bar .dots i { background: #2a3245; }
.term-bar .dots i:nth-child(1) { background: #febc2e; } .term-bar .dots i:nth-child(2) { background: #28c840; }
.term-body { padding: 20px 22px 24px; height: 360px; overflow-y: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #b9c5da; }
.term-line { display: flex; gap: 10px; margin-bottom: 9px; animation: riseIn .4s var(--ease) both; }
.term-line .who { flex: none; font-weight: 600; }
.term-line--you .who { color: #8fd34f; }
.term-line--ai .who { color: #a98cff; }
.term-tool { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 8px; background: rgba(47, 134, 222, .14); color: #8cc2fb; font-size: 12px; margin: 2px 6px 2px 0; }
.term-tool::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8cc2fb; }
.term-ok { color: #8fd34f; }
.term-note { color: #6d7a93; }
.term-caret { display: inline-block; width: 7px; height: 1.05em; background: #b9c5da; vertical-align: -.18em; animation: blink .9s steps(1) infinite; }

/* ======================================================== MIGRATION ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.steps li::after { content: ""; position: absolute; top: 44px; right: -13px; width: 8px; height: 8px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg); }
.steps li:last-child::after { display: none; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.steps h3 { font-size: 17.5px; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--muted); margin: 0; }
.steps code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.proof { display: flex; align-items: center; gap: 28px; margin-top: 26px; padding: 30px 34px; border-radius: var(--radius-lg); background: var(--ink); color: #a9b4c9; }
.proof-n { font-size: clamp(44px, 6vw, 66px); font-weight: 800; letter-spacing: -.05em; color: #fff; line-height: 1; }
.proof-n span { color: #6cb33f; }
.proof h3 { color: #fff; font-size: 19px; margin: 0 0 6px; }
.proof p { margin: 0; font-size: 14.5px; max-width: 62ch; }
@media (max-width: 620px) { .proof { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; } }

/* ============================================================= FAQ ===== */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--green) 40%, #fff); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.2px solid var(--muted); border-bottom: 2.2px solid var(--muted); transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; max-width: 72ch; }

/* ========================================================= CONTACT ===== */
.contact-points { display: grid; gap: 12px; margin: 26px 0; }
.contact-points li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 3px; background: var(--green); }
.contact-points li:nth-child(2)::before { background: var(--orange); }
.contact-points li:nth-child(3)::before { background: var(--purple); }
.contact-alt { font-size: 14.5px; color: var(--muted); margin-top: 26px; }
.contact-alt a { color: var(--green-d); font-weight: 700; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; display: block; margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 15.5px;
  color: var(--ink); padding: 22px 15px 7px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field textarea { padding-top: 26px; min-height: 120px; line-height: 1.55; }
.field input { height: 58px; }
.field span { position: absolute; left: 16px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(108, 179, 63, .15); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 8px; font-size: 11.5px; font-weight: 700; color: var(--green-d); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 20px; cursor: pointer; }
.consent input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green-d); flex: none; }
.form-submit { width: 100%; }
.form-status { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; min-height: 22px; }
.form-legal { margin: 16px 0 0; font-size: 11px; line-height: 1.5; color: #98a1b2; }
.form-legal a { color: var(--green-d); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--ink); }
/* Le widget ne s'affiche que si Cloudflare demande un geste : pas de place perdue. */
.cf-turnstile:not(:empty) { margin: 4px 0 16px; }
.form-status.is-ok { color: var(--green-d); }
.form-status.is-bad { color: var(--red); }

/* ---------- Barres de défilement des panneaux sombres ----------
   Même piège que sur `html` : les propriétés standard vivent dans la garde
   @supports, sinon ces éléments repassent seuls à la barre du système. */
.ai-stage-body::-webkit-scrollbar, .term-body::-webkit-scrollbar { width: 9px; }
.ai-stage-body::-webkit-scrollbar-track, .term-body::-webkit-scrollbar-track { background: transparent; }
.ai-stage-body::-webkit-scrollbar-thumb, .term-body::-webkit-scrollbar-thumb {
  background-color: #33405c; border: 2px solid transparent; background-clip: padding-box; border-radius: 999px;
}
.ai-stage-body::-webkit-scrollbar-thumb:hover, .term-body::-webkit-scrollbar-thumb:hover { background-color: #4a5a7d; }

@supports not selector(::-webkit-scrollbar) {
  .studio-canvas { scrollbar-width: thin; scrollbar-color: #dbe1ec transparent; }
  .ai-stage-body, .term-body { scrollbar-width: thin; scrollbar-color: #33405c transparent; }
}
