/* ==========================================
   SAUNACHELIN — screen.css
   Palette: Nuit / Bois / Or / Parchemin
   ========================================== */

:root {
  --nuit:        #191410;
  --bois:        #3D2E1E;
  --or:          #C4922A;
  --parchemin:   #EDE3CC;
  --or-clair:    #D4A84A;
  --pierre:      #B8A99A;
  --pierre-s:    #8A7B6B;
  --sourdine:    #7A6A55;
  --bois-light:  #2A1E12;

  --font-title:  'Cormorant Garamond', Georgia, serif;
  --font-body:   'Instrument Sans', system-ui, sans-serif;

  --max-width:   1200px;
  --col-width:   680px;
}

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

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

body {
  background: var(--nuit);
  color: var(--parchemin);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--or-clair); text-decoration: none; }
a:hover { color: var(--or); }

img { display: block; max-width: 100%; height: auto; }

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 146, 42, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--parchemin);
  text-decoration: none;
}

.logo-mark { font-size: 16px; }

.logo-text {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--parchemin);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--pierre);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--parchemin); }

.nav-cta {
  background: transparent;
  border: 1px solid rgba(196, 146, 42, 0.4);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--or) !important;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(196, 146, 42, 0.1);
  border-color: var(--or);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--pierre);
  transition: all 0.2s;
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  border-bottom: 1px solid rgba(196, 146, 42, 0.1);
  padding: 6rem 2rem 5rem;
}

.hero-inner {
  max-width: var(--col-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--parchemin);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--pierre);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-cotes {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cote-legend {
  font-size: 13px;
  color: var(--pierre-s);
  letter-spacing: 0.02em;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.5rem;
}

.posts-section { padding: 4rem 0; }

/* ==========================================
   POST CARDS
   ========================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bois);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(196, 146, 42, 0.1);
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: rgba(196, 146, 42, 0.3);
  transform: translateY(-2px);
}

.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-card-image-link { display: block; overflow: hidden; }
.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card-featured .post-card-image { height: 100%; min-height: 300px; }
.post-card:hover .post-card-image { transform: scale(1.03); }

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-card-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or);
  text-decoration: none;
}

.post-card-date {
  font-size: 12px;
  color: var(--sourdine);
}

.post-card-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.post-card-title a { color: var(--parchemin); text-decoration: none; }
.post-card-title a:hover { color: var(--or-clair); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--pierre);
  line-height: 1.6;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(196, 146, 42, 0.1);
}

.post-card-cote { font-size: 14px; }

.post-card-read {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--or);
  text-decoration: none;
}

.post-card-read:hover { color: var(--or-clair); }

/* ==========================================
   FEATURED WRAP
   ========================================== */

.featured-wrap { margin-bottom: 3rem; }

/* ==========================================
   CRITERIA SECTION
   ========================================== */

.criteria-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(196, 146, 42, 0.1);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.criterion {
  padding: 1.5rem;
  border: 1px solid rgba(196, 146, 42, 0.15);
  border-radius: 8px;
}

.criterion-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(196, 146, 42, 0.3);
  display: block;
  margin-bottom: 0.5rem;
}

.criterion h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--parchemin);
  margin-bottom: 0.5rem;
}

.criterion p {
  font-size: 13px;
  color: var(--pierre-s);
  line-height: 1.6;
}

/* ==========================================
   NEWSLETTER
   ========================================== */

.newsletter-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(196, 146, 42, 0.1);
}

.newsletter-box {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 300;
  color: var(--parchemin);
  margin-bottom: 0.75rem;
}

.newsletter-box p {
  font-size: 14px;
  color: var(--pierre);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: var(--bois);
  border: 1px solid rgba(196, 146, 42, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--parchemin);
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form input::placeholder { color: var(--sourdine); }
.newsletter-form input:focus { border-color: var(--or); }

.newsletter-form button {
  background: var(--or);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--nuit);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--or-clair); }

.form-success, .form-error { font-size: 13px; margin-top: 0.5rem; }
.form-success { color: #6db78e; }
.form-error { color: #e07070; }

/* ==========================================
   FICHE (POST PAGE)
   ========================================== */

.fiche-header {
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid rgba(196, 146, 42, 0.1);
  background: #191410;
}

.fiche-header-inner {
  max-width: var(--col-width);
  margin: 0 auto;
}

.fiche-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fiche-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  text-decoration: none;
  border: 1px solid rgba(196, 146, 42, 0.3);
  border-radius: 3px;
  padding: 3px 8px;
}

.fiche-date {
  font-size: 12px;
  color: var(--sourdine);
}

.fiche-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  color: #EDE3CC !important;
  margin-bottom: 1.25rem !important;
}

.fiche-excerpt {
  font-size: 1.1rem;
  color: var(--pierre);
  line-height: 1.65;
  margin-bottom: 2rem;
  font-style: italic;
}

.fiche-cote {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.braises { font-size: 1.5rem; }

.cote-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
}

.fiche-image {
  max-height: 500px;
  overflow: hidden;
}

.fiche-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* ==========================================
   FICHE BODY LAYOUT
   ========================================== */

.fiche-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ==========================================
   POST CONTENT (Ghost cards)
   ========================================== */

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--pierre);
}

.post-content h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--parchemin);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.01em;
}

.post-content h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--parchemin);
  margin: 2rem 0 0.75rem;
}

.post-content p { margin-bottom: 1.4rem; }

.post-content strong { color: var(--parchemin); font-weight: 500; }

.post-content em { color: var(--or-clair); font-style: italic; }

.post-content blockquote {
  border-left: 2px solid var(--or);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--parchemin);
  line-height: 1.6;
}

.post-content hr {
  border: none;
  border-top: 1px solid rgba(196, 146, 42, 0.2);
  margin: 2.5rem 0;
}

.post-content a { color: var(--or-clair); border-bottom: 1px solid rgba(212, 168, 74, 0.3); }
.post-content a:hover { color: var(--or); border-bottom-color: var(--or); }

.post-content figure { margin: 2rem 0; }
.post-content figure img { border-radius: 8px; }
.post-content figcaption {
  font-size: 12px;
  color: var(--sourdine);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.fiche-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  background: var(--bois);
  border-radius: 10px;
  border: 1px solid rgba(196, 146, 42, 0.15);
  padding: 1.25rem;
}

.sidebar-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(196, 146, 42, 0.08);
  font-size: 13px;
}

.sidebar-row:last-child { border-bottom: none; }

.sr-label { color: var(--sourdine); }
.sr-value { color: var(--parchemin); }

.verdict-card { text-align: center; }
.verdict-cote { font-size: 1.5rem; margin-bottom: 0.5rem; }
.verdict-sig {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--or);
}

.share-card { display: flex; flex-direction: column; gap: 6px; }

.share-btn {
  font-size: 12px;
  color: var(--pierre-s);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid rgba(196, 146, 42, 0.1);
  text-align: center;
  transition: all 0.2s;
}

.share-btn:hover {
  background: rgba(196, 146, 42, 0.08);
  color: var(--or);
  border-color: rgba(196, 146, 42, 0.3);
}

/* ==========================================
   FICHE FOOTER
   ========================================== */

.fiche-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  border-top: 1px solid rgba(196, 146, 42, 0.1);
}

.author-block { max-width: var(--col-width); }

.author-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 146, 42, 0.3);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--parchemin);
  margin-bottom: 2px;
}

.author-bio {
  font-size: 13px;
  color: var(--pierre-s);
  line-height: 1.5;
}

/* ==========================================
   RELATED POSTS
   ========================================== */

.related-posts {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(196, 146, 42, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: var(--bois-light);
  border-top: 1px solid rgba(196, 146, 42, 0.2);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.footer-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--parchemin);
}

.footer-tagline {
  font-size: 14px;
  color: var(--pierre);
  margin-bottom: 0.5rem;
}

.footer-byline {
  font-size: 12px;
  color: var(--sourdine);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--pierre-s);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--or); }

.footer-copy {
  font-size: 11px;
  color: var(--sourdine);
  letter-spacing: 0.05em;
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0 0;
}

.pagination a, .pagination span {
  font-size: 13px;
  color: var(--pierre);
  padding: 8px 16px;
  border: 1px solid rgba(196, 146, 42, 0.2);
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background: rgba(196, 146, 42, 0.1);
  color: var(--or);
  border-color: rgba(196, 146, 42, 0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .fiche-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fiche-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .post-card-featured {
    grid-template-columns: 1fr;
  }
  .post-card-featured .post-card-image { height: 240px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nuit);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(196, 146, 42, 0.2);
    gap: 1rem;
  }
  .hero { padding: 3rem 1.5rem; }
  .hero-cotes { flex-direction: column; gap: 0.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .fiche-sidebar { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
}

/* ==========================================
   TAG / ARCHIVE PAGE
   ========================================== */

.tag-header {
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(196, 146, 42, 0.1);
}

.tag-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 300;
  color: var(--parchemin);
  margin-bottom: 0.5rem;
}

.tag-description {
  font-size: 1rem;
  color: var(--pierre);
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================
   GHOST CARDS COMPAT
   ========================================== */

.kg-width-wide {
  margin-left: -4rem;
  margin-right: -4rem;
}

.kg-width-full {
  margin-left: calc(50% - 50vw + 2rem);
  margin-right: calc(50% - 50vw + 2rem);
}

.kg-image { border-radius: 8px; }

.kg-callout-card {
  background: var(--bois);
  border-left: 3px solid var(--or);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
}

.kg-callout-text { font-size: 14px; color: var(--pierre); line-height: 1.6; }

.kg-toggle-card {
  background: var(--bois);
  border: 1px solid rgba(196, 146, 42, 0.15);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.kg-toggle-heading-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--parchemin);
  cursor: pointer;
}

.kg-toggle-content { color: var(--pierre); font-size: 14px; margin-top: 0.75rem; }
