/* ─────────────────────────────────────────────
   JWL Blog — Styles publics
   Palette : #0f0f0f noir · #A8874A or · #fff blanc
   ───────────────────────────────────────────── */

:root {
  --noir:        #0f0f0f;
  --noir-light:  #1a1a1a;
  --or:          #A8874A;
  --or-hover:    #8f6e33;
  --or-pale:     #f5ede0;
  --or-border:   #e0d5c5;
  --blanc:       #ffffff;
  --gris-bg:     #f8f6f2;
  --gris-border: #e8e2d9;
  --texte:       #1a1a1a;
  --texte-muted: #6b6560;
  --texte-light: #9a9490;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
  --font-sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --trans:       0.2s ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--or-hover); }
ul { list-style: none; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--noir-light);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1rem; }

/* ── Container ─────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ── Boutons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--trans);
  text-decoration: none; white-space: nowrap;
}
.btn-or   { background: var(--or); color: var(--blanc); }
.btn-or:hover { background: var(--or-hover); color: var(--blanc); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(168,135,74,.35); }
.btn-dark { background: var(--noir-light); color: var(--blanc); }
.btn-dark:hover { background: var(--noir); color: var(--blanc); }
.btn-outline { background: transparent; color: var(--or); border: 1.5px solid var(--or); }
.btn-outline:hover { background: var(--or); color: var(--blanc); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }

/* ── Header ────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--noir);
  border-bottom: 1px solid rgba(168,135,74,.2);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--blanc); text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 36px; width: auto; }
.site-logo-text { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--blanc); }
.site-logo-sub { font-size: .72rem; color: var(--or); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a {
  color: rgba(255,255,255,.75); padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; transition: all var(--trans);
}
.main-nav a:hover, .main-nav a.active { color: var(--blanc); background: rgba(168,135,74,.2); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Search form header */
.header-search { position: relative; }
.header-search input {
  background: rgba(255,255,255,.08); border: 1px solid rgba(168,135,74,.3);
  color: var(--blanc); padding: 7px 36px 7px 14px; border-radius: 20px;
  font-size: .85rem; width: 200px; font-family: var(--font-sans);
  transition: all var(--trans);
}
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.header-search input:focus { outline: none; background: rgba(255,255,255,.12); border-color: var(--or); width: 240px; }
.header-search button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; padding: 0; line-height: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; color: var(--blanc); cursor: pointer; padding: 4px;
}

/* ── Hero Blog ─────────────────────────────── */
.blog-hero {
  background: var(--noir); padding: 60px 0 50px;
  border-bottom: 1px solid rgba(168,135,74,.15);
}
.blog-hero h1 { color: var(--blanc); margin-bottom: 10px; }
.blog-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 540px; }

/* Fil d'Ariane */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .82rem; color: var(--texte-muted); margin-bottom: 8px;
}
.breadcrumb a { color: var(--or); }
.breadcrumb svg { opacity: .5; }

/* ── Section titre ─────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--texte-muted); max-width: 520px; margin: 0 auto; }
.section-line {
  width: 48px; height: 3px; background: var(--or);
  margin: 14px auto 0; border-radius: 2px;
}

/* ── Grille d'articles ─────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--blanc); border: 1px solid var(--gris-border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.article-card__img {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gris-bg);
}
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card__img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gris-bg), var(--or-pale));
  color: var(--or); font-size: 2.5rem;
}
.article-card__category {
  position: absolute; top: 12px; left: 12px;
  background: var(--noir); color: var(--blanc);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.article-card__featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--or); color: var(--blanc);
  font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}

.article-card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.article-card__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: var(--texte-muted); margin-bottom: 10px;
}
.article-card__meta svg { flex-shrink: 0; }
.article-card__title {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--noir-light); margin-bottom: 8px; line-height: 1.35;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--or); }
.article-card__excerpt {
  font-size: .9rem; color: var(--texte-muted); line-height: 1.55;
  flex: 1; margin-bottom: 16px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--gris-border);
  font-size: .82rem;
}
.article-card__author {
  display: flex; align-items: center; gap: 7px; color: var(--texte-muted);
}
.article-card__author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.article-card__readmore { color: var(--or); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.article-card__readmore:hover { color: var(--or-hover); }

/* ── Article vedette ──────────────────────── */
.featured-article {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--gris-border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 56px; background: var(--blanc);
  box-shadow: var(--shadow);
}
.featured-article__img { position: relative; overflow: hidden; min-height: 340px; }
.featured-article__img img { width: 100%; height: 100%; object-fit: cover; }
.featured-article__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--or); color: var(--blanc);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.featured-article__body {
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
}
.featured-article__cat { color: var(--or); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.featured-article__title { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 14px; line-height: 1.25; }
.featured-article__title a { color: inherit; }
.featured-article__title a:hover { color: var(--or); }
.featured-article__excerpt { color: var(--texte-muted); margin-bottom: 24px; line-height: 1.6; }
.featured-article__meta { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--texte-muted); margin-top: auto; }

/* ── Sidebar ────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: var(--blanc); border: 1px solid var(--gris-border);
  border-radius: var(--radius); padding: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--or-pale); color: var(--noir-light);
}

/* Categories widget */
.cat-list li { margin-bottom: 4px; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; color: var(--texte); font-size: .9rem; border-bottom: 1px solid var(--gris-border);
  transition: color var(--trans);
}
.cat-list a:hover { color: var(--or); }
.cat-list .count {
  background: var(--gris-bg); color: var(--texte-muted);
  font-size: .75rem; padding: 2px 7px; border-radius: 10px;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  background: var(--gris-bg); color: var(--texte-muted);
  padding: 4px 12px; border-radius: 20px; font-size: .8rem;
  border: 1px solid var(--gris-border); transition: all var(--trans);
}
.tag-cloud a:hover { background: var(--or); color: var(--blanc); border-color: var(--or); }

/* Recent posts */
.recent-posts li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--gris-border); }
.recent-posts li:last-child { margin: 0; padding: 0; border: 0; }
.recent-posts .rp-title { font-weight: 600; font-size: .9rem; color: var(--noir-light); margin-bottom: 3px; line-height: 1.3; }
.recent-posts .rp-title a { color: inherit; }
.recent-posts .rp-title a:hover { color: var(--or); }
.recent-posts .rp-date { font-size: .78rem; color: var(--texte-muted); }

/* ── Single article ─────────────────────────── */
.article-hero { position: relative; background: var(--noir); }
.article-hero__img { max-height: 500px; overflow: hidden; }
.article-hero__img img { width: 100%; height: 500px; object-fit: cover; opacity: .75; }
.article-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.7) 100%);
}
.article-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 0;
}
.article-hero-noimg { background: var(--gris-bg); padding: 60px 0 40px; }
.article-hero-noimg .container-sm h1 { color: var(--noir-light); }

.article-category-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--or); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px;
}
.article-category-link:hover { color: var(--or-hover); }

.article-title-hero { color: var(--blanc); font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 16px; }
.article-title-noimg { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 16px; }
.article-meta-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: rgba(255,255,255,.75); }
.article-meta-noimg { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--texte-muted); margin-top: 8px; }

.article-author-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--or); object-fit: cover; }

/* Article content */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; margin-top: 48px; margin-bottom: 64px; }
.article-content { max-width: 720px; }

.prose { font-size: 1.05rem; line-height: 1.8; color: var(--texte); }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-serif); margin: 2rem 0 .75rem; color: var(--noir-light); }
.prose h2 { font-size: 1.6rem; padding-bottom: 8px; border-bottom: 2px solid var(--or-pale); }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; }
.prose p  { margin-bottom: 1.4rem; }
.prose a  { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--or-hover); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.prose ul li { list-style: disc; margin-bottom: .4rem; }
.prose ol li { list-style: decimal; margin-bottom: .4rem; }
.prose blockquote {
  border-left: 4px solid var(--or); padding: 16px 20px; margin: 2rem 0;
  background: var(--or-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--noir-light);
}
.prose code {
  background: var(--gris-bg); padding: 2px 6px; border-radius: 4px;
  font-family: 'Fira Mono', monospace; font-size: .9em;
}
.prose pre {
  background: var(--noir-light); padding: 20px; border-radius: var(--radius);
  overflow-x: auto; margin-bottom: 1.4rem;
}
.prose pre code { background: none; padding: 0; color: #e8d5b0; font-size: .9rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
.prose th { background: var(--noir-light); color: var(--blanc); padding: 10px 14px; text-align: left; font-size: .9rem; }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--gris-border); }
.prose tr:nth-child(even) td { background: var(--gris-bg); }
.prose hr { border: none; border-top: 2px solid var(--gris-border); margin: 2.5rem 0; }

/* Sticky TOC / share sidebar */
.article-sidebar { position: sticky; top: 88px; }
.share-box { background: var(--blanc); border: 1px solid var(--gris-border); border-radius: var(--radius); padding: 20px; }
.share-box h4 { font-size: .9rem; margin-bottom: 14px; color: var(--texte-muted); text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-sans); font-weight: 700; }
.share-links { display: flex; flex-direction: column; gap: 8px; }
.share-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500;
  transition: all var(--trans); color: var(--blanc);
}
.share-link--facebook { background: #1877F2; }
.share-link--twitter  { background: #000; }
.share-link--linkedin { background: #0A66C2; }
.share-link--copy     { background: var(--gris-bg); color: var(--texte); }
.share-link:hover { opacity: .88; transform: translateX(2px); }

/* Article tags */
.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--gris-border); }
.article-tags span { font-size: .82rem; color: var(--texte-muted); font-weight: 600; }
.tag-pill {
  background: var(--gris-bg); color: var(--texte-muted);
  padding: 4px 13px; border-radius: 20px; font-size: .8rem;
  border: 1px solid var(--gris-border); transition: all var(--trans);
}
.tag-pill:hover { background: var(--or); color: var(--blanc); border-color: var(--or); }

/* Author box */
.author-box {
  display: flex; gap: 20px; padding: 28px; margin: 40px 0;
  background: var(--gris-bg); border-radius: var(--radius);
  border: 1px solid var(--gris-border);
}
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--or); object-fit: cover; }
.author-box__name { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }
.author-box__role { font-size: .8rem; color: var(--or); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.author-box__bio { font-size: .9rem; color: var(--texte-muted); line-height: 1.55; }

/* ── Commentaires ───────────────────────────── */
.comments-section { margin-top: 64px; padding-top: 48px; border-top: 2px solid var(--gris-border); }
.comments-section > h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 32px; color: var(--noir); }

.comment-item { display: flex; gap: 16px; margin-bottom: 28px; }
.comment-replies { margin-left: 58px; margin-top: -8px; padding-left: 16px; border-left: 2px solid var(--or); opacity: .9; }
.comment-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--or); background: var(--noir); overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; background: var(--gris-bg); border-radius: var(--radius); padding: 18px 20px; border-left: 3px solid var(--or); }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-name { font-weight: 700; font-size: .92rem; color: var(--noir); }
.comment-date { font-size: .78rem; color: var(--texte-muted); margin-left: auto; }
.comment-text { font-size: .92rem; line-height: 1.7; color: var(--texte); }
.comment-reply-btn { margin-top: 10px; background: none; border: none; color: var(--or); font-size: .82rem; cursor: pointer; padding: 0; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.comment-reply-btn:hover { color: var(--or-hover); }

.comment-form { margin-top: 48px; padding: 32px; background: var(--gris-bg); border-radius: var(--radius); border: 1px solid var(--gris-border); }
.comment-form h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 24px; color: var(--noir); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 7px; color: var(--noir-light); text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--gris-border);
  border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: .92rem;
  background: var(--blanc); color: var(--texte); transition: border-color var(--trans), box-shadow var(--trans);
}
.form-control:focus { outline: none; border-color: var(--or); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Pagination ─────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 48px; flex-wrap: wrap;
}
.page-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gris-border); font-size: .9rem; color: var(--texte);
  transition: all var(--trans);
}
.page-link:hover, .page-link.active { background: var(--or); color: var(--blanc); border-color: var(--or); }
.page-dots { width: 38px; text-align: center; color: var(--texte-muted); }

/* ── Alerts ─────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: var(--or-pale); border: 1px solid var(--or-border); color: var(--noir-light); }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--noir); color: rgba(255,255,255,.7);
  padding: 60px 0 0;
  border-top: 1px solid rgba(168,135,74,.2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about .site-logo { margin-bottom: 14px; }
.footer-about p { font-size: .88rem; line-height: 1.65; color: rgba(255,255,255,.55); }
.footer-col h4 { color: var(--blanc); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-family: var(--font-sans); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color var(--trans); }
.footer-col a:hover { color: var(--or); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6);
  transition: all var(--trans);
}
.footer-social a:hover { background: var(--or); color: var(--blanc); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: var(--or); font-size: .82rem; }

/* ── Utilitaires ────────────────────────────── */
.text-or     { color: var(--or); }
.text-muted  { color: var(--texte-muted); }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.py-8  { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }

/* Badge statut */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .74rem; font-weight: 600; }
.badge-or      { background: rgba(168,135,74,.15); color: var(--or); }
.badge-green   { background: #f0fdf4; color: #166534; }
.badge-gray    { background: var(--gris-bg); color: var(--texte-muted); }
.badge-red     { background: #fef2f2; color: #991b1b; }

/* ── No results ─────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; color: var(--texte-muted); }
.empty-state svg { margin: 0 auto 20px; opacity: .35; }
.empty-state h3 { color: var(--texte); margin-bottom: 8px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .share-links { flex-direction: row; flex-wrap: wrap; }
  .share-link { flex: 1; justify-content: center; }
}

@media (max-width: 768px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article__img { min-height: 220px; }
  .featured-article__body { padding: 24px; }
  .main-nav { display: none; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-hero__img img { height: 260px; }
}

/* ── Mobile menu ────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--noir); padding: 80px 24px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.8); padding: 14px 0; font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500;
}
.mobile-menu a:hover { color: var(--or); }
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: var(--blanc); cursor: pointer; font-size: 1.5rem;
}

/* ── Loading bar ────────────────────────────── */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--or); z-index: 9999; transition: width .2s; width: 0; }

/* ── Correctifs thème actuel ────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-hero {
  padding: 56px 0 42px;
  background:
    radial-gradient(circle at 12% 20%, rgba(168,135,74,.18), transparent 28%),
    linear-gradient(135deg, #0f0f0f 0%, #191613 100%);
}
.blog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 32px;
  align-items: end;
}
.badge-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(168,135,74,.55);
  border-radius: 999px;
  color: #e9d7b5;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.hero-search input {
  width: 100%;
  height: 52px;
  padding: 0 54px 0 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: var(--blanc);
  font: inherit;
  outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search input:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 4px rgba(168,135,74,.18);
}
.hero-search button {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--or);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.categories-bar {
  background: #fff;
  border-bottom: 1px solid var(--gris-border);
  box-shadow: 0 8px 24px rgba(15,15,15,.04);
}
.cats-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
}
.cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gris-border);
  background: #fff;
  color: var(--texte);
  font-size: .88rem;
  font-weight: 700;
}
.cat-chip:hover,
.cat-chip.active {
  color: #fff;
  border-color: var(--cat-color, var(--or));
  background: var(--cat-color, var(--or));
}

.featured-section,
.articles-section { padding: 42px 0 22px; }
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  overflow: hidden;
  border: 1px solid var(--gris-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.featured-img { min-height: 360px; background: var(--gris-bg); }
.featured-img a,
.featured-img img { width: 100%; height: 100%; }
.featured-img img { object-fit: cover; }
.featured-content {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-meta,
.article-footer-meta,
.article-stats,
.author-info,
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-featured,
.badge-featured-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--or);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}
.badge-featured-sm {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px;
}
.cat-link {
  color: var(--or);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.featured-title { margin: 14px 0 12px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.featured-title a,
.card-title a { color: inherit; }
.featured-title a:hover,
.card-title a:hover { color: var(--or); }
.featured-excerpt,
.card-excerpt { color: var(--texte-muted); }
.author-info .avatar-sm,
.avatar-xs,
.avatar-sm,
.avatar-md {
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.avatar-xs { width: 24px; height: 24px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.author-name { display: block; color: var(--texte); font-weight: 800; line-height: 1.2; }
.article-date,
.card-footer time { color: var(--texte-muted); font-size: .82rem; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--texte-muted);
  font-size: .84rem;
}
.btn-primary,
.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid var(--or);
  border-radius: 6px;
  background: var(--or);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary:hover,
.page-btn:hover,
.page-num:hover,
.page-num.active {
  background: var(--or-hover);
  border-color: var(--or-hover);
  color: #fff;
}
.articles-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}
.article-card {
  min-height: 100%;
  border-radius: 8px;
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gris-bg);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.article-card:hover .card-img img { transform: scale(1.04); }
.card-body {
  padding: 18px 20px 8px;
  flex: 1;
}
.card-title {
  margin: 8px 0 10px;
  font-size: 1.18rem;
}
.card-footer {
  margin-top: auto;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--gris-border);
  color: var(--texte-muted);
  font-size: .82rem;
}
.pagination,
.page-nums {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-num {
  min-width: 38px;
  padding: 8px 12px;
  background: #fff;
  color: var(--texte);
  border-color: var(--gris-border);
}

.archive-hero {
  padding: 42px 0;
  background: linear-gradient(135deg, #141414, #211d17);
  color: #fff;
}
.archive-hero h1 { color: #fff; margin: 8px 0; }
.archive-hero p,
.archive-count { color: rgba(255,255,255,.72); }
.archive-hero .breadcrumb { color: rgba(255,255,255,.55); }

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 28px 0 10px;
}
.search-input-wrap { position: relative; }
.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texte-muted);
}
.search-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--gris-border);
  border-radius: 8px;
  font: inherit;
}

@media (max-width: 820px) {
  .blog-hero-inner,
  .featured-card,
  .search-form {
    grid-template-columns: 1fr;
  }
  .hero-search { justify-self: stretch; }
  .featured-img { min-height: 230px; }
}

/* ── Refonte visuelle publique ─────────────────────────────── */
:root {
  --paper: #fbfaf7;
  --ink: #171513;
  --soft: #f1eee8;
  --line: #e5ded2;
}

body {
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  background: rgba(15,15,15,.96);
  border-bottom: 1px solid rgba(168,135,74,.26);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  height: auto;
  gap: 20px;
}

.site-logo {
  min-width: 280px;
}

.site-logo svg {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.site-logo-text {
  font-size: 1.25rem;
  line-height: 1.1;
}

.site-logo-sub {
  max-width: 420px;
  color: #c8aa70;
  font-size: .68rem;
  letter-spacing: .12em;
  white-space: nowrap;
}

.main-nav {
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,.68);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(168,135,74,.14);
  color: #fff;
}

.header-actions {
  gap: 12px;
}

.header-search input {
  width: 230px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.header-search input:focus {
  width: 260px;
}

.btn.btn-or {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(168,135,74,.18);
}

.blog-hero {
  position: relative;
  padding: clamp(54px, 8vw, 92px) 0 clamp(46px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,15,15,.98), rgba(22,20,18,.97)),
    #10100f;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,135,74,.65), transparent);
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.badge-label {
  margin-bottom: 16px;
  border: 0;
  background: rgba(168,135,74,.15);
  color: #d9be8b;
}

.blog-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.45rem, 5.2vw, 4.5rem);
  line-height: 1.02;
}

.blog-hero p {
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-search {
  justify-self: end;
  max-width: 430px;
  padding: 10px;
  border: 1px solid rgba(168,135,74,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.hero-search input {
  height: 54px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
}

.hero-search input::placeholder {
  color: #8a8379;
}

.hero-search button {
  right: 18px;
  border-radius: 8px;
}

.categories-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(22,20,18,.04);
}

.cats-scroll {
  gap: 9px;
  padding: 16px 0;
}

.cat-chip {
  padding: 9px 15px;
  border-color: var(--line);
  background: var(--paper);
  color: #4d4740;
}

.cat-chip:hover,
.cat-chip.active {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(168,135,74,.18);
}

.featured-section,
.articles-section {
  padding: 44px 0 24px;
}

.section-header {
  text-align: left;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
}

.total-count {
  color: var(--texte-muted);
  font-weight: 700;
}

.featured-card,
.article-card {
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22,20,18,.07);
}

.article-card:hover,
.featured-card:hover {
  box-shadow: 0 18px 46px rgba(22,20,18,.1);
}

.articles-grid {
  gap: 22px;
}

.card-title,
.featured-title {
  color: var(--ink);
}

.empty-state {
  max-width: 560px;
  margin: 72px auto;
  padding: 44px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(22,20,18,.06);
}

.empty-state svg {
  color: var(--or);
  opacity: .42;
}

.site-footer {
  margin-top: 48px;
}

@media (max-width: 1120px) {
  .site-logo {
    min-width: 230px;
  }

  .site-logo-sub {
    white-space: normal;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 820px) {
  .header-search {
    display: none;
  }

  .blog-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-search {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-logo {
    min-width: 0;
  }

  .site-logo-sub {
    display: none;
  }

  .blog-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }
}
