/* ============================================================
   DAR KOUTOUBIA — Vivre à Marrakech (hub éditorial)
   ============================================================ */

/* ---------- Hero éditorial ---------- */

.vm-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.vm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vm-hero-bg .ph { position: absolute; inset: 0; }
.vm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--noir-deep) 0%, rgba(18,7,9,0.4) 50%, rgba(18,7,9,0.25) 100%);
  z-index: 1;
}
.vm-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: clamp(56px, 7vw, 96px);
  width: 100%;
}
.vm-hero-content h1 {
  font-size: clamp(38px, 5vw, 68px);
  max-width: 18ch;
  margin-bottom: 16px;
}
.vm-hero-content .lead { max-width: 52ch; margin-bottom: 28px; }

/* Topic nav pills */
.vm-topics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.vm-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: rgba(18, 7, 9, 0.6);
  backdrop-filter: blur(8px);
  color: var(--ivoire-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.vm-topic-pill:hover { border-color: var(--cuivre); color: var(--cuivre-hl); }
.vm-topic-pill svg { width: 16px; height: 16px; stroke: var(--cuivre); fill: none; stroke-width: 1.4; }

/* ---------- Section éditoriale ---------- */

.vm-section {
  padding: var(--section-pad) var(--gutter);
  scroll-margin-top: 60px;
}
.vm-section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Alternating content + image */
.vm-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.vm-block--reverse { direction: rtl; }
.vm-block--reverse > * { direction: ltr; }

.vm-block-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.vm-block-visual .ph { position: absolute; inset: 0; }
.vm-block-visual.arch {
  aspect-ratio: 3 / 4;
}

.vm-block-body { display: flex; flex-direction: column; gap: 18px; }
.vm-block-body h2 { font-size: clamp(26px, 3vw, 40px); }
.vm-block-body h3 { font-size: clamp(20px, 2.2vw, 28px); color: var(--cuivre-hl); }
.vm-block-body p { color: var(--ivoire-dim); }

.vm-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.vm-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}
.vm-highlight svg {
  width: 18px; height: 18px;
  stroke: var(--cuivre);
  fill: none;
  stroke-width: 1.4;
  flex: none;
  margin-top: 3px;
}

/* ---------- Grid de thèmes ---------- */

.vm-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vm-theme-card {
  border: 1px solid var(--line-soft);
  background: var(--bordeaux-deep);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.vm-theme-card:hover { border-color: var(--line); transform: translateY(-4px); }
.vm-theme-visual {
  position: relative;
  aspect-ratio: 16 / 10;
}
.vm-theme-visual .ph { position: absolute; inset: 0; }
.vm-theme-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.vm-theme-body h3 {
  font-size: 20px;
  font-weight: 600;
}
.vm-theme-body p {
  font-size: 14.5px;
  color: var(--ivoire-dim);
  flex: 1;
}

/* ---------- Citation / pull quote ---------- */

.vm-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.vm-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--ivoire);
  margin-bottom: 18px;
}
.vm-quote cite {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cuivre);
}

/* ---------- CTA banner ---------- */

.vm-cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}
.vm-cta-banner h2 { font-size: clamp(26px, 3vw, 40px); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .vm-block { grid-template-columns: 1fr; }
  .vm-block--reverse { direction: ltr; }
  .vm-block-visual { aspect-ratio: 16 / 10; max-height: 400px; }
  .vm-themes-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .vm-hero { min-height: 70vh; }
  .vm-topics { gap: 8px; }
  .vm-topic-pill { padding: 8px 14px; font-size: 11px; }
  .vm-themes-grid { grid-template-columns: 1fr; }
  .vm-highlights { grid-template-columns: 1fr; }
  .vm-cta-banner { flex-direction: column; gap: 20px; }
}
