/* === Vigie — Modern Editorial Theme === */

/* ── Custom properties ─────────────────────────────────────────────────── */
:root {
  --accent:      #ff5562;
  --accent-dark: #d14650;
  --font-heading: 'Sora', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --black:    #0d0d0d;
  --gray-900: #111111;
  --gray-800: #222222;
  --gray-700: #3d3d3d;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #bbbbbb;
  --gray-200: #dddddd;
  --gray-100: #f4f4f2;
  --gray-50:  #fafaf8;
  --border:   rgba(0,0,0,.08);
  --bg:       #ffffff;
  --white:    #ffffff;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow:    0 6px 28px rgba(0,0,0,.09);
  --shadow-lg: 0 18px 56px rgba(0,0,0,.15);
  --trans:     .28s cubic-bezier(.4,0,.2,1);
  --container: 1200px;
  --header-h:  70px;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.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; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
ul, ol { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--trans), border-color var(--trans);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(0,0,0,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Branding */
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo,
.site-branding .bundled-logo { height: auto; max-width: var(--logo-max-w, 160px); width: auto; display: block; }
.site-name-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.04em;
  transition: color var(--trans);
}
.site-name-link:hover { color: var(--accent); }

/* Primary nav */
.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: -0.01em;
  transition: color var(--trans);
  position: relative;
}
.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-list > li > a:hover { color: var(--gray-900); }
.nav-list > li > a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a { color: var(--gray-900); font-weight: 600; }

/* Sub-menu */
.nav-list .sub-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 210px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); z-index: 100;
  padding: 6px 0;
}
.nav-list li:hover > .sub-menu { display: block; }
.nav-list .sub-menu a {
  padding: 9px 18px; font-size: 0.875rem; display: block;
  color: var(--gray-600); transition: color var(--trans), background var(--trans);
}
.nav-list .sub-menu a:hover { color: var(--gray-900); background: var(--gray-50); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: var(--radius-xs);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger-line {
  display: block; width: 100%; height: 2px;
  background: var(--gray-900); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 199;
  overflow-y: auto; padding: 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-list a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: var(--gray-900); letter-spacing: -0.02em;
}

/* ── Identity strip ─────────────────────────────────────────────────────── */
.identity-strip {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.identity-strip-inner { display: flex; align-items: center; gap: 16px; }
.tagline-text {
  font-size: 0.83rem;
  color: var(--gray-400);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Category badge ─────────────────────────────────────────────────────── */
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  transition: opacity var(--trans);
}
.category-badge:hover { opacity: 0.8; }

/* ── Stretched-link helper ──────────────────────────────────────────────── */
.stretched-link::after {
  position: absolute;
  inset: 0;
  content: '';
  z-index: 1;
}
.hero-cat-link { position: relative; z-index: 2; }

/* ── Hero section ───────────────────────────────────────────────────────── */
.hero-section { padding: 36px 0 0; }
.hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Main hero article */
.hero-main-post {
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-main-post:hover .hero-thumb-wrap img { transform: scale(1.04); }

/* Padding-top trick for reliable aspect ratio */
.hero-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: var(--gray-800);
  overflow: hidden;
}
.hero-thumb-wrap img {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.hero-no-thumb {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 50%, transparent 100%);
  z-index: 1;
}
.hero-text-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 28px 32px;
  z-index: 2;
}
.hero-text-overlay .category-badge { margin-bottom: 10px; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
}
.hero-permalink {
  color: #fff;
  text-decoration: none;
}
.hero-excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.hero-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
}

/* Hero aside */
.hero-aside { display: flex; flex-direction: column; gap: 12px; }
.hero-aside-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  position: relative;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
}
.hero-aside-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.hero-aside-thumb {
  width: 88px;
  height: 66px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--gray-200);
}
.hero-aside-thumb img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.hero-aside-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-aside-body .category-badge { align-self: flex-start; }
.hero-aside-body h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-aside-link { color: inherit; text-decoration: none; }
.hero-aside-body .card-meta-date {
  font-size: 0.76rem;
  color: var(--gray-400);
}

/* ── Section header ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}
.section-more {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: color var(--trans);
}
.section-more:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Category section ───────────────────────────────────────────────────── */
.category-section { margin: 56px 0; }
.category-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) {
  .category-grid { grid-template-columns: 1.4fr 1fr; }
}
.category-main-post { width: 100%; }
.category-side-posts { display: flex; flex-direction: column; gap: 14px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.article-card, .card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  will-change: transform;
  height: 100%;
}
.article-card:hover, .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Card thumbnail */
.card-link { display: block; position: relative; overflow: hidden; }
.card-link::before { content: ''; display: block; padding-top: 62.5%; } /* 16:10 */
.card-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.article-card:hover .card-link img, .card:hover .card-link img { transform: scale(1.05); }
.no-thumb {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

/* Card body */
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-category { align-self: flex-start; }
.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--gray-900);
}
.card-title a { transition: color var(--trans); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta, .card-meta-reading, .card-meta-date {
  display: flex;
  gap: 12px;
  font-size: 0.775rem;
  color: var(--gray-400);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  align-items: center;
}

/* Small card (aside) */
.card-small {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--trans);
}
.card-small:last-child { border-bottom: none; }
.card-small:hover { opacity: 0.8; }
.card-small-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--gray-100);
}
.card-small-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-small-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-small-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-small-title a:hover { color: var(--accent); }
.card-small-meta { font-size: 0.75rem; color: var(--gray-400); }

/* Posts grid */
.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Cats ticker ────────────────────────────────────────────────────────── */
.cats-ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 32px;
}
.cats-ticker::-webkit-scrollbar { display: none; }
.cats-ticker-inner { display: flex; white-space: nowrap; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px,4vw,32px); }
.cats-ticker-item {
  display: inline-block; padding: 11px 18px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gray-500); border-right: 1px solid var(--border);
  transition: color var(--trans);
}
.cats-ticker-item:hover { color: var(--accent); }

/* ── Single article ─────────────────────────────────────────────────────── */
.single-container { max-width: 1160px; margin-inline: auto; padding: 40px clamp(16px,4vw,32px) 80px; }
.single-body-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

.single-hero {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-hero-image {
  position: relative;
  width: 100%;
  padding-top: 44%; /* ~16/7 ratio */
  background: var(--gray-100);
}
.single-hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.single-header { margin-bottom: 36px; }
.single-header .category-badge { margin-bottom: 14px; }
.single-title {
  font-size: clamp(1.85rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray-400); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { transition: color var(--trans); }
.breadcrumb a:hover { color: var(--accent); }
.single-meta {
  display: flex; gap: 20px; font-size: 0.82rem; color: var(--gray-500);
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 20px; flex-wrap: wrap;
}
.single-meta span { display: flex; align-items: center; gap: 5px; }
.meta-reading::before { content: '·'; color: var(--gray-300); margin-right: 5px; }

/* Single content typography */
.single-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.single-content p { margin-bottom: 1.5em; }
.single-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin: 2em 0 0.7em; color: var(--gray-900); }
.single-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75em 0 0.6em; color: var(--gray-900); }
.single-content ul, .single-content ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.single-content ul li { list-style: disc; margin-bottom: 0.5em; }
.single-content ol li { list-style: decimal; margin-bottom: 0.5em; }
.single-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote {
  border-left: 4px solid var(--accent); margin: 2em 0;
  padding: 16px 24px; background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--gray-600);
  font-size: 1.05rem;
}
.single-content img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.single-content pre {
  background: var(--gray-900); color: #e8e8e8;
  padding: 20px 24px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 0.9em; margin: 1.5em 0;
}
.single-content code { font-size: 0.9em; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }
.single-content pre code { background: none; padding: 0; }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800; letter-spacing: -0.025em;
  padding-left: 16px; border-left: 4px solid var(--accent);
  margin-bottom: 24px; color: var(--gray-900);
}
.related-title span { color: var(--accent); }

/* Author box */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 32px; background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 48px;
}
.author-box-avatar { flex-shrink: 0; }
.author-avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box-info { display: flex; flex-direction: column; gap: 6px; }
.author-box-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); }
.author-box-name {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: var(--gray-900); transition: color var(--trans);
}
.author-box-name:hover { color: var(--accent); }
.author-box-bio { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar newsletter */
.sidebar-nl {
  background: linear-gradient(135deg, #ff5562 0%, #d14650 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
}
.sidebar-nl-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  margin-bottom: 14px;
  color: #fff;
}
.sidebar-nl-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff; margin-bottom: 6px; line-height: 1.25;
}
.sidebar-nl-sub {
  font-size: 0.82rem; color: rgba(255,255,255,.78);
  line-height: 1.55; margin-bottom: 16px;
}
.sidebar-nl-form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-nl-input {
  width: 100%; padding: 11px 14px;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body);
  background: rgba(255,255,255,.92); color: #111;
  outline: none;
}
.sidebar-nl-input::placeholder { color: #999; }
.sidebar-nl-input:focus { background: #fff; }
.sidebar-nl-btn {
  width: 100%; padding: 11px 14px;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: background .2s ease;
}
.sidebar-nl-btn:hover { background: rgba(0,0,0,.75); }
.sidebar-nl-btn:disabled { opacity: .6; cursor: not-allowed; }
.sidebar-nl-feedback { font-size: 0.8rem; font-weight: 600; min-height: 1em; }
.sidebar-nl-feedback.success { color: #a8ffb0; }
.sidebar-nl-feedback.error   { color: #ffcccc; }

/* Sidebar section */
.sidebar-section {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-section-title {
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-500); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.sidebar-posts-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-post-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-item:first-child { padding-top: 0; }
.sidebar-post-thumb {
  flex-shrink: 0;
  width: 72px; height: 54px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: block;
  background: var(--gray-200);
}
.sidebar-post-thumb img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.sidebar-post-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sidebar-post-title {
  font-size: 0.82rem; font-weight: 600; line-height: 1.4;
  color: var(--gray-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--trans);
}
.sidebar-post-title:hover { color: var(--accent); }
.sidebar-post-date { font-size: 0.72rem; color: var(--gray-400); }

.widget { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.widget-title {
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--gray-500); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}

/* ── Page ────────────────────────────────────────────────────────────────── */
.page-container { max-width: 820px; margin-inline: auto; padding: 48px clamp(16px,4vw,32px) 80px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 28px; color: var(--gray-900); }
.page-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.page-content { font-size: 1.05rem; line-height: 1.85; color: var(--gray-700); }

/* ── Archive / search ───────────────────────────────────────────────────── */
.archive-header { padding: 48px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.archive-title { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--gray-900); margin-bottom: 8px; }
.archive-desc { color: var(--gray-500); font-size: 1rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* Pagination */
.posts-navigation { display: flex; justify-content: center; gap: 6px; padding: 48px 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 0.88rem; font-weight: 600;
  border-radius: var(--radius-xs); border: 1px solid var(--border);
  color: var(--gray-600); transition: all var(--trans);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.page-numbers.dots { border: none; width: auto; }

/* ── Newsletter section ─────────────────────────────────────────────────── */
/* ── Newsletter pleine largeur (front-page) ─────────────────────────────── */
.vigie-nl-section {
  background: linear-gradient(135deg, #ff5562 0%, #d14650 100%);
  padding: 96px 0;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.vigie-nl-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.06);
}
.vigie-nl-deco:first-child  { width: 480px; height: 480px; top: -160px; right: -120px; }
.vigie-nl-deco2 { width: 320px; height: 320px; bottom: -140px; left: -80px; background: rgba(255,255,255,.04); }
.vigie-nl-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 580px; margin: 0 auto;
}
.vigie-nl-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.vigie-nl-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.vigie-nl-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 36px;
}
.vigie-nl-form { width: 100%; }
.vigie-nl-row {
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.vigie-nl-input {
  flex: 1;
  padding: 18px 22px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: transparent;
  color: #111;
  outline: none;
  min-width: 0;
}
.vigie-nl-input::placeholder { color: #aaa; }
.vigie-nl-btn {
  padding: 18px 30px;
  background: #0d0d0d;
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
  flex-shrink: 0;
}
.vigie-nl-btn:hover { background: #000; transform: translateX(2px); }
.vigie-nl-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.vigie-nl-reassurance { font-size: 0.75rem; color: rgba(255,255,255,.5); margin-top: 14px; }
.vigie-nl-feedback { margin-top: 12px; font-size: 0.88rem; font-weight: 600; min-height: 1.2em; }
.vigie-nl-feedback.success { color: #a8ffb0; }
.vigie-nl-feedback.error   { color: #ffbbbb; }

/* ── Newsletter inline (milieu article) ─────────────────────────────────── */
.nl-card {
  background: linear-gradient(135deg, #ff5562 0%, #d14650 100%);
  border-radius: 20px;
  padding: 44px 48px;
  margin: 52px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.nl-card-deco {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.07);
  width: 260px; height: 260px; top: -80px; right: -60px;
}
.nl-card-deco2 { width: 180px; height: 180px; top: auto; right: auto; bottom: -80px; left: -40px; background: rgba(255,255,255,.05); }
.nl-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  margin-bottom: 20px;
  color: #fff;
  backdrop-filter: blur(8px);
}
.nl-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.nl-card-sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 28px;
  line-height: 1.6;
}
.nl-card-form { position: relative; z-index: 1; }
.nl-card-row {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  max-width: 460px;
}
.nl-card-input {
  flex: 1; padding: 15px 18px;
  border: none; outline: none;
  font-size: 0.97rem; font-family: var(--font-body);
  background: transparent; color: #111; min-width: 0;
}
.nl-card-input::placeholder { color: #aaa; }
.nl-card-btn {
  padding: 15px 22px;
  background: #0d0d0d; color: #fff; border: none;
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .2s ease;
}
.nl-card-btn:hover { background: #000; }
.nl-card-btn:disabled { opacity: .6; cursor: not-allowed; }
.nl-card-reassurance { font-size: 0.72rem; color: rgba(255,255,255,.5); margin-top: 12px; }
.nl-card-feedback { margin-top: 10px; font-size: 0.85rem; font-weight: 600; min-height: 1.2em; }
.nl-card-feedback.success { color: #a8ffb0; }
.nl-card-feedback.error   { color: #ffbbbb; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,.55);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 52px 0 36px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.footer-logo img, .footer-logo .custom-logo { filter: brightness(0) invert(1); max-height: 40px; width: auto; }
.footer-site-name {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 800;
  color: #ffffff; letter-spacing: -0.03em;
  transition: opacity var(--trans);
}
.footer-site-name:hover { opacity: 0.8; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-nav-list { display: flex; flex-wrap: wrap; gap: 6px 0; flex-direction: column; }
.footer-nav-list li a {
  display: block; padding: 5px 0;
  font-size: 0.875rem; color: rgba(255,255,255,.55);
  transition: color var(--trans);
}
.footer-nav-list li a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,.3); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.not-found-section { text-align: center; padding: 80px 20px; }
.not-found-code { font-family: var(--font-heading); font-size: 7rem; font-weight: 800; color: var(--gray-100); line-height: 1; display: block; letter-spacing: -0.06em; }
.not-found-section h1 { font-size: 2rem; color: var(--gray-900); margin: 16px 0 12px; }
.not-found-section p { color: var(--gray-500); margin-bottom: 28px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  transition: background var(--trans), transform var(--trans);
}
.btn-back:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Search form ─────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.search-field {
  flex: 1; padding: 10px 16px; border: none; background: transparent;
  font-size: 0.95rem; font-family: var(--font-body); color: var(--gray-900); outline: none;
}
.search-submit {
  padding: 10px 18px; background: var(--accent); color: #fff; border: none;
  font-weight: 600; cursor: pointer; transition: background var(--trans);
}
.search-submit:hover { background: var(--accent-dark); }

/* ── Block editor alignment ─────────────────────────────────────────────── */
.alignfull { max-width: none; margin-inline: calc(50% - 50vw); width: 100vw; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: .5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: .5em; }
.aligncenter { display: block; margin-inline: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { flex-direction: row; overflow-x: auto; gap: 14px; padding-bottom: 4px; }
  .hero-aside-item { min-width: 220px; flex-shrink: 0; }
  .posts-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .single-body-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-nl { padding: 24px 20px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .posts-grid-3 { grid-template-columns: 1fr; }
  /* Hero aside : grille 2 colonnes sur tablette/mobile */
  .hero-aside {
    flex-direction: unset;
    overflow-x: unset;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-bottom: 0;
  }
  .hero-aside-item {
    min-width: unset;
    flex-shrink: unset;
    flex-direction: column;
  }
  .hero-aside-thumb { width: 100%; height: 100px; }
  /* Newsletter */
  .vigie-nl-row { flex-direction: column; border-radius: var(--radius-sm); overflow: visible; box-shadow: none; }
  .vigie-nl-input { border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm); background: rgba(255,255,255,.95); padding: 14px 18px; }
  .vigie-nl-btn { border-radius: var(--radius-sm); text-align: center; }
  .nl-card { padding: 32px 24px; }
  .nl-card-row { flex-direction: column; overflow: visible; box-shadow: none; max-width: 100%; }
  .nl-card-input { border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-sm); background: rgba(255,255,255,.95); }
  .nl-card-btn { border-radius: var(--radius-sm); text-align: center; }
  /* Layout */
  .footer-inner { flex-direction: column; gap: 32px; }
  .author-box { flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; }
  /* Sidebar en bas sur mobile : liste 2 col */
  .sidebar-posts-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sidebar-post-item { border-bottom: none; border-top: 1px solid var(--border); }
  .sidebar-post-item:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 480px) {
  .hero-text-overlay { padding: 18px 16px 22px; }
  .hero-aside { grid-template-columns: 1fr; }
  .hero-aside-item { flex-direction: row; }
  .hero-aside-thumb { width: 80px; height: 60px; flex-shrink: 0; }
  .single-container { padding: 20px 14px 56px; }
  .vigie-nl-section { padding: 56px 0; }
  .sidebar-posts-list { grid-template-columns: 1fr; }
  .sidebar-post-item { border-top: 1px solid var(--border); border-bottom: none; }
  .sidebar-post-item:first-child { border-top: none; }
}