/* =========================================================
   cliquerctrouver.fr — Site-v2 Design System
   ========================================================= */

/* ---------------------------------------------------------
   CSS Variables
   --------------------------------------------------------- */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;
  --primary-pale:  #dbeafe;
  --accent:        #f97316;
  --accent-light:  #fff7ed;
  --green:         #16a34a;
  --green-light:   #f0fdf4;
  --red:           #dc2626;
  --red-light:     #fef2f2;
  --yellow:        #ca8a04;
  --yellow-light:  #fefce8;
  --dark:          #0f172a;
  --dark-mid:      #1e293b;
  --text:          #334155;
  --text-light:    #64748b;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --border:        rgba(15, 23, 42, 0.10);
  --shadow:        rgba(15, 23, 42, 0.08);
  --radius:        10px;
  --radius-lg:     16px;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  margin: 0;
  padding: 0;
}

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

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
p {
  margin-bottom: 1.1rem;
  line-height: 1.9;
  color: var(--text);
}

h1, h2 {
  font-family: 'Lora', Georgia, serif;
  color: var(--dark);
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark-mid);
  margin-bottom: 0.65rem;
  margin-top: 0;
  line-height: 1.4;
}

h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 0.5rem;
  margin-top: 0;
  line-height: 1.4;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-wide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 90px;
}

/* ---------------------------------------------------------
   Site Header
   --------------------------------------------------------- */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px var(--shadow);
}

.header-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* ---------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------- */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  color: var(--text-light);
  margin: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Page Hero
   --------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.page-hero .meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   Badges
   --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.badge-blue {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.badge-orange {
  background: var(--accent-light);
  color: #c2410c;
}

.badge-green {
  background: var(--green-light);
  color: #15803d;
}

/* ---------------------------------------------------------
   Sidebar Components
   --------------------------------------------------------- */
.sidebar-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-block h4 {
  margin-bottom: 0.75rem;
}

.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc li {
  margin-bottom: 0.3rem;
}

.sidebar-toc a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-toc a:hover,
.sidebar-toc a.active {
  background: var(--primary-pale);
  color: var(--primary);
  text-decoration: none;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.4rem;
}

.sidebar-links a {
  font-size: 0.88rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.sidebar-links a::before {
  content: "→";
  font-size: 0.8rem;
}

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

.sidebar-cta {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.sidebar-cta h4 {
  color: #e2e8f0;
}

.sidebar-cta p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.sidebar-cta a {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-cta a:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* ---------------------------------------------------------
   Quick Nav
   --------------------------------------------------------- */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
  padding: 1.25rem 0;
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.quick-nav-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--primary);
  text-decoration: none;
}

.quick-nav-rank {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Comparison Table
   --------------------------------------------------------- */
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px var(--shadow);
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}

.comparison-table thead tr {
  background: var(--dark);
  color: white;
}

.comparison-table thead th {
  padding: 0.8rem 1rem;
  font-weight: 600;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.comparison-table tbody tr:hover {
  background: var(--primary-light);
}

.comparison-table td {
  padding: 0.7rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--dark);
}

.comparison-table .best-pick td {
  position: relative;
}

.comparison-table .best-pick td:first-child::before {
  content: "⭐ ";
}

.verdict-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.verdict-best {
  background: var(--green-light);
  color: #15803d;
}

.verdict-value {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.verdict-advanced {
  background: var(--accent-light);
  color: #c2410c;
}

.verdict-free {
  background: var(--yellow-light);
  color: #92400e;
}

/* ---------------------------------------------------------
   Tool Article Cards
   --------------------------------------------------------- */
.tool-article {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  scroll-margin-top: 80px;
  transition: box-shadow 0.2s;
}

.tool-article:hover {
  box-shadow: 0 8px 24px var(--shadow);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-title-block {
  flex: 1;
  min-width: 0;
}

.tool-title-block h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.tool-verdict-line {
  font-size: 0.92rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 17px;
  height: 17px;
}

.tool-meta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tool-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}

.free-tag {
  background: var(--green-light);
  border-color: #bbf7d0;
  color: #15803d;
}

/* ---------------------------------------------------------
   Pros / Cons
   --------------------------------------------------------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.pros-block, .pros {
  background: var(--green-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.cons-block, .cons {
  background: var(--red-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.pros-block h4, .pros h4 {
  color: #15803d;
  margin-bottom: 0.5rem;
}

.cons-block h4, .cons h4 {
  color: #b91c1c;
  margin-bottom: 0.5rem;
}

.pros-block ul, .pros ul,
.cons-block ul, .cons ul {
  padding-left: 1.1rem;
  margin: 0;
}

.pros-block li, .pros li {
  color: #14532d;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.cons-block li, .cons li {
  color: #7f1d1d;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

/* ---------------------------------------------------------
   Pricing Table (inside tool article)
   --------------------------------------------------------- */
.pricing-table {
  width: 100%;
  font-size: 0.85rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  background: var(--bg-alt);
  padding: 0.55rem 0.9rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.pricing-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table .highlight-row td {
  background: var(--primary-pale);
  font-weight: 600;
  color: var(--primary-dark);
}

/* ---------------------------------------------------------
   Pour Qui Block
   --------------------------------------------------------- */
.pour-qui {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.pour-qui h4 {
  margin-bottom: 0.4rem;
}

/* ---------------------------------------------------------
   Info Box
   --------------------------------------------------------- */
.info-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  align-items: flex-start;
}

.info-box.info {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
}

.info-box.tip {
  background: var(--green-light);
  border-left: 4px solid var(--green);
}

.info-box.warn {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
}

.info-box h3 {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.info-box p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   CTA Buttons
   --------------------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
  text-decoration: none;
}

.cta-primary {
  background: var(--primary);
  color: white;
}

.cta-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.cta-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-outline:hover {
  color: var(--primary);
}

.cta-orange {
  background: var(--accent);
  color: white;
}

.cta-orange:hover {
  color: white;
}

.gap-btn {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-section {
  padding: 2.5rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-alt);
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.faq-question:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.faq-answer {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  border-top: 1px solid var(--border);
  display: none;
  line-height: 1.8;
}

.faq-answer.open {
  display: block;
}

.faq-icon {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-icon.open {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------
   Verdict Section
   --------------------------------------------------------- */
.verdict-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
}

.verdict-section h2 {
  color: white;
  font-family: 'Lora', Georgia, serif;
}

.verdict-section p {
  color: #e2e8f0;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.verdict-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.verdict-card .profile {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.verdict-card .tool-name {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.verdict-card .reason {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.verdict-card h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.verdict-card p {
  color: #e2e8f0;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  text-decoration: none;
}

/* ---------------------------------------------------------
   Section Utilities
   --------------------------------------------------------- */
.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ---------------------------------------------------------
   Home Hero
   --------------------------------------------------------- */
.home-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: white;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.home-hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.9rem;
}

.home-hero .tagline {
  font-size: 1.05rem;
  color: #93c5fd;
  max-width: 580px;
  margin: 0 auto 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   Category Grid (Homepage)
   --------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  margin: 2rem 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.category-card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.category-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.category-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.category-card .tools-count {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.7rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: #64748b;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #93c5fd;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
  color: #475569;
}

.footer-bottom a {
  color: #475569;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #93c5fd;
}

/* ---------------------------------------------------------
   Responsive — 900px
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

/* ---------------------------------------------------------
   Responsive — 768px
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

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

/* ---------------------------------------------------------
   Responsive — 600px
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .comparison-table {
    font-size: 0.82rem;
  }

  .tool-article {
    padding: 1.25rem;
  }

  .verdict-section {
    padding: 1.5rem;
  }
}

/* ============================================================
   PAGE 404
   ============================================================ */

.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.error-404-inner {
  max-width: 560px;
}

.error-code {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.12;
  letter-spacing: -0.04em;
  margin-bottom: -1.5rem;
  user-select: none;
}

.error-404-inner h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.error-404-inner > p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-home:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.error-suggestions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.error-suggestions h2 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.error-suggestions ul li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) / 2);
  border: 1px solid var(--color-border);
  transition: background 0.15s, border-color 0.15s;
}

.error-suggestions ul li a::before {
  content: '→';
  font-size: 0.8rem;
  opacity: 0.6;
}

.error-suggestions ul li a:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}

@media (max-width: 480px) {
  .error-suggestions ul {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Radar Chart
   --------------------------------------------------------- */
.radar-section {
  margin: 1.75rem 0 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.radar-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 1.25rem;
}

.radar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.radar-svg-wrap {
  width: 100%;
}

.radar-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.radar-scores {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.radar-score-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.radar-score-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.radar-score-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
}

.radar-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tool-color, var(--primary));
  white-space: nowrap;
  flex-shrink: 0;
}

.radar-value small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.7;
}

.radar-bar-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.radar-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--tool-color, var(--primary));
}

@media (max-width: 680px) {
  .radar-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Aliases — pages avec ancien template
   (breadcrumb-nav, tool-header__info, tool-tagline, btn…)
   --------------------------------------------------------- */

/* Fil d'Ariane */
.breadcrumb-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.breadcrumb-nav ol {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb-nav li {
  color: var(--text-light);
  margin: 0;
}

.breadcrumb-nav li + li::before {
  content: "›";
  margin-right: 0.4rem;
}

.breadcrumb-nav a {
  color: var(--primary);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* Hero subtitle */
.page-hero__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

/* En-tête d'outil */
.tool-header__info {
  flex: 1;
  min-width: 0;
}

.tool-header__info h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

/* Tagline outil */
.tool-tagline {
  font-size: 0.92rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Étoiles */
.tool-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.stars-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Boutons (alias .btn .btn-primary → .cta-btn .cta-primary) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
  text-decoration: none;
}

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

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

/* Wrapper CTA */
.tool-cta {
  margin-top: 1.25rem;
}
