/* ============================================================
   USSEL EN CORRÈZE — Thème Joornal
   CSS Grid + Flexbox pur — Magazine éditorial nature
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --c-foret:    #2C4A3E;
  --c-ardoise:  #3D4F5C;
  --c-sable:    #8B6F47;
  --c-cuivre:   #C4873D;
  --c-creme:    #F5F0E8;
  --c-blanc:    #FDFCFA;
  --c-texte:    #2A2A2A;
  --c-gris:     #6B6B6B;
  --c-bordure:  #D9D0C0;
  --c-foret-light: #3D6355;

  --ff-titre:   'Playfair Display', Georgia, serif;
  --ff-corps:   'Source Sans 3', 'Segoe UI', sans-serif;

  --nav-h:      80px;
  --max-w:      1340px;
  --radius:     2px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-corps);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-texte);
  background: var(--c-blanc);
}

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

/* --- Utilitaires --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: 820px;
}
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-foret);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--c-cuivre);
  box-shadow: 0 2px 12px rgba(44,74,62,0.18);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo a {
  display: block;
  line-height: 0;
}
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Menu généré par Joornal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-menu__item {
  position: relative;
}

.nav-menu__link {
  display: block;
  padding: 8px 16px;
  font-family: var(--ff-corps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-menu__link:hover {
  color: var(--c-cuivre);
  background: rgba(255,255,255,0.06);
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--c-foret);
  padding: 16px 0 24px;
  z-index: 99;
  border-bottom: 3px solid var(--c-cuivre);
}
.nav-mobile.is-open { display: block; }
.nav-mobile .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 24px;
}
.nav-mobile .nav-menu__link {
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

/* ============================================================
   INDEX.HTML — Archétype A : Split éditorial 60/40
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: 88vh;
  position: relative;
}

.hero-split__left {
  background: var(--c-foret);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px 80px 64px;
  position: relative;
  overflow: hidden;
}

.hero-split__left::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(196,135,61,0.08);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--ff-corps);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-cuivre);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--c-cuivre);
}

.hero-split__h1 {
  font-family: var(--ff-titre);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 28px;
  text-align: left;
}

.hero-split__baseline {
  font-family: var(--ff-corps);
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 480px;
  border-left: 3px solid var(--c-cuivre);
  padding-left: 20px;
  margin-bottom: 40px;
}

.hero-split__right {
  position: relative;
  overflow: hidden;
}

.hero-split__right img,
.hero-split__right .hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-split__right .thumbnail-wrap {
  width: 100%;
  height: 100%;
}
.hero-split__right .thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay discret sur l'image */
.hero-split__right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(44,74,62,0.25), transparent);
  pointer-events: none;
}

/* Section content présentation */
.index-intro {
  background: var(--c-creme);
  padding: 72px 0;
  border-bottom: 1px solid var(--c-bordure);
}
.index-intro__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.index-intro__content {
  font-family: var(--ff-corps);
  font-size: 18px;
  line-height: 1.8;
  color: var(--c-texte);
  columns: 2;
  column-gap: 56px;
}
.index-intro__content p:first-child { margin-top: 0; }
.index-intro__content p { margin-bottom: 1.2em; }
.index-intro__content h2, .index-intro__content h3 {
  font-family: var(--ff-titre);
  color: var(--c-foret);
  margin: 1.4em 0 0.5em;
  column-span: all;
}

/* Section showcase */
.index-showcase {
  padding: 80px 0 96px;
  background: var(--c-blanc);
}
.section-label {
  font-family: var(--ff-corps);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cuivre);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-bordure);
}
.section-title {
  font-family: var(--ff-titre);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--c-foret);
  margin-bottom: 48px;
  text-align: left;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================================
   POST-LOOP.HTML — Carte éditoriale asymétrique
   ============================================================ */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-blanc);
  border: 1px solid var(--c-bordure);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44,74,62,0.12);
}

.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--ff-corps);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-cuivre);
  padding: 4px 10px;
  border-radius: 1px;
}
.post-card__cat a { color: #fff; }

.post-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  font-family: var(--ff-corps);
  font-size: 12px;
  color: var(--c-gris);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.post-card__title {
  font-family: var(--ff-titre);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-foret);
  margin-bottom: 12px;
  flex: 1;
}
.post-card__title a { transition: color var(--transition); }
.post-card__title a:hover { color: var(--c-cuivre); }

.post-card__excerpt {
  font-size: 14px;
  color: var(--c-gris);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-corps);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sable);
  transition: color var(--transition);
}
.post-card__read::after {
  content: '→';
  font-size: 14px;
  transition: transform var(--transition);
}
.post-card:hover .post-card__read { color: var(--c-cuivre); }
.post-card:hover .post-card__read::after { transform: translateX(4px); }

/* ============================================================
   POST-LIST.HTML
   ============================================================ */
.list-header {
  background: var(--c-ardoise);
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--c-cuivre);
}
.list-header__eyebrow {
  font-family: var(--ff-corps);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cuivre);
  margin-bottom: 16px;
}
.list-header__title {
  font-family: var(--ff-titre);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-align: left;
}
.list-header__bc {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.list-header__bc a { color: rgba(255,255,255,0.7); }
.list-header__bc a:hover { color: var(--c-cuivre); }

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 64px 0 80px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 0 80px;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--ff-corps);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-texte);
  border: 1px solid var(--c-bordure);
  transition: all var(--transition);
}
.page-link:hover,
.page-link.active {
  background: var(--c-foret);
  color: #fff;
  border-color: var(--c-foret);
}

/* ============================================================
   POST.HTML — Article détail
   ============================================================ */
.post-header {
  background: var(--c-creme);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--c-bordure);
}

.post-bc {
  font-size: 13px;
  color: var(--c-gris);
  margin-bottom: 24px;
}
.post-bc a { color: var(--c-sable); }
.post-bc a:hover { color: var(--c-cuivre); }

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-cat-link {
  display: inline-block;
  font-family: var(--ff-corps);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-cuivre);
  padding: 5px 12px;
  border-radius: 1px;
  transition: background var(--transition);
}
.post-cat-link:hover { background: var(--c-sable); }

.post-date-meta {
  font-size: 13px;
  color: var(--c-gris);
}

.post-reading {
  font-size: 13px;
  color: var(--c-gris);
  font-style: italic;
}

.post-h1 {
  font-family: var(--ff-titre);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-foret);
  margin-bottom: 0;
  text-align: left;
}

/* Post body */
.post-body-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.post-thumbnail {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Contenu article */
.post-content {
  font-family: var(--ff-corps);
  font-size: 18px;
  line-height: 1.8;
  color: var(--c-texte);
}
.post-content h2 {
  font-family: var(--ff-titre);
  font-size: 28px;
  color: var(--c-foret);
  margin: 2em 0 0.6em;
  font-weight: 700;
}
.post-content h3 {
  font-family: var(--ff-titre);
  font-size: 22px;
  color: var(--c-ardoise);
  margin: 1.6em 0 0.5em;
  font-weight: 600;
}
.post-content p { margin-bottom: 1.4em; }
.post-content a { color: var(--c-cuivre); border-bottom: 1px solid rgba(196,135,61,0.35); }
.post-content a:hover { border-color: var(--c-cuivre); }
.post-content blockquote {
  border-left: 4px solid var(--c-cuivre);
  margin: 2em 0;
  padding: 16px 28px;
  background: var(--c-creme);
  font-style: italic;
  color: var(--c-ardoise);
  font-size: 19px;
}
.post-content ul, .post-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
}
.post-content ul li { list-style: disc; margin-bottom: 0.4em; }
.post-content ol li { list-style: decimal; margin-bottom: 0.4em; }
.post-content img { margin: 2em auto; border-radius: var(--radius); }
.post-content figure { margin: 2em 0; }
.post-content figcaption { text-align: center; font-size: 13px; color: var(--c-gris); margin-top: 8px; }

/* TOC */
.post-toc {
  background: var(--c-creme);
  border-left: 3px solid var(--c-foret);
  padding: 24px 28px;
  margin-bottom: 40px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-toc__title {
  font-family: var(--ff-corps);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-foret);
  margin-bottom: 12px;
}

/* Auteur */
.post-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 56px;
  padding: 28px;
  background: var(--c-creme);
  border-radius: var(--radius);
  border: 1px solid var(--c-bordure);
}
.post-author__info { flex: 1; }
.post-author__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cuivre);
  margin-bottom: 6px;
}
.post-author__name {
  font-family: var(--ff-titre);
  font-size: 20px;
  color: var(--c-foret);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Articles liés */
.related-section {
  background: var(--c-creme);
  padding: 64px 0;
  border-top: 1px solid var(--c-bordure);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-foret);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
  border-top: 3px solid var(--c-cuivre);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
}
.footer-copy a { color: var(--c-cuivre); }
.footer-copy a:hover { color: #fff; }
.footer-legal {
  font-size: 12px;
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .showcase-grid,
  .list-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .index-intro__content { columns: 1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-logo img { height: 52px; }
  .nav-menu { display: none; }
  .nav-burger { display: flex; }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split__left {
    padding: 56px 28px 48px;
    order: 2;
  }
  .hero-split__right {
    order: 1;
    min-height: 300px;
  }
  .hero-split__right::after { display: none; }
  .hero-split__right .thumbnail-wrap { height: 300px; }
  .hero-split__right .thumbnail-wrap img { height: 300px; }

  .section { padding: 48px 0; }
  .showcase-grid,
  .list-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .post-body-wrap { padding: 40px 20px 60px; }
  .post-h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .index-showcase { padding: 48px 0 64px; }
  .list-header { padding: 44px 0 36px; }
}
