/* ══════════════════════════════════════════════════
   TANGIER KEYS — Blog / Journal
══════════════════════════════════════════════════ */

/* ─── En-tête (band sombre derrière la nav transparente) ─── */
.blog-hero {
  background:
    linear-gradient(135deg, rgba(11,63,72,0.92), rgba(19,100,112,0.92)),
    radial-gradient(circle at 80% 20%, rgba(201,169,110,0.18), transparent 55%);
  background-color: var(--primary-deep);
  padding: calc(var(--nav-h) + 72px) 28px 72px;
  text-align: center;
}
.blog-hero .section-tag { color: var(--gold); }
.blog-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 8px;
}
.blog-hero h1 em { color: var(--gold); }
.blog-hero p {
  max-width: 640px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.8;
}

/* ─── Grille d'articles ─── */
.blog-section { background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.post-cover {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.post-card:hover .post-cover { }
.post-cat {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(11,63,72,0.82);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid rgba(201,169,110,0.5);
}
.post-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.post-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}
.post-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  align-self: flex-start;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
  display: inline-flex;
  gap: 6px;
}
.post-link:hover { color: var(--gold); gap: 12px; }

/* Carte "à venir" (placeholder) */
.post-card.soon { opacity: 0.92; }
.post-card.soon .post-cat { background: rgba(11,63,72,0.55); }

/* ─── Emplacement photo (en attente d'image) ─── */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, var(--teal-pale), var(--teal-pale) 14px, var(--cream) 14px, var(--cream) 28px);
  color: var(--text-light);
}
.img-placeholder .ph-icon { font-size: 1.8rem; opacity: 0.65; }
.img-placeholder .ph-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   PAGE ARTICLE
══════════════════════════════════════════════════ */
.article-hero {
  background: var(--primary-deep);
  padding: calc(var(--nav-h) + 56px) 28px 0;
  text-align: center;
}
.article-hero .article-cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.5);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white);
  max-width: 880px;
  margin: 0 auto 18px;
  line-height: 1.18;
}
.article-hero h1 em { color: var(--gold); }
.article-hero .article-meta {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding-bottom: 56px;
}

/* Image de couverture (chevauche le band sombre) */
.article-cover-wrap {
  max-width: 960px;
  margin: -40px auto 0;
  padding: 0 28px;
}
.article-cover {
  height: 440px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-deep);
}

/* Corps de l'article */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 24px;
}
.article-body > .lead {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--primary);
  margin-bottom: 28px;
}
.article-body p {
  font-size: 1.02rem;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 22px;
}
.article-body h2 {
  font-size: 1.7rem;
  color: var(--text-dark);
  margin: 44px 0 16px;
}
.article-body h2 + p { margin-top: 0; }
.article-body h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 32px 0 12px;
}
.article-body ul {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body ul li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.8;
}
.article-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }
.article-body blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  background: var(--teal-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.5;
}
.article-figure { margin: 32px 0; }
.article-figure .article-img {
  height: 360px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}
.article-figure figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
  font-style: italic;
}

/* Retour blog */
.article-back {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.article-back a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  display: inline-flex;
  gap: 6px;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
.article-back a:hover { color: var(--primary); gap: 12px; }

/* CTA fin d'article */
.article-cta {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 44px 36px;
  text-align: center;
  background: var(--primary-deep);
  border-radius: 6px;
  margin-bottom: 90px;
}
.article-cta h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.article-cta h3 em { color: var(--gold); }
.article-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .blog-grid     { grid-template-columns: 1fr 1fr; }
  .article-cover { height: 360px; }
}
@media (max-width: 680px) {
  .blog-grid     { grid-template-columns: 1fr; }
  .article-cover { height: 240px; }
  .article-figure .article-img { height: 220px; }
  .article-body .lead { font-size: 1.25rem; }
}
