/* ============================================================
   CCOptimizer.fr — Styles communs pages articles SEO
   ============================================================ */

/* ── Layout header article ── */
.seo-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 2rem 0 3rem;
}
.seo-header .nav { padding: 0 2rem; }
.seo-header .nav a { color: rgba(255,255,255,.85); }
.seo-header .nav a:hover { color: #fff; }
.seo-header .btn-nav {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  padding: 1.5rem 2rem .75rem;
  max-width: 820px;
  margin: 0 auto;
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 .4rem; }

/* ── Article hero ── */
.article-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  color: #fff;
}
.article-hero .tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}
.article-hero .meta {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

/* ── Body article ── */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--neutral-700, #334155);
  margin: 0 0 1.4rem;
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--neutral-900, #0f172a);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-light, #EEF2FF);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #4F46E5);
  margin: 1.8rem 0 .6rem;
}
.article-body ul {
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
}
.article-body ul li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--neutral-700, #334155);
  margin-bottom: .35rem;
}
.article-body strong { color: var(--neutral-900, #0f172a); }

/* ── Encart chiffre clé ── */
.key-stat {
  background: var(--primary-light, #EEF2FF);
  border-left: 4px solid var(--primary, #4F46E5);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}
.key-stat p {
  margin: 0;
  font-size: 1rem;
  color: var(--neutral-800, #1e293b);
}
.key-stat strong { color: var(--primary, #4F46E5); font-size: 1.1rem; }

/* ── Listes numérotées (coûts cachés / leviers) ── */
.hidden-costs,
.levier-list {
  counter-reset: cost;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.hidden-costs li,
.levier-list li {
  counter-increment: cost;
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  background: #fff;
  border: 1px solid var(--neutral-200, #e2e8f0);
  border-radius: 10px;
  margin-bottom: .75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--neutral-700, #334155);
}
.hidden-costs li::before,
.levier-list li::before {
  content: counter(cost);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.6rem;
  height: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hidden-costs li strong,
.levier-list li strong {
  display: block;
  font-weight: 700;
  color: var(--neutral-900, #0f172a);
  margin-bottom: .3rem;
}

/* ── Tableau comparatif ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .95rem;
}
.compare-table th {
  background: var(--primary, #4F46E5);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.compare-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--neutral-200, #e2e8f0);
  color: var(--neutral-700, #334155);
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: var(--neutral-50, #f8fafc); }
.compare-table tr:hover td { background: var(--primary-light, #EEF2FF); }

/* ── CTA duo intro ── */
.cta-duo {
  display: flex;
  gap: .75rem;
  margin: 1.75rem 0 2.5rem;
}
.cta-duo a, .cta-duo button {
  flex: 1;
  display: block;
  padding: .75rem 1rem;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.cta-duo .btn-diag {
  background: var(--primary, #4F46E5);
  color: #fff;
}
.cta-duo .btn-diag:hover { opacity: .9; }
.cta-duo .btn-rdv {
  background: #fff;
  color: var(--primary, #4F46E5);
  border: 2px solid var(--primary, #4F46E5);
}
.cta-duo .btn-rdv:hover { background: var(--primary-light, #EEF2FF); }

/* ── CTA milieu d'article ── */
.cta-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--primary-light, #EEF2FF);
  border: 1px solid var(--primary, #4F46E5);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.cta-mid p {
  margin: 0;
  font-size: .95rem;
  color: var(--neutral-800, #1e293b);
  line-height: 1.5;
}
.cta-mid .btn-mid {
  flex-shrink: 0;
  background: var(--primary, #4F46E5);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: .65rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cta-mid .btn-mid:hover { opacity: .9; }

/* ── CTA box fin d'article ── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0 0;
}
.cta-box h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  border: none;
  padding: 0;
}
.cta-box p {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}
.cta-box .btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--primary, #4F46E5);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.cta-box .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ── Sources ── */
.sources-section {
  margin: 3rem 0 0;
  padding: 1.5rem;
  background: var(--neutral-50, #f8fafc);
  border: 1px solid var(--neutral-200, #e2e8f0);
  border-radius: 10px;
}
.sources-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-700, #334155);
  margin: 0 0 .75rem;
  border: none;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sources-section ol {
  margin: 0;
  padding-left: 1.4rem;
}
.sources-section li {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--neutral-500, #64748b);
  margin-bottom: .4rem;
}
.sources-section a {
  color: var(--primary, #4F46E5);
  text-decoration: none;
}
.sources-section a:hover { text-decoration: underline; }
sup.cite {
  font-size: .7rem;
  color: var(--primary, #4F46E5);
  font-weight: 600;
  margin-left: 1px;
  vertical-align: super;
}

/* ── À lire aussi ── */
.also-read {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--neutral-50, #f8fafc);
  border: 1px solid var(--neutral-200, #e2e8f0);
  border-radius: 10px;
}
.also-read h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-700, #334155);
  margin: 0 0 .75rem;
  border: none;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.also-read ul { margin: 0; padding-left: 1.2rem; }
.also-read ul li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--neutral-600, #475569);
  margin-bottom: .25rem;
}
.also-read ul li a { color: var(--primary, #4F46E5); text-decoration: none; }
.also-read ul li a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .cta-duo { flex-direction: column; }
  .cta-mid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .article-body { padding: 2rem 1.2rem 3rem; }
  .compare-table { font-size: .85rem; }
  .hidden-costs li,
  .levier-list li { padding-left: 3rem; }
}
