/*
Theme Name: Najac Tribune
Theme URI: https://najactribune.fr
Author: Najac Tribune
Author URI: https://najactribune.fr
Description: Thème journal local pour Najac Tribune — style magazine éditorial chaleureux, avec une présentation à la une, grilles d'articles, analyses et rubriques.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: najac-tribune
Tags: news, magazine, blog, custom-menu, featured-images, translation-ready
*/

/* ══════════════════════════════════
   VARIABLES
══════════════════════════════════ */
:root {
  --fond: #fdf8f2;
  --papier: #fff9f3;
  --rouge: #c0392b;
  --rouge-doux: #e8463a;
  --encre: #22201e;
  --gris: #706860;
  --gris-clair: #a09890;
  --bordure: #e0d8ce;
  --jaune-doux: #f5e9c8;
  --vert-village: #4a7c59;
  --bleu-presse: #3a5a8b;
}

/* ══════════════════════════════════
   RESET & BASE
══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--fond);
  color: var(--encre);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ══════════════════════════════════
   TICKER
══════════════════════════════════ */
.nt-ticker {
  background: var(--rouge);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 32px;
}

.nt-ticker__label {
  background: #900;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.nt-ticker__track-wrap { overflow: hidden; flex: 1; }

.nt-ticker__track {
  display: flex;
  animation: nt-ticker 35s linear infinite;
  white-space: nowrap;
  align-items: center;
  height: 32px;
}

.nt-ticker__track span { padding: 0 40px; opacity: 0.92; }
.nt-ticker__track span::before { content: '◆'; margin-right: 40px; opacity: 0.4; font-size: 0.5rem; }

@keyframes nt-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.nt-header {
  background: var(--papier);
}

.nt-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Barre date/lieu */
.nt-header__topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bordure);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--gris-clair);
  letter-spacing: 0.06em;
}

/* Logo */
.nt-logo {
  text-align: center;
  padding: 28px 0 20px;
}

.nt-logo__name {
  display: block;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--encre);
  text-decoration: none;
}

.nt-logo__name:hover { color: var(--encre); }

.nt-logo__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--gris-clair);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Filet sous le logo */
.nt-header__rule {
  width: 100%;
  height: 0;
  border-bottom: 3px double var(--encre);
  margin-bottom: 0;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
.nt-nav-wrap {
  border-top: 2px solid var(--encre);
  border-bottom: 1px solid var(--bordure);
  background: var(--papier);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.nt-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
}

.nt-nav-inner .menu { display: flex; }

.nt-nav-inner .menu-item a,
.nt-nav-inner .menu > li > a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gris);
  padding: 13px 18px;
  border-right: 1px solid var(--bordure);
  display: block;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nt-nav-inner .menu-item:first-child a { border-left: 1px solid var(--bordure); }
.nt-nav-inner .menu-item a:hover { color: var(--encre); background: var(--jaune-doux); }
.nt-nav-inner .menu-item.current-menu-item > a { color: var(--rouge); font-weight: 500; }

.nt-nav-search {
  margin-left: auto;
  font-size: 1.1rem;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--gris);
  background: none;
  border: none;
  transition: color 0.2s;
  font-family: inherit;
}
.nt-nav-search:hover { color: var(--encre); }

/* Mobile menu toggle */
.nt-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--encre);
  padding: 12px;
  margin-left: auto;
}

/* ══════════════════════════════════
   LAYOUT
══════════════════════════════════ */
.nt-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════════
   TAGS / ÉTIQUETTES
══════════════════════════════════ */
.nt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px 3px 7px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.nt-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }

.nt-tag--actu    { background: #fde8e7; color: var(--rouge); }
.nt-tag--analyse { background: #e8f0ea; color: var(--vert-village); }
.nt-tag--presse  { background: #e8eaf0; color: var(--bleu-presse); }
.nt-tag--municipal { background: #f5f0e8; color: #7a6030; }
.nt-tag--vie     { background: #f0e8f5; color: #6a3a8b; }
.nt-tag--default { background: #f0ece8; color: var(--gris); }

/* ══════════════════════════════════
   UNE (PAGE D'ACCUEIL)
══════════════════════════════════ */
.nt-une {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  margin: 36px 0 0;
  border-bottom: 2px solid var(--encre);
  padding-bottom: 36px;
}

.nt-une__principal {
  padding-right: 36px;
  border-right: 1px solid var(--bordure);
}

.nt-une__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.nt-une__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #d4e8d8, #8fbb9c);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.nt-une__titre {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--encre);
}

.nt-une__chapeau {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 18px;
}

.nt-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--gris-clair);
}

.nt-meta__auteur { color: var(--gris); font-weight: 500; }
.nt-meta__sep { opacity: 0.3; }

.nt-lire-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rouge);
  margin-top: 18px;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}
.nt-lire-btn:hover { gap: 14px; color: var(--rouge); }
.nt-lire-btn::after { content: '→'; }

/* Sidebar UNE */
.nt-une__sidebar {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
}

.nt-sidebar-titre {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-clair);
  border-bottom: 1px solid var(--bordure);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.nt-breve {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bordure);
}
.nt-breve:last-child { border-bottom: none; }

.nt-breve h3 {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 5px;
}

.nt-breve p { font-size: 0.82rem; color: var(--gris); line-height: 1.6; }

/* ══════════════════════════════════
   SECTION HEADER
══════════════════════════════════ */
.nt-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 44px 0 24px;
  border-bottom: 2px solid var(--encre);
  padding-bottom: 10px;
}

.nt-section-header h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nt-voir-tout {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--rouge);
  transition: opacity 0.2s;
}
.nt-voir-tout:hover { opacity: 0.7; color: var(--rouge); }

/* ══════════════════════════════════
   GRILLES D'ARTICLES
══════════════════════════════════ */
.nt-grille-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.nt-grille-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-bottom: 48px;
}

/* Carte standard */
.nt-carte { cursor: pointer; }
.nt-carte:hover .nt-carte__titre { color: var(--rouge); }

.nt-carte__thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 14px;
  display: block;
}

.nt-carte__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nt-carte__thumb-placeholder--vert  { background: linear-gradient(135deg, #c8ddd0, #9ec0aa); }
.nt-carte__thumb-placeholder--bleu  { background: linear-gradient(135deg, #c8d4e8, #9ab0cc); }
.nt-carte__thumb-placeholder--ocre  { background: linear-gradient(135deg, #e8dac0, #ccba90); }
.nt-carte__thumb-placeholder--mauve { background: linear-gradient(135deg, #d8c8e8, #bba0cc); }
.nt-carte__thumb-placeholder--brun  { background: linear-gradient(135deg, #d8cac0, #b8a898); }
.nt-carte__thumb-placeholder--rose  { background: linear-gradient(135deg, #e8cac8, #ccaaaa); }

.nt-lettre {
  font-family: 'Libre Baskerville', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  user-select: none;
}

.nt-carte__titre {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 7px;
  transition: color 0.18s;
}

.nt-carte p { font-size: 0.83rem; color: var(--gris); line-height: 1.62; margin-bottom: 8px; }

/* Carte horizontale (grille-2) */
.nt-carte-h {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--bordure);
  cursor: pointer;
}
.nt-carte-h:hover .nt-carte__titre { color: var(--rouge); }

.nt-carte-h__thumb {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  width: 110px;
  display: block;
}

.nt-carte-h__thumb-placeholder {
  width: 110px;
  aspect-ratio: 1;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nt-carte-h__thumb-placeholder .nt-lettre { font-size: 2.2rem; }

/* ══════════════════════════════════
   ENCART VILLAGE
══════════════════════════════════ */
.nt-encart-village {
  background: var(--encre);
  color: white;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.nt-encart-village::before {
  content: 'NAJAC';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Libre Baskerville', serif;
  font-size: 9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.nt-encart-village h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #f5e9c8;
}

.nt-encart-village p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.75; }

.nt-chiffres { display: flex; flex-direction: column; justify-content: center; gap: 20px; }

.nt-chiffre {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nt-chiffre:last-child { border-bottom: none; padding-bottom: 0; }

.nt-chiffre__nb {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5e9c8;
  line-height: 1;
}

.nt-chiffre__lib {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ══════════════════════════════════
   PAGE ARTICLE SIMPLE
══════════════════════════════════ */
.nt-single {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  margin: 40px 0 60px;
}

.nt-article-header { margin-bottom: 28px; }

.nt-article-titre {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.nt-article-chapeau {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid var(--rouge);
  padding-left: 18px;
}

.nt-article-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 28px 0;
  display: block;
}

.nt-article-content {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--encre);
}

.nt-article-content p { margin-bottom: 1.3em; }
.nt-article-content h2 { font-family: 'Libre Baskerville', serif; font-size: 1.4rem; margin: 2em 0 0.8em; }
.nt-article-content h3 { font-family: 'Libre Baskerville', serif; font-size: 1.15rem; margin: 1.8em 0 0.6em; }
.nt-article-content blockquote { border-left: 3px solid var(--rouge); padding: 12px 20px; background: var(--jaune-doux); margin: 2em 0; font-style: italic; color: var(--gris); }
.nt-article-content a { color: var(--rouge); text-decoration: underline; }
.nt-article-content ul { padding-left: 1.5em; margin-bottom: 1em; list-style: disc; }
.nt-article-content li { margin-bottom: 0.4em; }

/* Sidebar article */
.nt-article-sidebar {}

.nt-widget {
  margin-bottom: 36px;
  border-top: 2px solid var(--encre);
  padding-top: 16px;
}

.nt-widget__titre {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-clair);
  margin-bottom: 16px;
}

.nt-widget-article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bordure);
  cursor: pointer;
}
.nt-widget-article:last-child { border-bottom: none; }
.nt-widget-article:hover span { color: var(--rouge); }

.nt-widget-article-thumb {
  width: 60px; height: 60px;
  object-fit: cover;
  display: block;
}

.nt-widget-article-thumb-placeholder {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nt-widget-article span {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.18s;
}

/* ══════════════════════════════════
   ARCHIVE / CATÉGORIE
══════════════════════════════════ */
.nt-archive {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  margin: 40px 0 60px;
}

.nt-archive-titre {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.nt-archive-desc {
  font-size: 0.88rem;
  color: var(--gris);
  margin-bottom: 32px;
}

.nt-archive-liste { display: flex; flex-direction: column; gap: 0; }

.nt-archive-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bordure);
  cursor: pointer;
}
.nt-archive-item:hover .nt-carte__titre { color: var(--rouge); }

.nt-archive-item__thumb {
  width: 160px;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.nt-archive-item__thumb-placeholder {
  width: 160px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pagination */
.nt-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 40px 0;
}

.nt-pagination a,
.nt-pagination span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  padding: 8px 14px;
  border: 1px solid var(--bordure);
  color: var(--gris);
  transition: all 0.18s;
}

.nt-pagination a:hover { background: var(--rouge); color: white; border-color: var(--rouge); }
.nt-pagination .current { background: var(--encre); color: white; border-color: var(--encre); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.nt-footer {
  background: #1a1410;
  color: rgba(255,255,255,0.6);
  padding: 48px 32px 28px;
  margin-top: 20px;
}

.nt-footer__inner { max-width: 1180px; margin: 0 auto; }

.nt-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.nt-footer__logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.1;
}
.nt-footer__logo em { color: var(--rouge-doux); font-style: italic; }

.nt-footer__desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.nt-footer__col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.nt-footer__col ul li { margin-bottom: 9px; }

.nt-footer__col a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.18s;
}
.nt-footer__col a:hover { color: white; }

.nt-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 960px) {
  .nt-header__inner { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .nt-header__meta, .nt-header__actions { display: none; }
  .nt-une { grid-template-columns: 1fr; }
  .nt-une__principal { border-right: none; padding-right: 0; }
  .nt-une__sidebar { padding-left: 0; margin-top: 28px; }
  .nt-grille-3 { grid-template-columns: 1fr 1fr; }
  .nt-grille-2 { grid-template-columns: 1fr; }
  .nt-encart-village { grid-template-columns: 1fr; }
  .nt-single, .nt-archive { grid-template-columns: 1fr; }
  .nt-footer__top { grid-template-columns: 1fr 1fr; }
  .nt-menu-toggle { display: block; }
  .nt-nav-inner .menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--papier); border-bottom: 2px solid var(--encre); z-index: 300; }
  .nt-nav-inner .menu.is-open { display: flex; }
  .nt-nav-inner .menu-item a { border-right: none !important; border-left: none !important; border-bottom: 1px solid var(--bordure); }
  .nt-nav-wrap { position: sticky; }
}

@media (max-width: 600px) {
  .nt-page { padding: 0 16px; }
  .nt-grille-3 { grid-template-columns: 1fr; }
  .nt-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .nt-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nt-archive-item { grid-template-columns: 1fr; }
  .nt-archive-item__thumb, .nt-archive-item__thumb-placeholder { width: 100%; }
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes nt-fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nt-une     { animation: nt-fadeIn 0.5s ease both; }
.nt-grille-3 { animation: nt-fadeIn 0.5s 0.1s ease both; }
.nt-encart-village { animation: nt-fadeIn 0.5s 0.15s ease both; }

/* WordPress core */
.alignleft  { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; color: var(--gris-clair); margin-top: 6px; font-style: italic; }

/* ══════════════════════════════════
   COMMENTAIRES
══════════════════════════════════ */
.nt-comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--encre);
}

.nt-comments__titre {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.nt-comments__liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

/* Commentaire individuel */
.nt-comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--bordure);
}

.nt-comment:last-child { border-bottom: none; }

/* Réponses imbriquées */
.nt-comment .children {
  list-style: none;
  padding-left: 40px;
  border-left: 2px solid var(--bordure);
  margin-top: 16px;
}

.nt-comment__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nt-comment__avatar img {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: block;
}

.nt-comment__auteur {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--encre);
}

.nt-comment__date {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--gris-clair);
  margin-top: 2px;
}

.nt-comment__reply {
  margin-left: auto;
}

.nt-comment__reply a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--rouge);
  letter-spacing: 0.04em;
}
.nt-comment__reply a:hover { opacity: 0.75; }

.nt-comment__moderation {
  font-size: 0.82rem;
  color: var(--gris-clair);
  margin-bottom: 8px;
}

.nt-comment__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--encre);
}

.nt-comment__text p { margin-bottom: 0.8em; }
.nt-comment__text p:last-child { margin-bottom: 0; }

/* Formulaire */
.nt-comment-form {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--bordure);
}

.nt-comment-form__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nt-comment-form__inner p { margin-bottom: 12px; }

.nt-comment-form__inner input[type="text"],
.nt-comment-form__inner input[type="email"],
.nt-comment-form__inner textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.92rem;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--bordure);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.nt-comment-form__inner input:focus,
.nt-comment-form__inner textarea:focus {
  border-color: var(--encre);
}

.nt-comment-form__inner textarea {
  resize: vertical;
  min-height: 130px;
}

.nt-comment-submit {
  align-self: flex-start;
  background: var(--encre);
  color: white;
  border: none;
  padding: 11px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}

.nt-comment-submit:hover { background: var(--rouge); }

.nt-comments__fermes {
  font-style: italic;
  color: var(--gris-clair);
  font-size: 0.88rem;
}

/* Pagination commentaires */
.comments-pagination {
  display: flex;
  gap: 4px;
  margin: 24px 0;
}

.comments-pagination a,
.comments-pagination span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 7px 13px;
  border: 1px solid var(--bordure);
  color: var(--gris);
  transition: all 0.18s;
}

.comments-pagination a:hover { background: var(--rouge); color: white; border-color: var(--rouge); }
.comments-pagination .current { background: var(--encre); color: white; border-color: var(--encre); }

/* ══════════════════════════════════
   LOAD MORE
══════════════════════════════════ */
.nt-load-more-wrap {
  text-align: center;
  padding: 40px 0 20px;
}

.nt-load-more {
  display: inline-block;
  background: none;
  border: 2px solid var(--encre);
  color: var(--encre);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.nt-load-more:hover {
  background: var(--encre);
  color: white;
}

.nt-load-more.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.nt-load-more.is-done {
  border-color: var(--bordure);
  color: var(--gris-clair);
  cursor: default;
}

.nt-load-more.is-done:hover {
  background: none;
  color: var(--gris-clair);
}

/* ══════════════════════════════════
   HEADER OVERRIDES responsive
══════════════════════════════════ */
@media (max-width: 600px) {
  .nt-header__topbar { flex-direction: column; gap: 3px; text-align: center; }
  .nt-logo__name     { font-size: 2.6rem; }
}
