/* ==========================================================================
   Nestor Software — prototype de refonte (système de design v0.1)
   Un seul fichier, sans build : sera repris tel quel dans le thème WordPress.
   ========================================================================== */

:root {
  /* Couleurs */
  --ink: #0b1220;
  --ink-2: #2a3347;
  --muted: #586174;
  --line: #e5e8f0;
  --line-2: #d6dbe6;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #f1f2fe;

  --brand: #3b43d6;        /* indigo, aligné sur l'interface produit */
  --brand-600: #3038c2;
  --brand-700: #262c9e;
  --brand-soft: #eceefe;
  --sky: #38bdf8;
  --violet: #8b5cf6;
  --live: #e2580c;         /* orange « en direct » (chronomètre Négo-live) */
  --live-soft: #fff3ea;
  --ok: #15803d;
  --ok-soft: #e9f8ee;

  --dark: #0b1020;
  --dark-2: #141a33;

  /* Typographie */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formes */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow-sm: 0 2px 8px rgba(11, 18, 32, .06);
  --shadow: 0 12px 32px -12px rgba(20, 26, 60, .18);
  --shadow-lg: 0 40px 80px -30px rgba(25, 30, 90, .35), 0 12px 24px -12px rgba(11, 18, 32, .12);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- Boutons ---------- */
.btn {
  --_bg: var(--brand); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-body);
  color: var(--_fg); background: var(--_bg); border: 1px solid var(--_bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  box-shadow: 0 8px 20px -8px rgba(59, 67, 214, .55), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn:hover { color: var(--_fg); background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(59, 67, 214, .6); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --_bg: #fff; --_fg: var(--ink); --_bd: var(--line-2); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { --_bg: #fff; background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light { --_bg: #fff; --_fg: var(--brand-700); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.btn--light:hover { background: #fff; color: var(--brand-700); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11,18,32,.25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

.main-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font: 500 .97rem/1 var(--font-body); color: var(--ink);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--bg-soft); color: var(--ink); }
.nav-link[aria-current="page"], .nav-link[data-current="true"] { color: var(--brand); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 0;
  min-width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown--mega { width: min(680px, calc(100vw - 32px)); padding: 14px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-group-title {
  grid-column: 1 / -1; padding: 8px 12px 4px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dd-link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.dd-link:hover, .dd-link:focus-visible { background: var(--bg-soft); color: var(--ink); }
.dd-link strong { display: block; font-weight: 600; font-size: .97rem; line-height: 1.3; color: var(--ink); }
.dd-link span span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dd-ico {
  flex-shrink: 0; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
}
.dd-ico svg { width: 20px; height: 20px; }
.dd-ico--live { background: var(--live-soft); color: var(--live); }
.dd-ico--ok { background: var(--ok-soft); color: var(--ok); }
.dd-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg-tint);
  font-size: .92rem;
}
.dd-footer p { margin: 0; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px;
  font: 600 .86rem/1 var(--font-body); color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.lang-btn svg { width: 16px; height: 16px; }
.lang .dropdown { min-width: 170px; left: auto; right: 0; translate: 0 0; }
.lang .dd-link { padding: 10px 12px; font-size: .94rem; justify-content: space-between; }
.lang .dd-link span { color: var(--muted); font-size: .8rem; }
.lang .dd-link[aria-current="true"] { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile / tablette */
@media (max-width: 1040px) {
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: #fff; overflow-y: auto;
    padding: 16px var(--gutter) 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.08rem; border-radius: 0; }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: none; }
  .dropdown, .dropdown--mega {
    position: static; translate: none; width: auto; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 12px; transform: none;
    display: none; opacity: 1; visibility: visible;
  }
  .dropdown.is-open { display: block; }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-footer { flex-direction: column; align-items: flex-start; }
  .mobile-cta { display: flex !important; margin-top: 24px; }
  .mobile-cta .btn { width: 100%; }
}
.mobile-cta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(59, 67, 214, .14), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(40% 40% at 60% 60%, rgba(139, 92, 246, .10), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11,18,32,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 .hl {
  background: linear-gradient(100deg, var(--brand) 10%, #6a4cf0 55%, #2a9fe0 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: var(--ink-2); margin-inline: auto; max-width: 760px; }
.hero-benefit { color: var(--muted); max-width: 700px; margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; }
.hero-sub + .btn-row { margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* Badge */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; margin-bottom: 26px;
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-xs);
}
.pill b {
  padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: linear-gradient(100deg, var(--brand), #6a4cf0);
}

/* ---------- Cadre des captures ---------- */
.shot {
  position: relative; margin: 0;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: linear-gradient(#fbfbfd, #f3f4f8); border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dce5; }
.shot-bar span {
  margin-left: 12px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: #eceef4;
  font-size: .7rem; line-height: 20px; color: #8a91a3; padding-left: 10px; overflow: hidden; white-space: nowrap;
}
.shot img { width: 100%; }
.shot-caption { margin-top: 14px; font-size: .84rem; color: var(--muted); text-align: center; }
.shot-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; min-height: 36px;
  font: 600 .82rem/1 var(--font-body); color: var(--ink);
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.shot-zoom svg { width: 15px; height: 15px; }

/* Hero : capture principale en perspective + fragments réels */
.hero-visual {
  position: relative; margin-top: clamp(48px, 6vw, 72px);
  perspective: 2000px;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
}
.hero-main {
  max-width: 1040px; margin-inline: auto;
  transform: rotateX(10deg) scale(.98);
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease);
}
.hero-main.is-flat { transform: rotateX(0) scale(1); }
.float-card {
  position: absolute; z-index: 4;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.float-card .crop {
  display: block; overflow: hidden; position: relative;
}
.float-card .crop img { position: absolute; max-width: none; }
.float-card figcaption {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.dot--ok { background: #22c55e; box-shadow: 0 0 0 4px var(--ok-soft); }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2s infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(226, 88, 12, .08); } }
}
/* Fragment Négo-live : chronomètre (image 810×901) */
.float-timer { left: max(0px, calc(50% - 620px)); top: 18%; width: 240px; }
.float-timer .crop { height: 76px; }
.float-timer .crop img { width: 810px; left: -76px; top: -144px; transform: scale(.98); transform-origin: 0 0; }
/* Fragment Benchmark : classement (image 859×847) */
.float-rank { right: max(0px, calc(50% - 640px)); top: 40%; width: 300px; }
.float-rank .crop { height: 150px; }
.float-rank .crop img { width: 620px; left: -26px; top: -405px; }
@media (max-width: 1100px) {
  .float-timer { left: 8px; top: 6%; width: 200px; }
  .float-timer .crop { height: 64px; }
  .float-timer .crop img { width: 680px; left: -64px; top: -121px; }
  .float-rank { right: 8px; top: auto; bottom: 22%; width: 250px; }
  .float-rank .crop { height: 126px; }
  .float-rank .crop img { width: 520px; left: -22px; top: -340px; }
}
@media (max-width: 720px) {
  .float-rank { display: none; }
  .float-timer { left: 50%; translate: -50% 0; top: auto; bottom: 10px; }
  .hero-main { transform: none; }
}

/* ---------- Cartes génériques ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: clamp(22px, 2.4vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 13px; color: var(--brand); background: var(--brand-soft);
}
.ico svg { width: 23px; height: 23px; }
.ico--live { color: var(--live); background: var(--live-soft); }
.ico--ok { color: var(--ok); background: var(--ok-soft); }
.ico--violet { color: #6d3fd9; background: #f3edff; }

/* Problèmes : liste « avant » */
.pain {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
}
.pain .num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 .9rem/1 var(--font-display); color: var(--live); background: var(--live-soft);
}
.pain h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pain p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Bénéfices : bande */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: hidden;
}
.benefit { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit h3 { font-size: 1.12rem; }
.benefit p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 960px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-bottom: 0; }
}

/* ---------- Onglets « La solution » ---------- */
.tabs { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 10px; }
.tab {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: transparent; border: 1px solid transparent;
  font: inherit; color: inherit;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.tab:hover { background: #fff; }
.tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.tab-title { display: flex; align-items: center; gap: 12px; font: 700 1.1rem/1.2 var(--font-display); color: var(--ink); }
.tab-title .ico { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.tab-title .ico svg { width: 19px; height: 19px; }
.tab-desc { margin: 10px 0 0; color: var(--muted); font-size: .96rem; }
.tab[aria-selected="false"] .tab-desc { display: none; }
.tab-progress { height: 3px; margin-top: 14px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tab-progress i { display: block; height: 100%; width: 0; background: var(--brand); }
.tab[aria-selected="false"] .tab-progress { display: none; }
.tab-panel[hidden] { display: none; }
.tab-panel .shot { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel:not([hidden]) { animation: fadeUp .45s var(--ease); }
}
@media (max-width: 960px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; }
  .tab { flex: 0 0 auto; padding: 12px 16px; scroll-snap-align: start; }
  .tab-desc, .tab-progress { display: none !important; }
  .tab-title { font-size: 1rem; }
}
.panel-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.panel-note span { display: inline-flex; align-items: center; gap: 6px; }
.panel-note svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Différenciation (bande sombre) ---------- */
.statement {
  position: relative; overflow: hidden; isolation: isolate;
  color: #c9cfe3; background: var(--dark);
  border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 88px);
}
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(59, 67, 214, .55), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(226, 88, 12, .25), transparent 70%),
    radial-gradient(30% 40% at 80% 10%, rgba(56, 189, 248, .25), transparent 70%);
}
.statement .eyebrow { color: #a5b4fc; }
.statement blockquote { margin: 0; }
.statement blockquote p {
  font: 700 clamp(1.6rem, 3.6vw, 2.75rem)/1.18 var(--font-display);
  letter-spacing: -0.025em; color: #fff; max-width: 920px;
}
.statement blockquote p em { font-style: normal; color: #fdba74; }
.statement-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.statement-points h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.statement-points p { font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .statement-points { grid-template-columns: 1fr; } }

/* ---------- En pratique / secteurs ---------- */
.sector {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit;
  padding: 28px; min-height: 100%;
}
.sector:hover { color: inherit; }
.sector h3 { margin: 0; }
.sector ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.sector li { display: flex; gap: 10px; font-size: .96rem; color: var(--ink-2); }
.sector li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--brand); }
.sector .link-arrow { margin-top: auto; }
.tag {
  display: inline-block; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}

/* ---------- Ressources ---------- */
.post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.post:hover { color: inherit; }
.post .tag { margin-bottom: 4px; }
.post h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.post:hover h3 { color: var(--brand); }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  color: #e0e4ff;
  background: linear-gradient(135deg, #2b31b8 0%, #3b43d6 45%, #5b48e6 100%);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background:
    radial-gradient(40% 60% at 10% 100%, rgba(56, 189, 248, .45), transparent 70%),
    radial-gradient(35% 55% at 95% 0%, rgba(253, 186, 116, .35), transparent 70%);
}
.cta-final h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-final p { max-width: 600px; margin: 0 auto 30px; }
.cta-final .btn-row { justify-content: center; }
.cta-final .btn--ghost { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.4); box-shadow: none; }
.cta-final .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- Page Vue d'ensemble ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); }
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 700px; z-index: -1;
  background:
    radial-gradient(40% 50% at 80% 30%, rgba(59, 67, 214, .13), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, rgba(56, 189, 248, .14), transparent 70%);
}
.breadcrumb { margin-bottom: 24px; font-size: .88rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 860px; }
.page-hero .lead { max-width: 720px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse { grid-template-columns: 1.25fr 1fr; }
.split--reverse > .split-copy { order: 2; }
@media (max-width: 960px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > .split-copy { order: 0; }
}
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
.checks strong { color: var(--ink); font-weight: 600; }

.feature-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-700);
}
.feature-chip--live { background: var(--live-soft); color: #b2430a; }

/* Annotations sur capture */
.annotated { position: relative; }
.annot {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.annot b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: .72rem; color: #fff; background: var(--brand);
}
@media (max-width: 720px) { .annot { display: none; } }

.legend-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: lg; }
.legend-list li { counter-increment: lg; display: flex; gap: 12px; }
.legend-list li::before {
  content: counter(lg); flex-shrink: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font: 700 .78rem/1 var(--font-display); color: #fff; background: var(--brand);
}
.legend-list strong { display: block; color: var(--ink); font-size: .98rem; }
.legend-list span { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .legend-list { grid-template-columns: 1fr; } }

/* Parcours en 3 temps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: st; position: relative; }
.step { position: relative; padding: 0 24px 0 0; counter-increment: st; }
.step::before {
  content: "0" counter(st); display: block; margin-bottom: 16px;
  font: 800 .9rem/1 var(--font-display); letter-spacing: .06em; color: var(--brand);
}
.step::after {
  content: ""; position: absolute; top: 6px; left: 36px; right: 24px; height: 1px;
  background: linear-gradient(to right, var(--line-2), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .step::after { display: none; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 650 1.08rem/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line-2); font: 400 1.2rem/1 var(--font-body); color: var(--muted);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 720px; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: clamp(64px, 8vw, 112px); background: var(--dark); color: #9aa3ba; font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-block: 72px 48px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.site-footer h2 { font: 700 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c3c9da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 24px 32px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Visionneuse (zoom des captures) ---------- */
.lightbox {
  width: min(1200px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.lightbox::backdrop { background: rgba(11, 16, 32, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox-inner { max-height: 92vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.lightbox img { width: 100%; min-width: 760px; }
.lightbox-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1; box-shadow: var(--shadow-sm);
}
.lightbox-hint { display: none; padding: 10px 16px; font-size: .84rem; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .lightbox-hint { display: block; } }

/* ---------- Animations d'apparition (désactivées si réduction des animations) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: .08s; }
  .js .reveal-d2 { transition-delay: .16s; }
  .js .reveal-d3 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-main { transform: none; }
}

/* ---------- Mobile : cadrage zoomé des captures (lisibilité) ---------- */
.pill b { white-space: nowrap; }
.hero-main .shot-zoom { top: 44px; bottom: auto; }
@media (max-width: 960px) { .tab { width: auto; } }
@media (max-width: 720px) {
  .shot--crop picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
  .shot--crop picture img { width: 200%; max-width: none; transform: translate(var(--tx, 0%), var(--ty, 0%)); }
  .shot--crop .shot-zoom { background: var(--brand); color: #fff; border-color: transparent; }
  .shot--crop .shot-zoom::after { content: " la capture complète"; }
  .hero-main.shot--crop .shot-zoom { top: auto; bottom: 12px; right: 12px; }
  .float-timer { bottom: 64px; }
}
@media (max-width: 720px) {
  .float-timer { display: none; }
  .hero-visual::after { display: none; }
  .hero-visual { padding-bottom: 32px; }
  .hero .shot-caption { margin-top: 0 !important; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .float-timer { top: auto; bottom: 26%; }
}

/* ---------- v0.2 : ajustements après revue du 24/11/2026 ---------- */
:root { --muted: #4a5366; }                      /* contraste renforcé : 7,8:1 sur blanc */
/* 1. Haut de page rééquilibré */
.hero { padding-top: clamp(36px, 5vw, 72px); }
.hero .pill { margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-benefit { margin-bottom: 26px; }
.hero-visual { margin-top: clamp(36px, 4.5vw, 56px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero-main { max-width: 940px; }
@media (min-width: 721px) {
  .hero-main picture { display: block; max-height: 540px; overflow: hidden; }
}
.hero-visual::after { height: 38%; }
/* 2. Textes secondaires plus lisibles */
.benefit p, .card p, .pain p, .sector li, .post p, .statement-points p, .step p, .legend-list span { font-size: 1.02rem; line-height: 1.6; }
.benefit p, .card p, .pain p, .post p, .step p { color: var(--ink-2); }
.sector li { color: var(--ink); }
.post p { margin: 0; }
.post .link-arrow { margin-top: auto; padding-top: 6px; }
.post { min-height: 100%; }
.statement-points p { color: #d5daea; }
.tag { color: var(--ink-2); }
.shot-caption, .panel-note { color: var(--ink-2); }
.site-footer { color: #b4bbcd; }
.footer-bottom ul[aria-label="Langues"] a[aria-current] { color: #fff; font-weight: 600; }
/* Correctifs QA : visibilité immédiate à l'ouverture (focus clavier) */
.dropdown.is-open { transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
/* Menu mobile : apparition en fondu, sans élargir la page */
@media (max-width: 1040px) {
  .main-nav { transform: translateY(-8px); opacity: 0; transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s; }
  .main-nav.is-open { transform: none; opacity: 1; transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s; }
}
/* Hero : vignette et bouton hors des zones utiles de la capture */
@media (min-width: 1101px) { .float-timer { top: 52%; } .float-rank { top: 30%; } }
@media (min-width: 721px) {
  .hero-main .shot-zoom { top: 4px; right: 10px; min-height: 26px; padding: 4px 10px; font-size: .76rem; box-shadow: none; }
}
.site-footer { margin-top: clamp(32px, 4vw, 56px); }
.capture-mode .review-bar { display: none; }

/* ---------- v0.3 : zoom mobile réglable + vues de détail ---------- */
@media (max-width: 720px) {
  .shot--crop picture img { width: var(--zw, 200%); }
}
/* Vue de détail : recadrage d'une capture réelle, à toutes les tailles d'écran */
.detail { position: relative; margin: 0; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.detail .crop { display: block; aspect-ratio: var(--ar, 4 / 3); overflow: hidden; }
.detail .crop img { width: var(--zw, 200%); max-width: none; transform: translate(var(--tx, 0%), var(--ty, 0%)); }
.detail figcaption { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.feature .ico { flex-shrink: 0; margin: 0; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--bg-tint); border: 1px solid #dfe2fb; }
.callout h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 6px; }
.callout p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }
.related a { display: block; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.related small { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.related strong { display: block; font-weight: 600; line-height: 1.35; }
.legend-list--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .legend-list--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .legend-list--4 { grid-template-columns: 1fr; } }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 960px) { .split--even { grid-template-columns: 1fr; } }
/* Vues de détail : cadrage propre au mobile (texte à taille réelle) */
@media (max-width: 720px) {
  .detail .crop { aspect-ratio: var(--mar, var(--ar, 4 / 3)); }
  .detail .crop img { width: var(--mzw, var(--zw, 200%)); transform: translate(var(--mtx, var(--tx, 0%)), var(--mty, var(--ty, 0%))); }
}
/* Pastilles numérotées sur capture (renvoient à la légende) */
.annot--num { padding: 0; border: 0; background: none; box-shadow: none; transform: translate(-50%, -50%); }
.annot--num b { width: 28px; height: 28px; font-size: .8rem; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 6px 14px -4px rgba(59,67,214,.6); }

/* ---------- v0.4 : cas d'usage ---------- */
.sit-nav { display: grid; gap: 12px; }
.sit-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s var(--ease); }
.sit-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.sit-card .ico { margin: 0; }
.sit-card strong { display: block; font-weight: 650; font-size: 1.05rem; }
.sit-card span span { display: block; font-size: .9rem; color: var(--brand); }
.sit-tag { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; font-size: .84rem; color: var(--ink-2); background: var(--bg-soft); border: 1px dashed var(--line-2); }
.section--soft .sit-tag { background: #fff; }
.method-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; counter-reset: m; }
.method-list li { counter-increment: m; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.method-list li::before { content: counter(m); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 .8rem/1 var(--font-display); color: #fff; background: var(--brand); }
.method-list strong { color: var(--ink); }
.method-list span { color: var(--ink-2); font-size: 1.02rem; }
.sit-note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--bg-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.criteria { margin: 0; padding: clamp(20px, 2.4vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.criteria figcaption { margin-bottom: 18px; }
.criteria figcaption strong { display: block; font: 700 1.08rem/1.3 var(--font-display); color: var(--ink); }
.criteria figcaption span { font-size: .88rem; color: var(--muted); }
.criteria ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.criteria li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 8px; gap: 6px 12px; align-items: center; }
.crit-name { font-weight: 600; color: var(--ink); }
.crit-w { font: 700 .95rem/1 var(--font-display); color: var(--brand); }
.crit-bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--brand-soft); overflow: hidden; }
.crit-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), #6a4cf0); }
@media (max-width: 960px) { .criteria { position: static; } }
.sector-blocks { display: grid; gap: clamp(16px, 2vw, 24px); }
.sector-block { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
@media (max-width: 860px) { .sector-block { grid-template-columns: 1fr; } }
.sector-block-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 8px; }
.sector-block-head p { color: var(--ink-2); }
.sector-block-items { display: grid; gap: 12px; align-content: start; }
.sit-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--bg-soft); text-decoration: none; color: var(--ink); transition: background-color .2s; }
.sit-row:hover { background: var(--bg-tint); color: var(--ink); }
.sit-row .ico { margin: 0; width: 40px; height: 40px; }
.sit-row strong { display: block; font-weight: 650; }
.sit-row span span { display: block; font-size: .94rem; color: var(--ink-2); margin-top: 2px; }
.sit-row > svg { width: 18px; height: 18px; color: var(--brand); }
.crit-name { grid-column: 1; grid-row: 1; } .crit-w { grid-column: 2; grid-row: 1; } .crit-bar { grid-row: 2; }

/* ---------- v0.5 : page Demander une démo ---------- */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .demo-layout { grid-template-columns: 1fr; } }
.demo-card { padding: clamp(20px, 2.6vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.demo-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.demo-card-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 4px; }
.demo-card-head p { margin: 0; color: var(--ink-2); }
.agenda-frame { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--bg-soft); }
.agenda-frame iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; transition: height .2s ease; }
.agenda-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 32px; background: rgba(255,255,255,.97); }
.agenda-done[hidden] { display: none; }
.agenda-done h3 { font-size: 1.4rem; }
.agenda-done p { color: var(--ink-2); max-width: 420px; }
.agenda-alt { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); }
.demo-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--bg-tint); border: 1px solid #dfe2fb; }
@media (max-width: 960px) { .demo-aside { position: static; } }
.demo-aside h2 { font-size: 1.3rem; }
.demo-aside .checks { margin: 16px 0 24px; }
.demo-contact { padding-top: 18px; border-top: 1px solid #dfe2fb; }
.demo-contact p { margin: 0 0 4px; }
.form-card { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.field label span[aria-hidden] { color: var(--live); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 67, 214, .15); }
.field input[aria-invalid="true"] { border-color: #c2410c; box-shadow: 0 0 0 3px rgba(194, 65, 12, .12); }
.field-error { margin: 6px 0 0; font-size: .9rem; color: #b3400b; font-weight: 500; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin: 20px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.form-status { margin: 0; color: #b3400b; font-weight: 500; }
.form-done { display: flex; gap: 16px; align-items: flex-start; outline: none; }
.form-done[hidden] { display: none; }
.form-done .ico { margin: 0; flex-shrink: 0; }
.form-done h3 { font-size: 1.3rem; }
.form-done p { color: var(--ink-2); }
.proto-note { display: inline-block; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; font-size: .82rem; background: #fff7ed; color: #9a3412; border: 1px dashed #fdba74; }
/* Hauteur de l'agenda Charik mesurée le 24/11/2026 : ~1030 px (largeur ordinateur), ~900 px (mobile) */
.agenda-frame iframe { height: 1060px; }
@media (max-width: 620px) { .agenda-frame iframe { height: 930px; } }

/* ---------- v0.6 : gabarits de contenus (blog, article, lexique, alternatives) ---------- */
.blog-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.tag-link:hover { border-color: var(--brand); color: var(--brand); }
.tag-link.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-list { grid-template-columns: 1fr; } }
.post-card { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card-link { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px); color: inherit; text-decoration: none; width: 100%; }
.post-card-link:hover { color: inherit; }
.post-card h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.post-card:hover h2 { color: var(--brand); }
.post-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; color: var(--brand); }
.post-card-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.post-card--lead { grid-column: 1 / -1; background: linear-gradient(135deg, #fff 60%, var(--bg-tint)); }
.post-card--lead h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 820px; }
.post-card--lead p { max-width: 820px; font-size: 1.06rem; }
.pager { margin-top: 36px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }

/* Article */
.article-hero { padding-bottom: 8px; }
.article-head { max-width: 1080px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 900px; margin-top: 10px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(32px, 5vw, 56px); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 960px) { .article-aside { position: static; } }
.toc { padding: 20px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.toc h2, .side-card h2 { font: 700 .78rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .95rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.side-card { padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-links { display: grid; gap: 10px; }
.side-links a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--bg-tint); color: var(--ink); text-decoration: none; }
.side-links a:hover { background: var(--brand-soft); color: var(--ink); }
.side-links small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.side-links strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.side-list a { text-decoration: none; }
.side-list a:hover { text-decoration: underline; }
.article-foot { max-width: 1080px; }
.post-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav a { text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

/* Contenu éditorial (reprise du contenu WordPress existant, blocs Gutenberg compris) */
.prose { max-width: 720px; font-size: 1.09rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 0; padding: 16px 20px; border-left: 3px solid var(--brand); background: var(--bg-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 1.6em 0; }
.prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .97rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th, .prose tr:first-child td strong { color: var(--ink); }
.prose thead th { background: var(--bg-soft); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: #fafbfd; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--brand-600); color: #fff; }
.prose--term { font-size: 1.15rem; }
.back-link { margin: 28px 0 8px; }
.lex-entry .side-card { margin-top: 32px; }

/* Lexique */
.lex-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .lex-layout { grid-template-columns: 1fr; } }
.lex-tools { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
@media (max-width: 860px) { .lex-tools { position: sticky; top: var(--header-h); z-index: 5; padding: 12px 0; background: rgba(255,255,255,.96); } }
.lex-tools input { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; border: 1px solid var(--line-2); border-radius: 12px; }
.lex-tools input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 67, 214, .15); }
.lex-count { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.lex-letters { display: flex; flex-wrap: wrap; gap: 6px; }
.lex-letters a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); color: var(--ink); font-weight: 700; text-decoration: none; }
.lex-letters a:hover { background: var(--brand); color: #fff; }
@media (max-width: 860px) { .lex-letters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .lex-letters a { flex: 0 0 auto; } }
.lex-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.lex-section + .lex-section { margin-top: 36px; }
.lex-letter { font-size: 1.6rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.lex-list { margin: 0; }
.lex-list .lexicon-item { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .lex-list .lexicon-item { grid-template-columns: 1fr; } }
.lex-list dt { font-weight: 650; color: var(--ink); }
.lex-list dt a { color: var(--ink); text-decoration: none; }
.lex-list dt a:hover { color: var(--brand); text-decoration: underline; }
.lex-list dd { margin: 0; color: var(--ink-2); font-size: 1rem; }
.lexicon-item[hidden], .lex-section[hidden] { display: none; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.prose { min-width: 0; }
/* Correctifs : espacement des paragraphes du contenu, alignement de l'en-tête d'article */
.prose > * + *:not(h2):not(h3) { margin-top: 1.1em; }
.article-head, .article-foot { max-width: var(--container); }
