/* ============================================
   LOGICIEL-DE-FACTURATION.COM
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-primary-bg: #eff6ff;
  --color-secondary: #059669;
  --color-secondary-dark: #047857;
  --color-secondary-light: #10b981;
  --color-secondary-bg: #ecfdf5;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-success: #22c55e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.875rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--color-text-light); }
.lead { font-size: 1.125rem; line-height: 1.8; color: var(--color-text-light); }
.text-center { text-align: center; }
.text-small { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-secondary); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-alt {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}
.section-primary {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
}
.section-primary p { color: rgba(255,255,255,0.85); }
.section-primary h2 { color: #fff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo svg { width: 32px; height: 32px; }
.logo span { color: var(--color-secondary); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
}
.nav a:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}
.nav a.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.15);
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.25s;
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--color-secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background: #f0f4ff;
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
}
.card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
  position: relative;
}
.card-featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.card-title { font-size: 1.25rem; margin-bottom: 0; }
.card-subtitle { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 0; }
.card-body { margin-bottom: 1.5rem; }
.card-body p { font-size: 0.9375rem; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}

/* --- Pricing in Cards --- */
.price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
}
.price .currency { font-size: 1rem; vertical-align: super; }
.price .period { font-size: 0.8125rem; font-weight: 400; color: var(--color-text-muted); }
.price-free {
  color: var(--color-secondary);
}

/* --- Rating Stars --- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
}
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.stars .empty { color: var(--color-border); }
.rating-value {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-left: 0.375rem;
}

/* --- Tags & Badges --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.25rem;
}
.tag-primary { background: var(--color-primary-bg); color: var(--color-primary); }
.tag-success { background: var(--color-secondary-bg); color: var(--color-secondary); }
.tag-warning { background: #fffbeb; color: #b45309; }
.tag-neutral { background: var(--color-bg-alt); color: var(--color-text-light); }
.badge-new {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  padding: 0.125rem 0.625rem;
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- Feature List --- */
.feature-list { margin-bottom: 1.5rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}
.feature-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list .check { color: var(--color-secondary); }
.feature-list .cross { color: var(--color-text-muted); }

/* --- Comparison Table --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
}
.comparison-table {
  min-width: 700px;
  width: 100%;
}
.comparison-table thead {
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
}
.comparison-table th {
  padding: 0.75rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: left;
  white-space: nowrap;
}
.comparison-table td {
  padding: 0.75rem 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}
.comparison-table tbody tr:hover {
  background: var(--color-primary-bg);
}
.comparison-table .software-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}
.comparison-table .software-cell .mini-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.check-icon { color: var(--color-secondary); font-weight: 700; }
.cross-icon { color: var(--color-text-muted); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.8125rem;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before {
  content: '›';
  color: var(--color-text-muted);
  font-size: 1rem;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .current { color: var(--color-text); font-weight: 500; }

/* --- Section Headers --- */
.section-header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-header .overline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.section-header p { font-size: 1.0625rem; }

/* --- Audience Cards --- */
.audience-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
}
.audience-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}
.audience-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.audience-card h3 { margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.9375rem; margin-bottom: 1.5rem; }

/* --- Info Box / Callout --- */
.callout {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.callout-info {
  background: var(--color-primary-bg);
  border-left: 4px solid var(--color-primary);
}
.callout-success {
  background: var(--color-secondary-bg);
  border-left: 4px solid var(--color-secondary);
}
.callout-warning {
  background: #fffbeb;
  border-left: 4px solid var(--color-accent);
}
.callout .callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.125rem; }
.callout p { margin-bottom: 0; font-size: 0.9375rem; }
.callout strong { color: var(--color-text); }

/* --- Review / Software Detail --- */
.software-hero {
  padding: 3rem 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.software-hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.software-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}
.software-hero-info h1 { margin-bottom: 0.5rem; }
.software-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.software-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}
.software-meta-item strong { color: var(--color-text); }

/* --- Pros / Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.pros, .cons {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}
.pros {
  background: var(--color-secondary-bg);
  border: 1px solid #a7f3d0;
}
.cons {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.pros h4 { color: var(--color-secondary); margin-bottom: 1rem; }
.cons h4 { color: var(--color-danger); margin-bottom: 1rem; }
.pros li, .cons li {
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pros li::before { content: '✓'; color: var(--color-secondary); font-weight: 700; }
.cons li::before { content: '✗'; color: var(--color-danger); font-weight: 700; }

/* --- Pricing Table --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--color-bg-card);
}
.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  position: relative;
}
.pricing-card .plan-name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.pricing-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
}
.pricing-card .plan-price span { font-size: 0.875rem; font-weight: 400; color: var(--color-text-muted); }
.pricing-card ul { text-align: left; margin: 1.5rem 0; }
.pricing-card li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
}

/* --- Content / Article --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: flex-start;
}
.content-main h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}
.content-main h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-main h3 { margin-top: 1.75rem; }
.content-main p { line-height: 1.8; }
.content-main ul, .content-main ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.content-main ol { list-style: decimal; }
.content-main li {
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Sidebar --- */
.sidebar { position: sticky; top: calc(var(--header-height) + 2rem); }
.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}
.sidebar-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.sidebar-card ul li a:hover { color: var(--color-primary); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border: none;
  color: #fff;
}
.sidebar-cta h4 { color: #fff; border-color: rgba(255,255,255,0.2); }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 0.9375rem; }

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h5 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-about p { font-size: 0.875rem; line-height: 1.7; }
.footer ul li { padding: 0.3rem 0; }
.footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* --- FAQ / Accordion --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--color-bg-card);
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question .arrow { transition: transform 0.3s; font-size: 1.25rem; color: var(--color-text-muted); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Affiliate Disclosure --- */
.affiliate-disclosure {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.affiliate-disclosure svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }

/* --- Score Meter --- */
.score-meter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.score-bar {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--color-primary);
  transition: width 0.5s ease;
}
.score-bar-fill.high { background: var(--color-secondary); }
.score-bar-fill.medium { background: var(--color-accent); }
.score-bar-fill.low { background: var(--color-danger); }
.score-value {
  font-weight: 700;
  font-size: 0.9375rem;
  min-width: 2.5rem;
  text-align: right;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .section, .section-alt { padding: 3rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .software-hero-inner { flex-direction: column; gap: 1.5rem; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-badges { justify-content: center; }
  .hero { text-align: center; }
  .hero h1, .hero p { max-width: 100%; }
  .btn-group { justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 1rem; }
  .card { padding: 1.5rem; }
}

/* --- Print Styles --- */
@media print {
  .header, .footer, .sidebar, .btn { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }
.hidden { display: none; }
.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;
}

/* --- Lottie Hero --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-lottie {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-lottie dotlottie-player,
.hero-lottie lottie-player {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lottie { order: -1; }
  .hero-lottie dotlottie-player,
  .hero-lottie lottie-player { max-width: 280px; }
}

/* --- Icon Box (modern pictos) --- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 28px; height: 28px; }
.icon-box-primary { background: var(--color-primary-bg); color: var(--color-primary); }
.icon-box-secondary { background: var(--color-secondary-bg); color: var(--color-secondary); }
.icon-box-accent { background: #fffbeb; color: var(--color-accent-dark); }
.icon-box-purple { background: #f3e8ff; color: #7c3aed; }
.icon-box-rose { background: #ffe4e6; color: #e11d48; }
.icon-box-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
}
.icon-box-lg svg { width: 36px; height: 36px; }

/* --- Feature Icon Grid --- */
.feature-icon-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}
.feature-icon-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
}
.feature-icon-card h4 { margin-bottom: 0.25rem; }
.feature-icon-card p { font-size: 0.875rem; margin-bottom: 0; }

/* --- CTA Banner (affiliate) --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #fff;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.375rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; font-size: 0.9375rem; }
.cta-banner .btn { flex-shrink: 0; }
@media (max-width: 768px) {
  .cta-banner { flex-direction: column; padding: 2rem 1.5rem; text-align: center; }
}

/* --- Affiliate CTA in table --- */
.table-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.table-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: scale(1.03);
}
.table-cta svg { width: 14px; height: 14px; }
.table-cta-free {
  background: var(--color-secondary);
}
.table-cta-free:hover {
  background: var(--color-secondary-dark);
  color: #fff;
}

/* --- Card CTA footer enhanced --- */
.card-cta-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.card-cta-group .btn { flex: 1; font-size: 0.8125rem; padding: 0.625rem 1rem; }

/* --- Floating badge on cards --- */
.card-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Picto list (modern feature list) --- */
.picto-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.picto-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}
.picto-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
}
@media (max-width: 480px) {
  .picto-list { grid-template-columns: 1fr; }
}

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Pulse animation for CTA --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(29, 78, 216, 0); }
}
.btn-pulse {
  animation: pulse-glow 2s infinite;
}

/* --- Comparison card enhanced --- */
.card-comparison {
  position: relative;
  overflow: hidden;
}
.card-comparison .card-rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-md) 0;
}

/* --- Sticky CTA Bar (mobile fiches logiciel) --- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta-bar.visible {
  transform: translateY(0);
}
.sticky-cta-bar .sticky-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.sticky-cta-bar .sticky-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.sticky-cta-bar .sticky-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta-bar .sticky-price {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.sticky-cta-bar .btn {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}
@media (min-width: 769px) {
  .sticky-cta-bar {
    max-width: 500px;
    left: auto;
    right: 2rem;
    bottom: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
  }
}
body.has-sticky-cta { padding-bottom: 80px; }
@media (min-width: 769px) {
  body.has-sticky-cta { padding-bottom: 0; }
}
