/* ============================================================
   SIOULE & VIGNES — Main CSS
   Palette : primaire #4a3728 | secondaire #8b5e3c | accent #c8a96e | texte #2c2118
   Typo : Playfair Display (titres) + Lato (corps)
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: #2c2118;
  background: #faf8f4;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8b5e3c; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #4a3728;
  line-height: 1.25;
  font-weight: 700;
}

p { margin-bottom: 1.25rem; }

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 2px solid #c8a96e;
  color: #4a3728;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { background: #c8a96e; color: #fff; }

.tag-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8b5e3c;
  border-bottom: 2px solid #c8a96e;
  padding-bottom: 2px;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(74, 55, 40, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 88px;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 72px;
  width: auto;
}

/* hamburger (CSS only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c8a96e;
  transition: transform 0.3s;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu a {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8ddd0;
  padding: 10px 18px;
  transition: color 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: #c8a96e;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-menu a:hover { color: #c8a96e; }
.nav-menu a:hover::after { transform: scaleX(1); }

/* ============================================================
   INDEX — ARCHÉTYPE E : IMMERSIF PLEINE LARGEUR AVEC OVERLAY
   ============================================================ */
.hero-immersive {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 88px;
}

.hero-immersive__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-immersive__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Voile gradient bas-gauche */
.hero-immersive__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(30, 18, 10, 0.88) 0%,
    rgba(30, 18, 10, 0.45) 50%,
    rgba(30, 18, 10, 0.1) 100%
  );
}

.hero-immersive__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

.hero-immersive__label {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 20px;
  display: block;
}

.hero-immersive__h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.1;
  max-width: 820px;
  text-align: left;
  margin-bottom: 24px;
}

.hero-immersive__baseline {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  color: #d4c4a8;
  max-width: 540px;
  line-height: 1.6;
  text-align: left;
}

/* Filet décoratif */
.hero-divider {
  width: 80px;
  height: 2px;
  background: #c8a96e;
  margin: 0 0 32px 0;
}

/* ---- PRÉSENTATION ÉDITORIALE ---- */
.editorial-intro {
  background: #fff;
  padding: 72px 24px;
  border-bottom: 1px solid #e8ddd0;
}

.editorial-intro__inner {
  max-width: 760px;
  margin: 0 auto;
}

.editorial-intro__kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b5e3c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.editorial-intro__kicker::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #c8a96e;
}

.editorial-intro__body {
  font-family: 'Lato', sans-serif;
  font-size: 1.12rem;
  color: #3a2a1e;
  line-height: 1.8;
}

/* ---- SHOWCASE ---- */
.showcase-section {
  padding: 80px 0 100px;
  background: #faf8f4;
}

.showcase-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0d4c0;
}

.showcase-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a3728;
}

.showcase-section__link {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b5e3c;
  border-bottom: 1px solid #c8a96e;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.showcase-section__link:hover { color: #4a3728; }

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

/* ============================================================
   POST-LOOP — Carte verticale avec accent doré
   ============================================================ */
.post-card {
  background: #fff;
  border: 1px solid #e8ddd0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.post-card:hover {
  box-shadow: 0 8px 32px rgba(74,55,40,0.12);
  transform: translateY(-3px);
}

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

.post-card__cat {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #4a3728;
  color: #c8a96e;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
}

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

.post-card__meta {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  color: #9a8070;
  letter-spacing: 0.08em;
}

.post-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #4a3728;
  line-height: 1.35;
}
.post-card__title:hover { color: #8b5e3c; }

.post-card__excerpt {
  font-size: 0.9rem;
  color: #5a4535;
  line-height: 1.6;
  flex: 1;
}

.post-card__read {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b5e3c;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e8ddd0;
  padding-top: 14px;
  margin-top: auto;
}
.post-card__read::after { content: '→'; font-size: 1rem; }

/* ============================================================
   POST-LIST
   ============================================================ */
.page-header {
  margin-top: 88px;
  background: #4a3728;
  padding: 64px 24px 56px;
  border-bottom: 3px solid #c8a96e;
}

.page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header__kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 16px;
}

.page-header__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-align: left;
}

.list-section {
  padding: 72px 0 96px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a3728;
  border: 1px solid #e0d4c0;
  background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination .page:hover {
  background: #8b5e3c;
  color: #fff;
  border-color: #8b5e3c;
}

.pagination .active {
  background: #4a3728;
  color: #c8a96e;
  border-color: #4a3728;
}

/* ============================================================
   POST DETAIL
   ============================================================ */
.post-page { margin-top: 88px; }

.post-breadcrumb {
  background: #f0ebe1;
  border-bottom: 1px solid #e0d4c0;
  padding: 14px 24px;
}

.post-breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: #8a7060;
}

.post-breadcrumb__inner a { color: #8b5e3c; }
.post-breadcrumb__inner a:hover { color: #4a3728; }

/* Hero de l'article */
.post-hero {
  background: #fff;
  padding: 56px 24px 0;
}

.post-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

.post-hero__cat {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b5e3c;
  border-bottom: 2px solid #c8a96e;
  padding-bottom: 3px;
  margin-bottom: 20px;
}

.post-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #2c2118;
  line-height: 1.2;
  text-align: left;
  margin-bottom: 20px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: #8a7060;
  padding: 16px 0;
  border-top: 1px solid #e8ddd0;
  border-bottom: 1px solid #e8ddd0;
  margin-bottom: 36px;
}

.post-hero__meta span { display: flex; align-items: center; gap: 6px; }

/* Thumbnail article */
.post-thumbnail {
  margin-bottom: 0;
  line-height: 0;
}

.post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Corps article */
.post-body {
  background: #fff;
  padding: 0 24px 72px;
}

.post-body__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 48px;
}

.post-body__inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: #4a3728;
  margin: 2rem 0 1rem;
}

.post-body__inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #4a3728;
  margin: 1.5rem 0 0.75rem;
}

.post-body__inner p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #2c2118;
  margin-bottom: 1.4rem;
}

.post-body__inner ul, .post-body__inner ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.post-body__inner li {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.post-body__inner blockquote {
  border-left: 4px solid #c8a96e;
  padding: 14px 24px;
  margin: 2rem 0;
  background: #f8f3ea;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #4a3728;
}

.post-body__inner img {
  width: 100%;
  margin: 2rem 0;
}

.post-body__inner a { color: #8b5e3c; text-decoration: underline; }
.post-body__inner a:hover { color: #4a3728; }

/* Signatory */
.post-signatory {
  background: #f0ebe1;
  border: 1px solid #e0d4c0;
  border-left: 4px solid #c8a96e;
  padding: 28px 32px;
  margin: 40px 0 0;
}

/* Related */
.related-section {
  background: #faf8f4;
  padding: 72px 24px;
  border-top: 1px solid #e0d4c0;
}

.related-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #4a3728;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0d4c0;
  text-align: left;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #2c2118;
  color: #b8a898;
  padding: 48px 24px;
  border-top: 3px solid #4a3728;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #8a7a6a;
}

.footer-copy a { color: #c8a96e; }
.footer-copy a:hover { color: #fff; }

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #c8a96e;
}

/* ============================================================
   MOBILE MENU (CSS only via checkbox hack)
   ============================================================ */
.nav-check { display: none; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #4a3728;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid rgba(200,169,110,0.2);
  }

  .nav-check:checked ~ .nav-inner .nav-menu { max-height: 400px; }

  .nav-menu a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(200,169,110,0.1);
  }
  .nav-menu a::after { display: none; }

  /* hamburger to X */
  .nav-check:checked ~ .nav-inner .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-check:checked ~ .nav-inner .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-check:checked ~ .nav-inner .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

@media (max-width: 640px) {
  .showcase-grid,
  .list-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-immersive { min-height: 65vh; }
  .hero-immersive__h1 { font-style: normal; }

  .footer-inner { flex-direction: column; text-align: center; }

  .page-header { padding: 40px 20px 36px; }

  .nav-logo img { height: 52px; }

  .showcase-section__header { flex-direction: column; gap: 12px; }

  .post-hero__meta { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
  .nav-logo img { height: 48px; }
}
