/* ==========================================
   accessexpo · Design System v2
   ========================================== */

/* ── Tokens ─────────────────────────────── */
:root {
  --brand-start: #7c3aed;
  --brand-end:   #4f46e5;
  --accent:      #06b6d4;
  --green:       #10b981;
  --yellow:      #f59e0b;
  --red:         #ef4444;

  --ink:    #0f0f23;
  --ink-2:  #1e1b4b;
  --body:   #374151;
  --muted:  #6b7280;
  --line:   #e5e7eb;
  --soft:   #f9fafb;
  --pale:   #f3f4f6;
  --white:  #ffffff;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 50px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
  --shadow-xl:  0 40px 100px rgba(0,0,0,.18);
  --shadow-brand: 0 2px 8px rgba(124,58,237,.06);

  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 48px;

  --easing: cubic-bezier(.22,.68,0,1.2);
  --trans:  0.24s var(--easing);
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { cursor: pointer; font: inherit; border: 0; background: none; }
.hidden { display: none !important; }

/* ── Gradient helpers ───────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Typography ─────────────────────────── */
h1,h2,h3,h4,h5 {
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.25rem); font-weight: 800; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  color: var(--brand-start);
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand-start);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Layout ─────────────────────────────── */
.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 130px);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124,58,237,.08); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--brand-start); color: var(--brand-start); }

.btn-ghost {
  color: var(--body);
  background: transparent;
}
.btn-ghost:hover { color: var(--brand-start); }

.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-lg { min-height: 60px; padding: 0 38px; font-size: 1.05rem; }

/* ── Header / Nav ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, padding-right 0.34s cubic-bezier(.4,0,.2,1);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  background: rgba(255,255,255,.99);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  border-radius: 12px;
  color: var(--white);
  font-size: .82rem;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 38px; height: 38px;
  object-fit: contain;
}

/* ── Logo image ── */
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  /* Sur fond blanc : multiply rend le fond noir transparent */
  mix-blend-mode: multiply;
}

.brand-logo-footer {
  height: 30px;
  /* Sur footer clair : multiply rend le fond noir transparent */
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  color: var(--body);
  transition: background .2s ease, color .2s ease;
}

.nav-link:hover, .nav-link.active {
  background: rgba(124,58,237,.08);
  color: var(--brand-start);
}

.nav-cta {
  margin-left: 12px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--trans);
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--white);
  padding-block: clamp(80px, 12vw, 150px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(124,58,237,.55) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 60%, rgba(6,182,212,.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 0%,  rgba(79,70,229,.3)  0%, transparent 60%);
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Vidéo arrière-plan hero */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg.hidden { display: none; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,35,.72) 0%, rgba(15,15,35,.55) 50%, rgba(15,15,35,.82) 100%),
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(124,58,237,.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 60%, rgba(6,182,212,.2) 0%, transparent 55%);
  pointer-events: none;
}

.hero.hero--has-video::before {
  opacity: 0.35;
}

.hero.hero--has-video .hero-mesh {
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.hero-eyebrow {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.hero-eyebrow::before { background: var(--accent); }

.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.06;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a78bfa, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .btn-outline {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}

/* ── Hero KPIs ── */
.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 44px;
  width: fit-content;
}

.hero-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 18px 24px;
  min-width: 148px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  transition: border-color var(--trans), background var(--trans);
}

.hero-kpi:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}

.hero-kpi strong {
  display: block;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  background: linear-gradient(135deg, #fff 60%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-kpi span {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.hero-inner--solo {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.hero-inner--solo .hero-sub {
  max-width: 640px;
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-video-iframe.hidden,
.hero-video.hidden {
  display: none !important;
}

/* Section téléchargement manuel */
.manual-download-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: clamp(36px, 5vw, 56px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
}

.manual-download-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(124,58,237,.1);
  border-radius: var(--r-lg);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .manual-download-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.manual-download-text {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 16px 0 24px;
  max-width: 560px;
  line-height: 1.7;
}

.manual-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Page manuel */
.manual-hero {
  background: var(--ink-2);
  padding-block: clamp(88px, 11vw, 140px);
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.manual-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(124,58,237,.5), transparent),
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(6,182,212,.3), transparent);
  pointer-events: none;
}

.manual-hero > .container { position: relative; z-index: 1; }

.manual-hero-eyebrow {
  display: inline-flex;
  margin-inline: auto;
  margin-bottom: 20px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}

.manual-hero h1 {
  color: white;
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.manual-hero-sub {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
  max-width: 760px;
  margin: 18px auto 0;
}

.manual-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.manual-hero-pdf-btn {
  border-color: rgba(255,255,255,.35);
  color: white;
  background: rgba(255,255,255,.08);
}

.manual-hero-pdf-btn:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.55);
  color: white;
}

.manual-hero-cta-btn {
  background: rgba(255,255,255,.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,.3);
}

.manual-hero-cta-btn:hover {
  background: rgba(255,255,255,.24);
  color: white;
}

.manual-body-section {
  background: var(--soft);
  padding-block: clamp(48px, 6vw, 72px);
}

.manual-layout {
  max-width: 920px;
  margin-inline: auto;
}

.manual-content-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.manual-accordion {
  display: grid;
  gap: 12px;
}

.manual-accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 110px;
}

.manual-accordion-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.12rem);
  text-align: left;
  line-height: 1.4;
  transition: background .2s ease, color .2s ease;
}

.manual-accordion-q:hover {
  background: var(--soft);
}

.manual-accordion-item.open .manual-accordion-q {
  color: var(--brand-start);
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(79,70,229,.03));
}

.manual-accordion-q-text {
  flex: 1;
  min-width: 0;
}

.manual-accordion-arrow {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s ease, color .2s ease;
}

.manual-accordion-item.open .manual-accordion-arrow {
  transform: rotate(45deg);
  color: var(--brand-start);
}

.manual-accordion-a {
  display: none;
  padding: 0 24px 28px;
  border-top: 1px solid var(--line);
}

.manual-accordion-item.open .manual-accordion-a {
  display: block;
}

.manual-block-content {
  padding-top: 20px;
}

.manual-heading2 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--ink); }
.manual-heading2:first-child { margin-top: 0; }
.manual-heading3 { font-size: 1.05rem; margin: 20px 0 10px; color: var(--ink); }
.manual-figure { margin: 20px 0; }
.manual-figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }
.manual-video video { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); background: #000; }
.manual-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); }
.manual-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.manual-video figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.manual-inline-link { color: var(--brand-start); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.manual-empty-public { color: var(--muted); font-style: italic; padding: 24px 0; }

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link--active {
  color: var(--brand-start);
  font-weight: 700;
}

/* Admin manuel blocs */
.manual-editor-shell { max-width: none; }
.manual-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.manual-editor-main { min-width: 0; }
.manual-editor-outline {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 140px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.manual-outline-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124,58,237,.04), transparent);
}
.manual-outline-title { font-size: .95rem; font-weight: 800; margin-bottom: 4px; }
.manual-outline-desc { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.manual-outline-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.manual-outline-empty { color: var(--muted); font-size: .85rem; padding: 12px 8px; }
.manual-outline-block { margin-bottom: 8px; }
.manual-outline-items { list-style: none; margin: 4px 0 0; padding: 0 0 0 8px; border-left: 2px solid rgba(124,58,237,.12); }
.manual-outline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.35;
  transition: background .15s ease, box-shadow .15s ease;
}
.manual-outline-row:hover { background: var(--soft); }
.manual-outline-row--active { background: rgba(124,58,237,.1); color: var(--brand-start); font-weight: 700; }
.manual-outline-row--block { font-weight: 700; }
.manual-outline-row--item { color: var(--body); }
.manual-outline-row--dragging { opacity: .45; }
.manual-outline-row--drop-target { box-shadow: inset 0 0 0 2px var(--brand-start); background: rgba(124,58,237,.06); }
.manual-outline-grip { color: var(--muted); cursor: grab; font-size: .9rem; flex-shrink: 0; user-select: none; }
.manual-outline-icon { width: 22px; text-align: center; flex-shrink: 0; font-size: .75rem; font-weight: 800; }
.manual-outline-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.manual-insert-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  position: relative;
}
.manual-insert-picker {
  width: 100%;
  max-width: 520px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.manual-insert-picker-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.manual-insert-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.manual-insert-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
  font-size: .78rem;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.manual-insert-picker-btn:hover {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.35);
  color: var(--brand-start);
}
.manual-insert-picker-icon {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--brand-start);
}
.manual-item-card--new {
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.45);
}
.manual-item-fields .manual-media-fields .hint {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--muted);
}
.manual-item-preview-wrap { margin-top: 10px; }
.manual-item-preview-wrap.hidden { display: none; }

@media (max-width: 720px) {
  .manual-insert-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.manual-block-insert-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
  position: relative;
}
.manual-block-insert-zone::before,
.manual-block-insert-zone::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.25), transparent);
}
.manual-block-insert-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.manual-insert-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px dashed rgba(124,58,237,.45);
  background: rgba(124,58,237,.06);
  color: var(--brand-start);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.manual-insert-btn:hover {
  background: rgba(124,58,237,.14);
  border-color: var(--brand-start);
  transform: scale(1.06);
}
.manual-insert-menu {
  position: absolute;
  z-index: 1200;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
}
.manual-insert-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  font-size: .86rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}
.manual-insert-menu-item:hover { background: rgba(124,58,237,.08); color: var(--brand-start); }
.manual-insert-menu-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(124,58,237,.08);
  font-size: .72rem;
  font-weight: 800;
}
.manual-blocks-list { display: grid; gap: 8px; margin-bottom: 20px; }
.manual-block-card { border: 1px solid var(--line); }
.manual-block-card--active { border-color: rgba(124,58,237,.35); box-shadow: 0 0 0 3px rgba(124,58,237,.08); }
.manual-block-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.manual-block-toggle { display: flex; gap: 10px; background: none; border: none; padding: 0; cursor: pointer; text-align: left; flex: 1; }
.manual-block-toggle-icon { color: var(--brand-start); font-weight: 800; }
.manual-items-list { display: grid; gap: 0; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 8px; }
.manual-item-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: rgba(124,58,237,.02); margin: 6px 0; }
.manual-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.manual-item-head .manual-item-remove { margin-left: auto; }
.manual-item-drag { color: var(--muted); cursor: grab; font-size: 1rem; user-select: none; flex-shrink: 0; }
.manual-item-type { font-size: .78rem; font-weight: 800; text-transform: uppercase; color: var(--brand-start); }
.manual-item-preview--video { max-height: 160px; max-width: 100%; border-radius: var(--r-md); margin-top: 8px; }
.manual-empty-hint { color: var(--muted); font-size: .9rem; padding: 8px 0; }
.manual-empty-page { text-align: center; padding: 32px; border: 1px dashed var(--line); border-radius: var(--r-lg); }

@media (max-width: 1100px) {
  .manual-editor-layout { grid-template-columns: 1fr; }
  .manual-editor-outline {
    position: static;
    max-height: 320px;
    order: -1;
  }
}

/* Mock dashboard (legacy) */
.hero-visual {
  position: relative;
}

.hero-custom-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 120px rgba(0,0,0,.4);
  display: block;
}

.hero-custom-img.hidden { display: none; }

.mock-window {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(0,0,0,.4);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.mock-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.mock-dot-r { background: #ef4444; }
.mock-dot-y { background: #f59e0b; }
.mock-dot-g { background: #10b981; }

.mock-url {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  margin-left: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}

.mock-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mock-card {
  padding: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
}

.mock-card-sm { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.mock-card-num { font-size: 2.1rem; font-weight: 800; color: white; line-height: 1; }
.mock-card-sub { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 6px; }

.mock-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.mock-live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.mock-live-text { font-size: .75rem; color: var(--green); font-weight: 700; }

.mock-badge-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.5), rgba(6,182,212,.3));
  border-color: rgba(124,58,237,.4);
}

.mock-qr {
  width: 64px; height: 64px;
  background: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: .65rem;
  font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
}

.mock-bar-chart {
  grid-column: 1 / -1;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
}

.mock-chart-label { font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: 12px; }

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.mock-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(124,58,237,.4);
  transition: all .3s ease;
}

.mock-bar:hover { background: rgba(124,58,237,.8); }
.mock-bar.active { background: linear-gradient(180deg, var(--accent), var(--brand-start)); }

/* ── Social proof & certificats (fond blanc) ─ */
.social-proof,
.certificates-section {
  padding-block: 52px;
  background: var(--white);
}

.social-proof {
  border-bottom: 1px solid var(--line);
}

.logos-section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
}

.logos-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.logos-section-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.logos-section-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}

/* legacy aliases */
.social-proof-head { display: flex; align-items: center; gap: 20px; margin-bottom: 44px; }
.social-proof-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.social-proof-label { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.social-proof-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; }

.sp-logo-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: auto;
  min-height: auto;
  transition: transform .22s ease, opacity .22s ease;
}

.sp-logo-img-wrap.hidden { display: none; }

.sp-logo-img-wrap:hover {
  transform: translateY(-2px);
}

.sp-logo-img {
  max-height: 56px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}

.sp-logo-img-wrap:hover .sp-logo-img { opacity: 1; }

.cert-img {
  max-height: 72px;
  max-width: 160px;
}

/* Visuels sections feature — images maquette uniquement (.feature-visual-img) */
.feature-visual-wrap.visual-frame {
  overflow: hidden;
}

.feature-split:has(.feature-visual-wrap--custom-media) {
  align-items: stretch;
}

.feature-visual-img {
  object-fit: contain;
  object-position: center;
}

.visual-frame .feature-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  z-index: 2;
  box-shadow: none;
}

/* Image / vidéo uploadée : hauteur alignée sur le contenu, sans cadre bleu */
.feature-visual-wrap.visual-frame.feature-visual-wrap--custom-media {
  background: transparent;
  padding: 0;
  box-shadow: none;
  min-height: 320px;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.feature-visual-wrap.visual-frame.feature-visual-wrap--custom-media::before {
  display: none;
}

.feature-visual-wrap--custom-media .feature-visual-img {
  position: static;
  inset: auto;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: var(--r-xl);
}

.feature-visual-wrap--custom-media .feature-visual-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual-wrap--custom-media .feature-visual-vid,
.feature-visual-wrap--custom-media .feature-visual-yt {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: var(--r-xl);
}

@media (max-width: 1080px) {
  .feature-visual-wrap.visual-frame.feature-visual-wrap--custom-media {
    min-height: 0;
    height: auto;
    display: block;
  }

  .feature-visual-wrap--custom-media .feature-visual-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: block;
  }

  .feature-visual-wrap--custom-media .feature-visual-vid {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
  }

  .feature-visual-wrap--custom-media .feature-visual-yt {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .feature-visual-wrap.visual-frame.feature-visual-wrap--custom-media {
    width: calc(100% - 24px);
    max-width: none;
    margin-inline: auto;
    border-radius: var(--r-xl);
    overflow: hidden;
  }

  .feature-visual-wrap--custom-media .feature-visual-media {
    border-radius: var(--r-xl);
    overflow: hidden;
  }

  .feature-visual-wrap--custom-media .feature-visual-vid,
  .feature-visual-wrap--custom-media .feature-visual-yt {
    border-radius: var(--r-xl);
  }
}

.feature-visual-wrap:not(.visual-frame) .feature-visual-img {
  width: 100%;
  max-height: 480px;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(0,0,0,.25);
}

.feature-visual-img.hidden { display: none !important; }

.cms-upload-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cms-clear-upload {
  color: var(--red);
}

.cms-clear-upload:hover {
  color: var(--red);
  background: rgba(239,68,68,.08);
}

.feature-visual-wrap {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-visual-media {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
}

.feature-visual-media.hidden { display: none !important; }

.feature-visual-vid,
.feature-visual-yt {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.feature-visual-vid.hidden,
.feature-visual-yt.hidden { display: none !important; }

.feature-visual-mock {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  width: 100%;
}

.feature-visual-mock.hidden { display: none !important; }

.feature-mock-icon {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 20px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.feature-mock-title {
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-mock-sub {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}

.feature-mock-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.feature-mock-tags span {
  padding: 10px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
}

.feature-visual-mock--grid { text-align: left; padding: 10px; }

/* legacy sp-logo — conservé pour compatibilité */
.sp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
  cursor: default;
}

.sp-logo:hover {
  background: rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.4);
  transform: translateY(-3px);
}

.sp-logo-inner {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(6,182,212,.2));
  border: 1px solid rgba(124,58,237,.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: rgba(255,255,255,.8);
}

.sp-logo span {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── Feature split ──────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.feature-pill:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pill-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pill-icon.violet { background: rgba(124,58,237,.12); }
.pill-icon.cyan   { background: rgba(6,182,212,.12); }
.pill-icon.green  { background: rgba(16,185,129,.12); }
.pill-icon.yellow { background: rgba(245,158,11,.12); }

.pill-icon.has-icon-img { font-size: 0; padding: 8px; }

.benefit-icon.has-icon-img { font-size: 0; padding: 10px; }

.feature-mock-icon.has-icon-img { font-size: 0; padding: 16px; }

.cms-icon-img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}

.feature-mock-icon .cms-icon-img {
  width: 72%;
  height: 72%;
}

.cms-icon-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pill-body h4 { margin-bottom: 4px; color: var(--ink); }
.pill-body p  { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ── Visual frame (dark mockup panel) ───── */
.visual-frame {
  background: var(--ink-2);
  border-radius: var(--r-2xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.visual-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,58,237,.4), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(6,182,212,.3), transparent);
  pointer-events: none;
}

/* ── Steps ──────────────────────────────── */
.steps-section { background: var(--soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.step-card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.step-card:hover {
  border-color: rgba(124,58,237,.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-num {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: white;
  font-weight: 900;
  font-size: 1.15rem;
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}

.step-card h3 { margin-bottom: 12px; }
.step-card p  { color: var(--muted); font-size: .92rem; }

.step-connector { display: none; }

/* ── Benefits grid ──────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.benefit-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.benefit-card:hover {
  border-color: rgba(124,58,237,.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.benefit-card h3 { font-size: 0.95rem; margin-bottom: 10px; color: var(--ink); }
.benefit-card p  { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ── Pricing ─────────────────────────────── */
.pricing-section { background: var(--ink-2); color: white; }

.pricing-section h2 { color: white; }
.pricing-section .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.pricing-section .eyebrow::before { background: var(--accent); }
.pricing-section > .container > p { color: rgba(255,255,255,.68); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.price-card {
  padding: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-2xl);
  transition: var(--trans);
  position: relative;
}

.price-card:hover { transform: translateY(-6px); border-color: rgba(124,58,237,.5); }

.price-card.featured {
  background: linear-gradient(145deg, rgba(124,58,237,.3), rgba(79,70,229,.2));
  border-color: rgba(124,58,237,.6);
  box-shadow: 0 30px 80px rgba(124,58,237,.3);
}

.popular-badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  color: white;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
}

.price-plan { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.price-amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: white;
  margin-bottom: 4px;
}
.price-amount sup { font-size: 1.6rem; vertical-align: top; margin-top: 10px; }
.price-ht { color: rgba(255,255,255,.5); font-size: .88rem; }
.price-desc { color: rgba(255,255,255,.65); font-size: .9rem; margin: 16px 0 24px; }

.price-features { display: grid; gap: 12px; margin-bottom: 32px; }

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.8);
  font-size: .92rem;
}

.check-icon {
  width: 20px; height: 20px;
  background: rgba(16,185,129,.2);
  border: 1px solid rgba(16,185,129,.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .65rem;
  color: var(--green);
  margin-top: 2px;
}

.price-card .btn-primary { width: 100%; justify-content: center; }
.price-card .btn-outline  {
  width: 100%; justify-content: center;
  color: white;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}
.price-card .btn-outline:hover {
  background: rgba(255,255,255,.16);
  color: white;
}

/* ── Testimonial / CTA band ─────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  padding-block: clamp(64px, 8vw, 100px);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.12), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,.12), transparent 50%);
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,.8); max-width: 640px; margin-inline: auto; margin-bottom: 36px; font-size: 1.08rem; }
.cta-band .btn-outline { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.22); color: white; border-color: rgba(255,255,255,.5); }

/* ── Articles / Blog ─────────────────────── */
.articles-hero {
  padding-block: clamp(56px, 8vw, 100px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: rgba(124,58,237,.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.article-cover {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.article-cover-cat {
  padding: 5px 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(8px);
}

.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 12px; color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
.article-body h3 { font-size: 0.98rem; margin-bottom: 10px; color: var(--ink); }
.article-body p  { color: var(--muted); font-size: .9rem; line-height: 1.6; flex: 1; }

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-read-more {
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand-start);
}

/* ── Article single ─────────────────────── */
.article-page {
  background: var(--soft);
}

.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;
}

.article-view-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: .88rem;
  transition: color var(--trans), gap var(--trans);
}

.article-back-link:hover {
  color: var(--brand-start);
  gap: 14px;
}

.article-back-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-start);
  font-size: 1rem;
  line-height: 1;
}

.article-view-hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
  padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px);
}

.article-view-hero-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.article-view-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: .95rem;
  padding: 48px 0;
}

.article-view-error {
  padding: clamp(48px, 8vw, 80px) 0;
}

.article-view-error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 420px;
  margin-inline: auto;
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.article-view-error-card h2 {
  color: var(--ink);
}

.article-view-error-card p {
  color: var(--muted);
}

.article-view-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--brand-start);
  border-radius: 50%;
  animation: articleSpin .7s linear infinite;
}

@keyframes articleSpin {
  to { transform: rotate(360deg); }
}

.article-view-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.article-view-cat {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(124,58,237,.1);
  color: var(--brand-start);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.article-view-date {
  color: var(--muted);
  font-size: .88rem;
}

.article-view-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.article-view-excerpt {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.article-view-cover-section {
  margin-top: clamp(8px, 2vw, 20px);
  padding-bottom: 0;
}

.article-view-cover {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  height: clamp(240px, 42vw, 460px);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(6,182,212,.12));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.article-view-cover.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-view-body-section {
  padding-block: clamp(36px, 5vw, 56px) clamp(48px, 6vw, 72px);
}

.article-view-body-card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}

.article-view-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-view-cta {
  margin-top: 0;
}

.article-header {
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(48px, 6vw, 90px) 24px 0;
}

.article-content {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 1.06rem;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.5rem);
  margin: 2.4em 0 .75em;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding-top: .5em;
  border-top: 1px solid var(--line);
}

.article-content h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.article-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  margin: 1.8em 0 .6em;
  color: var(--ink);
}

.article-content p {
  color: var(--body);
  line-height: 1.88;
  margin-bottom: 1.25em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35em;
  margin-bottom: 1.25em;
  display: grid;
  gap: .55em;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { color: var(--body); line-height: 1.75; }

.article-content a {
  color: var(--brand-start);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(124,58,237,.35);
  transition: color var(--trans), text-decoration-color var(--trans);
}

.article-content a:hover {
  color: var(--brand-end);
  text-decoration-color: var(--brand-end);
}

.article-content strong {
  color: var(--ink);
  font-weight: 700;
}

.article-content blockquote {
  margin: 1.75em 0;
  padding: 1.25em 1.5em;
  border-left: 4px solid var(--brand-start);
  background: rgba(124,58,237,.06);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink);
  font-size: 1.02em;
  line-height: 1.7;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.article-cover-large {
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  border-radius: var(--r-xl);
  margin: 36px 0;
}

@media (max-width: 640px) {
  .article-view-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .article-view-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .article-view-body-card {
    padding: 24px 20px;
    border-radius: var(--r-xl);
  }

  .article-view-cover {
    border-radius: var(--r-xl);
    height: clamp(200px, 52vw, 280px);
  }
}

/* ── Contact ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info-card {
  padding: 36px;
  background: var(--ink-2);
  border-radius: var(--r-2xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(124,58,237,.6), transparent),
    radial-gradient(ellipse 50% 50% at 20% 100%, rgba(6,182,212,.4), transparent);
}

.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h3 { color: white; margin-bottom: 16px; }
.contact-info-card p  { color: rgba(255,255,255,.7); font-size: .95rem; }

.contact-info-list { display: grid; gap: 16px; margin-top: 32px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}

.contact-info-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form-card {
  padding: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
}

/* ── Forms ───────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}

input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-start);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
  background: var(--white);
}

textarea { min-height: 130px; resize: vertical; }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }

.form-message { margin-top: 14px; font-weight: 700; font-size: .92rem; }
.form-message.success { color: var(--green); }
.form-message.error   { color: var(--red); }

/* ── Dashboard (login + admin) ───────────── */
.admin-page {
  min-height: 100vh;
  background: #eef0f4;
}

.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(15,15,35,.04);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  width: min(1400px, calc(100% - 32px));
  margin-inline: auto;
}

.admin-brand { gap: 12px; }
.admin-brand-label {
  font-weight: 600;
  color: var(--muted);
  font-size: .88rem;
}

.admin-header-actions { display: flex; gap: 10px; align-items: center; }

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 64px);
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  gap: 0;
}

.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.admin-sidebar-head {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-title {
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.admin-sidebar-sub {
  font-size: .82rem;
  color: var(--muted);
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-group-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 14px 6px;
  margin: 0;
}

.admin-nav-group-label--accent {
  color: var(--accent);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}

.admin-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .86rem;
  color: var(--body);
  transition: background .15s ease, color .15s ease;
  line-height: 1.35;
}

.admin-nav-item:hover {
  background: var(--soft);
  color: var(--ink);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(79,70,229,.08));
  color: var(--brand-start);
  box-shadow: inset 3px 0 0 var(--brand-start);
}

.admin-nav-item--accent.active {
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(124,58,237,.08));
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-sidebar-foot {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.admin-reset-btn {
  width: 100%;
  justify-content: center;
  border-color: rgba(239,68,68,.35);
  color: var(--red);
}

.admin-main {
  padding: 28px 32px 80px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
}

.admin-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.admin-page-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.admin-page-desc {
  color: var(--muted);
  font-size: .95rem;
  max-width: 560px;
}

.admin-main-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.login-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: min(440px, 100%);
  padding: clamp(32px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
}

.login-card h1 { font-size: 1.35rem; margin-bottom: 8px; }
.login-card > p { color: var(--muted); margin-bottom: 0; }
.login-form { margin-top: 28px; display: grid; gap: 18px; }
.login-submit { width: 100%; justify-content: center; margin-top: 8px; }
.login-hint {
  color: var(--muted);
  font-size: .83rem;
  margin-top: 4px;
  padding: 14px;
  background: var(--soft);
  border-radius: var(--r-md);
}

.login-card--wide { max-width: 720px; }
.login-back { margin-top: 8px; justify-self: start; }

.mfa-setup-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .mfa-setup-grid { grid-template-columns: 220px 1fr; align-items: start; }
}

.mfa-qr-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.mfa-steps {
  margin: 0 0 16px 1.1rem;
  color: var(--body);
  font-size: .92rem;
  line-height: 1.6;
}

.mfa-manual-key {
  font-size: .78rem;
  word-break: break-all;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  color: var(--muted);
}

.mfa-recovery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}

.mfa-recovery-list code {
  display: block;
  padding: 8px 10px;
  background: var(--soft);
  border-radius: var(--r-sm);
  font-size: .85rem;
  text-align: center;
}

.admin-panel {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.admin-panel > h2 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  display: none;
}

.admin-panel > p:first-of-type {
  display: none;
}

.admin-panel-icon {
  display: none;
}

.admin-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}

.admin-form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.admin-form-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-form-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-field-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-field-group--info .admin-field-group-head {
  border-bottom: none;
}

.admin-field-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.admin-field-group-title {
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.admin-field-group-desc {
  font-size: .82rem;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

.admin-field-group-desc code {
  font-size: .78rem;
  background: var(--pale);
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-field-group-body {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

.admin-field-group-body + .admin-field-group-body,
.admin-field-group-body + .blog-admin-subgroup {
  border-top: 1px dashed var(--line);
}

.blog-admin-subgroup-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.admin-form-grid .form-group { margin-bottom: 0; }
.admin-span-2 { grid-column: 1 / -1; }

.admin-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.admin-form-panel .admin-form-actions {
  margin-top: 8px;
}

.admin-field-group-body .form-group { margin-bottom: 0; }

.admin-form-card .cms-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.admin-form-card .cms-fields .form-group[style*="grid-column"] {
  grid-column: 1 / -1;
}

.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.blog-admin-card-head {
  align-items: center;
}

.blog-admin-card-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}

.blog-admin-check input {
  width: auto;
  min-height: unset;
}

.blog-admin-seo {
  border-top: 1px dashed var(--line);
}

.blog-admin-seo summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .86rem;
  color: var(--brand-start);
  padding: 14px 20px;
  list-style: none;
}

.blog-admin-seo summary::-webkit-details-marker { display: none; }

.blog-admin-seo[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.blog-cover-preview {
  display: block;
  max-height: 80px;
  margin-top: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.blog-cover-preview--sm { max-height: 56px; }

.preview-empty {
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
}

#tab-chat,
#tab-blog {
  animation: adminFadeIn .25s ease;
}

.admin-form-panel label,
.admin-form-card label,
.admin-field-group-body label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
}

.admin-form-panel input,
.admin-form-panel textarea,
.admin-form-panel select,
.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select,
.admin-field-group-body input,
.admin-field-group-body textarea,
.admin-field-group-body select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: .92rem;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-form-panel input:focus,
.admin-form-panel textarea:focus,
.admin-form-panel select:focus,
.admin-form-card input:focus,
.admin-form-card textarea:focus,
.admin-form-card select:focus,
.admin-field-group-body input:focus,
.admin-field-group-body textarea:focus,
.admin-field-group-body select:focus {
  outline: none;
  border-color: var(--brand-start);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.admin-form-panel textarea,
.admin-form-card textarea,
.admin-field-group-body textarea {
  min-height: 96px;
  resize: vertical;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* legacy tabs — unused */
.admin-tabs { display: none; }
.admin-tab { display: none; }

.admin-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 40px auto 100px;
}

.preview-wrap {
  margin-top: 12px;
  padding: 16px;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}

.hint {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 6px;
  line-height: 1.5;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.color-swatch {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}

.color-swatch input[type="color"] {
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  min-height: unset;
}

.admin-danger { display: none; }

@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px;
  }
  .admin-nav-item {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .admin-main {
    max-height: none;
    padding: 20px 16px 60px;
  }
  .admin-form-grid,
  .admin-form-card .cms-fields,
  .admin-field-group-body {
    grid-template-columns: 1fr;
  }
  .admin-span-2 { grid-column: 1; }
  .admin-nav-group-label {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 96px) 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-desc {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--muted);
  transition: var(--trans);
}

.social-icon:hover { background: var(--brand-start); border-color: var(--brand-start); color: white; }

.footer-col h5,
.site-footer .footer-grid > div > h5 {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-links { display: grid; gap: 12px; margin-top: 4px; }

.footer-link {
  color: var(--body);
  font-size: .9rem;
  transition: color .2s ease;
}

.footer-link:hover { color: var(--brand-start); }

/* ── Pages légales ───────────────────────── */
.legal-page { padding-block: clamp(48px, 6vw, 80px); }

.legal-page-inner { max-width: 760px; }

.legal-back {
  display: inline-block;
  color: var(--brand-start);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 28px;
}

.legal-page h1 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.legal-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--body);
}

.legal-content p { margin-bottom: 1.25em; }

.legal-content a {
  color: var(--brand-start);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content strong { color: var(--ink); }

.footer-bottom {
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}

/* ── Solution page ───────────────────────── */
.solution-hero {
  background: var(--ink-2);
  padding-block: clamp(80px, 10vw, 130px);
  color: white;
  position: relative;
  overflow: hidden;
}

.solution-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(124,58,237,.5), transparent),
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(6,182,212,.3), transparent);
}

.solution-hero > .container { position: relative; z-index: 1; }
.solution-hero h1 { color: white; text-align: center; max-width: 900px; margin-inline: auto; }
.solution-hero p  { color: rgba(255,255,255,.7); text-align: center; max-width: 680px; margin-inline: auto; margin-top: 18px; }

.features-list { display: grid; gap: clamp(56px, 7vw, 96px); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin-inline: auto; }
  .hero-kpis { width: 100%; justify-content: center; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-kpis {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-kpi {
    min-width: 0;
    width: 100%;
    padding: 16px 20px;
  }
}

@media (max-width: 600px) {
  .sp-logo-img-wrap { padding: 14px 20px; min-width: 100px; }
  .sp-logo-img { max-height: 40px; max-width: 140px; }
}

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step-connector { display: none; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 70px 0 0 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 28px 24px;
    gap: 8px;
    z-index: 99;
    border-top: 1px solid var(--line);
  }

  .main-nav.open .nav-link { font-size: 1.1rem; padding: 14px 18px; }
  .main-nav.open .nav-cta { display: flex; justify-content: center; margin-top: 16px; }
  .main-nav.open .btn { width: 100%; justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .admin-panel { padding: 22px; }
  .contact-form-card { padding: 24px; }
}

/* ── Performance mobile ─────────────────── */
@media (max-width: 768px) {
  html { scroll-behavior: auto; }

  .hero,
  .social-proof,
  .feature-split,
  .steps-section,
  .benefits-section,
  .pricing-section,
  .cta-band,
  .site-footer,
  .manual-chapter {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
  }

  .hero-kpi,
  .hero .btn-outline,
  .main-nav.open,
  .mock-window {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-kpi { background: rgba(255, 255, 255, 0.14); }
  .main-nav.open { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
