/* =============================================
   HAÏTI HORIZON — Ghost Theme CSS
   haitihorizon.ht · v1.0.0
   ============================================= */

/* VARIABLES */
:root {
  --foret:   #2D5016;
  --vert:    #5C8A2E;
  --terre:   #8B5E3C;
  --or:      #C8934A;
  --parchemin: #F5F0E8;
  --encre:   #3D3228;
  --encre-light: #6B5C50;
  --blanc:   #FAFAF7;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Source Sans 3', 'Calibri', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }

body {
  font-family: var(--sans);
  background: var(--blanc);
  color: var(--encre);
  line-height: 1.7;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 2rem; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61,50,40,0.1);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 36px; height: 36px;
  background: var(--foret);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--or);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 14px;
}

.nav-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--encre);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--encre-light);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--foret); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: all 0.25s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: var(--foret);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,147,74,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(92,138,46,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-hh {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  color: var(--or);
  line-height: 0.85;
  opacity: 0.12;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.03em;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  border: 1px solid rgba(200,147,74,0.4);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--parchemin);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--or); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(245,240,232,0.72);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245,240,232,0.4);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(200,147,74,0.6), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* =============================================
   BOUTONS
   ============================================= */
.btn-primary {
  background: var(--or);
  color: var(--encre);
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #d9a45a; transform: translateY(-1px); }

.btn-outline {
  border: 1px solid rgba(245,240,232,0.35);
  color: var(--parchemin);
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(245,240,232,0.7); }

/* =============================================
   TYPOGRAPHIE COMMUNE
   ============================================= */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--encre);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--encre-light);
  max-width: 600px;
  line-height: 1.8;
  font-weight: 300;
}

/* =============================================
   ARTICLES — INDEX
   ============================================= */
.articles-section { background: var(--blanc); }
.articles-section .container { max-width: 1100px; margin: 0 auto; }

.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(61,50,40,0.1);
}

.post-featured .featured-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
}

.featured-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.75rem 0;
}
.featured-title a { color: var(--encre); text-decoration: none; }
.featured-title a:hover { color: var(--foret); }

.featured-excerpt {
  color: var(--encre-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card { display: flex; flex-direction: column; }

.post-card-image-link img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}
.post-card-image-link:hover img { opacity: 0.9; }

.post-card-content { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.post-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.post-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}
.post-card-title a { color: var(--encre); text-decoration: none; }
.post-card-title a:hover { color: var(--foret); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--encre-light);
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--encre-light);
  margin-top: auto;
  padding-top: 0.75rem;
  flex-wrap: wrap;
}

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

.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--foret);
  color: var(--or);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0 0;
  font-size: 0.9rem;
  color: var(--encre-light);
}
.pagination a {
  color: var(--foret);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid rgba(61,50,40,0.15);
  border-radius: 4px;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--foret); color: var(--parchemin); }

/* =============================================
   ARTICLE COMPLET
   ============================================= */
.post-full { padding-top: 6rem; }

.post-header {
  background: var(--parchemin);
  padding: 5rem 2rem 4rem;
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--encre);
  margin: 1rem 0 1.5rem;
}

.post-excerpt {
  font-size: 1.2rem;
  color: var(--encre-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.post-meta-right { margin-left: auto; }

.post-feature-image {
  max-height: 560px;
  overflow: hidden;
}
.post-feature-image img {
  width: 100%;
  object-fit: cover;
}
.post-feature-image figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--encre-light);
  padding: 0.75rem 2rem;
}

.post-content {
  max-width: 760px;
  padding: 4rem 2rem;
}

/* Styles du contenu Ghost */
.gh-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--encre);
  margin: 3rem 0 1rem;
  line-height: 1.25;
}

.gh-content h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--encre);
  margin: 2.5rem 0 0.75rem;
}

.gh-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.gh-content a { color: var(--foret); }
.gh-content a:hover { color: var(--vert); }

.gh-content blockquote {
  border-left: 3px solid var(--or);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--parchemin);
  border-radius: 0 4px 4px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--encre);
}

.gh-content img {
  border-radius: 4px;
  margin: 2rem 0;
}

.gh-content figure { margin: 2rem 0; }
.gh-content figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--encre-light);
  margin-top: 0.5rem;
}

.gh-content ul, .gh-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.gh-content li { margin-bottom: 0.5rem; line-height: 1.7; }

.gh-content hr {
  border: none;
  border-top: 1px solid rgba(61,50,40,0.12);
  margin: 3rem 0;
}

/* Tags article */
.post-footer { padding: 2rem 2rem 4rem; }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag-pill {
  display: inline-block;
  background: var(--parchemin);
  color: var(--encre-light);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(61,50,40,0.1);
}
.tag-pill:hover { background: var(--foret); color: var(--parchemin); }

/* Articles liés */
.related-posts {
  border-top: 1px solid rgba(61,50,40,0.1);
  padding: 3rem 2rem 5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.post-card.small .post-card-title { font-size: 1rem; }
.post-card.small img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 0.75rem;
}

/* =============================================
   TAG PAGE
   ============================================= */
.tag-header {
  background: var(--parchemin);
  padding: 7rem 2rem 4rem;
}
.tag-count {
  font-size: 0.85rem;
  color: var(--encre-light);
  margin-top: 0.75rem;
}

/* =============================================
   PAGE STATIQUE
   ============================================= */
.page-full {
  padding: 7rem 2rem 5rem;
  max-width: 760px;
}
.page-title {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}
.page-excerpt {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--encre-light);
  margin-bottom: 2.5rem;
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section { background: var(--parchemin); padding: 5rem 2rem; }

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

.newsletter-card h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.newsletter-card p {
  color: var(--encre-light);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border: 1px solid rgba(61,50,40,0.2);
  border-radius: 4px;
  background: white;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--encre);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--foret);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--encre);
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.footer-hh {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(200,147,74,0.1);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  user-select: none;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--parchemin);
  margin-bottom: 0.75rem;
}

.footer-sub {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.45);
  margin-bottom: 2.5rem;
}
.footer-sub a {
  color: rgba(245,240,232,0.55);
  text-decoration: none;
}
.footer-sub a:hover { color: var(--or); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(245,240,232,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--or); }

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(200,147,74,0.25);
  margin: 0 auto 2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.22);
}
.footer-copy a { color: rgba(245,240,232,0.3); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-featured { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--blanc);
    padding: 2rem;
    border-bottom: 1px solid rgba(61,50,40,0.1);
    gap: 1rem;
  }
  .nav-toggle { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
}

.kg-width-wide { margin: 0 auto; max-width: 1200px; }
.kg-width-full { margin: 0; width: 100%; }

