/* ==========================================================================
   Whydo — feuille de style
   Signature : « le fil », ligne bleu électrique à angles de W qui relie les étapes.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #2445FF;
  --blue-600: #1531D9;
  --blue-300: #93A2FF;
  --blue-50: #EDF0FF;
  --night: #0B1024;
  --night-2: #131A3A;
  --night-3: #1D2652;
  --paper: #FFFFFF;
  --paper-2: #F4F6FA;
  --white: #FFFFFF;
  --warm: #F3F6FF;
  --warm-2: #DCE3FF;
  --ink: #0B1024;
  --ink-2: #474E6B;
  --ink-3: #636A88;
  --on-night: #EEF0F8;
  --on-night-2: #AAB1D0;
  --line: rgba(11, 16, 36, .10);
  --line-strong: rgba(11, 16, 36, .22);
  --line-night: rgba(238, 240, 248, .14);
  --ok: #0F7A4C;
  --ok-bg: #E5F6EE;
  --human: #F5A524;
  --human-ink: #8A4B00;
  --human-bg: #FFF1D6;
  --danger: #B42318;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(11, 16, 36, .05), 0 10px 28px -14px rgba(11, 16, 36, .22);
  --shadow-deep: 0 2px 6px rgba(11, 16, 36, .06), 0 30px 70px -28px rgba(11, 16, 36, .42);
  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.scene-night :focus-visible, .final-cta :focus-visible, .featured :focus-visible { outline-color: var(--blue-300); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
.display, .display-2, .h2, .h3, .h4, .article-title, .featured-title, .topic-h1, .concept-name, .funnel-q, .calc-hours output {
  font-family: var(--font-display);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.4rem, 1.1rem + 4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}
.display-2 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(1.8rem, 1.1rem + 2.3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}
.h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.h4 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin-top: 1.1rem; text-wrap: pretty; }
.optional { font-weight: 400; color: var(--ink-3); font-size: .85em; margin-left: 4px; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: center;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 12px 26px -12px rgba(36, 69, 255, .75); }
.btn-dark { background: var(--night); color: var(--paper); }
.btn-dark:hover { background: var(--night-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .93rem; }
.btn-block { width: 100%; white-space: normal; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn svg { flex: none; }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: var(--line-strong);
  transition: color .2s, text-decoration-color .2s;
}
.link-quiet:hover { color: var(--blue); text-decoration-color: currentColor; }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; font: inherit; }
.inline-form { display: inline; margin: 0; }

/* ---------- Bandeau & en-tête ---------- */
.announce { background: var(--night); color: var(--on-night); font-size: .875rem; }
.announce-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; }
.announce p { margin: 0; padding: 7px 0; text-align: center; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; margin-left: 10px; white-space: nowrap; }
.announce a:hover { text-decoration-color: #fff; }
.announce-short, .announce-link-short { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { text-decoration: none; display: inline-flex; flex: none; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0; }
.nav-list > li > a, .sub-toggle {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 13px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink);
  background: none; border: 0; position: relative;
}
.nav-list > li > a:hover, .sub-toggle:hover { background: rgba(11, 16, 36, .05); }
.nav-list a[aria-current="page"]::after, .has-sub.is-current > .sub-toggle::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; background: var(--blue);
}
.sub-toggle svg { transition: transform .2s; }
.has-sub { position: relative; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 330px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-deep);
  display: none;
}
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--blue-50); }
.sub-menu strong { display: block; font-weight: 650; }
.sub-menu span { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.header-cta { flex: none; }
.cta-short { display: none; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: none; border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .95rem;
}
.menu-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s; }
.menu-toggle-bars::before { top: 1px; }
.menu-toggle-bars::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--menu-top, var(--header-h)); bottom: 0;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px var(--gutter) 40px; border-top: 1px solid var(--line);
}
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu > nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.mobile-group > span { display: block; padding: 14px 0 0; font-size: .9rem; color: var(--ink-2); }
.mobile-group ul { display: flex; gap: 24px; }
.mobile-menu .btn { margin-top: 28px; }
.mobile-menu-note { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 10px; }
body.menu-open { overflow: hidden; }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 32px; width: auto; }
.site-footer .logo img { height: 38px; }
.admin-brand .logo img { height: 26px; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.055em; line-height: 1; color: var(--night); display: inline-flex; align-items: baseline;
}
.wordmark-w { color: var(--blue); margin-right: -.02em; }
.logo--cartouche { background: var(--paper); padding: 7px 12px 6px; border-radius: 10px; }

/* ---------- Sections communes ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-intro { max-width: 760px; margin-bottom: clamp(32px, 5vw, 60px); }
.section-intro p { color: var(--ink-2); font-size: 1.12rem; margin-top: 1rem; max-width: 40em; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.scene-night {
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(238, 240, 248, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 248, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--on-night);
}
.scene-night .h2, .scene-night .h3, .scene-night h3 { color: #fff; }
.scene-night p { color: var(--on-night-2); }
.scene-night .section-intro p { color: var(--on-night-2); }
.scene-paper-deep { background: var(--paper-2); }

.fil-transition {
  height: 180px; display: flex; justify-content: center; color: var(--blue);
  background: linear-gradient(to bottom, var(--paper-2) 0 54%, var(--night) 54% 100%);
  margin-bottom: -1px;
}
.fil-transition svg { height: 100%; width: 60px; overflow: visible; filter: drop-shadow(0 0 6px rgba(36, 69, 255, .55)); }

/* ---------- Accueil : hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 92px) clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { max-width: 15ch; }
.hero-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px 30px; margin-top: 34px; }
.hero-actions .link-quiet { min-height: 56px; }
.cta-note { font-size: .92rem; color: var(--ink-2); margin: 10px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .hero-sites-copy > *, .js .landing-copy > * { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(2), .js .hero-sites-copy > :nth-child(2), .js .landing-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3), .js .hero-sites-copy > :nth-child(3), .js .landing-copy > :nth-child(3) { animation-delay: .16s; }
  /* Glissement sans fondu : un élément transparent retarde le LCP mesuré par Google */
  .js .hero-demo, .js .showcase { animation: rise-soft 1s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { transform: translateY(18px); } to { transform: none; } }

/* ---------- Accueil : agent IA (simulateur) ---------- */
.hero-home .hero-grid { align-items: start; }
.hero-home { padding-top: clamp(24px, 3vw, 44px); }
.hero-home .hero-copy { padding-top: clamp(8px, 4vw, 64px); }
.hero-home .hero-title { font-size: clamp(2.2rem, 1.1rem + 2.9vw, 3.6rem); max-width: 17ch; }
.hero-home .lead { max-width: 33em; }
.hero-home .link-quiet svg { color: var(--blue); }

.agent {
  position: relative; background: var(--night); color: var(--on-night);
  border-radius: var(--radius-l); padding: 14px; border: 1px solid rgba(238, 240, 248, .08);
  box-shadow: 0 2px 6px rgba(11, 16, 36, .1), 0 40px 80px -36px rgba(11, 16, 36, .65);
}
.agent-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; }
.agent-mark, .ag-wmark {
  display: inline-grid; place-items: center; flex: none; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em;
}
.agent-mark { width: 30px; height: 30px; border-radius: 8px; font-size: .95rem; box-shadow: 0 0 18px rgba(36, 69, 255, .55); }
.agent-title { flex: 1; margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.25; }
.agent-sim { flex: none; font-size: .72rem; color: var(--on-night-2); border: 1px solid var(--line-night); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.agent-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(238, 240, 248, .06); }
.agent-tabs [role="tab"] { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--on-night-2); font-weight: 600; font-size: .93rem; transition: background-color .2s, color .2s; }
.agent-tabs [role="tab"]:hover { color: #fff; }
.agent-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--night); }
.agent-panel { margin-top: 10px; }
.agent-brief { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px 12px 16px; }
.agent-brief-label { margin: 0 0 2px; font-size: .72rem; font-weight: 600; color: var(--ink-3); }
.agent-brief-quote { margin: 0; font-size: .93rem; font-weight: 500; line-height: 1.4; }
.agent-tools { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.agent-tools li { font-size: .72rem; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: 2px 8px; }
.agent-launch { min-height: 44px; padding: 0 16px; }

.agent-strip { list-style: none; margin: 12px 0 10px; padding: 0 2px; display: flex; align-items: flex-start; }
.strip-agent .strip-node { width: 34px; height: 34px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--blue); color: #fff; border: 0; font-family: var(--font-display); font-weight: 700; box-shadow: 0 0 0 4px rgba(36, 69, 255, .18), 0 0 18px rgba(36, 69, 255, .6); }
.strip-step { flex: 1; display: grid; grid-template-columns: minmax(12px, 1fr) auto; grid-template-rows: 34px auto; column-gap: 0; min-width: 0; }
.strip-wire { grid-row: 1; grid-column: 1; align-self: center; height: 2px; background: rgba(238, 240, 248, .16); position: relative; margin: 0 6px; transition: background-color .3s; }
.strip-wire i { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(36, 69, 255, .6), 0 0 16px 4px rgba(36, 69, 255, .9); opacity: 0; }
.strip-wire.is-pulse i { animation: agPulse .55s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes agPulse { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.strip-node { grid-row: 1; grid-column: 2; align-self: center; font-size: .78rem; font-weight: 600; color: var(--on-night-2); border: 1.5px solid rgba(238, 240, 248, .2); border-radius: 999px; padding: 5px 11px; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.strip-label { grid-row: 2; grid-column: 1 / -1; justify-self: end; text-align: right; font-size: .7rem; color: var(--on-night-2); margin-top: 5px; line-height: 1.25; max-width: 15ch; }
.strip-step.is-cur .strip-node { color: #fff; border-color: var(--blue); background: rgba(36, 69, 255, .25); box-shadow: 0 0 0 4px rgba(36, 69, 255, .15); }
.strip-step.is-cur .strip-label { color: #fff; }
.strip-step.is-done .strip-wire, .strip-step.is-cur .strip-wire { background: var(--blue); }
.strip-step.is-done .strip-node { color: #fff; background: var(--blue); border-color: var(--blue); }
.strip-step.is-nav .strip-node { cursor: pointer; }
.strip-step.is-nav .strip-node:hover { box-shadow: 0 0 0 4px rgba(147, 162, 255, .35); }
.strip-step.is-view .strip-node { background: #fff; color: var(--night); border-color: #fff; }

.agent-stage { position: relative; background: #F7F8FB; color: var(--ink); border-radius: 14px; height: 372px; padding: 14px; overflow: hidden; }
.ag-view { height: 100%; animation: agIn .4s var(--ease) both; }
@keyframes agIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.ag-app { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.ag-app-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.ag-app-name { font-size: .8rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.ag-app-name::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.ag-app-sub { font-size: .76rem; color: var(--ink-3); }
.ag-decision { margin: auto 0 0; display: flex; align-items: center; gap: 10px; background: var(--night); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: .9rem; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.ag-decision.is-on { opacity: 1; transform: none; }
.ag-decision b { color: #fff; }
.ag-wmark { width: 24px; height: 24px; border-radius: 6px; font-size: .75rem; }
.ag-av { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); display: inline-grid; place-items: center; font-size: .68rem; font-weight: 700; flex: none; }
.ag-who { display: grid; min-width: 0; line-height: 1.25; }
.ag-who b { font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-who small { font-size: .74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* CRM */
.ag-count { font-size: .78rem; color: var(--ink-3); }
.ag-count b { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.ag-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { font-size: .74rem; font-weight: 600; color: var(--ink-2); border: 1.5px dashed var(--line-strong); border-radius: 999px; padding: 4px 10px; transition: background-color .3s, color .3s, border-color .3s; }
.ag-chip.is-on { background: var(--blue); color: #fff; border: 1.5px solid var(--blue); }
.ag-chip.is-on::before { content: "✓ "; }
.ag-chip:first-child.is-on { background: var(--night); border-color: var(--night); }
.ag-rows { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.ag-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; max-height: 52px; transition: max-height .45s var(--ease), opacity .3s, margin .45s, padding .45s, border-width .45s; }
.ag-row.is-out { max-height: 0; opacity: 0; margin-bottom: 0; padding-block: 0; border-width: 0; }
.ag-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ag-tags em { font-style: normal; font-size: .66rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--blue-50); color: var(--blue); white-space: nowrap; }
.ag-tags em.is-old { background: var(--ok-bg); color: var(--ok); }

/* E-mail */
.ag-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.ag-seg button { border: 0; background: none; border-radius: 7px; padding: 5px 9px; font-size: .74rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; min-height: 30px; }
.ag-seg button[aria-pressed="true"] { background: var(--night); color: #fff; }
.ag-mail-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 24px -18px rgba(11, 16, 36, .4); }
.ag-mail-card.is-swap { animation: agIn .3s var(--ease); }
.ag-mail-meta { display: flex; gap: 10px; margin: 0 0 6px; font-size: .84rem; align-items: baseline; }
.ag-mail-meta span { flex: none; width: 42px; font-size: .72rem; color: var(--ink-3); }
.ag-mail-meta b { font-weight: 500; }
.ag-subject { font-weight: 650 !important; font-size: .98rem; line-height: 1.3; }
.ag-mail-body { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.ag-mail-body p { margin: 0 0 6px; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.ag-token { background: var(--blue-50); color: var(--blue); border-radius: 5px; padding: 0 5px; font-weight: 600; }
.ag-mail-btn { display: inline-block; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; margin-top: 2px; }
.ag-wd { opacity: 0; animation: agWd .32s ease forwards; animation-delay: var(--d, 0ms); }
@keyframes agWd { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }

/* Agenda */
.ag-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; flex: 1; min-height: 0; }
.ag-day { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-day-name { font-size: .72rem; font-weight: 600; color: var(--ink-3); text-align: center; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.ag-event { background: var(--blue-50); border-left: 3px solid var(--blue); border-radius: 7px; padding: 6px 7px; font-size: .7rem; line-height: 1.25; display: grid; gap: 3px; animation: agDrop .45s var(--ease) both; }
@keyframes agDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.ag-event b { font-weight: 600; color: var(--ink); }
.ag-time { color: var(--ink-3); font-weight: 600; }
.ag-event small { color: var(--human-ink); font-weight: 600; }
.ag-event.is-cond { background: #FFF8EC; border-left-color: var(--human); border-left-style: dashed; }
.ag-status { justify-self: start; font-size: .64rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); transition: background-color .3s, color .3s; }
.ag-event.is-planned .ag-status { background: var(--ok); color: #fff; border-color: var(--ok); }
.ag-cal-foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.ag-cal-foot small { font-size: .74rem; color: var(--ink-3); }
.ag-validate { min-height: 42px; font-size: .92rem; }
.ag-validate[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ag-validate.is-ready:not([disabled]) { animation: agReady 1.6s ease-in-out infinite; }
@keyframes agReady { 0%, 100% { box-shadow: 0 0 0 0 rgba(36, 69, 255, .45); } 50% { box-shadow: 0 0 0 8px rgba(36, 69, 255, 0); } }

/* Pipeline */
.ag-opps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ag-opp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) auto minmax(0, 1fr); gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; transition: border-color .25s, box-shadow .25s, opacity .3s; }
.ag-opp.is-scan { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 69, 255, .14); }
.ag-stage { font-size: .7rem; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border-radius: 5px; padding: 2px 7px; justify-self: start; white-space: nowrap; }
.ag-amount { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-signal { justify-self: end; font-size: .68rem; font-weight: 700; border-radius: 5px; padding: 2px 7px; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; text-align: right; }
.ag-opp.is-flag .ag-signal { opacity: 1; transform: none; }
.k-urgent { background: #FEECEC; color: #B42318; }
.k-today { background: var(--blue-50); color: var(--blue); }
.k-replied { background: var(--ok-bg); color: var(--ok); }

/* File d'appels */
.ag-calls { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ag-call, .ag-skip { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.ag-call.is-on, .ag-skip.is-on { opacity: 1; transform: none; }
.ag-call { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ag-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.ag-call b { display: block; font-size: .9rem; }
.ag-call small { display: block; font-size: .74rem; color: var(--ink-3); }
.ag-call p, .ag-skip p { margin: 4px 0 0; font-size: .82rem; line-height: 1.4; color: var(--ink-2); }
.ag-link { background: none; border: 0; padding: 4px 0 0; color: var(--blue); font-weight: 600; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.ag-skip { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 10px 12px; }
.ag-skip b { font-size: .84rem; color: var(--ink-2); }

/* Brouillon */
.ag-ready { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); opacity: 0; transition: opacity .4s; }
.ag-ready.is-on { opacity: 1; }
.ag-ready.is-human { background: var(--human-bg); color: var(--human-ink); }
.ag-queue-mini { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.ag-queue-mini span { color: var(--ink-3); font-size: .74rem; }

/* Opportunité signée */
.ag-deal-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.ag-deal-card > b { font-size: 1.05rem; }
.ag-deal-card > small { font-size: .8rem; color: var(--ink-3); }
.ag-stages { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ag-stages li { font-size: .74rem; font-weight: 600; text-align: center; padding: 8px 4px 0; border-top: 3px solid var(--line); color: var(--ink-3); transition: border-color .35s, color .35s; }
.ag-stages li.is-done { border-top-color: var(--blue); color: var(--ink-2); }
.ag-stages li.is-cur { border-top-color: var(--blue); color: var(--blue); }
.ag-stages li.is-signed { border-top-color: var(--ok); color: var(--ok); }
.ag-stages li.is-signed::before { content: "✓ "; }
.ag-log { margin: 10px 0 0; font-size: .8rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; opacity: 0; transition: opacity .4s; }
.ag-log::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ag-log.is-on { opacity: 1; }

/* Tableau projet */
.ag-created { opacity: 0; background: var(--blue-50); color: var(--blue) !important; font-weight: 600; border-radius: 999px; padding: 3px 10px; transition: opacity .4s; }
.ag-created.is-on { opacity: 1; }
.ag-tasks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-task { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.ag-task.is-on { opacity: 1; transform: none; }
.ag-task-btn { width: 100%; height: 100%; text-align: left; display: grid; gap: 10px; align-content: start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; color: inherit; transition: border-color .3s, box-shadow .3s; }
button.ag-task-btn { cursor: pointer; }
button.ag-task-btn:hover { border-color: var(--blue); }
.ag-task-btn > b { font-size: .84rem; line-height: 1.3; }
.ag-owner { display: flex; gap: 7px; align-items: center; font-size: .76rem; font-weight: 600; flex-wrap: wrap; }
.ag-owner .ag-av { width: 24px; height: 24px; }
.ag-owner small { width: 100%; font-weight: 400; color: var(--ink-3); padding-left: 31px; margin-top: -6px; }
.ag-task-state { justify-self: start; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.ag-task.is-wait .ag-task-state { background: var(--human-bg); color: var(--human-ink); }
.ag-task.is-wait .ag-av { background: var(--human-bg); color: var(--human-ink); }
.ag-task.is-alert .ag-task-btn { border-color: var(--human); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.ag-missing { background: #fff; border-left: 3px solid var(--human); border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: .82rem; animation: agIn .3s var(--ease); }
.ag-missing b { display: block; margin-bottom: 2px; }
.ag-missing p { margin: 0; color: var(--ink-2); line-height: 1.4; }
.ag-hint { margin: auto 0 0; font-size: .76rem; color: var(--ink-3); }
.ag-alert { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--human-bg); color: var(--human-ink); border-radius: 10px; padding: 10px 12px; font-size: .84rem; line-height: 1.4; }
.ag-alert b { color: var(--human-ink); }

/* Introduction de mission */
.ag-intro { display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; }
.ag-intro-title { font-size: .8rem; font-weight: 600; color: var(--ink-3); margin: 0 0 8px; }
.ag-plan { list-style: none; padding: 0; margin: 0; counter-reset: plan; }
.ag-plan li { counter-increment: plan; position: relative; padding: 12px 0 12px 42px; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
.ag-plan li::before { content: counter(plan); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: .8rem; font-weight: 700; }
.ag-plan b { color: var(--ink); font-weight: 600; }
.ag-intro-note { margin: 14px 0 0; font-size: .8rem; color: var(--ink-3); }

/* Accueil : livrable visible avant le lancement */
.ag-intro { justify-content: flex-start; padding: 4px 4px 0; }
.ag-intro-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.ag-intro .ag-plan li { font-size: .9rem; padding: 10px 0 10px 38px; }
.ag-intro .ag-plan li::before { top: 8px; width: 24px; height: 24px; font-size: .74rem; }
.ag-deliv-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; box-shadow: 0 14px 30px -22px rgba(11, 16, 36, .5); transform: rotate(.6deg); }
.ag-deliv-head { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; font-weight: 650; color: var(--ink); }
.ag-deliv-head span { font-size: .66rem; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ag-deliv-row { margin: 0; font-size: .78rem; color: var(--ink-2); }
.ag-deliv-row b { font-size: 1.05rem; color: var(--ink); margin-right: 4px; }
.ag-deliv-mail { margin: 0; font-size: .74rem; font-weight: 600; color: var(--ink); background: var(--paper-2); border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; padding: 6px 8px; line-height: 1.3; }
.ag-deliv-cal { display: grid; gap: 4px; font-weight: 600; color: var(--ink); }
.ag-deliv-cal em { font-style: normal; font-weight: 600; color: var(--human-ink); background: #FFF8EC; border-left: 3px dashed var(--human); padding: 3px 7px; border-radius: 0 6px 6px 0; }
.ag-deliv-call { margin: 0; display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--paper-2); border-radius: 8px; padding: 6px 8px; }
.ag-deliv-call b { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .72rem; }
.ag-deliv-call em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: .72rem; }
.ag-deliv-ok { font-weight: 600; color: var(--ok); }
.ag-deliv-ok::before { content: "✓ "; }
.ag-deliv-task { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .76rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.ag-deliv-task em { font-style: normal; font-weight: 600; font-size: .68rem; color: var(--ok); background: var(--ok-bg); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.ag-deliv-task.is-wait { border-color: var(--human); }
.ag-deliv-task.is-wait em { color: var(--human-ink); background: var(--human-bg); }
@media (max-width: 760px) { .ag-intro-cols { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Commandes et fin de mission */
.agent-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 36px; }
.agent-ctrl { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 9px; background: rgba(238, 240, 248, .08); border: 1px solid var(--line-night); color: #fff; font-size: .84rem; font-weight: 600; }
.agent-ctrl:hover { background: rgba(238, 240, 248, .15); }
.agent-progress { margin: 0 0 0 auto; font-size: .78rem; color: var(--on-night-2) !important; }
.agent-end { margin-top: 10px; display: grid; gap: 10px; animation: agIn .4s var(--ease); }
.agent-summary { margin: 0; font-size: .88rem; font-weight: 600; color: #fff !important; padding: 0 4px; }
.agent-end-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--blue); border-radius: 12px; padding: 10px 10px 10px 16px; }
.agent-end-cta p { margin: 0; font-weight: 600; color: #fff !important; font-size: 1rem; }
.agent-end-cta .btn { min-height: 42px; }
.agent.is-paused .ag-wd, .agent.is-paused .ag-view, .agent.is-paused .ag-event, .agent.is-paused .strip-wire i { animation-play-state: paused; }
.agent :focus-visible { outline-color: var(--blue-300); }
.agent-stage :focus-visible, .agent-brief :focus-visible { outline-color: var(--blue); }

@media (max-width: 760px) {
  .agent { padding: 10px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .agent-bar { padding: 2px 2px 10px; }
  .agent-sim { display: none; }
  .agent-brief { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .agent-launch { width: 100%; }
  .strip-label { display: none; }
  .strip-node { padding: 4px 8px; font-size: .72rem; }
  .agent-stage { height: auto; min-height: 400px; padding: 12px 10px; }
  .ag-view { height: auto; min-height: 376px; }
  .ag-app { min-height: 376px; }
  .ag-tags em:not(.is-old) { display: none; }
  .ag-opp { grid-template-columns: minmax(0, 1fr) auto; }
  .ag-opp .ag-stage { display: none; }
  .ag-signal { grid-column: 1 / -1; justify-self: start; }
  .ag-opp:not(.is-flag) .ag-signal { display: none; }
  .ag-week { grid-template-columns: 1fr 1fr; }
  .ag-day[data-day="0"], .ag-day[data-day="2"], .ag-day[data-day="4"] { display: none; }
  .ag-tasks { grid-template-columns: minmax(0, 1fr); }
  .ag-app-bar { flex-wrap: wrap; }
  .agent-end-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-wd { opacity: 1; animation: none; }
}

/* ---------- Accueil : onglets « où perdez-vous du temps » ---------- */
.section-pain { background: var(--paper-2); }
.tab-list {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  flex: none; scroll-snap-align: start;
  background: none; border: 0; border-bottom: 2.5px solid transparent;
  padding: 14px 18px; min-height: 52px;
  font-weight: 600; font-size: 1.02rem; color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tab-panel { padding-top: 32px; }
.tab-panel:focus-visible { outline-offset: 8px; }
.pain-task { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 600; max-width: 46ch; margin-bottom: 28px; }
.pain-task-label { display: block; font-family: var(--font-body); font-size: .86rem; font-weight: 600; color: var(--blue); letter-spacing: 0; margin-bottom: 6px; }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col-manual, .col-auto { border-radius: var(--radius-l); padding: clamp(20px, 2.6vw, 30px); }
.col-manual { background: #fff; border: 1.5px dashed var(--line-strong); }
.col-auto { background: var(--night); color: var(--on-night); }
.col-title { font-family: var(--font-body); font-size: .95rem; font-weight: 650; margin-bottom: 16px; }
.col-auto .col-title { color: #fff; }
.manual-steps { list-style: none; padding: 0; counter-reset: m; }
.manual-steps li { counter-increment: m; display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.manual-steps li::before { content: counter(m); flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font-size: .78rem; font-weight: 700; transform: translateY(5px); }
.col-foot { margin: 14px 0 0; font-size: .88rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.col-foot::before { content: "↻"; font-size: 1.1rem; color: var(--ink-2); }
.auto-steps { list-style: none; padding: 0 0 0 30px; position: relative; }
.auto-steps::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px; background: var(--blue); box-shadow: 0 0 8px rgba(36, 69, 255, .7); }
.auto-steps li { position: relative; padding: 9px 0; color: var(--on-night); }
.auto-steps li::before { content: ""; position: absolute; left: -27px; top: 15px; width: 12px; height: 12px; background: var(--night); border: 2.5px solid var(--blue); transform: rotate(45deg); }
.human-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(245, 165, 36, .1); border: 1px solid rgba(245, 165, 36, .35); color: var(--on-night) !important; font-size: .95rem; }
.human-badge { display: inline-block; background: var(--human); color: var(--night); font-weight: 700; font-size: .75rem; padding: 2px 8px; border-radius: 6px; margin-right: 10px; }

/* ---------- Accueil : offres ---------- */
.offer { position: relative; }
.offer-kicker { font-weight: 650; font-size: .95rem; color: var(--blue); margin-bottom: 14px; }
.scene-night .offer-kicker { color: var(--blue-300); }
.offer-copy p { color: var(--ink-2); font-size: 1.08rem; max-width: 34em; margin-top: 18px; }
.scene-night .offer-copy p { color: var(--on-night-2); }
.offer-copy .btn { margin-top: 12px; }

.offer-auto { padding-block: clamp(70px, 9vw, 130px); }
.offer-auto-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.flow { position: relative; aspect-ratio: 600 / 360; }
.flow-fil { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--blue); overflow: visible; filter: drop-shadow(0 0 6px rgba(36, 69, 255, .6)); }
.flow-node {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 12px;
  background: var(--night-2); border: 1px solid var(--line-night); border-radius: var(--radius-m);
  padding: 10px 16px 10px 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.flow-node strong { display: block; color: #fff; font-size: .98rem; line-height: 1.2; }
.flow-node small { display: block; color: var(--on-night-2); font-size: .8rem; }
.flow-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(36, 69, 255, .22); color: #fff; display: grid; place-items: center; flex: none; }
.flow-ico svg { width: 20px; height: 20px; }
.flow-node-end { background: var(--blue); border-color: var(--blue); }
.flow-node-end .flow-ico { background: rgba(255, 255, 255, .18); }
.flow-node-end small { color: rgba(255, 255, 255, .85); }

.offer-web { padding-block: clamp(80px, 10vw, 150px) clamp(60px, 8vw, 110px); }
.offer-web-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.devices { position: relative; padding: 0 9% 9% 0; }
.device-browser, .showcase-browser {
  position: relative; border-radius: var(--radius-m); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-deep);
}
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #ECEDF2; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(11, 16, 36, .18); }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: .76rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-browser picture, .showcase-browser picture, .device-phone picture, .showcase-phone picture, .concept-desktop picture, .concept-mobile picture { display: contents; }
.device-browser img, .showcase-browser img { display: block; width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.device-phone, .showcase-phone {
  position: absolute; right: 0; bottom: 0; width: 27%;
  border-radius: 30px; border: 8px solid var(--night); background: var(--night); overflow: hidden; box-shadow: var(--shadow-deep);
}
.device-phone img, .showcase-phone img { display: block; width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 22px; }
.is-empty { background: linear-gradient(135deg, var(--paper-2), #dfe2ee); min-height: 120px; }
.is-empty img { visibility: hidden; }

.offer-training { padding-block: clamp(60px, 8vw, 120px); background: var(--paper-2); }
.offer-training-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.exercise-peek { display: grid; gap: 14px; justify-items: start; }
.peek-doc { background: #fff; border-radius: var(--radius-m); padding: 18px 20px; box-shadow: var(--shadow-1); border: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); max-width: 520px; }
.peek-doc b { color: var(--ink); font-weight: 600; }
.peek-label { font-weight: 650; color: var(--ink); font-size: .85rem; margin-bottom: 6px; }
.peek-button { background: var(--blue); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 10px; font-size: .92rem; margin-left: 24px; position: relative; }
.peek-button::before { content: ""; position: absolute; left: -24px; top: 50%; width: 18px; height: 2px; background: var(--blue); }
.peek-actions { list-style: none; padding: 0; margin: 0; width: 100%; max-width: 560px; background: #fff; border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.peek-actions li { display: grid; grid-template-columns: 1.6fr .7fr .8fr; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.peek-actions li:first-child { border-top: 0; }
.tbd { color: var(--human-ink); background: var(--human-bg); border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: .86em; white-space: nowrap; justify-self: start; }

/* ---------- Calculateur ---------- */
.calc-section { padding-block: clamp(80px, 10vw, 140px); }
.calc-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.calc-copy p { font-size: 1.1rem; margin-top: 18px; max-width: 32em; }
.calc { background: var(--night-2); border: 1px solid var(--line-night); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 34px); }
.calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stepper label { display: block; font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 8px; min-height: 2.6em; line-height: 1.3; }
.stepper-control { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; border: 1.5px solid rgba(238, 240, 248, .22); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .15); }
.stepper-control:focus-within { border-color: var(--blue-300); box-shadow: 0 0 0 3px rgba(147, 162, 255, .3); }
.stepper-control button { background: rgba(238, 240, 248, .06); border: 0; color: #fff; font-size: 1.4rem; line-height: 1; min-height: 54px; transition: background .2s; }
.stepper-control button:hover { background: rgba(238, 240, 248, .14); }
.calc .stepper-control input { width: 100%; min-height: 54px; padding: 0; border-radius: 0; box-shadow: none !important; min-width: 0; border: 0; background: transparent; color: #fff; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper-control input:focus { outline: none; }
.stepper-control input::-webkit-outer-spin-button, .stepper-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper small { display: block; color: var(--on-night-2); font-size: .8rem; margin-top: 6px; }
.calc-result { margin: 28px 0 22px; padding-top: 22px; border-top: 1px solid var(--line-night); }
.calc-formula { margin: 0 0 6px; font-size: .95rem; }
.calc-hours { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0; }
.calc-hours output { font-size: clamp(3.4rem, 2.4rem + 4vw, 5.2rem); font-weight: 600; line-height: 1; color: #fff; letter-spacing: -.03em; }
.calc-hours span { color: var(--on-night-2); font-size: 1.05rem; }
.calc-note { font-size: .88rem; margin: 10px 0 0; }
.calc-daily { margin: 10px 0 0; color: var(--on-night-2); font-size: 1.05rem; }
.calc-daily strong { color: #fff; font-weight: 600; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* ---------- Étapes de l'étude ---------- */
.steps-fil { display: block; width: 100%; height: 60px; color: var(--blue); overflow: visible; }
.steps-line { list-style: none; padding: 0; margin: -52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps-line li { padding-right: 12px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 22px; position: relative; }
.steps-line h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.015em; font-family: var(--font-display); margin-bottom: 10px; font-weight: 600; }
.steps-line p { color: var(--ink-2); margin: 0; }

/* ---------- Cartes d'articles ---------- */
.section-reading { padding-top: 0; }
.section-reading.section-reading-standalone { padding-top: clamp(64px, 8vw, 110px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card-link { display: block; text-decoration: none; height: 100%; }
.post-cover { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 1200 / 630; background: var(--paper-2); }
.post-cover svg, .post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card-link:hover .post-cover svg, .post-card-link:hover .post-cover img { transform: scale(1.025); }
.post-card-body { padding-top: 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .86rem; color: var(--ink-2); margin: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(11, 16, 36, .07); color: var(--ink); font-weight: 600; font-size: .8rem; }
.post-card-title { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.16; letter-spacing: -.02em; font-weight: 600; margin-top: 10px; text-wrap: balance; transition: color .2s; }
.post-card-link:hover .post-card-title { color: var(--blue); }
.post-card-excerpt { color: var(--ink-2); font-size: .97rem; margin: 10px 0 0; }

/* ---------- Appel final ---------- */
.final-cta { background: var(--blue); color: #fff; padding-block: clamp(80px, 10vw, 140px); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath d='M0 60 H150 L170 100 L190 40 L210 100 L230 40 L250 60 H400' fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='2'/%3E%3C/svg%3E"); background-size: 800px 240px; background-position: 50% calc(100% + 60px); opacity: .9; background-repeat: repeat-x; pointer-events: none; }
.final-cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.final-cta .display-2 { max-width: 17ch; }
.final-cta .cta-note { color: rgba(255, 255, 255, .85); }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 110px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 56px; border-bottom: 1px solid var(--line-night); }
.footer-title { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: #fff !important; margin-bottom: 24px; max-width: 18ch; }
.footer-note { font-size: .9rem; margin: 10px 0 0; }
.footer-fil { width: 100%; height: 100px; color: var(--blue); filter: drop-shadow(0 0 6px rgba(36, 69, 255, .6)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 48px; }
.footer-brand p { font-size: .95rem; margin-top: 16px; max-width: 30em; }
.footer-brand a { text-decoration: none; display: inline-flex; }
.footer-h { color: #fff !important; font-weight: 650; font-size: .92rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.site-footer nav a { color: var(--on-night-2); text-decoration: none; display: inline-block; padding: 6px 0; font-size: .95rem; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 22px 32px; border-top: 1px solid var(--line-night); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Landing : étude ---------- */
.landing { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 110px); }
.landing-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  grid-template-areas: "copy form" "example form"; gap: 36px clamp(32px, 6vw, 90px); align-items: start;
}
.landing-copy { grid-area: copy; }
.landing-form { grid-area: form; position: sticky; top: calc(var(--header-h) + 20px); }
.landing-example { grid-area: example; }
.landing-title { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.1rem); max-width: 16ch; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 8px 14px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.facts strong { color: var(--ink); }
.landing-example { border-top: 1px solid var(--line); padding-top: 32px; max-width: 560px; }
.landing-example > p { color: var(--ink-2); margin-top: 10px; }
.mini-flow { list-style: none; padding: 0 0 0 30px; margin: 22px 0; position: relative; display: grid; gap: 16px; }
.mini-flow::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--blue); }
.mini-flow li { position: relative; }
.mini-dot { position: absolute; left: -29px; top: 5px; width: 14px; height: 14px; background: var(--paper); border: 2.5px solid var(--blue); transform: rotate(45deg); }
.mini-flow strong { display: block; font-weight: 650; }
.mini-flow small { color: var(--ink-2); font-size: .92rem; }
.example-out { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; padding: 14px 16px; color: var(--ink) !important; }

/* ---------- Formulaires ---------- */
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-1); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: .96rem; margin-bottom: 8px; }
.field small { display: block; font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.field-row > .field { margin-top: 18px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B1024' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 69, 255, .18); }
input::placeholder, textarea::placeholder { color: #8A90AA; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .9rem; margin: 8px 0 0; font-weight: 500; }
.form-error { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; border-radius: 10px; padding: 12px 14px; margin: 18px 0 0; font-size: .95rem; }
.form-error p { margin: 0; }
.privacy-note { font-size: .86rem; color: var(--ink-2); margin: 16px 0 0; }
.privacy-note a { color: var(--ink); }
.card-form .btn-submit, .card-form > .btn { margin-top: 20px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: .95rem; }
.check-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.form-aside { font-size: .95rem; color: var(--ink-2); margin-top: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-list { display: grid; gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row .choice { flex: 1 1 160px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; min-height: 52px; height: 100%;
  padding: 11px 14px 11px 46px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
  font-weight: 500; font-size: .97rem; line-height: 1.3; cursor: pointer; position: relative;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.choice span::before { content: ""; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; transition: border-color .18s, box-shadow .18s, background-color .18s; }
.choice-check span::before { border-radius: 5px; }
.choice:hover span { border-color: var(--ink-3); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.choice input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.choice-check input:checked + span::before { box-shadow: none; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 13px no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Formulaire progressif */
.funnel-progress { margin-bottom: 22px; }
.funnel-count { font-size: .88rem; color: var(--ink-2); margin: 0 0 8px; font-weight: 600; }
.funnel-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.funnel-bar span { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.funnel-bar span.is-on { background: var(--blue); }
.funnel-q { display: block; font-size: clamp(1.35rem, 1.15rem + .6vw, 1.65rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin-bottom: 16px; }
.funnel-hint { color: var(--ink-2); font-size: .92rem; margin: -8px 0 12px; }
.funnel-step + .funnel-step { margin-top: 32px; }
.js .funnel .funnel-step { display: none; margin-top: 0; }
.js .funnel .funnel-step.is-current { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.funnel-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.funnel-nav [data-next], .funnel-nav [data-submit] { margin-left: auto; }
.no-js .funnel-nav [data-next], .no-js .funnel-nav [data-prev], .no-js .funnel-progress { display: none; }
.calc-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--blue-50); border: 1px solid rgba(36, 69, 255, .25); border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; font-size: .92rem; }
.calc-chip p { margin: 0; }
.chip-remove { background: none; border: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; font-size: .88rem; flex: none; }

/* Confirmation */
.form-success:focus { outline: none; }
.is-sent .form-body, .is-sent .funnel-step, .is-sent .funnel-nav, .is-sent .funnel-progress, .is-sent .calc-chip, .is-sent .sector-chip, .is-sent .form-error { display: none !important; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin-bottom: 18px; }
.success-mark svg { width: 30px; height: 30px; }
.success-title { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 10px; }
.success-ref { color: var(--ink-2); font-size: .92rem; }
.success-status { list-style: none; padding: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.success-status li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.success-status li:first-child { border-top: 0; }
.success-status strong { color: var(--human-ink); background: var(--human-bg); padding: 1px 9px; border-radius: 999px; font-size: .85rem; }
.success-status li.is-done strong { color: var(--ok); background: var(--ok-bg); }
.form-success .btn { margin: 6px 0 12px; }

/* FAQ */
.section-faq { padding-top: 0; }
.faq-wrap { max-width: 900px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 64ch; padding-bottom: 22px; margin: 0; }

/* ---------- Étude gratuite : premier écran et mini-diagnostic ---------- */
.landing-etude { padding-top: clamp(20px, 3vw, 44px); }
.landing-etude .landing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "copy form" "sketch form"; gap: 26px clamp(32px, 5vw, 72px); }
.landing-etude .landing-copy { grid-area: copy; }
.landing-etude .sketch { grid-area: sketch; }
.landing-etude .landing-form { grid-area: form; }
.landing-etude .landing-title { font-size: clamp(2.2rem, 1.2rem + 2.9vw, 3.7rem); max-width: 15ch; }
.landing-etude .lead { margin-top: 1rem; max-width: 34em; }
.landing-meta { margin: 14px 0 0; font-size: .92rem; font-weight: 500; color: var(--ink-3); }

.sketch { margin: 0; }
.sketch-photo { position: relative; border-radius: var(--radius-l); overflow: hidden; container-type: inline-size; box-shadow: var(--shadow-1); background: var(--paper-2); }
.sketch-photo img { display: block; width: 100%; height: auto; }
.sketch-card { position: absolute; left: 24.5%; top: 21%; width: 54%; transform: rotate(-4deg); font-size: clamp(9px, 2.05cqw, 15px); }
.sketch-flow { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; }
.sketch-flow li { position: relative; flex: 1; display: grid; align-content: center; gap: .15em; text-align: center; color: var(--night); background: rgba(255, 255, 255, .92); border: 2px solid var(--blue); border-radius: .8em; padding: .7em .4em; box-shadow: 0 .3em .8em -.4em rgba(11, 16, 36, .35); }
.sketch-flow li:nth-child(2) { transform: rotate(1.2deg); }
.sketch-flow li:nth-child(3) { transform: rotate(-.8deg); background: var(--blue); color: #fff; }
.sketch-flow li + li { margin-left: 2.4em; }
.sketch-flow li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 2.4em; height: 2px; background: var(--blue); }
.sketch-flow li + li::after { content: ""; position: absolute; right: calc(100% + 1px); top: 50%; width: .55em; height: .55em; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
.sketch-flow b { font-weight: 650; font-size: 1em; line-height: 1.15; }
.sketch-flow small { font-size: .78em; opacity: .75; }
.sketch-note { margin: 1.5em 0 0 .2em; display: inline-block; font-size: .95em; font-weight: 600; color: var(--blue); border-bottom: 2px solid rgba(36, 69, 255, .35); padding-bottom: .15em; transform: rotate(1deg); }
.sketch figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.sketch figcaption::before { content: ""; width: 14px; height: 2px; background: var(--blue); }

.diag .funnel-q { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); margin-bottom: 18px; }
.diag .funnel-progress { margin-bottom: 20px; }
.diag .funnel-bar span { height: 3px; }
.diag .funnel-count { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0; }
.funnel-time { font-weight: 400; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-box { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; height: 100%; min-height: 112px; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s var(--ease); }
.tile-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-2); color: var(--night); display: grid; place-items: center; transition: background-color .18s, color .18s; }
.tile-label { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.tile-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s var(--ease); }
.tile:hover .tile-box { border-color: var(--ink-3); transform: translateY(-1px); }
.tile input:checked + .tile-box { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(36, 69, 255, .12); }
.tile input:checked + .tile-box .tile-ico { background: var(--blue); color: #fff; }
.tile input:checked + .tile-box .tile-check { opacity: 1; transform: none; }
.tile input:focus-visible + .tile-box { outline: 3px solid var(--blue); outline-offset: 2px; }
.task-group + .task-group { margin-top: 16px; }
.task-group-title { margin: 0 0 8px; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.js .diag.is-enhanced .task-group-title { display: none; }
.options { display: grid; gap: 8px; }
.options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-desc span, .diag .option-desc span { flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; gap: 2px; padding-top: 11px; padding-bottom: 11px; }
.option-desc strong { font-weight: 600; }
.option-desc small { font-size: .88rem; font-weight: 400; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 420px) { .options-2 { grid-template-columns: minmax(0, 1fr); } }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { position: relative; display: flex; align-items: center; min-height: 54px; padding: 12px 14px 12px 46px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 500; line-height: 1.3; cursor: pointer; transition: border-color .18s, background-color .18s; }
.option span::before { content: ""; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; transition: all .18s; }
.option:hover span { border-color: var(--ink-3); }
.option input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.option input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.describe-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 4px; border: 0; background: none; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.describe { margin-top: 12px; }
.describe label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.freq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 10px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer; transition: all .18s; }
.pill:hover span { border-color: var(--ink-3); }
.pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.recap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: .92rem; color: var(--ink-3); }
.recap-label { width: 100%; font-size: .8rem; }
.recap-item { border: 0; background: none; padding: 2px 0; font: inherit; text-align: left; font-weight: 600; color: var(--ink); text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; }
.recap-item:hover { color: var(--blue); }
.diag .funnel-nav .btn-lg { min-height: 54px; }
.js .diag .funnel-step.is-current { animation: stepIn .28s var(--ease); }

.section-study { padding-top: clamp(56px, 7vw, 96px); background: var(--paper-2); }
.study-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.study-intro { color: var(--ink-2); margin-top: 14px; }
.study-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.study-flow li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.study-flow p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.study-num { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.study-out { background: var(--night); color: var(--on-night); border-radius: var(--radius-l); padding: 24px; }
.study-out-title { color: #fff; font-weight: 600; margin-bottom: 12px; }
.study-out ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.study-out li { position: relative; padding-left: 26px; color: var(--on-night-2); }
.study-out li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; border: 2.5px solid var(--blue-300); transform: rotate(45deg); }
.section-study + .section-faq { padding-top: clamp(56px, 7vw, 96px); }

@media (max-width: 980px) {
  .landing-etude .landing-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "sketch"; }
  .study-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .landing-etude .landing-title { font-size: clamp(1.95rem, 1.3rem + 3vw, 2.4rem); }
  .landing-etude .lead { font-size: 1.02rem; }
  .landing-meta { font-size: .85rem; margin-top: 10px; }
  .landing-etude .landing-grid { gap: 18px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile-box { min-height: 92px; padding: 12px; gap: 10px; }
  .tile-ico { width: 36px; height: 36px; }
  .diag { padding: 16px; }
  .diag .funnel-nav { position: sticky; bottom: 0; z-index: 3; background: #fff; margin: 18px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-l) var(--radius-l); }
  .sketch-card { font-size: clamp(8px, 2.3cqw, 13px); }
}

/* ---------- Création de sites ---------- */
.hero-sites { padding-bottom: clamp(90px, 12vw, 170px); }
.hero-sites-copy { max-width: 860px; }
.hero-sites .hero-title { max-width: 15ch; }
.showcase { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-right: 13%; }
.showcase-phone { width: 22%; max-width: 300px; right: 2%; bottom: -14%; border-width: 9px; border-radius: 38px; }
.showcase-phone img { border-radius: 30px; }
.section-concepts { padding-top: clamp(40px, 6vw, 80px); }
.concepts { display: grid; gap: clamp(64px, 9vw, 130px); }
.concept { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.concept:nth-child(even) .concept-visual { order: 2; }
.concept-visual { position: relative; padding: 0 7% 8% 0; }
.concept-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; position: relative; cursor: zoom-in; border-radius: var(--radius-m); }
.concept-desktop { display: block; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-deep); border: 1px solid var(--line); background: #fff; transition: transform .5s var(--ease); }
.concept-desktop img { display: block; width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.concept-mobile { position: absolute; right: -7.5%; bottom: -9%; width: 22%; border-radius: 22px; border: 6px solid var(--night); background: var(--night); overflow: hidden; box-shadow: var(--shadow-deep); transition: transform .5s var(--ease); }
.concept-mobile img { display: block; width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 16px; }
.concept-open:hover .concept-desktop { transform: translateY(-4px); }
.concept-open:hover .concept-mobile { transform: translateY(-10px); }
.concept-zoom { position: absolute; left: 16px; bottom: 16px; background: var(--night); color: #fff; padding: 9px 14px; border-radius: 10px; font-size: .88rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.concept-open:hover .concept-zoom, .concept-open:focus-visible .concept-zoom { opacity: 1; transform: none; }
@media (hover: none) { .concept-zoom { opacity: 1; transform: none; } }
.concept-sector { color: var(--blue); font-weight: 650; font-size: .95rem; margin-bottom: 8px; }
.concept-name { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; }
.concept-direction { color: var(--ink-2); font-size: 1.06rem; margin-top: 14px; }
.concept-specs { margin: 22px 0 0; }
.concept-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.concept-specs dt { color: var(--ink-2); }
.concept-specs dd { margin: 0; font-weight: 600; text-align: right; }
.swatches { display: inline-flex; gap: 6px; }
.swatches span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-strong); }
.concept-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

.preview-dialog { width: min(1320px, 96vw); height: min(900px, 92vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 18px; background: #E6E8EF; color: var(--ink); overflow: hidden; }
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-dialog::backdrop { background: rgba(11, 16, 36, .72); backdrop-filter: blur(4px); }
.preview-head { display: flex; align-items: center; gap: 10px 14px; padding: 10px 12px 10px 18px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.preview-title { flex: 1 1 200px; margin: 0; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-switch { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; }
.device-switch button { border: 0; background: none; min-height: 38px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.device-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 16, 36, .15); }
.preview-newtab { font-size: .9rem; font-weight: 600; }
.preview-close { width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; }
.preview-close:hover { background: var(--paper-2); }
.preview-close svg { width: 20px; height: 20px; }
.preview-stage { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 14px; }
.preview-frame-wrap { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-1); position: relative; }
.preview-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-stage[data-device="mobile"] .preview-frame-wrap { width: 390px; max-width: 100%; height: min(844px, 100%); border: 10px solid var(--night); border-radius: 42px; }
.preview-stage.is-scaled .preview-frame-wrap iframe { position: absolute; left: 0; top: 0; width: 1280px; transform-origin: 0 0; }
.preview-note { margin: 0; text-align: center; font-size: .82rem; color: var(--ink-2); padding: 0 12px 10px; }

.ba-frame { position: relative; aspect-ratio: 1280 / 800; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-deep); background: #fff; border: 1px solid var(--line); touch-action: pan-y; }
.ba-frame picture, .ba-frame picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-frame picture img { object-fit: cover; object-position: top; display: block; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--blue); pointer-events: none; }
.ba-handle svg { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; max-width: none; margin: -24px 0 0 -24px; padding: 12px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 8px 24px -6px rgba(36, 69, 255, .7); }
.ba-label { position: absolute; top: 14px; padding: 5px 12px; border-radius: 8px; font-size: .85rem; font-weight: 650; pointer-events: none; }
.ba-label-before { left: 14px; background: var(--night); color: #fff; }
.ba-label-after { right: 14px; background: var(--blue); color: #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-frame:has(.ba-range:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }
.ba-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.ba-notes ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ba-notes li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ba-notes > div:first-child li::before { content: "×"; position: absolute; left: 4px; top: -1px; font-weight: 700; color: var(--ink-3); }
.ba-notes > div:last-child li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 9px; height: 9px; border: 2.5px solid var(--blue); transform: rotate(45deg); }

.section-integration { padding-block: clamp(80px, 10vw, 140px); }
.section-intro-light .h2 { color: #fff; }
.pipeline-fil { display: block; width: 100%; height: 60px; color: var(--blue); overflow: visible; filter: drop-shadow(0 0 6px rgba(36, 69, 255, .6)); }
.pipeline { list-style: none; padding: 0; margin: -52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pipe-node { width: 44px; height: 44px; border-radius: 50%; background: var(--night); border: 2.5px solid var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; margin-bottom: 20px; position: relative; transition: background-color .4s, box-shadow .4s; }
.pipeline li.is-lit .pipe-node { background: var(--blue); box-shadow: 0 0 0 6px rgba(36, 69, 255, .2); }
.pipeline h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 650; }
.pipeline p { font-size: .98rem; margin: 0; }
.pipe-sample { margin-top: 16px; background: rgba(238, 240, 248, .06); border: 1px solid var(--line-night); border-radius: 10px; padding: 10px 12px; }
.pipe-sample span { display: block; font-size: .76rem; color: var(--on-night-2); }
.pipe-sample b { display: block; color: #fff; font-weight: 600; font-size: .92rem; }

.included-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.included { margin: 0; }
.included > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.included dt { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -.015em; }
.included dd { margin: 0; color: var(--ink-2); }

.project-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.project-copy { position: sticky; top: calc(var(--header-h) + 28px); }
.project-copy p { color: var(--ink-2); font-size: 1.1rem; margin-top: 16px; }
.landing-contact .project-copy { position: static; }

/* ---------- Formation ---------- */
.formation { background: var(--paper); }
.hero-formation { background: linear-gradient(180deg, var(--warm) 0%, var(--paper) 100%); }
.hero-formation-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-formation .hero-title { max-width: 17ch; }
.hero-formation .btn { margin-top: 32px; }
.hero-formation-note { display: grid; gap: 14px; }
.note-line { margin: 0; background: #fff; border-radius: var(--radius-m); padding: 16px 18px; font-size: 1rem; line-height: 1.45; box-shadow: var(--shadow-1); color: var(--ink-2); }
.note-line span { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.note-line-after { border: 2px solid var(--blue); color: var(--ink); transform: translateX(-18px); }
.note-line-after span { color: var(--blue); }
.section-choice { padding-top: 0; }
.entry-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.entry { position: relative; display: block; cursor: pointer; padding: 24px 24px 24px 64px; border: 2px solid var(--line-strong); border-radius: var(--radius-l); background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.entry input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.entry::before { content: ""; position: absolute; left: 24px; top: 28px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; transition: all .2s; }
.entry:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.entry:has(input:checked)::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 5px #fff; }
.entry:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.entry-title { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.entry-text { display: block; color: var(--ink-2); margin-top: 6px; }
.entry-detail { margin-top: 20px; max-width: 72ch; background: #fff; border-radius: var(--radius-m); padding: 16px 20px; border-left: 3px solid var(--blue); }
.entry-detail p { margin: 0; color: var(--ink-2); }
.entry-detail strong { color: var(--ink); }
.section-paths { padding-top: 0; }
.paths { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.paths::before { content: ""; position: absolute; top: 52px; left: 6%; right: 6%; height: 2px; background: var(--blue); }
.path { position: relative; background: #fff; border-radius: var(--radius-l); padding: 28px; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s, opacity .3s; }
.path.is-highlight { border-color: var(--blue); box-shadow: var(--shadow-1); }
.path.is-dim { background: #F7F8FB; }
.path.is-dim h3, .path.is-dim .path-for { color: var(--ink-2) !important; }
.path.is-dim .path-stop { background: #B9C2F5; }
.path-stop { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 20px; }
.path h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.18; letter-spacing: -.015em; font-weight: 600; margin-bottom: 12px; }
.path p { color: var(--ink-2); font-size: .98rem; }
.path-for { font-size: .9rem !important; color: var(--ink) !important; font-weight: 600; margin: 0; }
.section-exercise { padding-top: 0; }
.exercise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ex-doc { background: #fff; border-radius: var(--radius-l); padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ex-doc-title { font-weight: 650; font-size: .9rem; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ex-doc p[data-src] { margin: 12px 0; }
.ex-doc mark { background: transparent; color: inherit; border-radius: 4px; transition: background-color .4s; }
.exercise.is-done .ex-doc mark { background: var(--warm-2); }
.ex-doc mark.is-flash { background: #FFC98A; }
.ex-prompt { margin-top: 18px; }
.ex-prompt summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .95rem; min-height: 32px; }
.ex-prompt p { background: var(--paper-2); border-radius: 10px; padding: 12px 14px; font-size: .93rem; margin: 10px 0 0; }
.ex-result { background: #fff; border-radius: var(--radius-l); padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); }
.ex-table { margin-top: 18px; overflow-x: auto; }
.ex-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ex-table th { text-align: left; font-size: .8rem; color: var(--ink-2); font-weight: 650; padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.ex-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.js .exercise:not(.is-done) .ex-table td { color: transparent; }
.js .exercise:not(.is-done) .ex-table td > * { visibility: hidden; }
.js .exercise:not(.is-done) .ex-table td::before { content: ""; display: block; height: 12px; border-radius: 4px; background: rgba(11, 16, 36, .08); margin-top: 4px; }
.js .exercise .ex-table td { position: relative; }
.js .exercise:not(.is-done) .ex-table td { position: relative; }
.js .exercise:not(.is-done) .ex-table td::before { position: absolute; left: 10px; right: 10px; top: 12px; }
.js .exercise.is-done .ex-table tbody tr { animation: rowIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ex-ignored { font-size: .9rem; color: var(--ink-2); margin: 12px 0 0; }
.js .exercise:not(.is-done) .ex-ignored { visibility: hidden; }
.ex-check { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check { flex: none; width: 20px; height: 20px; border: 2px solid var(--blue); border-radius: 5px; margin-top: 3px; transition: background-color .3s; }
.exercise.is-done .ex-check .check, .checklist li.is-done .check { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section-training-form { padding-top: 0; }

/* Formation : photo d'atelier et consignes avant/après posées dessus */
.hero-formation-visual { position: relative; padding-bottom: 56px; }
.hero-formation-visual img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.hero-formation-visual .hero-formation-note { position: absolute; left: -36px; right: 18%; bottom: 0; }
.hero-formation-visual .note-line-after { transform: translateX(28px); }
@media (max-width: 980px) {
  .hero-formation-visual { padding-bottom: 0; }
  .hero-formation-visual .hero-formation-note { position: static; margin-top: -40px; padding: 0 12px; }
  .hero-formation-visual .note-line-after { transform: none; }
}

/* ---------- Contact ---------- */
.contact-shortcuts { margin-top: 36px; }
.contact-shortcuts p { font-weight: 650; margin-bottom: 10px; }
.contact-shortcuts ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.contact-shortcuts a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-shortcuts a:hover { color: var(--blue); border-color: var(--blue); }
.contact-direct { margin: 32px 0 0; }
.contact-direct > div { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-direct dt { font-size: .88rem; color: var(--ink-2); }
.contact-direct dd { margin: 2px 0 0; font-weight: 600; }

/* Contact : motif avec interlocuteur ; forum : pictogrammes de catégorie */
.tiles-contact { grid-template-columns: 1fr 1fr; }
.tiles-contact .tile-box { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 12px; padding: 12px 40px 12px 12px; }
.tiles-contact .tile-label { display: grid; gap: 2px; }
.tiles-contact .tile-label small { font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.tiles-contact .tile-ico { flex: none; }
.tiles-contact .tile-check { top: 50%; margin-top: -11px; }
.forum-cats .cat-name { display: inline-flex; align-items: center; gap: 8px; }
.forum-cats .cat-name .icon { color: var(--blue); flex: none; }
.topic-cat { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .tiles-contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog ---------- */
.blog-head { padding-block: clamp(40px, 6vw, 80px) 0; }
.blog-search { display: flex; gap: 10px; max-width: 680px; margin-top: 30px; }
.blog-search input { flex: 1; min-height: 54px; }
.blog-search .btn { min-height: 54px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-size: .94rem; font-weight: 500; background: #fff; transition: border-color .2s, background-color .2s; }
.filters a:hover { border-color: var(--ink); }
.filters a span { color: var(--ink-3); font-size: .84rem; }
.filters a[aria-current] { background: var(--night); color: #fff; border-color: var(--night); }
.filters a[aria-current] span { color: var(--on-night-2); }
.section-blog { padding-top: 40px; }
.featured { margin-bottom: 16px; }
.featured-link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border-radius: var(--radius-l); overflow: hidden; background: var(--night); color: var(--on-night); text-decoration: none; }
.featured-cover svg, .featured-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured-label { color: var(--blue-300); font-weight: 650; font-size: .92rem; margin-bottom: 10px; }
.featured-title { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.08; letter-spacing: -.03em; color: #fff; font-weight: 600; margin-bottom: 14px; }
.featured-link:hover .featured-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--blue); }
.featured-body > p:not(.featured-label):not(.post-meta) { color: var(--on-night-2); }
.featured .post-meta { color: var(--on-night-2); }
.featured .tag { background: rgba(238, 240, 248, .12); color: #fff; }
.results-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 40px 0 24px; color: var(--ink-2); }
.results-line p { margin: 0; }
.empty-state { padding: clamp(28px, 4vw, 48px); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); max-width: 720px; }
.empty-state p { color: var(--ink-2); margin: 10px 0 20px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 56px; }
.pagination ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 600; background: #fff; }
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Article */
.article-head { padding-block: clamp(32px, 5vw, 64px) 0; }
.article-head-grid { max-width: 980px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--blue); }
.article-title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.7rem); line-height: 1.04; letter-spacing: -.024em; font-weight: 600; max-width: 22ch; }
.article-excerpt { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 58ch; margin: 18px 0 20px; }
.article-cover { margin-top: clamp(28px, 4vw, 44px); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 1200 / 500; }
.article-cover svg, .article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(32px, 6vw, 80px); justify-content: center; padding-block: clamp(40px, 6vw, 72px) clamp(60px, 8vw, 100px); }
.article-layout:not(:has(.article-toc)) { grid-template-columns: minmax(0, 720px); }
.article-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .92rem; }
.toc-title { font-weight: 650; margin-bottom: 10px; }
.article-toc ol { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 2px solid var(--line); display: grid; gap: 4px; }
.article-toc a { text-decoration: none; color: var(--ink-2); display: block; padding: 4px 0; line-height: 1.35; }
.article-toc a:hover, .article-toc a.is-current { color: var(--blue); }
.prose { font-size: 1.1rem; line-height: 1.72; color: #1A2040; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); line-height: 1.15; letter-spacing: -.022em; margin: 2.1em 0 .6em; color: var(--ink); text-wrap: balance; }
.prose h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; letter-spacing: -.015em; margin: 1.7em 0 .5em; font-weight: 600; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); font-weight: 600; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: rgba(11, 16, 36, .07); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; background: var(--paper-2); border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; font-size: 1.02rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote.callout-scenario { background: var(--paper-2); border-left-color: var(--human); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.prose th { text-align: left; background: var(--night); color: #fff; padding: 11px 14px; font-weight: 600; white-space: nowrap; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose .checklist { padding-left: 0; }
.prose .checklist li { margin: .45em 0; }
.article-cta { margin-top: 56px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: var(--night); color: var(--on-night); }
.article-cta-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: #fff; }
.article-cta p { color: var(--on-night-2); font-size: 1rem; }
.related { background: var(--paper-2); }
.related .h3 { margin-bottom: 28px; }

/* ---------- Forum ---------- */
.forum-head { padding-block: clamp(40px, 6vw, 72px) 8px; }
.forum-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.forum-account { text-align: right; }
.forum-account p { font-size: .93rem; color: var(--ink-2); margin: 12px 0 0; }
.section-forum { padding-top: 40px; }
.forum-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.forum-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-title { font-weight: 650; margin-bottom: 10px; }
.forum-cats { list-style: none; padding: 0; display: grid; gap: 2px; }
.forum-cats a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; line-height: 1.3; border: 1px solid transparent; }
.forum-cats a:hover { background: rgba(11, 16, 36, .05); }
.forum-cats a[aria-current] { background: var(--paper-2); border-color: var(--line); font-weight: 650; }
.forum-cats span { color: var(--ink-3); font-weight: 500; }
.side-rules { font-size: .88rem; color: var(--ink-2); margin-top: 20px; }
.forum-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.forum-search { flex: 1 1 280px; display: flex; gap: 8px; }
.forum-search input { min-height: 46px; }
.forum-sort { display: flex; align-items: center; gap: 10px; }
.forum-sort label { font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.forum-sort select { min-height: 46px; width: auto; }
.notice { background: var(--ok-bg); border: 1px solid #A6E3C6; color: #0A5C39; border-radius: 10px; padding: 12px 14px; margin: 0 0 20px; }
.topic-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.topic-cat { font-size: .84rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.topic-title { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; margin: 4px 0 8px; text-wrap: balance; }
.topic-title a { text-decoration: none; }
.topic-title a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ink-2); margin: 0; }
.author { font-weight: 600; color: var(--ink); }
.author.is-staff { color: var(--blue); }
.author.is-staff::before { content: "W"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; font-family: var(--font-display); font-size: .72rem; font-weight: 800; color: #fff; background: var(--blue); border-radius: 5px; vertical-align: 1px; }
.topic-stats { text-align: right; font-size: .9rem; color: var(--ink-2); }
.topic-stats p { margin: 0; }
.topic-stats strong { color: var(--ink); font-size: 1.1rem; }
.topic-last { margin-top: 4px !important; font-size: .84rem; }
.badge { display: inline-block; font-size: .76rem; font-weight: 650; background: rgba(11, 16, 36, .08); border-radius: 999px; padding: 2px 9px; }
.topic-page { padding-block: clamp(32px, 5vw, 60px) clamp(64px, 8vw, 100px); }
.topic-wrap { max-width: 900px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 30px); }
.topic-h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin-bottom: 14px; }
.post-by { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .92rem; color: var(--ink-2); margin: 0; }
.post-date { color: inherit; text-decoration: none; }
.post-date:hover { text-decoration: underline; }
.post-body { margin-top: 14px; font-size: 1.05rem; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 .9em; }
.post-body a { color: var(--blue); }
.post-actions { margin-top: 10px; }
.report summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font-size: .86rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report-form { margin-top: 8px; padding: 16px; background: var(--paper-2); border-radius: 12px; display: grid; gap: 10px; max-width: 460px; }
.report-form legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.radio-line { display: flex; gap: 8px; align-items: center; min-height: 36px; font-size: .95rem; }
.radio-line input { accent-color: var(--blue); width: 18px; height: 18px; }
.report-form input[type="text"] { min-height: 44px; }
.thread-title { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.015em; margin: 40px 0 16px; }
.replies { list-style: none; padding: 0; display: grid; gap: 14px; }
.post-reply:target { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 69, 255, .12); }
.thread-empty { color: var(--ink-2); padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-m); }
.reply-box { margin-top: 36px; background: var(--paper-2); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 30px); }
.reply-box .h3 { margin-bottom: 14px; }
.reply-form .btn { margin-top: 16px; }
.narrow-page { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.narrow { max-width: 780px; }
.narrow-sm { max-width: 540px; }
.narrow .card-form { margin-top: 28px; }
.narrow .hero-actions { margin-top: 28px; }
.legal .prose { margin-top: 28px; }
.todo-note { background: var(--human-bg); border-left: 3px solid var(--human); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--human-ink); font-size: .98rem; }
.message-list { color: #912018; margin-top: 14px; }

/* ---------- Effets du fil ---------- */
.js [data-draw] { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--off, 0); }

.blog-crumb { margin: 0 0 10px; font-size: .95rem; }
.blog-crumb a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.blog-crumb a:hover { color: var(--blue); }

/* ---------- Page automatisation IA ---------- */
.section-define { background: var(--paper-2); }
.define-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.define-copy { max-width: 780px; }
.define-answer { font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink); margin: 18px 0 16px; }
.define-copy > p:last-child { color: var(--ink-2); }
.types-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); }
.types-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.types-table th, .types-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.types-table thead th { font-size: .85rem; font-weight: 600; color: var(--ink-3); padding-block: 12px; }
.types-table tbody th { font-weight: 650; width: 20%; }
.types-table thead th:first-child { width: 20%; }
.types-table tbody tr:last-child > * { border-bottom: 0; }
.types-table td { color: var(--ink-2); }
.types-table tr.is-agent > * { background: var(--blue-50); color: var(--ink); }
.types-table tr.is-agent th { color: var(--blue); }
.principles { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.principle { border-top: 1px solid var(--line-strong); padding: 22px 0 30px; }
.principle h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.principle p { color: var(--ink-2); margin: 0 0 10px; max-width: 58ch; }
.section-cost { background: var(--paper-2); }
.cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cost-grid p { color: var(--ink-2); margin: 14px 0 24px; max-width: 52ch; }
.cost-factors { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px 26px; }
.cost-factors-title { font-weight: 600; margin: 0 0 10px; }
.cost-factors ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.cost-factors li { padding: 5px 0; }
.article-cta .article-cta-more { margin-left: 18px; color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.article-cta .article-cta-more:hover { color: var(--blue-300); }
@media (max-width: 980px) {
  .cost-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .types-table, .types-table tbody, .types-table tr, .types-table th, .types-table td { display: block; width: auto; }
  .types-table thead { display: none; }
  .types-table tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .types-table tbody tr:last-child { border-bottom: 0; }
  .types-table th, .types-table td { padding: 0; border: 0; }
  .types-table tbody th { font-size: 1.05rem; margin-bottom: 8px; width: auto; }
  .types-table tr.is-agent { background: var(--blue-50); }
  .types-table tr.is-agent > * { background: none; }
  .types-table td { margin-top: 8px; }
  .types-table td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
  .article-cta .article-cta-more { display: inline-flex; margin: 12px 0 0; }
}

/* ---------- Estimation rapide (en-tête) ---------- */
.header-estimate { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.header-estimate svg { color: var(--blue); }
.header-estimate:hover { color: var(--blue); }
@media (max-width: 1359px) { .header-estimate { display: none; } }

/* ---------- Agents IA : répartition des rôles ---------- */
.lanes { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.lanes-head, .lane { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.lanes-head > span { padding: 14px 24px 12px; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.lanes-head > span:first-child { padding-left: 0; }
.lanes-head .lane-agent-head { display: flex; align-items: center; gap: 8px; color: var(--blue); background: var(--blue-50); border-radius: var(--radius-m) var(--radius-m) 0 0; }
.lane { border-top: 1px solid var(--line); }
.lane > p { margin: 0; padding: 22px 24px; }
.lane .lane-task { padding-left: 0; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.lane-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); border: 1px solid var(--line); background: var(--paper); }
.lane .lane-agent { background: var(--blue-50); color: var(--ink); }
.lane:last-child .lane-agent { border-radius: 0 0 var(--radius-m) var(--radius-m); }
.lane .lane-team { color: var(--ink-2); }
.lane-label { display: none; }

/* ---------- Secteurs ---------- */
.section-sectors { background: var(--paper-2); }
.sectors-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.sectors-copy p { color: var(--ink-2); max-width: 44ch; margin-top: 14px; }
.sectors { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.sectors li { border-bottom: 1px solid var(--line); }
.sectors a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q go" "ex go"; column-gap: 24px; row-gap: 3px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.sector-q { grid-area: q; font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.sector-ex { grid-area: ex; color: var(--ink-3); font-size: .93rem; }
.sector-go { grid-area: go; align-self: center; font-weight: 600; font-size: .95rem; color: var(--blue); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.sectors a:hover .sector-q { color: var(--blue); }
.sectors a:hover .sector-go, .sectors a:focus-visible .sector-go { text-decoration-color: currentColor; }
.sector-chip { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--blue-50); font-size: .92rem; color: var(--ink-2); }
.sector-chip strong { color: var(--ink); font-weight: 600; }

/* ---------- Parcours après l'étude (5 étapes) ---------- */
.steps-line-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps-line-5 li { padding-right: 4px; }
.steps-line-5 h3 { font-size: 1.14rem; }
.steps-line-5 p { font-size: .96rem; }
.section-faq-home { padding-top: 0; }
.section-faq-home .faq-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.section-faq-home .faq { max-width: 900px; }

@media (max-width: 980px) {
  .sectors-grid { grid-template-columns: minmax(0, 1fr); }
  .section-journey .steps-fil { display: none; }
  .steps-line-5 { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 620px; }
  .steps-line-5 li { position: relative; padding: 0 0 28px 62px; }
  .steps-line-5 li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--blue); }
  .steps-line-5 li:last-child::before { display: none; }
  .steps-line-5 .step-num { position: absolute; left: 0; top: 0; }
}
@media (max-width: 760px) {
  .lanes-head { display: none; }
  .lane { grid-template-columns: minmax(0, 1fr); padding-bottom: 18px; }
  .lane > p { padding: 0; }
  .lane .lane-task { padding: 18px 0 12px; }
  .lane .lane-agent { padding: 12px 14px; border-radius: 10px; }
  .lane:last-child .lane-agent { border-radius: 10px; }
  .lane .lane-team { padding: 10px 14px 0; }
  .lane-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  .lane-agent .lane-label { color: var(--blue); }
  .sectors a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "q" "ex" "go"; }
  .sector-go { margin-top: 6px; text-decoration-color: currentColor; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .header-cta { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1121px) {
  .mobile-menu { display: none !important; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: block; }
}
@media (max-width: 980px) {
  .hero-grid, .offer-auto-grid, .offer-web-grid, .offer-training-grid, .calc-grid, .hero-formation-grid, .exercise, .included-grid, .project-grid, .final-cta-inner, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .hero-title, .landing-title { max-width: 16ch; }
  .offer-web-grid .devices { order: 2; }
  .landing-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "example"; }
  .landing-form { position: static; }
  .project-copy { position: static; }
  .concept { grid-template-columns: minmax(0, 1fr); }
  .concept:nth-child(even) .concept-visual { order: 0; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-side { position: static; order: 2; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-toc { display: none; }
  .featured-link { grid-template-columns: minmax(0, 1fr); }
  .note-line-after { transform: none; }
  .hero-formation-note { max-width: 560px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .paths::before { top: 30px; bottom: 30px; left: 51px; right: auto; width: 2px; height: auto; }
  .path { padding-left: 90px; }
  .path-stop { position: absolute; left: 28px; top: 28px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; row-gap: 36px; }
  .pipeline-fil { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .announce { font-size: .8rem; }
  .announce-inner { min-height: 32px; }
  .announce p { padding: 5px 0; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
  .announce a { margin-left: 6px; }
  .header-inner { gap: 10px; }
  .wordmark { font-size: 1.5rem; }
  .header-cta { min-height: 42px; padding: 0 14px; font-size: .92rem; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .menu-toggle { padding: 0 10px; min-height: 42px; }
  .menu-toggle-label { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-quiet { min-height: 48px; justify-content: center; }
  .hero-actions .cta-note { text-align: center; }
  .compare-cols { grid-template-columns: minmax(0, 1fr); }
  .tab-list [role="tab"] { padding: 12px 14px; font-size: .98rem; }
  .fil-transition { height: 130px; }
  .flow { aspect-ratio: auto; display: grid; gap: 14px; padding-left: 34px; }
  .flow-fil { display: none; }
  .flow::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 20px; width: 2px; background: var(--blue); box-shadow: 0 0 8px rgba(36, 69, 255, .7); }
  .flow-node { position: relative; left: auto; top: auto; }
  .flow-node::before { content: ""; position: absolute; left: -30px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--night); border: 2.5px solid var(--blue); transform: rotate(45deg); }
  .calc-fields { grid-template-columns: minmax(0, 1fr); }
  .stepper label { min-height: 0; }
  .steps-fil { display: none; }
  .steps-line { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 0; }
  .steps-line li { position: relative; padding: 0 0 28px 62px; }
  .steps-line li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--blue); }
  .steps-line li:last-child::before { display: none; }
  .step-num { position: absolute; left: 0; top: 0; }
  .post-grid, .post-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .entry-switch { grid-template-columns: minmax(0, 1fr); }
  .showcase { padding-right: 16%; }
  .showcase-phone { width: 32%; bottom: -12%; border-width: 6px; border-radius: 26px; }
  .showcase-phone img { border-radius: 20px; }
  .concept-visual { padding-right: 10%; }
  .concept-mobile { right: -2%; width: 28%; border-width: 4px; border-radius: 16px; }
  .concept-mobile img { border-radius: 12px; }
  .concept-specs dd { text-align: right; }
  .ba-frame { aspect-ratio: 390 / 640; }
  .ba-notes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .pipeline li { position: relative; padding-left: 64px; }
  .pipeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -36px; width: 2px; background: var(--blue); }
  .pipeline li:last-child::before { display: none; }
  .pipe-node { position: absolute; left: 0; top: 0; }
  .included > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .preview-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .preview-newtab { display: none; }
  .preview-stage { padding: 8px; }
  .preview-stage[data-device="mobile"] .preview-frame-wrap { border-width: 6px; border-radius: 28px; height: 100%; }
  .forum-head-grid { grid-template-columns: minmax(0, 1fr); }
  .forum-account { text-align: left; }
  .forum-account .btn { width: 100%; }
  .topic-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .topic-stats { text-align: left; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
  .topic-last { margin-top: 0 !important; }
  .forum-sort { width: 100%; }
  .forum-sort select { flex: 1; }
  .blog-search { flex-direction: column; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: none; }
  .article-cover { aspect-ratio: 1200 / 630; }
  .prose { font-size: 1.05rem; }
  .funnel-nav .btn { flex: 1; }
  .featured-body { padding: 22px; }
}
@media (max-width: 760px) {
  .announce-link-long { display: none; }
  .announce-link-short { display: inline; }
  .announce p { white-space: nowrap; }
  .tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; overflow: visible; }
  .tab-list [role="tab"] { border: 1.5px solid var(--line-strong); border-radius: 10px; min-height: 48px; padding: 8px 10px; text-align: center; }
  .tab-list [role="tab"][aria-selected="true"] { border-color: var(--blue); background: var(--blue-50); }
  .tab-panel { padding-top: 24px; }
}
@media (max-width: 760px) {
  .landing-etude .facts { display: none; }
  .landing-etude .landing-title { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); }
  .landing-etude .lead { font-size: 1.05rem; margin-top: .8rem; }
  .landing-etude .landing-grid { gap: 22px; }
  .landing { padding-top: 22px; }
}
@media (max-width: 420px) {
  .logo img { height: 27px; }
  .header-cta { padding: 0 12px; font-size: .88rem; }
  .wordmark { font-size: 1.38rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Espace privé ---------- */
body.admin { background: #F3F4F7; }
.admin-bar { background: var(--night); color: var(--on-night); }
.admin-bar-inner { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-night-2); font-size: .9rem; }
.admin-bar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.admin-bar nav a { color: var(--on-night-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.admin-bar nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.admin-bar nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }
.admin-bar .count { background: var(--blue); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78rem; }
.admin-bar .link-button { color: var(--on-night-2); }
.admin-main { max-width: 1320px; margin: 0 auto; padding: 28px 20px 80px; }
.admin-main h1 { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.02em; }
.admin-main h2 { font-size: 1.15rem; margin-bottom: 12px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-help { color: var(--ink-2); font-size: .95rem; }
.admin-todo { background: var(--human-bg); border: 1px solid #F5C77E; border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; font-size: .95rem; }
.admin-todo ul { margin: 8px 0; padding-left: 20px; }
.admin-todo li.ok { color: var(--ok); }
.admin-todo li.ko { color: var(--human-ink); font-weight: 600; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.admin-kpis a { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; display: grid; gap: 2px; }
.admin-kpis a[aria-current] { border-color: var(--blue); }
.admin-kpis span { font-size: .88rem; color: var(--ink-2); }
.admin-kpis strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.admin-kpis em { font-style: normal; font-size: .82rem; color: var(--blue); font-weight: 600; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 20px 0; }
.admin-filters label { display: grid; gap: 4px; font-size: .85rem; color: var(--ink-2); }
.admin-filters select, .admin-filters input { min-height: 42px; padding: 8px 12px; width: auto; }
.admin-filters select { padding-right: 36px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
.admin-table th { text-align: left; background: #E9EBF2; padding: 10px 12px; font-size: .84rem; white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table small { color: var(--ink-3); }
.admin-cat { display: inline-block; font-size: .8rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue); white-space: nowrap; }
.admin-cat-projet_web { background: #E8F7EF; color: var(--ok); }
.admin-cat-formation { background: var(--human-bg); color: var(--human-ink); }
.admin-cat-contact { background: #EEE; color: var(--ink-2); }
.status { font-size: .82rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status-nouveau { background: var(--blue-50); color: var(--blue); }
.status-en_cours { background: var(--human-bg); color: var(--human-ink); }
.status-traite { background: var(--ok-bg); color: var(--ok); }
.admin-empty { color: var(--ink-2); padding: 20px; background: #fff; border-radius: 12px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-card { background: #fff; border-radius: 16px; padding: 22px; margin-bottom: 20px; border: 1px solid var(--line); }
.admin-card .card-form { box-shadow: none; border: 0; padding: 0; }
.admin-dl { margin: 0 0 22px; }
.admin-dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.admin-dl dt { color: var(--ink-2); font-size: .88rem; }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.mod-item { border-top: 1px solid var(--line); padding: 14px 0; }
.mod-item blockquote { margin: 8px 0; background: var(--paper-2); padding: 10px 14px; border-radius: 10px; font-size: .93rem; }
.mod-details { color: var(--ink-2); font-size: .92rem; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.staff-reply summary { font-size: .84rem; color: var(--blue); cursor: pointer; padding: 8px 0; }
.staff-reply textarea { min-height: 90px; margin: 6px 0; }
.admin-texts { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.admin-texts legend { font-weight: 650; padding: 0 6px; }
.admin-texts code { font-size: .8rem; color: var(--ink-3); font-weight: 400; }
.admin-actions { position: sticky; bottom: 0; background: #fff; padding: 14px 0 4px; }
.admin-danger { margin-top: 20px; }
.admin-login { max-width: 420px; margin: 12vh auto; text-align: left; }
.admin-login h1 { margin: 18px 0; }
.field-sm { max-width: 140px; }
textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9rem; line-height: 1.55; }
@media (max-width: 860px) { .admin-cols { grid-template-columns: 1fr; } .admin-dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* W du logo : signature de l'agent et de l'équipe */
.agent-mark, .ag-wmark, .strip-agent .strip-node { font-size: 0 !important; color: transparent; background-image: url("../img/w-mark-white.svg"); background-repeat: no-repeat; background-position: center; background-size: 64% auto; }
.strip-agent .strip-node { background-size: 56% auto; }
.author.is-staff::before { content: ""; font-size: 0; background-image: url("../img/w-mark-white.svg"); background-repeat: no-repeat; background-position: center; background-size: 66% auto; }

/* =====================================================================
   Simulateur d'économies (/simulateur-ia)
   ===================================================================== */
.sim-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(150px, 16vw, 230px); text-align: center; }
.sim-hero::before { content: ""; position: absolute; left: 50%; top: -30%; width: 1100px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(36, 69, 255, .42), rgba(36, 69, 255, .1) 55%, transparent); pointer-events: none; }
.sim-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(238, 240, 248, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 240, 248, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.sim-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.sim-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 1.1rem + 3vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; color: #fff; max-width: 22ch; margin: 0; }
.sim-lead { color: var(--on-night-2); font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); max-width: 54ch; margin: 22px 0 32px; }
.nw { white-space: nowrap; }
.sim-hero-cta { white-space: normal; text-align: center; line-height: 1.25; height: auto; min-height: 56px; padding-block: 14px; box-shadow: 0 0 0 1px rgba(147, 162, 255, .35), 0 14px 40px -10px rgba(36, 69, 255, .8); }
.sim-reassure { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--on-night); font-size: .95rem; }
.sim-reassure li { display: inline-flex; align-items: center; gap: 7px; }
.sim-reassure svg { color: var(--blue-300); }

.sim-stage { position: relative; margin-top: clamp(-190px, -14vw, -120px); padding-bottom: clamp(64px, 8vw, 110px); }
.sim { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(11, 16, 36, .08), 0 40px 90px -40px rgba(11, 16, 36, .55); }
.sim-left { padding: clamp(24px, 3.4vw, 44px); min-width: 0; }

/* Progression */
.sim-progress { margin-bottom: 28px; }
.sim-progress-label { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.sim-progress-time { color: var(--ink-3); font-weight: 500; }
.sim-bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.sim-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #6F86FF); transition: width .5s var(--ease); }

/* Questions */
.sim-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.sim-step:not([hidden]) { animation: sim-in .38s var(--ease) both; }
@keyframes sim-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.sim-q { display: block; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 6px; padding: 0; outline: none; }
.sim-hint { color: var(--ink-3); margin: 0 0 4px; font-size: .95rem; }
.sim-options { display: grid; gap: 10px; margin-top: 20px; }
.sim-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sim-option { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 48px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 500; transition: border-color .2s, background-color .2s, transform .2s; }
.sim-option[hidden] { display: none; }
.sim-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sim-option::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; transition: border-color .2s, box-shadow .2s; }
.sim-option:hover { border-color: rgba(36, 69, 255, .45); background: #FAFBFF; }
.sim-option:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.sim-option:has(input:checked)::before { border-color: var(--blue); box-shadow: inset 0 0 0 5px var(--blue); }
.sim-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.sim-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sim-card { position: relative; cursor: pointer; }
.sim-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sim-card-box { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; height: 100%; padding: 14px 40px 14px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background-color .2s; }
.sim-card-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: var(--blue-50); transition: background-color .2s, color .2s; }
.sim-card-title { font-weight: 600; line-height: 1.25; }
.sim-card-desc { font-size: .86rem; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.sim-card-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); transform: scale(0); transition: transform .25s var(--ease); }
.sim-card:hover .sim-card-box { border-color: rgba(36, 69, 255, .45); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(36, 69, 255, .55); }
.sim-card:has(input:checked) .sim-card-box { border-color: var(--blue); background: #F7F8FF; box-shadow: 0 0 0 3px rgba(36, 69, 255, .12); }
.sim-card:has(input:checked) .sim-card-ico { background: var(--blue); color: #fff; }
.sim-card:has(input:checked) .sim-card-check { transform: scale(1); }
.sim-card:has(input:focus-visible) .sim-card-box { outline: 2px solid var(--blue); outline-offset: 2px; }

.sim-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.sim-nav [data-sim-next], .sim-nav [data-sim-submit] { margin-left: auto; }
.sim-nav .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Coordonnées */
.sim-contact-sub { color: var(--ink-2); margin: 8px 0 0; max-width: 52ch; }
.sim-teaser { display: none; }
.sim-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 22px; }
.sim-fields .field-wide { grid-column: 1 / -1; }
.sim-fields .field { margin: 0; }
.sim-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: .86rem; color: var(--ink-3); line-height: 1.5; }
.sim-privacy svg { flex: none; color: var(--ok); margin-top: 1px; }
.sim-privacy a { color: var(--ink-2); }
.sim [data-sim-submit] { box-shadow: 0 14px 34px -14px rgba(36, 69, 255, .8); }

/* Analyse */
.sim-analysis .sim-bar-analysis { margin: 24px 0 20px; height: 8px; }
.sim-analysis-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sim-analysis-steps li { display: grid; grid-template-columns: 34px 1fr 22px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink-3); transition: color .25s, background-color .25s; }
.sim-astep-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-3); transition: background-color .25s, color .25s, box-shadow .25s; }
.sim-astep-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); transform: scale(0); transition: transform .3s var(--ease); }
.sim-analysis-steps li.is-active { color: var(--ink); background: #F7F8FF; }
.sim-analysis-steps li.is-active .sim-astep-ico { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(36, 69, 255, .14), 0 0 22px rgba(36, 69, 255, .55); animation: sim-pulse 1s ease-in-out infinite; }
.sim-analysis-steps li.is-done { color: var(--ink); }
.sim-analysis-steps li.is-done .sim-astep-ico { background: var(--blue-50); color: var(--blue); }
.sim-analysis-steps li.is-done .sim-astep-ok { transform: scale(1); }
@keyframes sim-pulse { 50% { box-shadow: 0 0 0 9px rgba(36, 69, 255, .08), 0 0 28px rgba(36, 69, 255, .7); } }

/* Synthèse */
.sim-recap { list-style: none; padding: 0; margin: 14px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.sim-recap li { padding: 6px 12px; border-radius: 99px; background: var(--paper-2); font-size: .9rem; font-weight: 500; }
.sim-done-note { font-size: .86rem; color: var(--ink-3); margin: 18px 0 0; }
.sim-done-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.sim-done-list li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.sim-done-list svg { color: var(--blue); flex: none; }
@media (min-width: 981px) {
  .sim[data-state="results"] .sim-left { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
}

/* Tableau de bord */
.sim-dash { position: relative; padding: clamp(24px, 3vw, 36px); background: radial-gradient(120% 80% at 100% 0%, rgba(36, 69, 255, .28), transparent 55%), linear-gradient(180deg, #0F1530, var(--night)); color: var(--on-night); min-width: 0; }
.dash-head h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; color: #fff; margin: 0; }
.dash-note { color: var(--on-night-2); font-size: .9rem; margin: 6px 0 0; }
.dash-count { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 18px; padding: 5px 12px; border-radius: 99px; background: rgba(238, 240, 248, .07); border: 1px solid var(--line-night); font-size: .85rem; font-weight: 600; }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 10px var(--blue-300); animation: dash-blink 1.6s ease-in-out infinite; }
@keyframes dash-blink { 50% { opacity: .35; } }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dash-card { position: relative; overflow: hidden; padding: 16px 16px 18px; border-radius: 16px; background: rgba(238, 240, 248, .045); border: 1px solid rgba(238, 240, 248, .09); transition: border-color .4s, background-color .4s; min-width: 0; }
.dash-wide { grid-column: 1 / -1; }
.dash-card.is-ready { border-color: rgba(147, 162, 255, .38); background: rgba(36, 69, 255, .09); }
.dash-label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; font-weight: 500; color: var(--on-night); }
.dash-label svg { flex: none; color: var(--blue-300); }
.dash-value { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 8px 0 4px; font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.dash-sub { margin: 0; font-size: .8rem; color: var(--on-night-2); min-height: 1.2em; }
.dash-skel { display: block; width: 62%; height: 30px; border-radius: 8px; background: linear-gradient(90deg, rgba(147, 162, 255, .28), rgba(238, 240, 248, .55), rgba(147, 162, 255, .28)); background-size: 200% 100%; filter: blur(7px); animation: dash-shimmer 2.4s linear infinite; }
.dash-skel-s { width: 42%; }
@keyframes dash-shimmer { to { background-position: -200% 0; } }
.dash-lock { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(238, 240, 248, .1); color: #fff; }
.dash-card.is-ready .dash-lock { background: var(--blue); box-shadow: 0 0 16px rgba(36, 69, 255, .7); }
.dash-ready { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(238, 240, 248, .06); }
.dash-ready span { display: block; height: 100%; width: var(--ready, 0%); background: linear-gradient(90deg, var(--blue), var(--blue-300)); transition: width .6s var(--ease); }
.is-revealed .dash-ready { display: none; }
.dash-split { display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 12px; }
.dash-ring { width: 76px; height: 76px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(238, 240, 248, .1); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--blue-300); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; opacity: 0; transition: stroke-dasharray 1.2s var(--ease); }
.is-revealed .ring-fill { stroke-dasharray: var(--ring, 0) 100; opacity: 1; }
.dash-chart { position: relative; display: grid; gap: 10px; margin: 12px 0 8px; min-height: 64px; }
.dash-chart > .dash-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.chart-locked { display: grid; gap: 10px; filter: blur(6px); opacity: .7; }
.chart-locked span { display: block; height: 16px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, rgba(147, 162, 255, .7), rgba(36, 69, 255, .5)); }
.chart-locked-svg { width: 100%; height: 80px; filter: blur(5px); opacity: .7; }
.chart-locked-svg path { fill: rgba(36, 69, 255, .45); stroke: var(--blue-300); stroke-width: 2; }
.chart-row { display: grid; grid-template-columns: 9.5em 1fr auto; align-items: center; gap: 10px; font-size: .84rem; }
.chart-row-label { color: var(--on-night-2); }
.chart-track { height: 14px; border-radius: 6px; background: rgba(238, 240, 248, .07); overflow: hidden; }
.chart-fill { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.1s var(--ease); }
.is-before .chart-fill { background: rgba(238, 240, 248, .42); }
.is-after .chart-fill { background: linear-gradient(90deg, var(--blue), var(--blue-300)); }
.chart-row-val { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.chart-area { width: 100%; height: auto; overflow: visible; }
.area-band { fill: rgba(147, 162, 255, .16); }
.area-line { fill: none; stroke: var(--blue-300); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: area-draw 1.4s var(--ease) .2s forwards; }
@keyframes area-draw { to { stroke-dashoffset: 0; } }
.area-dot { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.area-x { fill: var(--on-night-2); font-size: 9px; font-family: var(--font-body); }
.is-revealed .dash-value { animation: dash-pop .6s var(--ease) both; }
@keyframes dash-pop { from { filter: blur(8px); opacity: .2; } to { filter: none; opacity: 1; } }

/* Rapport */
.sim-report { padding-top: clamp(40px, 5vw, 72px); }
.sim-opps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.sim-opp { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.sim-opp h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.sim-opp-pot { margin: 4px 0 12px; font-size: .86rem; color: var(--blue); font-weight: 600; }
.sim-opp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sim-opp li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: .95rem; }
.sim-opp li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.sim-hyp { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.sim-hyp summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.sim-hyp ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-3); font-size: .9rem; display: grid; gap: 6px; max-width: 90ch; }

/* Rendez-vous */
.sim-cta { padding-block: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.sim-cta::before { content: ""; position: absolute; right: -10%; top: -40%; width: 700px; height: 600px; background: radial-gradient(closest-side, rgba(36, 69, 255, .35), transparent); pointer-events: none; }
.sim-cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sim-cta h2 { color: #fff; max-width: 18ch; }
.sim-cta-text { color: var(--on-night-2); margin: 16px 0 28px; max-width: 52ch; }
.sim-cta-actions { display: grid; gap: 14px; justify-items: start; }
.sim-rdv-status { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(238, 240, 248, .08); color: var(--on-night); max-width: 52ch; }
.sim-cta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sim-cta-list li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(238, 240, 248, .05); border: 1px solid var(--line-night); color: var(--on-night); }
.sim-cta-list svg { color: var(--blue-300); flex: none; }

/* Comment ça marche */
.sim-how-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sim-how-steps li { padding: 24px; border-radius: 18px; background: var(--paper-2); }
.sim-how-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; margin-bottom: 14px; }
.sim-how-steps h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; }
.sim-how-steps p { margin: 0; color: var(--ink-2); }
.page-simulateur .section-faq { padding-top: 0; }

@media (max-width: 980px) {
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-cta-inner { grid-template-columns: minmax(0, 1fr); }
  .sim-how-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sim-hero { text-align: left; padding-bottom: 150px; }
  .sim-hero-inner { align-items: flex-start; }
  .sim-hero-cta { width: 100%; }
  .sim-reassure { justify-content: flex-start; }
  .sim-stage { margin-top: -120px; }
  .sim { border-radius: 20px; }
  .sim-options-2, .sim-cards, .sim-fields { grid-template-columns: minmax(0, 1fr); }
  .sim-card-box { padding: 12px 40px 12px 12px; }
  .sim-teaser { display: grid; gap: 8px; list-style: none; padding: 14px; margin: 18px 0 0; border-radius: 14px; background: var(--night); color: var(--on-night); font-size: .9rem; }
  .sim-teaser li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .sim-teaser svg { color: var(--blue-300); }
  .sim-nav { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%); padding-top: 14px; padding-bottom: 6px; z-index: 2; }
  .sim-nav .btn-lg { flex: 1; }
  .chart-row { grid-template-columns: 7.5em 1fr auto; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sim-step:not([hidden]), .dash-skel, .dash-dot, .sim-analysis-steps li.is-active .sim-astep-ico, .area-line, .is-revealed .dash-value { animation: none; }
  .area-line { stroke-dashoffset: 0; }
}

.admin-delete { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-hint { font-size: .85rem; color: var(--ink-3); margin: 8px 0 0; }

/* =====================================================================
   Page « site web sur mesure » (/site-web-sur-mesure)
   ===================================================================== */
.lp-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.lp-hero::before { content: ""; position: absolute; left: -10%; top: -35%; width: 1000px; height: 760px; background: radial-gradient(closest-side, rgba(36, 69, 255, .4), rgba(36, 69, 255, .08) 55%, transparent); pointer-events: none; }
.lp-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-copy { padding-top: clamp(8px, 3vw, 40px); }
.lp-offer { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 99px; background: rgba(36, 69, 255, .22); border: 1px solid rgba(147, 162, 255, .45); color: #fff; font-weight: 600; font-size: .92rem; }
.lp-offer svg { color: var(--blue-300); }
.lp-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; color: #fff; margin: 20px 0 0; max-width: 14ch; }
.lp-lead { color: var(--on-night-2); font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); margin: 20px 0 0; max-width: 46ch; }
.lp-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.lp-points li { display: flex; gap: 10px; align-items: center; color: var(--on-night); }
.lp-points svg { color: var(--blue-300); flex: none; }
.lp-card { position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -30px rgba(0, 0, 0, .65); scroll-margin-top: calc(var(--header-h) + 16px); }
.lp-step { border: 0; padding: 0; margin: 0; min-width: 0; }
/* La carte blanche du formulaire garde les couleurs claires du site, même sur le fond sombre */
.scene-night .lp-card p { color: var(--ink-2); }
.scene-night .lp-card .sim-progress-label { color: var(--ink); }
.scene-night .lp-card .sim-progress-time, .scene-night .lp-card .sim-hint, .scene-night .lp-card .sim-privacy, .scene-night .lp-card .lp-success-ref { color: var(--ink-3); }
.scene-night .lp-card .lp-sublabel { color: var(--ink); }
.scene-night .lp-card .field-error, .scene-night .lp-card .form-error { color: var(--danger); }
.scene-night .lp-card .sim-q, .scene-night .lp-card h2 { color: var(--ink); }
.scene-night .lp-card :focus-visible { outline-color: var(--blue); }
.lp-step:not([hidden]) { animation: sim-in .38s var(--ease) both; }
.lp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.lp-chip { position: relative; cursor: pointer; }
.lp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-chip > span { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 50px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; font-size: .94rem; line-height: 1.25; transition: border-color .2s, background-color .2s; }
.lp-chip-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: background-color .2s, color .2s; }
.lp-chip:hover > span { border-color: rgba(36, 69, 255, .45); }
.lp-chip input:checked + span { border-color: var(--blue); background: #F7F8FF; box-shadow: 0 0 0 3px rgba(36, 69, 255, .1); }
.lp-chip input:checked + span .lp-chip-ico { background: var(--blue); color: #fff; }
.lp-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.lp-sublabel { font-weight: 600; font-size: .95rem; margin: 18px 0 8px; }
.lp-form.is-sent .lp-step, .lp-form.is-sent .sim-nav, .lp-form.is-sent .sim-progress, .lp-form.is-sent .form-error { display: none !important; }
.lp-success { outline: none; }
.lp-success-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #fff; margin-bottom: 16px; animation: lp-pop .4s var(--ease) both; }
@keyframes lp-pop { from { transform: scale(.6); } to { transform: none; } }
.lp-success p { color: var(--ink-2); margin: 10px 0 0; }
.lp-success-ref { font-size: .9rem; }
.lp-steps-section .sim-how-steps { margin-top: 28px; }
.lp-showcase { padding-top: 0; }
.lp-concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.lp-concept { display: block; text-decoration: none; color: var(--ink); }
.lp-concept-img { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.lp-concept-img picture { display: contents; }
.lp-concept-img img { display: block; width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.lp-concept:hover .lp-concept-img img { transform: scale(1.02); }
.lp-concept-meta { display: grid; gap: 2px; margin-top: 12px; }
.lp-concept-meta span { color: var(--ink-3); font-size: .9rem; }
.lp-options { background: var(--paper-2); }
.lp-opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.lp-opt { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.lp-opt-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 16px; }
.lp-opt h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.lp-opt p { margin: 0; color: var(--ink-2); }
.lp-opt-more { margin: 22px 0 0; color: var(--ink-2); max-width: 80ch; }
.page-lp-faq { padding-top: clamp(64px, 8vw, 110px); }
.page-lp-faq .faq-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.page-lp-faq .faq { max-width: 900px; }
@media (max-width: 980px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-title { max-width: 18ch; }
  .lp-concepts, .lp-opt-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lp-hero { padding-top: 28px; }
  .lp-points { display: none; }
}
@media (max-width: 420px) { .lp-chips { grid-template-columns: minmax(0, 1fr); } }
