/* ============================================
   Lectora — Variables & Reset
   ============================================ */

:root {
  --orange: #E06A2C;
  --orange-dark: #C6541F;
  --anthracite: #1E1E1E;
  --bg-light: #F6F3EF;
  --gray: #6B6B6B;
  --white: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --container: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-light {
  background: var(--bg-light);
}

.page-top {
  padding-top: 10rem;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

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

.btn-outline {
  background: transparent;
  color: var(--anthracite);
  border-color: var(--anthracite);
}

.btn-outline:hover {
  background: var(--anthracite);
  color: var(--white);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.nav .container {
  display: flex;
  align-items: center;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 3rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--anthracite);
}

.nav-link.active {
  background: rgba(0, 0, 0, 0.04);
}

.nav-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gray);
  transition: all var(--transition);
  margin-right: 0.75rem;
}

.nav-login:hover {
  color: var(--anthracite);
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 10rem 0 6rem;
  background: var(--bg-light);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: rgba(224, 106, 44, 0.1);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Diff Demo Card */
.diff-demo {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.diff-demo-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
}

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.diff-dot.green {
  background: #4CAF50;
}

.diff-demo-body {
  padding: 1.5rem;
}

.diff-line {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--anthracite);
  font-weight: 400;
  font-style: italic;
}

.diff-del {
  background: #FECACA;
  color: #991B1B;
  text-decoration: line-through;
  padding: 0.0625rem 0.1875rem;
  border-radius: 2px;
  margin-right: 2px;
}

.diff-add {
  background: #BBF7D0;
  color: #14532D;
  padding: 0.0625rem 0.1875rem;
  border-radius: 2px;
}

.diff-demo-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
  color: var(--gray);
}

.diff-reviewer {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.diff-reviewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.diff-count {
  margin-left: auto;
  font-weight: 600;
  color: var(--orange);
}

/* ============================================
   Features Grid
   ============================================ */

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(224, 106, 44, 0.1);
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.feature-card h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   Steps
   ============================================ */

.steps {
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.step-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   Security
   ============================================ */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.security-main {
  grid-column: 1 / -1;
}

.security-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.security-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.security-main {
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--anthracite);
}

.security-main:hover {
  transform: none;
}

.security-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--anthracite);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.security-main h2,
.security-main h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.security-main p {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.security-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.security-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--anthracite);
  min-width: 140px;
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(224, 106, 44, 0.1);
  color: var(--orange);
}

.security-flow-arrow {
  font-size: 1.25rem;
  color: var(--gray);
  margin-top: -1.25rem;
}

.encrypted-demo {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.encrypted-demo-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
  text-align: left;
}

.encrypted-demo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.correction-del {
  text-decoration: line-through;
  color: #c0392b;
  opacity: 0.7;
}

.correction-ins {
  text-decoration: none;
  color: #27ae60;
  font-style: italic;
}

.encrypted-demo-arrow {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  color: var(--orange);
}

.encrypted-demo-block {
  background: var(--anthracite);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

.encrypted-demo-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
  word-break: break-all;
  white-space: pre-wrap;
}

.security-comparison {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.comparison-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-col {
  padding: 2rem;
}

.comparison-bad {
  background: #FEF2F2;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-good {
  background: #F0FDF4;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.comparison-bad .comparison-header {
  color: #B91C1C;
}

.comparison-good .comparison-header {
  color: #15803D;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comparison-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--anthracite);
}

.comparison-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.comparison-bad .comparison-list li::before {
  content: '\2717';
  color: #B91C1C;
}

.comparison-good .comparison-list li::before {
  content: '\2713';
  color: #15803D;
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(30, 30, 30, 0.06);
  color: var(--anthracite);
  margin-bottom: 1.25rem;
}

.security-card h2,
.security-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.security-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */

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

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

/* Deux cartes (auteur, bêta lecteur) : centrées, sans colonne vide */
.pricing-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--grey-500);
  font-size: 0.9375rem;
}

.pricing-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-featured {
  border-color: var(--orange);
  border-width: 2px;
  transform: scale(1.04);
}

.pricing-featured:hover {
  transform: scale(1.06);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 100px;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.pricing-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.pricing-price-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-top: 0.25rem;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--anthracite);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ============================================
   Legal
   ============================================ */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  color: var(--anthracite);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 1.25rem 0 0.375rem;
  color: var(--anthracite);
}

.legal-content p {
  font-size: 0.7rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content ul li {
  font-size: 0.7rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0.2rem;
}

.legal-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--orange-dark);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  text-align: center;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .features-grid,
  .pricing-grid,
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-featured {
    transform: scale(1);
  }

  .pricing-featured:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-login {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu open */
  .nav.menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
  }

  .nav.menu-open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(72px + 100%);
    left: 1.5rem;
    right: 1.5rem;
  }

  .nav-toggle span:nth-child(1) {
    transition: all 0.3s ease;
  }

  .nav-toggle span:nth-child(2) {
    transition: all 0.3s ease;
  }

  .nav-toggle span:nth-child(3) {
    transition: all 0.3s ease;
  }

  .nav.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-flow-arrow {
    display: none;
  }

  .security-flow {
    gap: 1.5rem;
  }

  .comparison-columns {
    grid-template-columns: 1fr;
  }

  .comparison-bad {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Home community section */
.home-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.home-community-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.25s;
}

.home-community-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(224, 106, 44, 0.1);
  transform: translateY(-3px);
}

.home-community-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--anthracite);
}

.home-community-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.section-light {
  background-color: var(--bg-light);
}

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

/* ============================================
   Community Page (public)
   ============================================ */

.cm-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.cm-tab {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s;
}

.cm-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.cm-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.cm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.cm-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(224, 106, 44, 0.12);
  transform: translateY(-3px);
}

/* Card header with avatar */
.cm-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.cm-card-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cm-card-name {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--anthracite);
}

.cm-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--anthracite);
  margin: 0 0 0.75rem;
}

.cm-card-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cm-meta-item {
  font-size: 0.8125rem;
  color: var(--gray);
}

.cm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.cm-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  background: #FFF3ED;
  color: var(--orange);
}

.cm-card-type-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cm-avail {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.cm-avail-available {
  background: #D1FAE5;
  color: #065F46;
}

.cm-avail-future {
  background: #FFF3ED;
  color: var(--orange);
}

.cm-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
}

.cm-type-free {
  background: #D1FAE5;
  color: #065F46;
}

.cm-type-paid {
  background: #FEF3C7;
  color: #92400E;
}

.cm-price-info {
  font-size: 0.8125rem;
  color: var(--gray);
}

.cm-bio {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.cm-cta {
  margin-top: auto;
}

.cm-public-link {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}
.cm-public-link:hover {
  text-decoration: underline;
}

/* Avatar cliquable vers le profil public */
.cm-identity-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

/* Ligne auteur sur les cartes de demande (petit avatar + "par ...") */
.cm-req-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cm-avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}
.cm-req-by {
  font-size: 0.875rem;
  color: var(--gray);
}
.cm-identity-link.cm-req-author:hover .cm-req-by {
  color: var(--orange);
}

/* Vague de pulsation des avatars a profil public (transform + box-shadow seuls) */
.cm-pulse { transform-origin: center; }
@keyframes lectora-avatar-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(224, 106, 44, 0); }
  50%  { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(224, 106, 44, 0.18); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(224, 106, 44, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .cm-avatar.cm-pulse.is-pulsing { animation: lectora-avatar-pulse 1.2s ease-in-out; }
}

.cm-loading {
  text-align: center;
  color: var(--gray);
  padding: 3rem;
  grid-column: 1 / -1;
}

.cm-empty {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  padding: 2rem;
}

.cm-cta-section {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 1rem;
  background: #fff;
  border: 2px dashed var(--orange);
  border-radius: 16px;
}

.cm-cta-text {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray);
}

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

  .cm-tabs {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- FAQ (referencement + moteurs generatifs) --- */
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--anthracite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
  transition: transform var(--transition);
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- Note de securite du hero (discrete) --- */
.hero-security-note {
  margin: 1.25rem 0 1.75rem;
  font-size: 0.85rem;
  color: var(--gray);
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.65;
  max-width: 470px;
}
.hero-security-note svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 0.2rem;
}

/* ============================================
   Page Pourquoi Lectora
   ============================================ */
.pql-hero .container { display: block; max-width: 760px; text-align: center; }
.pql-hero .hero-subtitle { max-width: none; margin-left: auto; margin-right: auto; }
.pql-hero .hero-actions { justify-content: center; }

.pql-prose { max-width: 720px; margin: 0 auto; }
.pql-prose p { font-size: 1.0625rem; color: var(--gray); line-height: 1.8; margin-bottom: 1.25rem; }
.pql-prose p:last-child { margin-bottom: 0; }

/* Tableau comparatif (bloc 4) */
.compare-table-wrap { max-width: 860px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th,
.compare-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid #E5E0D8; vertical-align: top; }
.compare-table thead th { font-weight: 600; color: var(--anthracite); }
.compare-table thead th:last-child { color: var(--orange); }
.compare-table tbody th { font-weight: 600; color: var(--anthracite); width: 22%; }
.compare-table td:first-of-type { color: var(--gray); }
/* Colonne "Relire dans Lectora" mise en avant (teinte orange) */
.compare-table thead th:last-child,
.compare-table td:last-of-type { background: #FBF3EC; }
.compare-table td:last-of-type { font-weight: 500; }

.compare-note {
  max-width: 860px;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

.compare-ref {
  color: var(--orange);
  font-weight: 600;
}

/* Sous 640px : cartes empilees, une par critere */
@media (max-width: 640px) {
  .compare-table thead { display: none; }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: 100%; }
  .compare-table tr { border: 1px solid #E5E0D8; border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
  .compare-table th,
  .compare-table td { border-bottom: 1px solid #E5E0D8; }
  .compare-table tbody th { background: var(--bg-light); width: auto; }
  .compare-table td { padding-top: 0.75rem; }
  .compare-table td::before {
    content: attr(data-col);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.25rem;
  }
  .compare-table td:last-of-type::before { color: var(--orange); }
  .compare-table td:last-child { border-bottom: none; }
}

/* ============================================
   Page Beta-lecteurs
   ============================================ */
.beta-advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .beta-advantages { grid-template-columns: 1fr; }
}

.cm-avatar { overflow: hidden; }
.cm-avatar-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* --- Page Nouveautes --- */
.news-list { max-width: 720px; margin: 0 auto; }
.news-item { padding: 2.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--gray); margin-bottom: 0.5rem; }
.news-cat {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--orange);
  background: rgba(224, 106, 44, 0.1);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
}
.news-item h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.news-item p { color: var(--gray); line-height: 1.8; margin-bottom: 1rem; }
.news-item p:last-child { margin-bottom: 0; }
.news-link a { color: var(--orange); font-weight: 600; }
.hero-new-link { margin-top: 0.75rem; font-size: 0.9rem; }
.hero-new-link a { color: var(--orange); font-weight: 600; }

/* --- Badges statistiques (home) --- */
.stats-strip { padding: 2.5rem 0 0; }
.stats-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  border-radius: 100px;
  padding: 0.85rem 2rem;
  min-width: 130px;
  text-align: center;
}
.stat-badge-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat-badge-label {
  font-size: 0.8125rem;
  color: var(--gray);
  font-weight: 500;
}
