:root {
  --blanc: #fefcf9;
  --sable: #f7f3ee;
  --sable-dark: #ece6dd;
  --terre: #c4a882;
  --terre-dark: #a68b64;
  --noir: #1a1714;
  --noir-soft: #2d2824;
  --gris: #8a8279;
  --gris-light: #a69e95;
  --vert: #4a7c59;
  --rouge: #b85450;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Outfit', sans-serif; background: var(--blanc); color: var(--noir); line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; }
::selection { background: var(--terre); color: var(--blanc); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 4rem; display: flex; justify-content: space-between; align-items: center;
  background: rgba(254,252,249,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,168,130,0.12);
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--noir); text-decoration: none; font-weight: 500; }
.nav-logo span { color: var(--terre); font-weight: 300; }
.nav-cta { background: var(--noir); color: var(--sable); padding: 0.6rem 1.6rem; border-radius: 2px; text-decoration: none; font-size: 0.85rem; letter-spacing: 0.05em; transition: 0.3s; }
.nav-cta:hover { background: var(--terre-dark); }

/* ARTICLE */
.article-header {
  padding: 10rem 4rem 4rem; max-width: 820px; margin: 0 auto;
}
.article-header .breadcrumb { font-size: 0.8rem; color: var(--gris-light); margin-bottom: 2rem; }
.article-header .breadcrumb a { color: var(--terre); text-decoration: none; }
.article-header h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 1.5rem; }
.article-header .meta { font-size: 0.85rem; color: var(--gris); border-top: 1px solid var(--sable-dark); padding-top: 1rem; }

.article-body {
  max-width: 720px; margin: 0 auto; padding: 0 4rem 4rem;
  font-size: 1.05rem; color: var(--noir-soft);
}
.article-body h2 {
  font-size: 1.7rem; margin: 3rem 0 1.2rem; padding-top: 2rem;
  border-top: 1px solid var(--sable-dark);
}
.article-body h3 { font-size: 1.25rem; margin: 2rem 0 0.8rem; color: var(--terre-dark); }
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--noir); }

/* CALLOUT BOXES */
.callout {
  background: var(--sable); border-left: 3px solid var(--terre); padding: 1.5rem 2rem;
  margin: 2rem 0; border-radius: 0 4px 4px 0;
}
.callout.vert { border-left-color: var(--vert); background: #f0f7f2; }
.callout.rouge { border-left-color: var(--rouge); background: #fdf3f3; }
.callout p { margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }

/* TABLE */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem;
}
.comparison-table th {
  background: var(--noir); color: var(--sable); padding: 0.8rem 1.2rem;
  text-align: left; font-weight: 500; font-family: 'Outfit', sans-serif;
}
.comparison-table td {
  padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--sable-dark);
}
.comparison-table tr:nth-child(even) td { background: var(--sable); }

/* CTA BOX */
.cta-box {
  background: var(--noir); color: var(--sable); padding: 3rem; border-radius: 4px;
  margin: 3rem 0; text-align: center;
}
.cta-box h3 { color: var(--terre); margin-bottom: 1rem; font-size: 1.5rem; }
.cta-box p { margin-bottom: 1.5rem; color: var(--gris-light); }
.cta-box a {
  display: inline-block; background: var(--terre); color: var(--noir); padding: 0.8rem 2.5rem;
  text-decoration: none; font-weight: 500; letter-spacing: 0.05em; border-radius: 2px;
  transition: 0.3s;
}
.cta-box a:hover { background: var(--terre-dark); color: var(--blanc); }

/* FOOTER */
footer {
  background: var(--noir); color: var(--gris); text-align: center; padding: 3rem;
  font-size: 0.8rem;
}
footer a { color: var(--terre); text-decoration: none; }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .article-header { padding: 8rem 1.5rem 3rem; }
  .article-header h1 { font-size: 1.8rem; }
  .article-body { padding: 0 1.5rem 3rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
}

/* ═══ Refonte 2026 — aligné sur le design du site ═══ */
:root{
  --blanc:#ffffff; --blanc-pur:#ffffff;
  --sable:#f8fafc; --sable-dark:#f1f5f9; --warm:#e8ecf6;
  --terre:#4f6dff; --terre-dark:#3f5ae0; --terre-accent:#4f6dff;
  --noir:#0f172a; --noir-soft:#1e293b;
  --gris:#64748b; --gris-light:#94a3b8; --gris-pale:#cbd5e1;
  --vert-eco:#10b981; --rouge-cost:#f43f5e;
  --indigo:#4f6dff; --indigo-50:#eef2ff; --indigo-100:#dde2ff; --line:#e2e8f0;
  --font:'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
}
body, input, button, table { font-family: var(--font); }
body { background:#fff; color:var(--noir); }
h1,h2,h3,h4 { font-family:var(--font); font-weight:800; letter-spacing:-.035em; text-wrap:balance; color:var(--noir); }
h1 { line-height:1.06; }
h1 em, h2 em { font-style:normal; color:var(--indigo); font-weight:800; }
p, li { color:#475569; }
a { color:var(--indigo); }

.breadcrumb, .meta { color:var(--gris-light); font-weight:500; }
.nav-cta {
  background:var(--indigo); color:#fff; border-radius:9999px; font-weight:700;
  text-transform:none; letter-spacing:0; padding:.7rem 1.4rem;
  transition:background .2s, transform .25s var(--ease);
}
.nav-cta:hover { background:var(--terre-dark); transform:translateY(-2px); }

/* --- les tableaux comparatifs --- */
.comparison-table {
  width:100%; border-collapse:separate; border-spacing:0;
  background:#fff; border:1px solid var(--line);
  border-radius:20px; overflow:hidden;
  box-shadow:0 4px 12px -4px rgba(15,23,42,.06);
  margin:2rem 0; font-size:.94rem;
}
.comparison-table thead th {
  background:var(--noir); color:#fff;
  font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  padding:1rem 1.1rem; text-align:left; border:none;
}
.comparison-table td {
  padding:.95rem 1.1rem; border:none;
  border-bottom:1px solid var(--line);
  color:#475569; vertical-align:top;
}
.comparison-table tbody tr:last-child td { border-bottom:none; }
.comparison-table tbody tr:nth-child(even) td { background:var(--sable); }
.comparison-table tbody tr:hover td { background:var(--indigo-50); }
.comparison-table td:first-child { font-weight:700; color:var(--noir); }
.comparison-table strong { color:var(--noir); font-weight:700; }

/* --- encadrés --- */
.callout {
  border-radius:20px; padding:1.4rem 1.6rem; margin:2rem 0;
  border:1px solid var(--line); border-left-width:4px;
}
.callout.vert  { background:#ecfdf5; border-color:#a7f3d0; border-left-color:var(--vert-eco); }
.callout.rouge { background:#fff1f2; border-color:#fecdd3; border-left-color:var(--rouge-cost); }
.callout p { margin:0; color:#475569; }

.cta-box {
  background:var(--noir); border-radius:28px; padding:2.5rem 2rem; text-align:center;
  box-shadow:0 30px 80px -20px rgba(15,23,42,.2);
}
.cta-box h3, .cta-box h2 { color:#fff; }
.cta-box p { color:#cbd5e1; }
.cta-box a {
  background:var(--indigo); color:#fff; border-radius:9999px;
  font-weight:700; text-transform:none; letter-spacing:0;
  padding:1rem 2rem; display:inline-flex; align-items:center; gap:.55rem;
  box-shadow:0 10px 25px -8px rgba(79,109,255,.55);
  transition:background .2s, transform .25s var(--ease);
}
.cta-box a:hover { background:var(--terre-dark); transform:translateY(-2px); }

@media (max-width:640px){
  .comparison-table { display:block; overflow-x:auto; white-space:nowrap; }
}
@media (prefers-reduced-motion: reduce){ *{transition-duration:.001ms !important} }

/* ═══ Composants ajoutés pour le pôle éditorial ═══ */

.chapeau {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--noir);
  font-weight: 500;
  padding-left: 1.1rem;
  border-left: 3px solid var(--indigo);
  margin-bottom: 2rem;
}

.relatifs {
  max-width: 780px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
}
.relatifs h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.relatifs-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.relatif {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), border-color .2s;
}
.relatif:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(15,23,42,.18);
  border-color: var(--indigo-100);
}
.relatif-cat {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--indigo);
}
.relatif strong {
  font-size: .98rem;
  font-weight: 700;
  color: var(--noir);
  letter-spacing: -.015em;
  line-height: 1.3;
}
.relatif-desc { font-size: .84rem; color: #64748b; line-height: 1.45; }

/* Index du blog */
.blog-hero { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.blog-hero p { font-size: 1.05rem; color: #475569; max-width: 60ch; }

.blog-liste { max-width: 780px; margin: 2.5rem auto 0; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.blog-carte {
  display: block;
  padding: 1.6rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), border-color .2s;
}
.blog-carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -20px rgba(15,23,42,.2);
  border-color: var(--indigo-100);
}
.blog-carte .cat {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--indigo);
  background: var(--indigo-50); padding: .25rem .6rem; border-radius: 9999px;
}
.blog-carte h2 {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -.025em;
  color: var(--noir); margin: .75rem 0 .4rem; line-height: 1.25;
}
.blog-carte p { color: #475569; font-size: .95rem; margin: 0; line-height: 1.55; }
.blog-carte .lire { display: inline-block; margin-top: .8rem; color: var(--indigo); font-weight: 700; font-size: .88rem; }
.blog-carte:hover .lire::after { content: " →"; }

@media (max-width: 640px) {
  .blog-carte { padding: 1.25rem 1.35rem; }
  .relatifs-grille { grid-template-columns: 1fr; }
}

.note {
  font-size: .85rem;
  color: #64748b;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2.5rem;
  font-style: italic;
}

/* Rubriques de l'index du blog */
.blog-section { max-width: 780px; margin: 3.5rem auto 0; padding: 0 1.5rem; }
.blog-section-tete { border-bottom: 2px solid var(--noir); padding-bottom: .7rem; margin-bottom: 1.5rem; }
.blog-section-tete h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .35rem;
}
.blog-section-tete p { font-size: .92rem; color: #64748b; margin: 0; line-height: 1.5; }
.blog-liste { margin-top: 0; padding: 0; }
