/* ============================================================
   single-article.css — hotel-manosque.fr
   Design éditorial magazine — Haute-Provence
============================================================ */

/* ── RESET ASTRA SUR LES ARTICLES ── */
.hm-article .ast-container,
.hm-article #primary,
.hm-article .site-content {
  max-width: 100% !important;
  padding: 0 !important;
}
.hm-article #secondary { display: none !important; }
body.single #secondary { display: none !important; }
body.single #primary { width: 100% !important; float: none !important; }

/* ── HERO ARTICLE ── */
.hm-art-hero {
  position: relative;
  overflow: hidden;
}

.hm-art-hero--with-img {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
}

.hm-art-hero--no-img {
  background: linear-gradient(135deg, #2C2416 0%, #4a3520 100%);
  padding: 80px 0 60px;
  display: flex;
  align-items: flex-end;
}

.hm-art-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hm-art-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-art-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,14,6,0.2) 0%,
    rgba(20,14,6,0.4) 40%,
    rgba(20,14,6,0.88) 100%
  );
}

.hm-art-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px 56px;
  width: 100%;
}

.hm-art-hero__meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hm-art-cat {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FAF7F2;
  background: #C8924A;
  padding: 5px 14px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.hm-art-cat:hover { background: #a8742e; color: #FAF7F2; }

.hm-art-readtime {
  font-size: 0.78rem;
  color: rgba(250,247,242,0.65);
  font-family: 'Source Sans 3', sans-serif;
}

.hm-art-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #FAF7F2;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
}

.hm-art-hero__excerpt {
  font-size: 1.12rem;
  color: rgba(250,247,242,0.78);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 28px;
  font-family: 'Source Sans 3', sans-serif;
}

/* Hero sans image */
.hm-art-hero--no-img .hm-art-hero__title { color: #FAF7F2; }
.hm-art-hero--no-img .hm-art-readtime { color: rgba(250,247,242,0.55); }

.hm-art-hero__byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-art-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C8924A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #FAF7F2;
  flex-shrink: 0;
}

.hm-art-byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hm-art-byline__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FAF7F2;
  font-family: 'Source Sans 3', sans-serif;
}

.hm-art-byline__date {
  font-size: 0.78rem;
  color: rgba(250,247,242,0.6);
  font-family: 'Source Sans 3', sans-serif;
}

/* ── LAYOUT ARTICLE ── */
.hm-art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .hm-art-layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .hm-art-sidebar { display: none; }
}

/* ── BARRE PROGRESSION ── */
.hm-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #C8924A;
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── CONTENU PRINCIPAL ── */
.hm-art-content-wrap {
  padding: 56px 56px 56px 0;
  border-right: 1px solid rgba(44,36,22,0.1);
  min-width: 0;
}

@media (max-width: 1024px) {
  .hm-art-content-wrap { padding: 40px 0; border-right: none; }
}

/* Typographie du contenu */
.hm-art-content {
  font-family: 'Source Sans 3', 'Georgia', sans-serif;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2A2520;
}

.hm-art-content p {
  margin: 0 0 1.6em;
}

.hm-art-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #2A2520;
  margin: 2.2em 0 0.8em;
  padding-top: 0.5em;
  border-top: 2px solid #C8924A;
  line-height: 1.25;
}

.hm-art-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #2A2520;
  margin: 1.8em 0 0.7em;
  font-weight: 700;
}

.hm-art-content h2:first-child,
.hm-art-content h3:first-child {
  margin-top: 0;
}

.hm-art-content a {
  color: #C8924A;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hm-art-content a:hover { color: #a8742e; }

.hm-art-content ul,
.hm-art-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.6em;
}

.hm-art-content li { margin-bottom: 0.5em; }

.hm-art-content blockquote {
  border-left: 3px solid #C8924A;
  margin: 2em 0;
  padding: 16px 24px;
  background: rgba(200,146,74,0.06);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #4a3520;
}

.hm-art-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5em 0;
}

.hm-art-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.94rem;
}

.hm-art-content table th {
  background: #2C2416;
  color: #FAF7F2;
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
}

.hm-art-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(44,36,22,0.1);
}

.hm-art-content table tr:hover td { background: rgba(200,146,74,0.05); }

/* Encadré pratique */
.hm-art-content .wp-block-group,
.hm-art-content .encadre {
  background: #FAF7F2;
  border: 1px solid rgba(200,146,74,0.3);
  border-left: 4px solid #C8924A;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 1.8em 0;
}

/* ── TAGS ── */
.hm-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  padding-top: 32px;
  border-top: 1px solid rgba(44,36,22,0.1);
}

.hm-art-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b6258;
  border: 1px solid rgba(44,36,22,0.2);
  padding: 5px 12px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Source Sans 3', sans-serif;
}
.hm-art-tag:hover { background: #2A2520; color: #FAF7F2; border-color: #2A2520; }

/* ── SIGNATURE FIN D'ARTICLE ── */
.hm-art-signature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #2C2416;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px 0;
}

.hm-art-signature__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #C8924A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #FAF7F2;
  flex-shrink: 0;
}

.hm-art-signature__text strong {
  display: block;
  color: #FAF7F2;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hm-art-signature__text p {
  color: rgba(250,247,242,0.72);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
}

/* ── NAVIGATION ARTICLES ── */
.hm-art-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(44,36,22,0.1);
}

.hm-art-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: #FAF7F2;
  border: 1px solid rgba(44,36,22,0.12);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.hm-art-nav__item:hover { border-color: #C8924A; background: rgba(200,146,74,0.05); }
.hm-art-nav__item--next { text-align: right; }

.hm-art-nav__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8924A;
  font-family: 'Source Sans 3', sans-serif;
}

.hm-art-nav__title {
  font-size: 0.92rem;
  color: #2A2520;
  line-height: 1.4;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

@media (max-width: 600px) {
  .hm-art-nav { grid-template-columns: 1fr; }
}

/* ── SIDEBAR ── */
.hm-art-sidebar {
  padding: 48px 0 48px 40px;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Table des matières */
.hm-toc {
  background: #FAF7F2;
  border: 1px solid rgba(44,36,22,0.12);
  border-radius: 6px;
  padding: 20px 24px;
}

.hm-toc__title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8924A;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(44,36,22,0.1);
}

.hm-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hm-toc__link {
  display: block;
  font-size: 0.85rem;
  color: #6b6258;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 3px;
  transition: all 0.15s;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.4;
}
.hm-toc__link--h3 { padding-left: 20px; font-size: 0.8rem; }
.hm-toc__link:hover { color: #2A2520; background: rgba(200,146,74,0.1); }
.hm-toc__link--active { color: #C8924A !important; font-weight: 600; background: rgba(200,146,74,0.08); }

/* Encart à propos sidebar */
.hm-art-aside-card {
  background: #2C2416;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.hm-art-aside-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #C8924A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #FAF7F2;
  margin: 0 auto 12px;
}

.hm-art-aside-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C8924A;
  margin-bottom: 4px;
  font-family: 'Source Sans 3', sans-serif;
}

.hm-art-aside-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #FAF7F2;
  margin-bottom: 10px;
  font-style: italic;
}

.hm-art-aside-card__bio {
  font-size: 0.82rem;
  color: rgba(250,247,242,0.68);
  line-height: 1.6;
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
}

/* Articles liés sidebar */
.hm-art-related {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hm-art-related__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8924A;
  margin-bottom: 12px;
  font-family: 'Source Sans 3', sans-serif;
}

.hm-art-related__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44,36,22,0.08);
  text-decoration: none;
  transition: opacity 0.2s;
}
.hm-art-related__item:last-child { border-bottom: none; }
.hm-art-related__item:hover { opacity: 0.75; }

.hm-art-related__thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d4b896, #C8924A);
}
.hm-art-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hm-art-related__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hm-art-related__name {
  font-size: 0.85rem;
  color: #2A2520;
  line-height: 1.4;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hm-art-hero__inner { padding: 40px 24px 40px; }
  .hm-art-hero--with-img { min-height: 55vh; }
  .hm-art-content { font-size: 1rem; }
  .hm-art-signature { flex-direction: column; gap: 16px; padding: 24px; }
}
