:root{
  --terracotta:#C45A3F;
  --terracotta-deep:#A84A33;
  --terracotta-soft:#E8A18F;
  --dark:#2B1E16;
  --mid:#8B5A3C;
  --muted:#595959;
  --cream:#FAF5EE;
  --cream-deep:#F2E9DA;
  --border:#E8DDD0;
  --success:#7A8B5F;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--dark);
  background:#fff;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces',Georgia,serif;
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.12;
  margin:0;
  text-wrap:balance;
}
p{margin:0;text-wrap:pretty}
a{color:inherit}

.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1100px;margin:0 auto;
  padding:16px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.logo{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'Fraunces',serif;font-size:21px;font-weight:600;
  color:var(--dark);text-decoration:none;
}
.logo-mark{
  width:32px;height:32px;border-radius:8px;
  background:var(--terracotta);color:#fff;
  display:grid;place-items:center;
  font-family:'Fraunces',serif;font-weight:600;font-size:16px;
}
.nav-links{display:flex;gap:24px;align-items:center}
.nav-links a{
  color:var(--dark);text-decoration:none;font-size:15px;font-weight:500;
  transition:color .15s;
}
.nav-links a:hover{color:var(--terracotta)}
.nav-cta{
  padding:10px 18px;background:var(--terracotta);color:#fff!important;
  border-radius:9px;text-decoration:none;font-size:14px;font-weight:600;
  transition:background .15s;
}
.nav-cta:hover{background:var(--terracotta-deep)}
@media (max-width:720px){
  .nav-links{display:none}
}

.eyebrow{
  display:inline-block;font-size:12px;letter-spacing:0.16em;
  text-transform:uppercase;color:var(--terracotta);font-weight:700;
  margin-bottom:18px;
}

/* ─── Article ──────────────────────────────────── */
.article{max-width:720px;margin:0 auto;padding:56px 24px 80px}
.article-head{margin-bottom:48px}
.article-head h1{font-size:48px;line-height:1.05;margin-bottom:18px}
.article-sub{
  font-size:20px;color:var(--muted);line-height:1.5;
  margin:0 0 28px;
}
.article-byline{
  display:flex;gap:12px;align-items:center;
  font-size:14px;color:var(--muted);
  padding-bottom:32px;border-bottom:1px solid var(--border);
}
.article-byline strong{color:var(--dark);font-weight:600}
.article-byline .dot{color:var(--border)}

.article-content{font-size:18px;line-height:1.7}
.article-content > *:first-child{margin-top:0}
.article-content h2{font-size:30px;margin:56px 0 18px;line-height:1.15}
.article-content h3{font-size:22px;margin:36px 0 12px;line-height:1.2}
.article-content p{margin:0 0 22px}
.article-content a{color:var(--terracotta);text-decoration:underline;text-underline-offset:3px}
.article-content a:hover{color:var(--terracotta-deep)}
.article-content strong{color:var(--dark);font-weight:600}
.article-content em{font-style:italic}
.article-content ul,.article-content ol{margin:0 0 24px;padding-left:24px}
.article-content li{margin-bottom:8px}
.article-content blockquote{
  border-left:3px solid var(--terracotta);
  padding:6px 0 6px 22px;margin:28px 0;
  color:var(--dark);
}
.article-content blockquote p{margin:0 0 12px;font-style:italic}
.article-content blockquote p:last-child{margin:0}
.article-content blockquote h3{font-style:normal;font-size:20px;margin:0 0 8px}
.article-content hr{
  border:0;border-top:1px solid var(--border);margin:48px 0;
}
.article-content code{
  background:var(--cream);padding:2px 6px;border-radius:4px;
  font-family:'JetBrains Mono',monospace;font-size:0.92em;
}
.article-content .table-wrap{
  overflow-x:auto;margin:0 0 24px;
  border:1px solid var(--border);border-radius:12px;
}
.article-content table{
  width:100%;border-collapse:collapse;font-size:15px;
}
.article-content th,.article-content td{
  padding:12px 16px;text-align:left;border-bottom:1px solid var(--border);
}
.article-content th{
  background:var(--cream);font-weight:600;font-size:13px;
  text-transform:uppercase;letter-spacing:.04em;
}
.article-content tr:last-child td{border-bottom:none}
.article-content td:not(:first-child),.article-content th:not(:first-child){text-align:center}

/* ─── CTA en fin d'article ────────────────────── */
.article-cta{
  margin-top:64px;padding:36px 32px;
  background:var(--cream);border-radius:18px;text-align:center;
}
.article-cta h3{font-size:24px;margin:0 0 8px}
.article-cta p{margin:0 0 22px;color:var(--muted)}
.btn-primary{
  display:inline-block;background:var(--terracotta);color:#fff;
  padding:13px 24px;border-radius:10px;text-decoration:none;
  font-weight:600;font-size:15px;margin:0 4px 8px;
  transition:background .15s;
}
.btn-primary:hover{background:var(--terracotta-deep)}
.btn-ghost{
  display:inline-block;color:var(--terracotta);
  padding:13px 18px;text-decoration:none;
  font-weight:600;font-size:15px;margin:0 4px 8px;
}
.btn-ghost:hover{color:var(--terracotta-deep)}

.back-link{
  display:inline-block;margin-top:48px;
  color:var(--muted);text-decoration:none;font-size:14px;
}
.back-link:hover{color:var(--terracotta)}

/* ─── Index ────────────────────────────────────── */
.index-hero{
  max-width:780px;margin:0 auto;padding:64px 24px 32px;text-align:center;
}
.index-hero .eyebrow{margin-bottom:14px}
.index-hero h1{font-size:48px;margin:0 0 16px;line-height:1.08}
.index-hero p{font-size:18px;color:var(--muted);max-width:560px;margin:0 auto;line-height:1.55}

.articles-grid{
  max-width:920px;margin:0 auto;padding:24px 24px 80px;
  display:grid;gap:20px;
}
@media (min-width:760px){
  .articles-grid{grid-template-columns:1fr 1fr}
}
.article-card{
  display:flex;flex-direction:column;
  padding:30px;
  background:#fff;border:1px solid var(--border);border-radius:16px;
  text-decoration:none;color:var(--dark);
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.article-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px -20px rgba(43,30,22,.18);
  border-color:var(--terracotta-soft);
}
.article-card .meta{
  font-size:11px;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--terracotta);font-weight:700;margin-bottom:14px;
}
.article-card h2{font-size:22px;margin:0 0 12px;line-height:1.2}
.article-card p{font-size:15px;color:var(--muted);margin:0 0 18px;flex:1}
.article-card .read{font-size:13px;color:var(--terracotta);font-weight:600}

/* ─── Footer ───────────────────────────────────── */
.site-footer{
  border-top:1px solid var(--border);background:var(--cream);
  padding:24px 24px;
}
.footer-inner{
  max-width:1100px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-size:13px;color:var(--muted);
}
.footer-inner a{color:var(--muted);text-decoration:none}
.footer-inner a:hover{color:var(--terracotta)}

@media (max-width:640px){
  .article-head h1{font-size:34px}
  .article-content h2{font-size:24px}
  .article-content h3{font-size:19px}
  .article-content{font-size:17px}
  .index-hero h1{font-size:32px}
}
