/* ===================================================
   rang1.fr — Design System CSS
   Shared styles across all pages
   =================================================== */

/* ===== TOKENS ===== */
:root {
  --green: #16A34A;
  --green-dark: #15803D;
  --green-light: #DCFCE7;
  --green-glow: rgba(22,163,74,0.15);
  --black: #111;
  --white: #fff;
  --bg: #FAFAFA;
  --surface: #fff;
  --surface-2: #F5F5F5;
  --border: #E5E5E5;
  --text: #111;
  --text-2: #525252;
  --text-3: #737373;
  --text-4: #A3A3A3;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --orange: #EA580C;
  --orange-light: #FFF7ED;
  --blue: #2563EB;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --font: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-w: 1120px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px; background: rgba(250,250,250,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; color: var(--black); letter-spacing: -0.03em; }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--text-2); transition: color 0.2s; cursor: pointer; }
.nav-link:hover { color: var(--black); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
}
.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: rgba(250,250,250,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font); font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.btn-green { background: var(--green); color: #fff; padding: 8px 20px; border-radius: var(--radius-sm); font-size: 0.85rem; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px var(--green-glow); }
.btn-black { background: var(--black); color: #fff; padding: 10px 24px; border-radius: var(--radius-full); font-size: 0.875rem; }
.btn-black:hover { background: #333; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border); padding: 10px 24px; border-radius: var(--radius-full); font-size: 0.875rem; }
.btn-outline:hover { border-color: var(--text-3); color: var(--black); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ===== SECTION ===== */
.section { padding: 96px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-tag { font-family: var(--mono); font-size: 0.65rem; font-weight: 500; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.section-desc { font-size: 1rem; color: var(--text-2); max-width: 560px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }
.divider { border: none; height: 1px; background: var(--border); }

/* ===== HERO (shared base) ===== */
.hero { padding: 120px 24px 80px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.65rem; font-weight: 500; color: var(--green-dark); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-full); background: var(--green-light); margin-bottom: 20px; }
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: 1.0625rem; color: var(--text-2); line-height: 1.7; max-width: 560px; margin: 0 auto 28px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 72px 24px 0; }
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--text-4); }
/* Alternate breadcrumb style (blog) */
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.25s; position: relative; overflow: hidden;
}
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); opacity: 0; transition: opacity 0.25s; }
.svc-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.svc-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.svc-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.svc-price { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--green-dark); }
.svc-link { font-size: 0.8rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; cursor: pointer; }
.svc-link:hover { gap: 8px; }

/* ===== DIFFERENTIATORS ===== */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card { text-align: center; padding: 32px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s; }
.diff-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.diff-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.diff-icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diff-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.diff-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; transition: all 0.2s;
}
.price-card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.price-card.featured::before {
  content: 'Populaire'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 3px 12px; border-radius: var(--radius-full);
}
.price-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { font-size: 0.8rem; color: var(--text-3); font-weight: 400; margin-left: 2rem;white-space: nowrap;}
.price-desc { font-size: 0.8rem; color: var(--text-2); margin: 12px 0 20px; line-height: 1.5; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--text-2); }
.price-check { color: var(--green); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.price-btn { width: 100%; padding: 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; text-align: center; }

/* ===== COMPARISON TABLE ===== */
.compare-wrap { overflow-x: auto; margin-top: 0; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; font-size: 0.8rem; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; background: var(--surface); position: sticky; top: 0; }
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child { font-weight: 500; color: var(--text); }
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-check { color: var(--green); font-weight: 700; font-size: 1rem; }
.compare-cross { color: var(--text-4); font-size: 1rem; }
.compare-table .col-featured { background: rgba(22,163,74,0.03); }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 20px 0; background: none; border: none; font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q:hover { color: var(--green); }
.faq-icon { font-size: 1.2rem; color: var(--text-3); transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; padding-bottom: 20px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== CTA SECTION ===== */
.cta-section { background: var(--black); color: #fff; text-align: center; }
.cta-section .section-title { color: #fff; }
.cta-section .section-desc { color: rgba(255,255,255,0.6); margin: 0 auto 32px; }

/* ===== FOOTER ===== */
.footer { padding: 48px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.footer-logo span { color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--black); }
.footer-copy { font-size: 0.7rem; color: var(--text-4); }
@media (max-width: 600px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ===== BLOG ARTICLE ===== */
.article-header { padding: 32px 24px 48px; text-align: center; }
.article-header-inner { max-width: 720px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 0.8rem; color: var(--text-3); margin-bottom: 20px; flex-wrap: wrap; }
.article-meta-item { display: flex; align-items: center; gap: 5px; }
.article-meta-item svg { width: 14px; height: 14px; stroke: var(--text-4); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-meta-dot { margin: 0 4px; color: var(--text-4); }
.article-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.12; margin-bottom: 16px; }
.article-header h1 em { font-style: normal; color: var(--green); }
.article-intro { font-size: 1rem; color: var(--text-2); line-height: 1.8; max-width: 720px; margin: 0 auto; }
.article-body { max-width: 720px; margin: 0 auto; padding: 0 24px 64px; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-top: 56px; margin-bottom: 16px; padding-top: 32px; border-top: 1px solid var(--border); }
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 36px; margin-bottom: 12px; }
.article-body p { font-size: 0.95rem; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.article-body a { color: var(--green); font-weight: 500; transition: color 0.2s; }
.article-body a:hover { color: var(--green-dark); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 20px 20px; }
.article-body li { font-size: 0.95rem; color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote { background: var(--green-light); border-left: 4px solid var(--green); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.article-body blockquote p { color: var(--text); font-weight: 500; margin-bottom: 0; }
.article-body blockquote cite { display: block; font-size: 0.8rem; color: var(--text-3); font-style: normal; margin-top: 8px; }

/* Article — alternate hero (cout, refonte) */
.article-hero { padding: 100px 24px 48px; text-align: center; }
.article-hero-inner { max-width: 720px; margin: 0 auto; }
.article-breadcrumb { max-width: 720px; margin: 0 auto; padding: 0 24px; font-size: 0.75rem; color: var(--text-3); }
.article-breadcrumb a { color: var(--text-3); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--green); }
.article-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ===== DEFINITION BLOCK ===== */
.definition-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.definition-block p { margin-bottom: 8px; }
.definition-block p:last-child { margin-bottom: 0; }

/* ===== TOC ===== */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; margin: 32px 0 40px; }
.toc-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toc-title svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc ol li { counter-increment: toc; }
.toc ol li a { display: flex; align-items: baseline; gap: 8px; font-size: 0.85rem; color: var(--text-2); padding: 6px 0; transition: color 0.2s; border-bottom: 1px solid var(--surface-2); }
.toc ol li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.7rem; color: var(--green); font-weight: 600; min-width: 20px; }
.toc ol li a:hover { color: var(--green); }
.toc ol li:last-child a { border-bottom: none; }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; margin: 16px 0 24px; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-2); line-height: 1.7; padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.checklist li:last-child { border-bottom: none; }
.checklist-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.checklist-icon svg { width: 12px; height: 12px; stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===== STEP CARDS ===== */
.step-cards { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.25s; }
.step-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.step-card-num, .step-num { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--green); background: var(--green-light); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-card-content {}
.step-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.step-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0; }

/* ===== TOOLS / DATA TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); margin: 24px 0; }
.tools-table, .article-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 24px 0; }
.tools-table th, .tools-table td, .article-table th, .article-table td { padding: 14px 16px; text-align: left; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.tools-table th, .article-table th { background: var(--surface-2); font-weight: 700; font-size: 0.8rem; }
.tools-table td, .article-table td { color: var(--text-2); }
.tools-table tr:last-child td, .article-table tr:last-child td { border-bottom: none; }
.tools-table .highlight-row, .article-table .highlight-row { background: var(--green-light); }
.tools-table .highlight-row td, .article-table .highlight-row td { color: var(--text); font-weight: 500; }
.article-table-wrap { overflow-x: auto; border-radius: var(--radius); margin: 24px 0; }

/* ===== CTA BOX (in-article) ===== */
.cta-box { background: var(--black); border-radius: var(--radius); padding: 40px 32px; text-align: center; margin: 48px 0 32px; }
.cta-box h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-box p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.cta-box .btn-green { padding: 12px 28px; font-size: 0.95rem; color: #fff; }
.cta-box-secondary { margin-top: 12px; }
.cta-box-secondary a { font-size: 0.8rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.cta-box-secondary a:hover { color: #fff; }
.cta-box-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== RELATED ARTICLES ===== */
.related-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.related-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.related-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all 0.25s; display: block; }
.related-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card-tag { font-family: var(--mono); font-size: 0.6rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.related-card h4 { font-size: 0.9rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.related-card p { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }
.related-card-link { font-size: 0.75rem; font-weight: 600; color: var(--green); margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }

/* ===== BADGE ===== */
.badge-new { display: inline-block; font-family: var(--mono); font-size: 0.55rem; font-weight: 700; color: var(--orange); background: var(--orange-light); padding: 2px 8px; border-radius: var(--radius-full); letter-spacing: 0.05em; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }

/* ===== CODE BLOCK ===== */
.code-block { background: var(--black); color: #e5e5e5; padding: 20px 24px; border-radius: var(--radius); margin: 20px 0; overflow-x: auto; font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; }
.code-block .comment { color: #737373; }
.code-block .keyword { color: #4ADE80; }

/* ===== COMPARISON TABLE (article) ===== */
.comparison-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--surface-2); font-weight: 700; font-size: 0.8rem; }
.comparison-table th:first-child { width: 40%; }
.comparison-table td { color: var(--text-2); }
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table th:not(:first-child) { text-align: center; }
.check-green { color: var(--green); font-weight: 700; }
.check-red { color: var(--text-4); }

/* ===== GRID CARDS (audit categories) ===== */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
@media (max-width: 768px) { .grid-6 { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: all 0.25s; }
.cat-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.cat-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }

/* ===== ERROR LIST ===== */
.error-list { list-style: none; margin: 24px 0; padding: 0; counter-reset: errlist; }
.error-list li { counter-increment: errlist; display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.error-list li:last-child { border-bottom: none; }
.error-num { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--red); background: var(--red-light); width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.error-list h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.error-list p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ===== PRIORITY / EFFORT BADGES ===== */
.priority-high { color: var(--green); font-weight: 700; }
.priority-medium { color: var(--orange); font-weight: 700; }
.priority-low { color: var(--text-3); font-weight: 600; }
.effort-low { background: var(--green-light); color: var(--green-dark); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.effort-medium { background: var(--orange-light); color: var(--orange); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.effort-high { background: var(--red-light); color: var(--red); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.priority-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.priority-table th, .priority-table td { padding: 14px 16px; text-align: left; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.priority-table th { background: var(--surface-2); font-weight: 700; font-size: 0.8rem; }
.priority-table td { color: var(--text-2); }
.priority-table tr:last-child td { border-bottom: none; }

/* ===== E-E-A-T CARDS ===== */
.eeat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 600px) { .eeat-grid { grid-template-columns: 1fr; } }
.eeat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.eeat-card-letter { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--green); margin-bottom: 8px; }
.eeat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.eeat-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ===== CALLOUT ===== */
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.callout-title { font-weight: 700; margin-bottom: 8px; }
.callout-body { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }
.callout-result { font-family: var(--mono); font-weight: 700; color: var(--green); }

/* ===== RED FLAGS ===== */
.red-flags { list-style: none; margin: 20px 0; padding: 0; }
.red-flag-icon { color: var(--red); margin-right: 8px; }

/* ===== RESULTS GRID (blog-seo) ===== */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .results-grid { grid-template-columns: 1fr; } }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.2s; }
.result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.result-metric { font-family: var(--mono); font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.result-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.result-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }

/* ===== CHECKLIST CARD (refonte) ===== */
.checklist-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 16px 0; }
.check-icon { color: var(--green); font-weight: 700; margin-right: 8px; }
.phase-badge { font-family: var(--mono); font-size: 0.65rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em; }
.phase-badge.before { background: var(--orange-light); color: var(--orange); }
.phase-badge.during { background: #EFF6FF; color: var(--blue); }
.phase-badge.after { background: var(--green-light); color: var(--green-dark); }
.timeline-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 24px 0; }

/* ===== BLOG INDEX ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.25s; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-icon {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--green-light);
}
.blog-card-icon svg { width: 48px; height: 48px; stroke: var(--green); stroke-width: 1.5; fill: none; opacity: 0.3; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 0.7rem; color: var(--text-3); }
.blog-card-tag { padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 600; background: var(--green-light); color: var(--green-dark); }
.blog-card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-card h2 a { color: var(--text); transition: color 0.2s; }
.blog-card h2 a:hover { color: var(--green); }
.blog-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; margin: 0; flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-3); }
.read-more { color: var(--green); font-weight: 600; font-size: 0.75rem; transition: gap 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* Blog filters */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 32px 0 48px; padding: 0 24px; }
.filter-btn {
  padding: 8px 18px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); font-family: var(--font); font-size: 0.8rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--green-light); color: var(--green-dark); border-color: rgba(22,163,74,0.3); }

/* ===== HERO (homepage two-column) ===== */
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-sub { max-width: 480px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== AUDIT WIDGET ===== */
.audit-widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .audit-widget { max-width: 400px; margin: 0 auto; } }
.aw-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.aw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.aw-title { font-size: 0.8rem; font-weight: 600; }
.aw-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; background: var(--bg);
  transition: border-color 0.2s; outline: none;
}
.aw-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.aw-input::placeholder { color: var(--text-4); }
.aw-btn {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  background: var(--black); color: #fff; font-family: var(--font); font-weight: 700;
  font-size: 0.875rem; border: none; cursor: pointer; transition: all 0.2s; margin-top: 10px;
}
.aw-btn:hover { background: #333; }
.aw-footer { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 0.7rem; color: var(--text-4); }
.aw-footer span { display: flex; align-items: center; gap: 4px; }
.aw-check { color: var(--green); font-weight: 700; }
.aw-score-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.aw-score-label { font-size: 0.75rem; color: var(--text-2); }
.aw-score-val { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; }
.aw-bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.aw-bar-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
.aw-input-demo { display: flex; align-items: center; font-size: 0.875rem; color: var(--text); min-height: 44px; user-select: none; }
.aw-cursor { color: var(--green); font-weight: 300; animation: cursorBlink 0.6s steps(1) infinite; }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.aw-dot-pulse { animation: dotPulse 1.5s ease infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
.aw-scan-bar { height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin: 16px 0; opacity: 0; }
.aw-scan-bar.active { opacity: 1; }
.aw-scan-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--green-dark)); border-radius: 2px; transition: width 1.5s ease-out; }
.aw-demo-scores { opacity: 0; transform: translateY(8px); transition: all 0.4s ease; }
.aw-demo-scores.active { opacity: 1; transform: translateY(0); }
.aw-demo-row { opacity: 0; transform: translateY(6px); transition: all 0.3s ease; }
.aw-demo-row.active { opacity: 1; transform: translateY(0); }
.aw-demo-cta { margin-top: 16px; text-align: center; opacity: 0; transform: translateY(8px); transition: all 0.4s ease; }
.aw-demo-cta.active { opacity: 1; transform: translateY(0); }

/* ===== TRUST BAR ===== */
.trust-bar { padding: 32px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; align-items: center; }
.trust-stat { text-align: center; }
.trust-val { font-family: var(--mono); font-size: 1.5rem; font-weight: 800; color: var(--black); }
.trust-label { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }

/* ===== HOW IT WORKS (steps) ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ===== BEFORE / AFTER ===== */
.ba-section { background: var(--black); color: #fff; }
.ba-grid { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 0; align-items: stretch; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card { padding: 40px 32px; }
.ba-card.before { background: rgba(255,255,255,0.03); border-radius: var(--radius) 0 0 var(--radius); }
.ba-card.after { background: rgba(22,163,74,0.06); border-radius: 0 var(--radius) var(--radius) 0; }
.ba-arrow { display: flex; align-items: center; justify-content: center; color: var(--green); }
@media (max-width: 768px) { .ba-arrow { padding: 16px; } .ba-arrow svg { transform: rotate(90deg); } }
.ba-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.ba-label.red { color: var(--red); }
.ba-label.green { color: var(--green); }
.ba-items { display: flex; flex-direction: column; gap: 8px; }
.ba-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.ba-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ba-dot.red { background: #EF4444; }
.ba-dot.green { background: #4ADE80; }
.ba-ring-wrap { position: relative; width: 140px; height: 140px; margin-bottom: 20px; }
.ba-ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.ba-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.ba-ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; }
.ba-ring-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.ba-ring-value { font-family: var(--mono); font-size: 2.25rem; font-weight: 800; line-height: 1; }
.ba-ring-text { font-size: 0.6rem; color: rgba(255,255,255,0.3); margin-top: 4px; }
.ba-arrow svg { width: 32px; height: 32px; }
.ba-arrow-line { stroke: var(--green); stroke-width: 2; stroke-linecap: round; fill: none; }

/* ===== BLOG MACHINE ===== */
.blog-section { background: var(--surface); }
.blog-grid-home { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .blog-grid-home { grid-template-columns: 1fr; } }
.blog-flow { display: flex; flex-direction: column; gap: 12px; }
.blog-step { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8rem; transition: all 0.2s; }
.blog-step:hover { border-color: var(--green); }
.blog-step-num { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; }
.blog-step-text { font-weight: 500; color: var(--text); }
.blog-step-sub { font-weight: 400; color: var(--text-3); font-size: 0.75rem; }
.blog-badge {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono);
  font-size: 0.6rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; margin-top: 4px;
}

/* ===== TESTIMONIALS ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.2s; }
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-metric { font-family: var(--mono); font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 12px; }
.testi-quote { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; font-style: italic; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: var(--text-3); }
.testi-name { font-size: 0.8rem; font-weight: 600; }
.testi-role { font-size: 0.7rem; color: var(--text-3); }

/* ===== CTA INPUT (homepage) ===== */
.cta-input-wrap { display: flex; gap: 8px; justify-content: center; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.cta-input {
  flex: 1; min-width: 200px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: #fff; font-family: var(--font); font-size: 0.9rem; outline: none;
}
.cta-input::placeholder { color: rgba(255,255,255,0.3); }
.cta-input:focus { border-color: var(--green); }
.cta-note { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 12px; }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  .nav { animation: navSlide 0.4s ease forwards; }
  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== MOBILE SPACING ===== */
@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .hero { padding: 88px 20px 48px; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cta-box { padding: 32px 20px; }
  .ba-card { padding: 28px 20px; }
}

/* ===== FOCUS ===== */
*:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
