/* ============================================================
   LegalReply AI — Styles globaux (landing + application)
   Vanilla CSS · responsive · palette cabinet premium
   ============================================================ */

:root {
  --primary: #0c2239;
  --primary-mid: #153554;
  --primary-light: #2a5582;
  --accent: #9d7635;
  --accent-soft: rgba(157, 118, 53, 0.09);
  --bg-page: #f4f5f7;
  --bg-page-landing: #f4f5f7;
  --bg-card: #ffffff;
  --bg-result: #fafbfc;
  --text-main: #111827;
  --text-muted: #5c6370;
  --text-hint: #8c929e;
  --border: #e2e6ee;
  --border-strong: #cdd3df;
  --border-focus: #2a5582;
  --success: #0f766e;
  --error: #b91c1c;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 2px rgba(15, 39, 68, 0.045), 0 0 0 1px rgba(15, 39, 68, 0.04);
  --shadow-elevated: 0 8px 30px rgba(15, 39, 68, 0.07), 0 0 0 1px rgba(15, 39, 68, 0.04);
  --transition: 0.18s ease-out;
  --transition-btn: 0.18s ease-out;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --btn-focus-ring: 0 0 0 3px rgba(42, 85, 130, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-landing {
  background: var(--bg-page);
  padding-bottom: 3.75rem;
}

.landing-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 0 rgba(15, 39, 68, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.landing-sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary-mid);
  text-decoration: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    color var(--transition-btn),
    border-color var(--transition-btn);
}

.landing-sticky-cta a:hover {
  color: var(--primary);
  border-bottom-color: rgba(157, 118, 53, 0.65);
}

.landing-sticky-cta a:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--btn-focus-ring);
}

.hero-promise-line {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-mid);
  line-height: 1.5;
  margin: 0 0 1.125rem;
  max-width: 36rem;
  letter-spacing: -0.02em;
}

.pricing-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-trust li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.pricing-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--success);
  font-size: 0.72rem;
}

.page-landing main {
  flex: 1;
}

/* ========== Utilitaires ========== */
.hidden {
  display: none !important;
}

.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: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  padding: 2rem;
}

.card-elevated {
  box-shadow: var(--shadow-elevated);
  border-color: rgba(15, 39, 68, 0.06);
}

/* ============================================================
   LANDING — Navigation
   ============================================================ */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(15, 39, 68, 0.06);
}

.landing-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

/* Logo SVG — balance / cabinet (variantes selon contexte clair ou foncé) */
.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-svg {
  display: block;
  width: 32px;
  height: 32px;
}

.landing-logo .lr-logo-bg {
  fill: var(--primary-mid);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.landing-logo .lr-logo-stroke,
.landing-logo .lr-logo-pan {
  stroke: rgba(255, 255, 255, 0.95);
}

.landing-logo .lr-logo-pan {
  fill: rgba(255, 255, 255, 0.12);
}

.app-brand .lr-logo-bg {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.app-brand .lr-logo-stroke,
.app-brand .lr-logo-pan {
  stroke: rgba(255, 255, 255, 0.98);
}

.app-brand .lr-logo-pan {
  fill: rgba(255, 255, 255, 0.07);
}

.landing-footer-brand .brand-logo-svg {
  width: 28px;
  height: 28px;
}

.landing-footer-brand .lr-logo-bg {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.landing-footer-brand .lr-logo-stroke,
.landing-footer-brand .lr-logo-pan {
  stroke: rgba(255, 255, 255, 0.92);
}

.landing-footer-brand .lr-logo-pan {
  fill: rgba(255, 255, 255, 0.06);
}

.landing-footer-brand .landing-logo-text {
  color: #fff;
}

.landing-footer-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.landing-footer-brand-row > div .landing-logo-text {
  display: block;
  margin-bottom: 0.35rem;
}

.lr-logo-accent {
  fill: var(--accent);
}

.landing-logo-text strong {
  color: var(--accent);
  font-weight: 700;
}

.landing-nav-links {
  display: flex;
  gap: 1.75rem;
}

.landing-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.landing-nav-links a:hover {
  color: var(--primary);
}

.landing-nav-cta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-nav-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--primary-mid);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: transparent;
  box-shadow: none;
  transition:
    border-color var(--transition-btn),
    background var(--transition-btn),
    color var(--transition-btn);
}

.btn-nav-secondary:hover {
  border-color: var(--primary-mid);
  background: rgba(15, 39, 68, 0.03);
  color: var(--primary);
}

.btn-nav-secondary:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  background: var(--primary-mid);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 34, 57, 0.85);
  box-shadow: none;
  transition:
    background var(--transition-btn),
    border-color var(--transition-btn),
    color var(--transition-btn);
}

.btn-nav-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-nav-primary:active {
  opacity: 0.94;
}

.btn-nav-primary:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

/* CTA contact — même famille que secondaire, hiérarchie par ton de texte */
.btn-nav-human {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.375rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  transition:
    border-color var(--transition-btn),
    background var(--transition-btn),
    color var(--transition-btn);
  white-space: nowrap;
}

.btn-nav-human:hover {
  border-color: var(--border-strong);
  background: rgba(15, 39, 68, 0.025);
  color: var(--primary-mid);
}

.btn-nav-human:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.landing-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.landing-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-mid);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .landing-nav-toggle {
    display: flex;
  }

  .landing-nav-links,
  .landing-nav-cta {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 12px 24px rgba(15, 39, 68, 0.08);
  }

  .landing-nav-links.is-open,
  .landing-nav-cta.is-open {
    display: flex;
  }

  .landing-nav-inner {
    flex-wrap: wrap;
  }

  .landing-nav-links {
    order: 3;
    width: 100%;
  }

  .landing-nav-cta {
    width: 100%;
    align-items: stretch;
  }

  .landing-nav-cta .btn-nav-primary,
  .landing-nav-cta .btn-nav-secondary,
  .landing-nav-cta .btn-nav-human {
    text-align: center;
    justify-content: center;
    white-space: normal;
  }
}

/* ============================================================
   LANDING — Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 4.25rem 0 5.25rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 52% at 78% -8%, rgba(42, 85, 130, 0.07), transparent 58%),
    radial-gradient(ellipse 50% 42% at 8% 92%, rgba(15, 39, 68, 0.035), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-highlight {
  color: var(--primary-light);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: linear-gradient(transparent calc(100% - 3px), rgba(157, 118, 53, 0.22) 3px);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.8125rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  background: var(--primary-mid);
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 34, 57, 0.88);
  text-decoration: none;
  box-shadow: none;
  transition:
    background var(--transition-btn),
    border-color var(--transition-btn);
}

.btn-hero-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-hero-primary:active {
  opacity: 0.94;
}

.btn-hero-primary:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.8125rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--primary-mid);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: none;
  transition:
    border-color var(--transition-btn),
    background var(--transition-btn),
    color var(--transition-btn);
}

.btn-hero-outline:hover {
  border-color: var(--primary-mid);
  background: #fff;
  color: var(--primary);
}

.btn-hero-outline:active {
  opacity: 0.96;
}

.btn-hero-outline:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.btn-hero-human {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.875rem;
  padding: 0.8125rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: none;
  transition:
    border-color var(--transition-btn),
    background var(--transition-btn),
    color var(--transition-btn);
}

.btn-hero-human:hover {
  border-color: var(--border-strong);
  background: rgba(15, 39, 68, 0.025);
  color: var(--primary-mid);
}

.btn-hero-human:active {
  opacity: 0.96;
}

.btn-hero-human:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.hero-trust {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.hero-trust-icon {
  flex-shrink: 0;
}

.hero-visual {
  padding: 1.75rem;
}

.hero-preview-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hint);
  margin-bottom: 1rem;
}

.hero-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.hero-preview-row {
  padding: 0.65rem 0.85rem;
  background: var(--bg-result);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero-preview-row.muted {
  color: var(--text-muted);
  font-style: italic;
}

.hero-preview-output {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.06), rgba(184, 146, 60, 0.06));
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--primary-mid);
  line-height: 1.55;
}

.hero-preview-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
}

.hero-preview-link:hover {
  text-decoration: underline;
}

.hero-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.35rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 4rem;
  }
}

/* Sections landing */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-card);
  border-top: 1px solid rgba(15, 39, 68, 0.055);
  border-bottom: 1px solid rgba(15, 39, 68, 0.055);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.grid-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  color: var(--primary-mid);
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .grid-problems {
    grid-template-columns: 1fr;
  }
}

/* Landing — bande preuve / crédibilité */
.landing-proof {
  padding: 1.65rem 0 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid rgba(15, 39, 68, 0.055);
  border-bottom: 1px solid rgba(15, 39, 68, 0.055);
}

.landing-proof-inner {
  max-width: 960px;
}

.landing-proof-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
  align-items: stretch;
}

.landing-proof-item {
  position: relative;
  text-align: center;
  padding: 0 0.75rem;
}

@media (min-width: 721px) {
  .landing-proof-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    right: 0;
    width: 1px;
    background: rgba(226, 230, 239, 0.9);
  }
}

.landing-proof-text {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-mid);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.landing-proof-footnote {
  margin: 1.15rem auto 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(226, 230, 239, 0.95);
  max-width: 40rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-hint);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .landing-proof-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .landing-proof-item {
    padding: 0.65rem 0 0;
    border-top: 1px solid rgba(226, 230, 239, 0.85);
  }

  .landing-proof-item:first-child {
    padding-top: 0;
    border-top: none;
  }

  .landing-proof-footnote {
    padding-top: 0.85rem;
    margin-top: 0.5rem;
  }
}

/* Landing — bloc « Exemple réel » */
.landing-example-real {
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.03) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.landing-example-real .section-header {
  margin-bottom: 2.25rem;
}

.example-real-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 880px) {
  .example-real-flow {
    grid-template-columns: 1fr minmax(2.5rem, auto) 1fr;
    gap: 1rem 1.25rem;
    align-items: stretch;
  }

  .example-real-arrow {
    padding-top: 4.5rem;
  }
}

.example-real-card {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.example-real-card--reply {
  border-left: 3px solid var(--accent);
}

.example-real-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-mid);
  background: rgba(26, 58, 92, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
}

.example-real-badge--reply {
  color: #7a5f20;
  background: rgba(184, 146, 60, 0.14);
}

.example-real-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.example-real-quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-main);
}

.example-real-reply {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-main);
}

.example-real-reply p {
  margin: 0 0 0.75rem;
}

.example-real-reply p:last-of-type {
  margin-bottom: 0;
}

.example-real-reply-note {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem !important;
  color: var(--text-hint) !important;
  line-height: 1.5 !important;
}

.example-real-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

@media (min-width: 880px) {
  .example-real-arrow {
    min-height: auto;
    align-self: stretch;
  }
}

.example-real-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(184, 146, 60, 0.18);
  color: #7a5f20;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.example-real-cta {
  text-align: center;
  margin: 2rem 0 0;
}

.example-real-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
}

.example-real-link:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split-copy .section-title {
  text-align: left;
}

.split-copy .section-lead {
  margin-bottom: 1.25rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
}

.benefit-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--primary-mid);
}

.panel-steps {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.panel-note {
  font-size: 0.8125rem;
  color: var(--text-hint);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Landing — bloc émotion (avant fonctionnalités) */
.landing-emotion {
  padding: 3.5rem 0;
  background: linear-gradient(
    180deg,
    rgba(184, 146, 60, 0.07) 0%,
    rgba(240, 242, 246, 0.5) 55%,
    transparent 100%
  );
  border-top: 1px solid var(--border);
}

.landing-emotion-body {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.landing-emotion-body p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.35vw, 1.4rem);
  line-height: 1.58;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.landing-emotion-body p:last-child {
  margin-bottom: 0;
}

.landing-emotion-payoff {
  margin-top: 1.35rem !important;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(226, 230, 239, 0.95);
  color: var(--primary) !important;
  font-weight: 600;
}

.landing-emotion-br {
  display: none;
}

@media (min-width: 560px) {
  .landing-emotion-br {
    display: inline;
  }
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-features-flex {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.feature-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-mid);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .grid-features {
    grid-template-columns: 1fr;
  }
}

.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.testimonial-card footer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-card strong {
  display: block;
  color: var(--primary-mid);
  margin-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .grid-testimonials {
    grid-template-columns: 1fr;
  }
}

.grid-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.pricing-featured {
  border: 1px solid rgba(21, 53, 84, 0.28);
  background: var(--bg-card);
  box-shadow: var(--shadow-elevated);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-mid);
  background: rgba(157, 118, 53, 0.1);
  border: 1px solid rgba(157, 118, 53, 0.22);
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-sm);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.pricing-price {
  margin-bottom: 0.75rem;
}

.pricing-price .amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-mid);
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  padding-left: 1.35rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  text-align: center;
  padding: 0.6875rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--primary-mid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--bg-card);
  box-shadow: none;
  transition:
    border-color var(--transition-btn),
    background var(--transition-btn),
    color var(--transition-btn);
}

.btn-pricing:hover {
  border-color: var(--primary-mid);
  background: #fff;
  color: var(--primary);
}

.btn-pricing:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.btn-pricing-primary {
  background: var(--primary-mid);
  color: #fff;
  border-color: rgba(12, 34, 57, 0.88);
}

.btn-pricing-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-pricing-primary:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

@media (max-width: 640px) {
  .grid-pricing {
    grid-template-columns: 1fr;
  }
}

.cta-final {
  padding: 4rem 0 5rem;
}

.cta-final-inner {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.cta-final-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Footer landing */
.landing-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
}

.landing-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.landing-footer-brand p {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  max-width: 320px;
  line-height: 1.55;
  opacity: 0.85;
}

.landing-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.landing-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.landing-footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  opacity: 0.55;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-footer-links .nav-muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .landing-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   APPLICATION — En-tête & bandeau
   ============================================================ */
.app-header {
  background: var(--primary-mid);
  box-shadow: 0 2px 12px rgba(15, 39, 68, 0.15);
}

.app-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

.app-brand-text strong {
  color: var(--accent);
  font-weight: 700;
}

.app-header-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.app-header-link:hover {
  color: #fff;
}

button.app-header-link {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.confidential-banner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(184, 146, 60, 0.25);
}

.confidential-banner p {
  font-size: 0.8125rem;
  color: #5c4a20;
  line-height: 1.5;
  margin: 0;
}

.confidential-banner-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c4a20' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Bandeau confiance application */
.trust-strip {
  background: linear-gradient(90deg, rgba(26, 58, 92, 0.06), rgba(184, 146, 60, 0.08));
  border-bottom: 1px solid var(--border);
}

.trust-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.trust-strip-inner p {
  font-size: 0.8125rem;
  color: var(--primary-mid);
  line-height: 1.5;
  margin: 0;
}

.trust-strip-inner strong {
  font-weight: 700;
}

.trust-strip-sub {
  margin-top: 0.35rem !important;
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.field-row-2 .field-grow {
  flex: 1;
  min-width: 140px;
}

.input-select-inline {
  margin-bottom: 0;
}

.field-hint-tight {
  margin-top: -0.25rem !important;
  margin-bottom: 0.45rem !important;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary-mid);
  background: var(--bg-result);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.chip-btn:hover {
  background: rgba(26, 58, 92, 0.06);
  border-color: var(--primary-light);
}

.chip-btn:active {
  transform: scale(0.97);
}

.input-textarea-compact {
  min-height: 88px;
}

.toggle-length-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .toggle-length-3 {
    grid-template-columns: 1fr;
  }
}

.history-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.history-panel-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-hint);
  background: var(--bg-result);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.history-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.history-list li {
  margin: 0;
}

.history-item-btn {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-result);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  line-height: 1.35;
}

.history-item-btn:hover {
  border-color: var(--primary-light);
  background: #fff;
}

.history-item-btn time {
  display: block;
  font-size: 0.72rem;
  color: var(--text-hint);
  margin-bottom: 0.2rem;
}

.history-empty {
  font-size: 0.8125rem;
  color: var(--text-hint);
  margin: 0.5rem 0 0;
}

.history-empty.hidden {
  display: none;
}

.email-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.email-preview-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.email-preview-row-grow {
  flex: 1;
}

.email-preview-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hint);
}

.email-preview-subject {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-mid);
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

.email-preview-message {
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: min(480px, 55vh);
  overflow-y: auto;
  animation: fadeIn 0.35s ease;
}

.result-badge-case {
  background: rgba(184, 146, 60, 0.15);
  color: #7a5f20;
}

.disclaimer-strong {
  border-left-color: var(--primary-light);
  background: rgba(26, 58, 92, 0.06);
  color: var(--primary-mid);
}

.app-main {
  flex: 1;
  max-width: 1160px;
  margin: 2rem auto 2.5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.form-card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin-bottom: 0.4rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Champs formulaire app */
.field-group {
  margin-bottom: 1.35rem;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--error);
  margin-left: 2px;
}

.input-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--bg-card);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6578' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 0.55rem;
  font-family: inherit;
}

.input-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45, 90, 138, 0.12);
}

.input-text {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.input-text:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45, 90, 138, 0.12);
}

.input-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--bg-card);
  font-family: inherit;
  resize: vertical;
  min-height: 140px;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.6;
}

.input-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45, 90, 138, 0.12);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-hint);
  margin-top: 0.35rem;
}

.char-count-wrap {
  margin-top: 0.35rem;
}

.char-count-meter {
  height: 3px;
  background: rgba(226, 230, 239, 0.98);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.38rem;
}

.char-count-meter-fill {
  display: block;
  height: 100%;
  width: calc(var(--char-pct, 0) * 1%);
  max-width: 100%;
  background: linear-gradient(90deg, var(--primary-light), rgba(184, 146, 60, 0.95));
  border-radius: 999px;
  transition: width 0.22s ease, background 0.22s ease;
}

.char-count-wrap--warn .char-count-meter-fill {
  background: linear-gradient(90deg, #c05621, #d97706);
}

.char-count-wrap--near .char-count-meter-fill {
  background: linear-gradient(90deg, var(--error), #c05621);
}

.char-count-wrap--compact .char-count-meter {
  margin-bottom: 0.28rem;
}

.char-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-hint);
  margin-top: 0;
  transition: color 0.2s ease;
}

.char-count-max {
  font-variant-numeric: tabular-nums;
}

.char-count-wrap--warn .char-count {
  color: #b45309;
  font-weight: 600;
}

.char-count-wrap--near .char-count {
  color: var(--error);
}

@keyframes toggleLengthFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 146, 60, 0.35);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(184, 146, 60, 0);
  }
}

fieldset.toggle-length.toggle-length--flash {
  animation: toggleLengthFlash 0.48s ease-out 1;
  border-radius: var(--radius-md);
}

/* Toggle longueur */
.toggle-length {
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.toggle-length-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.toggle-option {
  cursor: pointer;
  display: block;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-option-ui {
  display: block;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.toggle-option-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-mid);
  margin-bottom: 0.2rem;
}

.toggle-option-desc {
  font-size: 0.75rem;
  color: var(--text-hint);
  line-height: 1.35;
}

.toggle-option input:focus + .toggle-option-ui {
  box-shadow: 0 0 0 3px rgba(45, 90, 138, 0.12);
}

.toggle-option input:checked + .toggle-option-ui {
  border-color: rgba(184, 146, 60, 0.65);
  background: linear-gradient(165deg, rgba(184, 146, 60, 0.14), rgba(26, 58, 92, 0.06));
  box-shadow:
    0 0 0 2px rgba(184, 146, 60, 0.22),
    inset 0 0 0 1px rgba(26, 58, 92, 0.06);
}

.toggle-option input:checked + .toggle-option-ui .toggle-option-title {
  color: var(--primary);
}

.toggle-option input:checked + .toggle-option-ui .toggle-option-desc {
  color: var(--text-muted);
}

.toggle-option:hover .toggle-option-ui {
  border-color: #c8ced9;
}

@media (max-width: 520px) {
  .toggle-length-inner {
    grid-template-columns: 1fr;
  }
}

/* Boutons app */
.btn-primary {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--primary-mid);
  color: #fff;
  border: 1px solid rgba(12, 34, 57, 0.88);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition-btn),
    border-color var(--transition-btn),
    opacity var(--transition-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
  font-family: inherit;
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:active:not(:disabled) {
  opacity: 0.94;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.btn-primary:disabled {
  background: #a0a7b5;
  border-color: transparent;
  cursor: not-allowed;
  opacity: 1;
}

.btn-primary.btn-generate-busy:disabled {
  background: var(--primary-mid);
  border-color: rgba(12, 34, 57, 0.88);
  cursor: wait;
  opacity: 1;
  animation: btnGenerateBusyPulse 1.15s ease-in-out infinite;
}

@keyframes btnGenerateBusyPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(42, 85, 130, 0.28);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(42, 85, 130, 0);
  }
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.95rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-copy-svg {
  flex-shrink: 0;
}

.btn-copy:hover {
  border-color: var(--primary-mid);
  color: var(--primary-mid);
  background: rgba(26, 58, 92, 0.05);
}

.btn-copy.copied {
  border-color: var(--success);
  color: var(--success);
  background: rgba(13, 148, 136, 0.07);
}

.btn-secondary {
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-mid);
  background: rgba(26, 58, 92, 0.04);
}

.btn-secondary-muted:hover {
  border-color: var(--text-hint);
  color: var(--text-main);
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

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

.error-msg {
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  background: rgba(197, 48, 48, 0.07);
  border: 1px solid rgba(197, 48, 48, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--error);
  line-height: 1.45;
}

/* Zone résultat */
.result-card {
  background: var(--bg-result);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.result-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.65rem;
}

.result-empty-graphic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(26, 58, 92, 0.08), rgba(184, 146, 60, 0.12));
  margin-bottom: 0.35rem;
}

.result-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.result-empty-sub {
  font-size: 0.85rem;
  color: var(--text-hint);
  max-width: 300px;
  line-height: 1.55;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(26, 58, 92, 0.1);
  color: var(--primary-mid);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-badge-soft {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.result-timestamp {
  font-size: 0.75rem;
  color: var(--text-hint);
  width: 100%;
  flex-basis: 100%;
  margin-top: -0.15rem;
}

.result-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  font-size: 0.915rem;
  line-height: 1.75;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1rem;
  animation: fadeIn 0.35s ease;
}

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

.disclaimer {
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: #5c4a20;
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* Friction douce sous le résultat (FOMO accès complet) */
.result-friction-strip {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: linear-gradient(90deg, rgba(184, 146, 60, 0.07), rgba(26, 58, 92, 0.04));
  border: 1px solid rgba(226, 230, 239, 0.95);
  border-left: 3px solid rgba(184, 146, 60, 0.42);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}

@media (max-width: 520px) {
  .result-friction-strip {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
  }
}

/* Actions principales sous l’email généré */
.result-email-primary-actions {
  margin-bottom: 0.85rem;
  gap: 0.65rem;
}

.btn-result-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-result-email-copy {
  border: none;
  background: var(--primary-mid);
  color: #fff;
  box-shadow: 0 3px 12px rgba(26, 58, 92, 0.22);
}

.btn-result-email-copy:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-result-email-copy.copied {
  background: var(--success);
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.35);
}

.btn-result-email-outline {
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--primary-mid);
}

.btn-result-email-outline:hover {
  border-color: var(--primary-light);
  background: rgba(26, 58, 92, 0.04);
}

.btn-result-email-tone {
  border: 2px solid rgba(184, 146, 60, 0.48);
  background: rgba(184, 146, 60, 0.11);
  color: #5c4818;
}

.btn-result-email-tone:hover {
  border-color: var(--accent);
  background: rgba(184, 146, 60, 0.18);
  color: #3d300f;
}

.btn-result-email:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.result-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.78rem;
  color: var(--text-hint);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.app-footer em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

.footer-links {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
}

.footer-links a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: var(--text-hint);
  margin: 0 0.35rem;
}

/* Page Mentions légales */
.page-mentions .legal-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-doc-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-doc-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal-doc-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-doc section {
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin-bottom: 0.65rem;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}

.legal-doc .legal-placeholder {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-hint);
  padding: 0.65rem 0.85rem;
  background: var(--bg-result);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.nav-muted {
  color: var(--text-hint);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 860px) {
  .app-main {
    grid-template-columns: 1fr;
    margin: 1.25rem auto 2rem;
  }
}

/* ----- Application : raccourcis, stats, toast, impression ----- */
.kbd-hint {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-hint);
  text-align: center;
  line-height: 1.45;
}

.kbd-hint kbd {
  display: inline-block;
  padding: 0.12rem 0.38rem;
  font-size: 0.68rem;
  font-family: inherit;
  font-weight: 600;
  background: var(--bg-result);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.06);
}

.generate-gate-hint {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-hint);
  text-align: center;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.result-stat-soft {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-hint);
  width: 100%;
  flex-basis: 100%;
}

.result-actions-row {
  gap: 0.5rem;
}

.print-meta-line {
  display: none;
}

.app-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 400;
  padding: 0.65rem 1.35rem;
  background: var(--primary-mid);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
  max-width: min(420px, 92vw);
  text-align: center;
}

.app-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.page-app button:focus-visible,
.page-app .chip-btn:focus-visible,
.page-app input:focus-visible,
.page-app select:focus-visible,
.page-app textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

@media print {
  .no-print {
    display: none !important;
  }

  body.page-app {
    background: #fff !important;
  }

  .page-app .app-header,
  .page-app .app-credibility-bar,
  .page-app .trust-strip,
  .page-app .app-value-hero,
  .page-app .wow-section,
  .page-app .proof-strip,
  .page-app .micro-cta,
  .page-app .post-gen-lead-cta,
  .page-app .specialty-lock,
  .page-app .form-card,
  .page-app .app-footer,
  .page-app #app-toast,
  .page-app .result-empty,
  .lead-modal,
  #generation-gate-modal {
    display: none !important;
  }

  .page-app .app-main {
    display: block !important;
    margin: 0 !important;
    padding: 12mm !important;
    max-width: none !important;
  }

  .page-app .result-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    background: #fff !important;
  }

  .page-app #result-content {
    display: block !important;
  }

  .print-meta-line {
    display: block !important;
    font-size: 9pt;
    color: #333;
    margin: 0 0 10mm 0;
    padding-bottom: 4mm;
    border-bottom: 0.5pt solid #ccc;
  }

  .page-app .email-preview-message {
    max-height: none !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
    border: none !important;
    font-size: 11pt !important;
    box-shadow: none !important;
  }

  .page-app .email-preview-subject {
    font-size: 12pt !important;
    border: none !important;
  }

  .page-app .email-preview-label {
    font-size: 8pt !important;
  }
}

/* ----- Landing FAQ ----- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.faq-summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-mid);
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  float: right;
  color: var(--text-hint);
  font-weight: 700;
  margin-left: 0.75rem;
}

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-body {
  padding: 0 1.25rem 1.05rem;
  border-top: 1px solid var(--border);
}

.faq-body p {
  margin: 0;
  padding-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-summary:hover {
  background: rgba(26, 58, 92, 0.03);
}

/* ----- Qualification automatique (app) ----- */
.auto-qualif-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(26, 58, 92, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toggle-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 42rem;
}

.toggle-inline input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.btn-inline-secondary {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary-mid);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-inline-secondary:hover {
  border-color: var(--primary-light);
  background: rgba(26, 58, 92, 0.04);
}

.auto-detect-strip {
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--primary-mid);
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), rgba(26, 58, 92, 0.06));
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-sm);
}

.auto-detect-strip strong {
  font-weight: 700;
}

.result-checklist {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg-result);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.result-checklist-ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.result-checklist-ul li {
  margin-bottom: 0.35rem;
}

.result-checklist-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--text-hint);
  font-style: italic;
}

/* ============================================================
   LegalReply — édition « Droit du travail » (conversion SaaS)
   ============================================================ */

.app-brand-specialty {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92em;
}

.app-value-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 48%, #243f64 100%);
  color: #fff;
  padding: 2rem 1.5rem 2.25rem;
  margin: 0;
}

.app-value-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.confidential-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.value-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  max-width: 38rem;
}

.value-hero-subtitle {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.94;
  max-width: 40rem;
}

.value-hero-subtitle strong {
  font-weight: 700;
  color: rgba(255, 236, 180, 0.98);
}

.trust-strip-compact {
  padding: 0.65rem 1.5rem;
  background: rgba(13, 148, 136, 0.07);
  border-bottom: 1px solid rgba(13, 148, 136, 0.18);
}

.trust-strip-compact .trust-strip-single {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--primary-mid);
  text-align: center;
}

/* Parcours objectif produit (aperçu → email → résultat complet) */
.app-journey-strip {
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem 0.85rem;
}

.app-journey-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.app-journey-lead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.app-journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.25rem;
}

.app-journey-steps > li:not(.app-journey-step-sep) {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary-mid);
}

.app-journey-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-mid);
  border-radius: 999px;
}

.app-journey-label {
  letter-spacing: -0.01em;
}

.app-journey-step-sep {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.05rem;
  flex-shrink: 0;
  border-right: 2px solid rgba(184, 146, 60, 0.55);
  border-bottom: 2px solid rgba(184, 146, 60, 0.55);
  transform: rotate(-45deg);
  opacity: 0.85;
}

@media (max-width: 640px) {
  .app-journey-step-sep {
    display: none;
  }

  .app-journey-steps > li:not(.app-journey-step-sep) {
    flex-basis: 100%;
    justify-content: center;
    padding: 0.15rem 0;
  }
}

.app-main-labor {
  align-items: stretch;
}

.page-app-labor .app-main.app-main-labor {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  grid-template-columns: none;
}

.app-trial-bar {
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-mid);
  background: linear-gradient(90deg, rgba(184, 146, 60, 0.12), rgba(26, 58, 92, 0.06));
  border: 1px solid rgba(226, 230, 239, 0.95);
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.45;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.app-trial-bar--exhausted {
  background: rgba(197, 48, 48, 0.06);
  border-color: rgba(197, 48, 48, 0.22);
  color: #9b2c2c;
}

.app-trial-bar-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-trial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.app-trial-bar--exhausted .app-trial-dot {
  background: var(--error);
}

.app-prelude {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 780px) {
  .app-prelude {
    grid-template-columns: 1fr;
  }
}

.app-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 1.75rem;
  width: 100%;
  align-items: start;
}

.app-column-input,
.app-column-preview {
  min-width: 0;
}

@media (max-width: 960px) {
  .app-workspace {
    grid-template-columns: 1fr;
  }
}

.app-form-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.value-hero-promise {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 248, 220, 0.96);
  margin: 0 0 0.85rem;
  max-width: 40rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.btn-result-email-length {
  border: 2px solid rgba(26, 58, 92, 0.2);
  background: var(--bg-card);
  color: var(--primary-mid);
}

.btn-result-email-length:hover {
  border-color: var(--primary-light);
  background: rgba(26, 58, 92, 0.04);
}

.quota-exhausted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.quota-exhausted-actions .btn-secondary {
  margin-top: 0;
}

/* Tension douce au-dessus du formulaire principal */
.app-form-nudge {
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-mid);
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.06), rgba(184, 146, 60, 0.09));
  border: 1px solid rgba(226, 230, 239, 0.98);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(15, 39, 68, 0.05);
}

.wow-section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin-bottom: 0.35rem;
}

.wow-section-lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.wow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .wow-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wow-btn {
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-mid);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.15s ease;
}

.wow-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.08);
  transform: translateY(-1px);
}

.wow-btn.wow-btn-active {
  border-color: var(--primary-mid);
  color: var(--primary);
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.07), rgba(184, 146, 60, 0.15));
  box-shadow:
    inset 0 0 0 2px rgba(26, 58, 92, 0.1),
    0 4px 14px rgba(15, 39, 68, 0.09);
}

.wow-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.proof-strip {
  padding: 1.25rem 1.5rem;
}

.proof-strip-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hint);
  margin-bottom: 0.65rem;
}

.proof-strip-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.proof-strip-list li {
  margin-bottom: 0.25rem;
}

.specialty-lock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: rgba(184, 146, 60, 0.09);
  border: 1px solid rgba(184, 146, 60, 0.28);
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
}

.specialty-lock-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a5f20;
}

.specialty-lock-value {
  font-size: 0.95rem;
  color: var(--primary-mid);
}

.btn-generate-prominent {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
}

.micro-cta {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(26, 58, 92, 0.06), rgba(184, 146, 60, 0.08));
  border: 1px dashed rgba(26, 58, 92, 0.22);
  border-radius: var(--radius-md);
}

.micro-cta-text {
  font-size: 0.9375rem;
  color: var(--primary-mid);
  margin-bottom: 0.85rem;
}

.btn-micro-cta {
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  background: var(--primary-mid);
  border: 1px solid rgba(12, 34, 57, 0.88);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: none;
  transition:
    background var(--transition-btn),
    border-color var(--transition-btn),
    opacity var(--transition-btn);
}

.btn-micro-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-micro-cta:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

a.btn-micro-cta {
  text-decoration: none;
}

.micro-cta-note {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-hint);
}

.result-card-labor {
  position: relative;
  overflow: hidden;
}

.result-generation-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 251, 253, 0.92);
  backdrop-filter: blur(4px);
}

.result-generation-overlay-inner {
  text-align: center;
  padding: 2rem;
}

.result-card.is-generating .result-generation-overlay-inner {
  animation: lr-loader-float 2.2s ease-in-out infinite;
}

@keyframes lr-loader-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  50% {
    transform: translate3d(0, -4px, 0);
    opacity: 0.94;
  }
}

.overlay-text {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-mid);
  letter-spacing: -0.02em;
}

.spinner-lg {
  width: 22px;
  height: 22px;
  border-width: 3px;
}

.spinner-xl {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(26, 58, 92, 0.12);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.result-card.is-generating .structured-output {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.result-copy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-copy-toolbar {
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-mid);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-copy-toolbar:hover {
  border-color: var(--primary-light);
  background: rgba(26, 58, 92, 0.04);
}

.btn-copy-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary));
  color: #fff !important;
}

.btn-copy-primary:hover {
  opacity: 0.94;
  color: #fff !important;
}

.structured-output {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}

.result-section-card-muted {
  background: var(--bg-result);
}

.result-section-card-signature .result-section-body {
  white-space: pre-wrap;
  font-size: 0.875rem;
}

.result-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-hint);
  margin-bottom: 0.55rem;
}

.result-section-body {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-main);
}

.result-section-multipara p {
  margin: 0 0 0.65rem;
}

.result-section-multipara p:last-child {
  margin-bottom: 0;
}

.result-section-subject {
  font-weight: 600;
  color: var(--primary-mid);
}

.result-section-empty {
  color: var(--text-hint);
  font-style: italic;
}

.result-success-flash {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.12), transparent);
  opacity: 0;
}

.result-success-flash--on {
  animation: lr-success-flash 1.2s ease-out forwards;
}

@keyframes lr-success-flash {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#result-content.result-just-generated {
  animation: lr-result-reveal 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#result-content {
  position: relative;
}

@keyframes lr-result-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes lr-result-reveal-soft {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #result-content.result-just-generated {
    animation: lr-result-reveal-soft 0.22s ease-out forwards;
  }

  .result-card.is-generating .result-generation-overlay-inner {
    animation: none;
  }
}

.card-inset {
  border-radius: var(--radius-md);
}

@media print {
  .page-app .structured-output .result-section-card {
    break-inside: avoid;
    border: 0.5pt solid #ddd !important;
    margin-bottom: 8mm !important;
  }

  .page-app .result-section-label {
    font-size: 8pt !important;
    color: #555 !important;
  }
}

/* ----- Crédibilité · accroches · CTA post-génération · modale leads ----- */

.app-credibility-bar {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.app-credibility-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cred-item-strong {
  font-weight: 600;
  color: var(--primary-mid);
}

.cred-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.value-hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff8e7;
  margin: 0 0 0.35rem;
  max-width: 38rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
}

.value-hero-tagline-sub {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.93);
  margin: 0 0 1rem;
  max-width: 38rem;
  line-height: 1.45;
}

.post-gen-lead-cta {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(184, 146, 60, 0.12), rgba(26, 58, 92, 0.08));
  border: 1px solid rgba(184, 146, 60, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.post-gen-lead-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-mid);
}

.btn-post-gen-lead {
  padding: 0.55rem 1.15rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--transition), transform 0.15s ease;
}

.btn-post-gen-lead:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

a.btn-post-gen-lead {
  text-decoration: none;
}

.quota-exhausted-actions a.btn-primary.lead-modal-submit {
  text-decoration: none;
}

body.lead-modal-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lead-modal.hidden {
  display: none !important;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 68, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--border);
}

.lead-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lead-modal-close:hover {
  color: var(--primary-mid);
  background: rgba(26, 58, 92, 0.06);
}

.lead-modal-close:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.lead-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin: 0 2rem 0.5rem 0;
}

.lead-modal-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.lead-capture-form .field-group {
  margin-bottom: 1rem;
}

.lead-capture-form .field-optional {
  font-weight: 500;
  color: var(--text-hint);
  font-size: 0.8em;
}

.lead-modal-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
}

.lead-modal-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--text-hint);
  line-height: 1.45;
}

.lead-modal-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.25rem;
}

.lead-modal-success.hidden {
  display: none !important;
}

.lead-modal-success-msg {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--success);
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.lead-modal-done {
  min-width: 8rem;
}

#lead-modal-form-view.hidden {
  display: none !important;
}

/* ----- Aperçu flouté (teaser) avant déblocage email ----- */

.result-teaser-stack {
  margin-bottom: 0.25rem;
}

.result-teaser-snippet-wrap {
  margin-bottom: 1rem;
}

.result-teaser-snippet-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hint);
  margin-bottom: 0.35rem;
}

.result-teaser-snippet {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.58;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(15, 39, 68, 0.05);
}

.result-teaser-blur-zone {
  position: relative;
  border-radius: var(--radius-md);
}

.result-teaser-blur-zone--locked #print-email-zone {
  filter: blur(11px) saturate(0.88);
  -webkit-filter: blur(11px) saturate(0.88);
  user-select: none;
  pointer-events: none;
  max-height: 240px;
  overflow: hidden;
  opacity: 0.88;
  transform: translateZ(0);
  transition:
    filter 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    -webkit-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-teaser-blur-zone--locked.paywall-unlocking #print-email-zone {
  filter: blur(0) saturate(1);
  -webkit-filter: blur(0) saturate(1);
  opacity: 1;
  max-height: none;
  overflow: visible;
}

.result-teaser-unlock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(248, 249, 252, 0.97) 0%,
    rgba(248, 249, 252, 0.72) 38%,
    rgba(250, 251, 253, 0.14) 72%,
    rgba(250, 251, 253, 0.02) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.38s ease;
}

.result-teaser-unlock-overlay.paywall-overlay-out {
  opacity: 0;
}

.result-teaser-unlock-overlay.hidden {
  display: none !important;
}

.result-teaser-unlock-inner {
  pointer-events: auto;
  text-align: center;
  padding: 1.35rem 1.5rem;
  max-width: 22rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 230, 239, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.1), 0 2px 8px rgba(15, 39, 68, 0.04);
}

.result-teaser-unlock-headline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 700;
  color: var(--primary-mid);
  margin: 0 0 1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.result-teaser-unlock-intro {
  margin: -0.35rem 0 1rem;
  text-align: center;
}

.teaser-unlock-form {
  text-align: left;
}

.teaser-unlock-form .field-group {
  margin-bottom: 0.85rem;
}

.teaser-unlock-form .btn-teaser-unlock {
  width: 100%;
}

.result-ready-banner {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.95rem;
  background: var(--bg-result);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result-ready-banner-line {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-mid);
  letter-spacing: -0.02em;
}

.result-ready-banner-sub {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-teaser-unlock {
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.22);
  transition: transform 0.18s ease, box-shadow var(--transition);
}

.btn-teaser-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(15, 39, 68, 0.24);
}

.btn-teaser-unlock:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.result-content--teaser-locked .result-copy-toolbar {
  opacity: 0.42;
  pointer-events: none;
}

.result-content--teaser-locked .result-email-primary-actions .btn-result-email-copy {
  opacity: 0.42;
  pointer-events: none;
}

.result-content--teaser-locked #result-checklist {
  display: none !important;
}

.result-content--teaser-locked .result-actions-row .btn-secondary-muted {
  opacity: 0.4;
  pointer-events: none;
}
