/* ============================================================
   Design system « Indigo et papier »
   Identité : fond papier chaud, encre indigo, accent safran, vert sauge.
   Titres en typographie à empattements (chaleur, artisanat), texte en sans-serif.
   Les noms de tokens historiques (--accent, --bg-soft…) sont conservés.
   ============================================================ */
/* Polices auto-hébergées (licence SIL OFL 1.1, voir public/fonts/OFL-*.txt) — sous-ensemble latin, variables */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* papier & encre */
  --paper: #fbf8f3;          /* fond de page */
  --paper-2: #f4eee4;        /* sections alternées */
  --surface: #ffffff;        /* cartes, champs */
  --ink: #1c1a2e;            /* texte principal */
  --ink-2: #3f3a52;          /* texte secondaire fort */
  --muted: #625c70;          /* texte secondaire */
  --muted-2: #8f8899;        /* placeholders, décor */
  --line: #e7e0d4;
  --line-strong: #d6ccbb;

  /* indigo encre (couleur de marque) */
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-soft: #eeedfb;
  --accent-line: #c9c6f2;
  --accent-ink: #2e2785;     /* texte sur fond indigo pâle */

  /* safran (mise en valeur, jamais pour du texte courant) */
  --saffron: #e9a23b;
  --saffron-soft: #f8e5c1;
  --saffron-ink: #7a4c0c;    /* texte sur fond safran pâle */

  /* états */
  --ok: #2b6f5e;  --ok-bg: #e7f2ee;  --ok-line: #b6d9cc;
  --warn: #8f5208; --warn-bg: #fcf1df; --warn-line: #efd09a;
  --danger: #b42318; --danger-bg: #fdecea; --danger-line: #f3c0ba;

  /* alias historiques */
  --bg: var(--paper);
  --bg-soft: var(--paper-2);

  /* espacements (échelle 4px) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;

  /* typographie */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --fs-meta: 12px; --fs-body: 14.5px; --fs-lead: 16px; --fs-h3: 16px; --fs-h2: clamp(26px, 3.2vw, 36px); --fs-h1: clamp(36px, 5.4vw, 60px);

  /* formes */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-btn: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 46, .05);
  --shadow-md: 0 10px 30px rgba(28, 26, 46, .07);
  --shadow-lg: 0 24px 60px rgba(28, 26, 46, .14);
  --shadow-accent: 0 8px 22px rgba(67, 56, 202, .25);
  --btn-h: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--saffron-soft); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- typo ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 600; font-optical-sizing: auto; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 var(--sp-4); }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.018em; margin: 0 0 var(--sp-4); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 var(--sp-2); }
p { margin: 0 0 var(--sp-3); }
.muted, .hint { color: var(--muted); font-size: var(--fs-body); }
.meta { font-size: var(--fs-meta); color: var(--muted); }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-5); }
section.block { padding: var(--sp-8) 0; }
section.block.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-meta); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3); }
.sec-label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--saffron); }
h2.sec { max-width: 760px; }

/* ---------- illustration du logo ---------- */
.mascot { display: block; width: 64px; height: 64px; }
.demo-mascot { margin: 0 0 var(--sp-3); }
.demo-mascot .mascot { width: 58px; height: 58px; filter: drop-shadow(0 6px 10px rgba(67, 56, 202, .18)); }
/* pendant la lecture de la boutique : l'étincelle du logo scintille (règles plus bas) */
.demo-mascot.wait .mascot { width: 72px; height: 72px; }
/* Pendant la lecture du site : l'étincelle scintille (le conseiller « réfléchit »). */
.demo-mascot.wait .spark { transform-box: fill-box; transform-origin: center; animation: sparkTwinkle 1.4s ease-in-out infinite; }
@keyframes sparkTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .demo-mascot.wait .spark { animation: none; } }
/* Liseré entre la bulle et l'étincelle du logo : couleur du fond sur lequel il est posé. */
.mark .spark, .mascot .spark { stroke: var(--mark-gap, var(--paper)); }
.demo-frame, .card, aside { --mark-gap: var(--surface); }
footer.site { --mark-gap: var(--ink); }

/* ---------- logo ---------- */
.logo { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo .mark { width: 34px; height: 34px; flex: none; display: block; }

/* ---------- header / footer ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--sp-4); }
nav.main { display: flex; gap: var(--sp-6); font-size: var(--fs-body); font-weight: 600; }
nav.main a { color: var(--ink-2); white-space: nowrap; }
@media (max-width: 1180px) { nav.main { gap: var(--sp-4); } nav.main a.nav-opt { display: none; } }
/* Menu déroulant « Secteurs » : ouvert au survol, au clavier (focus) ou au clic. */
nav.main { align-items: center; }
.nav-dd { position: relative; }
.nav-dd-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font: inherit; font-weight: 600; white-space: nowrap; }
.nav-dd-btn:hover, .nav-dd-btn.current, .nav-dd.open .nav-dd-btn { color: var(--accent); }
nav.main .nav-dd-btn, nav.main .nav-dd-btn:hover, nav.main .nav-dd-btn:active { background: none; box-shadow: none; transform: none; height: auto; padding: 0; border: 0; border-radius: 0; }
.nav-dd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.nav-dd-btn svg { transition: transform .15s ease; }
.nav-dd.open .nav-dd-btn svg, .nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: 100%; left: -16px; padding-top: 14px; display: none; min-width: 270px; }
.nav-dd-menu::before { content: ""; position: absolute; inset: 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(28, 26, 46, .12); z-index: -1; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: block; }
.nav-dd-menu a { display: block; padding: 9px 16px; font-weight: 600; color: var(--ink-2); }
.nav-dd-menu a:first-child { margin-top: 6px; } .nav-dd-menu a:last-child { margin-bottom: 6px; }
.nav-dd-menu a:hover, .nav-dd-menu a[aria-current="page"] { color: var(--accent); background: var(--bg-soft); text-decoration: none; }
#mobileMenu .mm-sectors summary { cursor: pointer; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; }
#mobileMenu .mm-sectors summary::-webkit-details-marker { display: none; }
#mobileMenu .mm-sectors summary::after { content: "▾"; }
#mobileMenu .mm-sectors[open] summary::after { content: "▴"; }
#mobileMenu .mm-sectors a { display: block; padding: 8px 0 0 14px; font-weight: 500; }
nav.main a:hover { color: var(--accent); text-decoration: none; }
.head-actions { display: flex; gap: var(--sp-2); align-items: center; }
#burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); padding: var(--sp-1); height: auto; box-shadow: none; }
#burger:hover { background: none; color: var(--accent); box-shadow: none; transform: none; }
#mobileMenu { display: flex; border-top: 1px solid var(--line); background: var(--paper); padding: 0 var(--sp-5); flex-direction: column; gap: var(--sp-3); font-weight: 600; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s ease, opacity .2s ease, padding .25s ease; }
#mobileMenu a:not(.btn) { color: var(--ink-2); }
#mobileMenu.open { max-height: 680px; opacity: 1; padding: var(--sp-3) var(--sp-5) var(--sp-4); }
footer.site { border-top: 1px solid var(--line); margin-top: 0; padding: var(--sp-7) 0 var(--sp-6); background: var(--ink); color: #d9d5e3; }
footer.site .logo { color: #fff; font-size: 23px; display: inline-flex; width: auto; }
/* Bulle éclaircie sur fond encre : contraste ≥ 3:1 (la bulle indigo d'origine n'atteint que 2:1). */
footer.site .logo .mark > path:first-child { fill: #7c74f2; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: var(--sp-5); }
footer.site .brand p { color: #b5b0c4; font-size: 13.5px; max-width: 300px; margin-top: var(--sp-3); }
footer.site h4 { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .1em; color: #a59fb6; margin: 0 0 var(--sp-3); }
footer.site a { display: block; color: #e4e1ec; font-size: var(--fs-body); margin-bottom: var(--sp-2); }
footer.site a:hover { color: #fff; }
footer.site .copy { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.1); color: #a59fb6; font-size: 13px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .brand { grid-column: 1 / -1; } }

/* ---------- boutons ---------- */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: var(--btn-h); padding: 0 var(--sp-5);
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-btn);
  font: 600 var(--fs-body) var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease, border-color .15s ease;
}
.btn:hover, button:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-accent); color: #fff; text-decoration: none; }
.btn:active, button:active { transform: translateY(0); }
.btn:disabled, .btn.loading, button:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn.ghost, button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover, button.ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: none; }
.btn.dark, button.dark { background: var(--ink); }
.btn.dark:hover, button.dark:hover { background: #2c2943; color: #fff; box-shadow: 0 8px 22px rgba(28,26,46,.25); }
.btn.danger, button.danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger-line); }
.btn.danger:hover, button.danger:hover { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.btn.sm, button.sm { height: 34px; padding: 0 var(--sp-4); font-size: 13px; }
.btn.block, button.block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn .spinner, button .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.ghost .spinner, .btn.danger .spinner, button.ghost .spinner, button.danger .spinner { border-color: rgba(28,26,46,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- champs ---------- */
input, select, textarea {
  width: 100%; min-height: var(--btn-h);
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: var(--fs-body) var(--font); color: var(--ink); background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { padding: var(--sp-3); height: auto; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #767082; } /* 4,7:1 sur blanc */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled { background: var(--paper-2); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: auto; min-height: 0; height: auto; padding: 0; margin: 0 6px 0 0; vertical-align: -2px; }
.panel > input, .panel > select, .panel > textarea { margin-bottom: var(--sp-3); }
.panel > .btn { margin-top: var(--sp-1); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- cartes / panneaux ---------- */
.card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.grid .card, .grid3 .card, .steps .card, .stats .stat { margin-bottom: 0; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.panel { box-shadow: var(--shadow-md); }
.panel h2 { font-size: 28px; }

/* ---------- stats ---------- */
.stats { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); min-width: 150px; transition: transform .18s, box-shadow .18s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .n { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- tableaux ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
table.simple { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.simple th, table.simple td { text-align: left; padding: 11px var(--sp-4); border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
table.simple th { background: var(--paper-2); font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.simple tbody tr:hover { background: var(--paper); }
table.simple tbody tr:last-child td { border-bottom: none; }

/* ---------- badges / notes / états ---------- */
.badge { display: inline-block; font-size: var(--fs-meta); font-weight: 700; border-radius: 999px; padding: 3px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.note { border-radius: var(--radius-sm); padding: 10px var(--sp-3); font-size: 13px; margin-bottom: var(--sp-4); border: 1px solid var(--line); background: var(--surface); }
.empty { margin-bottom: var(--sp-5); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--sp-6); text-align: center; color: var(--muted); background: var(--surface); font-size: var(--fs-body); }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); }

/* ---------- hero / grilles ---------- */
.hero {
  text-align: center; padding: var(--sp-8) 0 var(--sp-7);
  background:
    radial-gradient(620px 340px at 88% 8%, rgba(233, 162, 59, .16) 0%, rgba(233, 162, 59, 0) 70%),
    radial-gradient(720px 420px at 8% 0%, rgba(67, 56, 202, .10) 0%, rgba(67, 56, 202, 0) 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero > * { animation: fadeUp .55s ease both; }
.hero > *:nth-child(2) { animation-delay: .06s; }
.hero > *:nth-child(3) { animation-delay: .12s; }
.hero > *:nth-child(4) { animation-delay: .18s; }
.eyebrow { display: inline-block; font-size: var(--fs-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: var(--sp-4); }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: var(--sp-5); box-shadow: var(--shadow-sm); }
.pill-badge:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.pill-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); }
.sub { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 640px; margin: 0 auto var(--sp-5); }
.pills { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.cta-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.args { display: flex; gap: var(--sp-5); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); font-size: 13.5px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
/* Six secteurs : toujours des lignes pleines (3 + 3, puis 2 + 2 + 2, puis 1). */
.grid3.sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid3.sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3.sectors { grid-template-columns: 1fr; } }
.sectors .sector { display: flex; flex-direction: column; gap: var(--sp-2); color: var(--ink); text-decoration: none; }
a.card.sector:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.sector h3 { margin: 0; }
.sector p { margin: 0; color: var(--muted); }
.sector-q { font-family: var(--font-display); font-style: italic; color: var(--accent-ink); }
.sector-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
div.sector .sector-more { color: var(--muted); font-weight: 500; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.step-num { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.price { font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 12px; line-height: 1; }
.price small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.card ul { margin: 0; padding-left: 0; list-style: none; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.7; }
.card ul li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.card.free { border-color: var(--line-strong); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--sp-2); background: var(--surface); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: none; border: none; cursor: pointer; font: 600 var(--fs-lead) var(--font); color: var(--ink); text-align: left; border-radius: 0; height: auto; box-shadow: none; }
.faq-q:hover, .faq-q:hover:not(:disabled) { color: var(--accent); background: none; box-shadow: none; transform: none; }
.faq-q svg { transition: transform .2s ease; flex: none; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { margin: 0; padding: 0 var(--sp-5) var(--sp-4); color: var(--muted); font-size: var(--fs-body); line-height: 1.65; }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- stepper « comment ça marche » ---------- */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); position: relative; margin-bottom: var(--sp-5); }
.stepper::before { content: ""; position: absolute; top: 19px; left: 18%; right: 18%; height: 0; border-top: 2px dashed var(--line-strong); }
.stp { text-align: center; position: relative; }
.stp-num { width: 38px; height: 38px; margin: 0 auto var(--sp-3); border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
section.block.alt .stp-num { box-shadow: 0 0 0 6px var(--paper-2); }
.stp h3 { margin-bottom: 6px; }
.stp p { margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }

/* ---------- bento fonctionnalités ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.bento .card.wide { grid-column: span 2; }
.bento .mini { margin-top: var(--sp-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-3); }
.mini-bubble { max-width: 88%; padding: 7px 11px; border-radius: 12px; font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
.mini-bubble.u { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.mini-bubble.b { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
/* Conversation d'exemple de l'accueil (apparition progressive). */
.anim-chat { max-width: 520px; margin: 0 auto var(--sp-6); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(28, 26, 46, .08); }
.anim-chat .ac-head { background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 14px; display: flex; align-items: center; gap: 8px; }
.anim-chat .ac-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; }
.anim-chat .ac-body { padding: 14px; min-height: 250px; }
.anim-chat .mini-bubble { font-size: 13px; }
.anim-chat .ac-step { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.anim-chat .ac-step.on { opacity: 1; transform: none; }
.anim-chat .ac-lead { display: inline-flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--accent); margin-bottom: 8px; }
.anim-chat .ac-lead span { color: var(--muted); font-size: 11.5px; }
.anim-chat .ac-mail { font-size: 12.5px; color: var(--ok, #067647); font-weight: 600; }
.mini-src { font-size: 10.5px; color: var(--accent); margin-top: 3px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.mini-bars i { flex: 1; background: var(--accent-line); border-radius: 4px 4px 0 0; }
.mini-bars i:last-child { background: var(--accent); }

/* ---------- aperçus du produit ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.shot .frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-3); height: 184px; overflow: hidden; margin-bottom: var(--sp-3); }
.shot h3 { margin-bottom: 4px; }
.shot > p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.mini-widget { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.mw-head { display: flex; gap: 8px; align-items: center; background: var(--accent); color: #fff; border-radius: 10px; padding: 6px 8px; }
.mw-ava { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.mw-head b { font-size: 11px; display: block; line-height: 1.2; }
.mw-head i { font-style: normal; font-size: 9.5px; opacity: .85; }
.mw-input { margin-top: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 10px; font-size: 10.5px; color: var(--muted-2); }
.mini-dash { display: flex; gap: 8px; height: 100%; }
.md-side { width: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 5px; display: flex; flex-direction: column; gap: 5px; }
.md-side i { height: 8px; border-radius: 3px; background: var(--paper-2); }
.md-side i.on { background: var(--accent); }
.md-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.md-stats { display: flex; gap: 6px; }
.md-stats span { flex: 1; height: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.md-n { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--ink); }
.md-lbls { display: flex; gap: 6px; }
.md-lbls span { flex: 1; font-size: 9px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.md-qlist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.md-q { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font-size: 10.5px; }
.md-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-q b { flex: none; font-size: 9px; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 7px; }
.md-kpis { display: flex; gap: 6px; }
.md-kpi { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; }
.md-kpi b { display: block; font-size: 13px; letter-spacing: -.02em; }
.md-kpi i { font-style: normal; font-size: 9px; color: var(--muted); }
.md-split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.md-split .a { background: var(--accent); }
.md-split .b { background: var(--saffron); }
.md-split-lbl { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.mini-qs { display: flex; flex-direction: column; gap: 6px; }
.mq { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 11px; }
.mq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq b { flex: none; font-size: 10px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.mq.ok b { color: var(--ok); background: var(--ok-bg); }

/* ---------- bénéfices + confiance ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; margin-bottom: var(--sp-5); }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-lead); line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.checks svg { flex: none; margin-top: 2px; color: var(--ok); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.trust .t { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5) var(--sp-4); }
.trust .t .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.trust .t h4 { margin: var(--sp-3) 0 4px; font-size: var(--fs-lead); }
.trust .t p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- tarifs : offre recommandée ---------- */
.card.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); position: relative; }
.rec-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--saffron); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 4px 13px; border-radius: 999px; white-space: nowrap; }

.row { display: flex; gap: var(--sp-3); }
.row > input, .row > select { flex: 1; }
.toolbar { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-4); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- hero deux colonnes + cadre de démo ---------- */
/* Accueil : le hero prend plus de largeur que le reste du site (texte à gauche + aperçu avec réglages à droite). */
/* (le hero suit la même largeur que le reste du site : aligné sur le logo et les sections) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--sp-7); align-items: center; text-align: left; }
.hero-copy h1 { font-size: clamp(36px, 3.7vw, 56px); }
.hero-copy .sub { margin: 0 0 var(--sp-5); max-width: 530px; }
.hero-copy .cta-row { justify-content: flex-start; }
/* surlignage « marqueur » safran sous l'indigo */
.hl { color: var(--accent); background: linear-gradient(transparent 64%, var(--saffron-soft) 64%, var(--saffron-soft) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-args { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero-args li { display: flex; align-items: center; gap: 10px; }
.hero-args li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6f5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.demo-frame { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); height: 680px; padding: var(--sp-5); overflow: hidden; container-type: inline-size; }
.demo-frame::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--saffron)); }
.demo-state { height: 100%; display: none; flex-direction: column; transition: opacity .18s ease, transform .18s ease; }
.demo-state.on { display: flex; }
.demo-state.leaving { opacity: 0; transform: translateY(6px); }
.demo-state.entering { animation: demoIn .45s ease both; }
@keyframes demoIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.demo-browser { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-bottom: var(--sp-5); }
.demo-browser span { width: 9px; height: 9px; border-radius: 50%; }
.demo-browser span:nth-child(1) { background: #f1a99c; } .demo-browser span:nth-child(2) { background: #f2cf86; } .demo-browser span:nth-child(3) { background: #a9d4bf; }
.demo-browser em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-state h3 { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.spinner.big { width: 26px; height: 26px; border-width: 3px; margin-bottom: var(--sp-4); border-color: var(--accent-soft); border-top-color: var(--accent); }
.demo-steps { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.demo-steps li { display: flex; align-items: center; gap: 10px; }
.demo-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); flex: none; animation: dotB 1.4s infinite; }
.demo-steps li:nth-child(2)::before { animation-delay: .2s; } .demo-steps li:nth-child(3)::before { animation-delay: .4s; }
.demo-chat { padding: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border-radius: 14px; padding: 10px 12px; animation: demoIn .3s ease both; }
.chat-ava { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.chat-title { font-weight: 700; font-size: 14px; } .chat-sub { font-size: 11px; opacity: .85; }
.chat-msgs { flex: 1; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.chat-msgs .u { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 8px 12px; max-width: 82%; font-size: 13.5px; white-space: pre-wrap; animation: demoIn .2s ease both; }
.chat-msgs .b { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; max-width: 82%; font-size: 13.5px; white-space: pre-wrap; animation: demoIn .2s ease both; }
/* Mots longs, adresses, références : le texte revient à la ligne au lieu de sortir du cadre. */
.chat-msgs { overflow-x: hidden; }
.chat-msgs .u, .chat-msgs .b { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.chat-msgs .typing-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: .5; animation: caretBlink 1s steps(2) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
/* Cartes produits citées par le conseiller (aperçu de l'accueil ; même rendu que le widget installé). */
.chat-msgs .pcards { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; white-space: normal; }
.chat-msgs a.pcard { display: flex; gap: 9px; align-items: flex-start; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; min-width: 0; }
.chat-msgs a.pcard:hover { border-color: var(--w-color, var(--accent)); }
.pcard img, .pcard .noimg { width: 46px; height: 46px; border-radius: 7px; object-fit: cover; flex: none; background: var(--paper-2); }
.pcard .pc-i { flex: 1; min-width: 0; line-height: 1.3; display: flex; flex-direction: column; }
.pcard .pc-n { font-size: 12.5px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pcard .pc-p { font-size: 12px; margin-top: 2px; } .pcard .pc-p s { color: var(--muted); margin-left: 4px; }
.pcard .pc-s { font-size: 11px; color: var(--danger); }
.pcard .pc-b { font-size: 11.5px; font-weight: 600; color: var(--w-color, var(--accent)); margin-top: 3px; }
.chat-msgs .src { margin-top: 6px; font-size: 11.5px; } .chat-msgs .src a { color: var(--accent); }
.chat-typing { display: inline-flex; gap: 4px; padding: 10px 12px; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: dotB 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dotB { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-cta { border: 1px solid var(--saffron); background: #fdf6e8; border-radius: 14px; padding: 10px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; animation: demoIn .3s ease both; }
.chat-cta p { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.chat-cta .row { width: 100%; flex-wrap: wrap; }
.chat-foot { display: flex; gap: 8px; padding-top: 10px; }
.chat-foot input { flex: 1; border-radius: 999px; padding: 0 16px; }
.chat-foot button { width: 44px; height: 44px; padding: 0; border-radius: 50%; flex: none; }
.chat-disc { font-size: 10.5px; color: var(--muted); text-align: center; padding-top: 6px; }

.chat-sugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; }
.chat-sugs button { height: auto; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; box-shadow: none; }
/* Questions longues (nom de produit) : sur plusieurs lignes, jamais hors du cadre. */
.chat-sugs { min-width: 0; max-height: 96px; overflow-y: auto; }
.chat-sugs button { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.35; border-radius: 14px; }
.chat-sugs button:hover, .chat-sugs button:hover:not(:disabled) { background: var(--surface); border-color: var(--accent); color: var(--accent); box-shadow: none; transform: none; }

/* Choix du type de site (aperçu de l'accueil) */
.type-label { margin: var(--sp-4) 0 var(--sp-2); font-size: 13px; font-weight: 700; color: var(--ink-2); display: block; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chips button { height: auto; min-height: 32px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; box-shadow: none; }
.type-chips button:hover, .type-chips button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--surface); transform: none; box-shadow: none; }
.type-chips button[aria-checked="true"], .type-chips button[aria-checked="true"]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
#demoForm #heroBtn { margin-top: var(--sp-4); align-self: flex-start; width: auto; }

/* Aperçu « comme sur le site » : fausse page, bulle et fenêtre du conseiller, panneau de réglages */
.demo-site { --w-color: var(--accent); --chat-w: min(320px, calc(100% - 28px)); position: relative; margin: calc(-1 * var(--sp-5)); height: calc(100% + 2 * var(--sp-5)); padding: 14px; background: var(--paper); }
.demo-site .demo-browser.sm { padding: 6px 12px; margin-bottom: 12px; background: var(--surface); }
.site-mock { display: flex; flex-direction: column; gap: 14px; opacity: .9; }
.site-mock i { display: block; background: var(--paper-2); border-radius: 8px; }
.sk-nav { display: flex; align-items: center; gap: 10px; }
.sk-nav b { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.sk-nav i { width: 46px; height: 9px; }
.sk-hero { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.sk-hero .l1 { width: 62%; height: 16px; } .sk-hero .l2 { width: 84%; height: 9px; } .sk-hero .l3 { width: 30%; height: 26px; border-radius: 999px; background: var(--line); margin-top: 6px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-grid i { height: 92px; background: var(--surface); border: 1px solid var(--line); }
.demo-site .chat-head, .demo-site .chat-msgs .u, .demo-site .chat-foot button { background: var(--w-color); }
.demo-site .chat-foot button { border-color: var(--w-color); }
.demo-site .chat-head { border-radius: 12px; padding: 8px 8px 8px 10px; }
.chat-id { flex: 1; min-width: 0; }
.chat-id .chat-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-btn { width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; flex: none; }
.head-btn:hover, .head-btn:hover:not(:disabled), .head-btn[aria-expanded="true"] { background: rgba(255,255,255,.2); transform: none; box-shadow: none; }
.w-window { position: absolute; z-index: 2; top: 58px; right: 14px; bottom: 84px; width: var(--chat-w); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; transform-origin: 100% 100%; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.w-window .chat-msgs { margin-top: 8px; padding: 10px; }
.chat-msgs .chat-note { align-self: stretch; font-size: 11.5px; line-height: 1.4; color: var(--muted); background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 6px 9px; }
.chat-msgs .chat-lead { align-self: stretch; font-size: 12px; line-height: 1.4; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-lead-row { display: flex; gap: 6px; }
.chat-lead-row input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.chat-lead-row button { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 6px; opacity: .8; }
.chat-lead-n { color: var(--muted); font-size: 11px; }
.w-window .chat-msgs .u, .w-window .chat-msgs .b { max-width: 90%; }
.w-window .chat-info:empty { display: none; }
.w-window .chat-info { font-size: 11.5px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 6px 9px; margin-top: 8px; max-height: 64px; overflow-y: auto; }
.w-window .chat-foot { padding-top: 8px; }
.w-window .chat-foot input { height: 40px; }
.w-window .chat-foot button { width: 40px; height: 40px; }
.w-window .chat-sugs { padding-top: 6px; }
.demo-site.w-closed .w-window { opacity: 0; transform: translateY(14px) scale(.94); visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.w-bubble { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 0; background: var(--w-color); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(28, 26, 46, .25); transition: transform .15s ease; }
.w-bubble:hover, .w-bubble:hover:not(:disabled) { background: var(--w-color); transform: scale(1.06); }
.w-bubble .i-chat { display: none; }
.demo-site.w-closed .w-bubble .i-chat { display: block; }
.demo-site.w-closed .w-bubble .i-close { display: none; }
.demo-site.w-closed .w-bubble { animation: bubblePop .4s ease both; }
@keyframes bubblePop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.cfg-panel { position: absolute; z-index: 3; top: 58px; bottom: 84px; left: 14px; right: calc(var(--chat-w) + 26px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); opacity: 0; transform: translateX(-12px); transition: opacity .2s ease, transform .2s ease; }
.cfg-panel.open { opacity: 1; transform: none; }
.cfg-panel[hidden] { display: none; }
.cfg-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cfg-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; box-shadow: none; }
.cfg-x:hover, .cfg-x:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); transform: none; box-shadow: none; }
.cfg-body { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; }
.cfg-body > label, .cfg-lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 10px 0 4px; }
.cfg-body > label:first-child { margin-top: 0; }
.cfg-body input:not([type]), .cfg-body select, .cfg-body textarea { height: 34px; min-height: 34px; font-size: 13px; padding: 0 10px; border-radius: 10px; }
.cfg-body textarea { height: auto; padding: 6px 10px; resize: vertical; min-height: 60px; line-height: 1.4; }
.cfg-seg { display: flex; gap: 12px; font-size: 13px; }
.cfg-seg input, .cfg-check input { width: auto; min-height: 0; }
.cfg-seg label, .cfg-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cfg-check { margin: 10px 0 0; }
.cfg-colors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cfg-colors button { width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.cfg-colors button:hover, .cfg-colors button:hover:not(:disabled) { transform: scale(1.1); box-shadow: 0 0 0 1px var(--ink-2); }
.cfg-colors button.on { box-shadow: 0 0 0 2px var(--ink); }
.cfg-colors input[type="color"] { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.cfg-note { font-size: 12px; line-height: 1.45; color: var(--muted); background: var(--paper-2, #f5f3ee); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; }
/* Fin de l'aperçu : la zone de saisie laisse la place à l'invitation, les messages gardent leur hauteur. */
.w-ended .chat-foot, .w-ended .chat-sugs { display: none; }
.w-window .chat-cta { padding: 8px 10px; gap: 6px; }
.w-window .chat-cta p { font-size: 12.5px; line-height: 1.4; }
.cfg-type { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.cfg-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.cfg-msg { font-size: 11.5px; color: var(--muted); min-height: 1em; }
/* Cadre étroit (mobile, tablette) : le panneau passe par-dessus la fenêtre de chat. */
@container (max-width: 450px) {
  .cfg-panel { right: 14px; }
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
}
.chat-info { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); font-size: 12px; line-height: 1.45; }
.chat-info:empty { display: none; }

/* ---------- plateformes compatibles (sous le hero) ---------- */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: var(--sp-5); font-size: 12.5px; color: var(--muted); }
.platforms b { font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

/* ---------- bandeau d'appel final ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: 24px; padding: var(--sp-7) var(--sp-6); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(233, 162, 59, .25); }
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band .sub { color: #dcdaf7; position: relative; z-index: 1; }
.cta-band .cta-row { position: relative; z-index: 1; }
.cta-band .btn { background: var(--saffron); color: var(--ink); }
.cta-band .btn:hover { background: #f0b257; color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- transitions de navigation & reveal au scroll ---------- */
body { animation: fadeIn .2s ease both; }
body.page-exit { opacity: 0; transition: opacity .15s ease; }
a { transition: color .15s ease; }
.btn:active, button:active { transform: scale(.98); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- visualisation de la boucle d'amélioration ---------- */
.loopviz { display: flex; gap: var(--sp-3); align-items: stretch; margin-bottom: var(--sp-4); }
.lv-stage { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow-sm); min-width: 0; }
.lv-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-2); }
.lv-stage h3 { font-size: 14.5px; margin: 0 0 var(--sp-3); letter-spacing: -0.01em; }
.lv-ui { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-3); display: flex; flex-direction: column; gap: 6px; }
.lv-ui .mini-bubble { font-size: 12px; margin-bottom: 0; }
.lv-ui .mini-bubble.fb { border-color: var(--warn-line); background: var(--warn-bg); }
.lv-ui .mini-bubble.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.lv-arrow { align-self: center; color: var(--saffron); flex: none; display: flex; }
.lv-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; flex-wrap: wrap; }
.lv-qrow { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 11.5px; }
.lv-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lv-answer { background: var(--surface); border: 1px solid var(--accent-line); border-radius: 8px; padding: 7px 9px; font-size: 11.5px; line-height: 1.5; }
.lv-know { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--ok); }
.lv-back { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; margin: var(--sp-2) 0 var(--sp-5); }
.loop-conclusion { text-align: center; font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.01em; max-width: 760px; margin: 0 auto var(--sp-6); color: var(--ink); }
.lv-benefits { max-width: 960px; margin: 0 auto; }
@media (max-width: 960px) {
  .loopviz { flex-direction: column; }
  .lv-arrow { transform: rotate(90deg); justify-content: center; }
}

/* ---------- boucle d'amélioration continue ---------- */
.loop { list-style: none; margin: 0 auto var(--sp-5); padding: 0; max-width: 620px; counter-reset: loop; text-align: left; }
.loop li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px var(--sp-4) 12px 54px; margin-bottom: 28px; font-size: var(--fs-body); color: var(--muted); }
.loop li b { display: block; color: var(--ink); font-size: var(--fs-lead); margin-bottom: 2px; }
.loop li::before { counter-increment: loop; content: counter(loop); position: absolute; left: 13px; top: 11px; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.loop li:not(:last-child)::after { content: "\2193"; position: absolute; left: 21px; top: 45px; height: 26px; color: var(--muted); font-size: 15px; }
.loop li:last-child { margin-bottom: 0; }
.loop li.loop-back { border-color: var(--accent); background: var(--accent-soft); }
.loop li.loop-back::before { content: "\21BA"; background: var(--accent); color: #fff; }
.loop li.loop-back::after { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .shots, .trust { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--sp-4); }
}
@media (max-width: 560px) {
  /* minmax(0, 1fr) : une colonne ne s'élargit jamais au-delà de l'écran à cause de son contenu */
  .bento, .shots, .trust { grid-template-columns: minmax(0, 1fr); }
  .bento .card.wide { grid-column: span 1; }
}
.bento > *, .shots > *, .trust > *, .grid > *, .grid3 > * { min-width: 0; }
@media (max-width: 760px) {
  .stepper { grid-template-columns: 1fr; gap: var(--sp-4); }
  .stepper::before { display: none; }
  .stp { display: flex; gap: var(--sp-3); text-align: left; align-items: flex-start; }
  .stp-num { margin: 0; flex: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .demo-frame { height: 620px; }
}
/* Menu complet trop large sous 900 px (Secteurs compris) : menu repliable. */
@media (max-width: 900px) {
  nav.main { display: none; }
  #burger { display: block; }
}
@media (max-width: 760px) {
  nav.main { display: none; }
  #burger { display: block; }
  /* seul le bouton « Se connecter » de l'en-tête passe dans le menu (avant : TOUS les boutons secondaires étaient masqués) */
  .head-actions .btn.ghost { display: none; }
  .head-actions .btn { height: 38px; padding: 0 var(--sp-4); font-size: 13px; }
  h1 { font-size: 36px; }
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .wrap { padding: 0 var(--sp-4); }
  section.block { padding: var(--sp-7) 0; }
}
/* En-tête sur petit écran : nom de la marque + bouton doivent tenir sur une ligne */
.cta-short { display: none; }
@media (max-width: 480px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  header.site .wrap { gap: var(--sp-2); }
  .logo { font-size: 20px; gap: 8px; } .logo .mark { width: 28px; height: 28px; }
  .head-actions { gap: 4px; }
  .head-actions .btn { padding: 0 var(--sp-3); font-size: 12.5px; }
}
@media (max-width: 360px) {
  .logo { font-size: 16px; }
  .head-actions .btn { padding: 0 10px; font-size: 12px; }
}

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

/* Démo de l'accueil : bouton « Personnaliser » signalé à l'ouverture du chat. */
.head-btn.pulse { animation: cfgPulse 1.4s ease-in-out 3; }
@keyframes cfgPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.0); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.45); } }
@media (prefers-reduced-motion: reduce) { .head-btn.pulse { animation: none; outline: 2px solid #fff; } }
