/* Hellyse blog — layout type fil social, palette salon (navy / sky / blush) */
:root {
  --hl-navy: #30322f;
  --hl-mid: #404d46;
  --hl-sky: #9ec6d0;
  --hl-pale: #b6d2dd;
  --hl-blush: #e7d5bd;
  --hl-off: #f7f4f1;

  --hl-bg-deep: #1a1e1c;
  --hl-bg-main: #222826;
  --hl-bg-card: #2d3330;
  --hl-bg-hover: #3a4240;
  --hl-border: #404d46;

  --hl-primary: var(--hl-sky);
  --hl-primary-dim: rgba(158, 198, 208, 0.14);
  --hl-accent: var(--hl-blush);

  --hl-text: #f2f0ed;
  --hl-text-muted: #a8b8bf;
  /* Alias pour styles inline hérités du site (ex. admin commentaires, connexion) */
  --light-text: var(--hl-text-muted);
  --hl-radius: 16px;
  --hl-radius-sm: 10px;
  --hl-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --hl-glow: 0 0 0 1px rgba(158, 198, 208, 0.12);
}

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

@keyframes hl-fade-in {
  from { opacity: 0; transform: scale(0.98) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes hl-slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--hl-text);
  background: linear-gradient(145deg, var(--hl-bg-deep) 0%, #1e2421 42%, var(--hl-bg-main) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Top bar ── */
.hl-topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  background: rgba(45, 51, 48, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hl-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hl-topbar-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.hl-topbar-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hl-off);
  letter-spacing: 0.03em;
}

.hl-topbar-tag {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-primary);
}

.hl-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.hl-topbar-nav a {
  color: var(--hl-text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.hl-topbar-nav a:hover {
  background: var(--hl-bg-hover);
  color: var(--hl-text);
}

.hl-topbar-nav a.is-active {
  color: var(--hl-primary);
  background: var(--hl-primary-dim);
  font-weight: 600;
}

.hl-topbar-toggle {
  display: none;
  position: relative;
  z-index: 302;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--hl-bg-hover);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hl-topbar-toggle:focus-visible {
  outline: 2px solid var(--hl-primary);
  outline-offset: 2px;
}

.hl-topbar-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hl-off);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.hl-topbar.is-open .hl-topbar-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hl-topbar.is-open .hl-topbar-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hl-topbar.is-open .hl-topbar-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.blog-topbar-open {
  overflow: hidden;
  touch-action: none;
}

/* ── Grille principale ── */
.blog-main {
  flex: 1;
  width: 100%;
}

.blog-main--full {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.hl-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 300px);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
}

.hl-feed {
  min-width: 0;
  animation: hl-fade-in 0.55s ease-out;
}

@media (max-width: 1180px) {
  .hl-layout {
    grid-template-columns: 240px 1fr;
  }
  .hl-sidebar--right {
    display: none;
  }
  .hl-sidebar {
    position: static;
    top: auto;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .hl-layout {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 16px;
    max-width: 100%;
  }
  .hl-feed {
    order: 1;
    width: 100%;
  }
  .hl-sidebar--left {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }
  .hl-nav-menu {
    margin-bottom: 0 !important;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 10px 12px;
    scrollbar-width: thin;
  }
  .hl-nav-menu::-webkit-scrollbar {
    height: 4px;
  }
  .hl-nav-menu::-webkit-scrollbar-thumb {
    background: var(--hl-border);
    border-radius: 4px;
  }
  .hl-sidebar--left .hl-nav-item {
    flex: 0 0 auto;
    border-left: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.76rem;
    background: var(--hl-bg-hover);
    white-space: nowrap;
  }
  .hl-sidebar--left .hl-nav-item:hover {
    border-left-color: transparent;
  }
  .hl-sidebar--left .hl-nav-item.is-active {
    border-left-color: transparent;
  }
  .hl-profile-card {
    margin-bottom: 0 !important;
    min-width: 0;
  }
  .hl-nav-item span:last-child {
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* Téléphone : menu burger + pas de colonne latérale */
@media (max-width: 768px) {
  .hl-topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  .hl-topbar-logo {
    position: relative;
    z-index: 302;
    flex-shrink: 0;
  }

  .hl-topbar-toggle {
    display: flex;
  }

  .hl-topbar-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(4rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
      max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(165deg, rgba(34, 38, 35, 0.98) 0%, rgba(48, 50, 47, 0.99) 50%, rgba(26, 30, 28, 0.99) 100%);
    box-shadow: none;
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    box-sizing: border-box;
  }

  .hl-topbar.is-open .hl-topbar-nav {
    transform: translateX(0);
  }

  .hl-topbar-nav a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 16rem;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    margin: 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hl-topbar-nav a:hover {
    background: rgba(158, 198, 208, 0.18);
    color: var(--hl-off);
  }

  .hl-topbar-nav a.is-active {
    background: var(--hl-primary-dim);
    color: var(--hl-primary);
    border-color: rgba(158, 198, 208, 0.35);
  }

  .hl-sidebar--left {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hl-feed-header {
    margin-bottom: 14px;
  }
  .hl-feed-title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    line-height: 1.2;
  }
  .hl-feed-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .hl-post-header {
    padding: 12px 14px;
  }
  .hl-post-body {
    padding: 14px;
  }
  .hl-post-title {
    font-size: clamp(1.12rem, 4.5vw, 1.28rem);
  }
  .hl-post-stats {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    gap: 0.35rem;
  }
  .hl-post-image img {
    max-height: min(380px, 52vh);
  }
  .hl-comments {
    padding: 14px;
  }
  .hl-comments-title {
    font-size: 1.05rem;
  }
  .blog-main--full {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

/* ── Sidebars ── */
.hl-sidebar {
  position: sticky;
  top: 72px;
  height: fit-content;
}

.hl-nav-menu {
  background: var(--hl-bg-card);
  border-radius: var(--hl-radius);
  border: 1px solid var(--hl-border);
  padding: 10px 0;
  margin-bottom: 18px;
  box-shadow: var(--hl-glow);
}

.hl-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--hl-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hl-nav-item:hover {
  background: var(--hl-bg-hover);
  color: var(--hl-primary);
  border-left-color: var(--hl-primary);
}

.hl-nav-item.is-active {
  color: var(--hl-primary);
  border-left-color: var(--hl-sky);
  background: var(--hl-primary-dim);
}

.hl-nav-icon {
  font-size: 1.15rem;
  width: 1.4rem;
  text-align: center;
}

.hl-section-card {
  background: var(--hl-bg-card);
  border-radius: var(--hl-radius);
  border: 1px solid var(--hl-border);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--hl-glow);
  animation: hl-fade-in 0.6s ease-out both;
}

.hl-profile-card .hl-profile-inner {
  text-align: center;
}

.hl-profile-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hl-navy);
  background: linear-gradient(135deg, var(--hl-sky) 0%, var(--hl-blush) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hl-profile-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--hl-text);
}

.hl-profile-handle {
  font-size: 0.8rem;
  color: var(--hl-primary);
  margin-top: 4px;
}

.hl-profile-bio {
  font-size: 0.82rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
  margin-top: 12px;
}

.hl-profile-bio strong { color: var(--hl-blush); font-weight: 600; }

.hl-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.hl-stat-box {
  background: var(--hl-bg-hover);
  padding: 12px 8px;
  border-radius: var(--hl-radius-sm);
  text-align: center;
  border: 1px solid var(--hl-border);
}

.hl-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hl-primary);
  font-family: 'Cormorant Garamond', serif;
}

.hl-stat-label {
  font-size: 0.68rem;
  color: var(--hl-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hl-profile-cta {
  display: block;
  margin-top: 14px;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, var(--hl-mid), var(--hl-navy));
  color: var(--hl-off);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hl-profile-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sidebar droite */
.hl-search-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hl-text-muted);
  margin-bottom: 8px;
}

.hl-search-input {
  width: 100%;
  background: var(--hl-bg-hover);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--hl-text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hl-search-input:focus {
  outline: none;
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 3px rgba(158, 198, 208, 0.2);
}

.hl-search-hint {
  font-size: 0.72rem;
  color: var(--hl-text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.hl-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hl-text);
}

.hl-title-icon { font-size: 1.1rem; }

.hl-trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--hl-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  min-width: 0;
}

.hl-trending-info {
  min-width: 0;
}

.hl-trending-item:last-child { border-bottom: none; }
.hl-trending-item:hover { transform: translateX(4px); }

.hl-trending-category {
  font-size: 0.65rem;
  color: var(--hl-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hl-trending-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hl-text);
  margin-top: 4px;
}

.hl-trending-count {
  font-size: 0.78rem;
  color: var(--hl-text-muted);
  margin-top: 2px;
}

.hl-trending-arrow {
  color: var(--hl-blush);
  font-size: 1.1rem;
  margin-left: 8px;
  flex-shrink: 0;
}

.hl-discover-line {
  font-size: 0.85rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.hl-discover-line a {
  color: var(--hl-primary);
  text-decoration: none;
}
.hl-discover-line a:hover { text-decoration: underline; }

.hl-follow-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hl-blush);
  text-decoration: none;
}
.hl-follow-link:hover { text-decoration: underline; }

.hl-info-box {
  background: linear-gradient(135deg, rgba(158, 198, 208, 0.08) 0%, rgba(231, 213, 189, 0.08) 100%);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.hl-info-box:last-child { margin-bottom: 0; }

.hl-info-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hl-primary);
  margin-bottom: 6px;
}

.hl-info-box-text {
  font-size: 0.8rem;
  color: var(--hl-text-muted);
  line-height: 1.55;
}

.hl-info-box-text strong { color: var(--hl-blush); }

.hl-topics { line-height: 1.8; }

.hl-topic-tag {
  display: inline-block;
  background: var(--hl-primary-dim);
  color: var(--hl-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.15s;
}

.hl-topic-tag:hover {
  background: rgba(158, 198, 208, 0.28);
  transform: translateY(-2px);
}

.hl-topic-tag--static {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

.hl-aside-footer {
  font-size: 0.68rem;
  color: var(--hl-text-muted);
  text-align: center;
  padding: 16px 8px 8px;
  line-height: 1.5;
}

.hl-aside-footer-sub { opacity: 0.85; }

/* ── Fil central ── */
.hl-feed-header {
  margin-bottom: 20px;
}

.hl-feed-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--hl-text);
  margin-bottom: 6px;
}

.hl-feed-subtitle {
  font-size: 0.88rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
  max-width: 560px;
}

/* ── Carte publication ── */
.hl-post {
  position: relative;
  background: var(--hl-bg-card);
  border-radius: var(--hl-radius);
  border: 1px solid var(--hl-border);
  overflow: hidden;
  box-shadow: var(--hl-shadow);
  margin-bottom: 20px;
  animation: hl-fade-in 0.65s ease-out both;
  isolation: isolate;
}

.hl-post--preview:hover {
  border-color: rgba(158, 198, 208, 0.35);
}

.hl-post-header,
.hl-post-body,
.hl-post-stats,
.hl-post-actions {
  position: relative;
  z-index: 1;
}

.hl-post-header {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hl-border);
}

.hl-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hl-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hl-navy) 0%, var(--hl-sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--hl-off);
  flex-shrink: 0;
}

.hl-post-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hl-post-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hl-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hl-post-time {
  font-size: 0.8rem;
  color: var(--hl-text-muted);
  overflow-wrap: anywhere;
}

.hl-post-menu {
  color: var(--hl-text-muted);
  font-size: 1.25rem;
  padding: 4px 8px;
  border-radius: 50%;
  user-select: none;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.hl-post-body {
  padding: 18px;
}

.hl-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hl-text);
  margin-bottom: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hl-post-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.hl-post-title-link:hover {
  color: var(--hl-primary);
}

.hl-post-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 8px;
  border-radius: var(--hl-radius-sm);
  overflow: hidden;
}

.hl-post-image-link:focus-visible {
  outline: 2px solid var(--hl-primary);
  outline-offset: 3px;
}

.hl-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hl-primary);
  text-decoration: none;
}

.hl-post-read-more:hover {
  color: var(--hl-blush);
}

.hl-post-title--page {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

.hl-post-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hl-text-muted);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hl-post-text--lead {
  font-size: 1rem;
  color: var(--hl-pale);
}

.hl-post-article {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hl-text-muted);
  white-space: pre-wrap;
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hl-post-image {
  border-radius: var(--hl-radius-sm);
  overflow: hidden;
  margin-top: 8px;
  background: #000;
  line-height: 0;
}

.hl-post-image-link .hl-post-image {
  margin-top: 0;
}

.hl-post-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hl-post-figure { margin: 0 0 14px; }
.hl-post-caption {
  font-size: 0.82rem;
  color: var(--hl-text-muted);
  padding: 8px 2px 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hl-post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--hl-border);
  border-bottom: 1px solid var(--hl-border);
  font-size: 0.82rem;
  color: var(--hl-text-muted);
}

.hl-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hl-stat--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.hl-stat--link:hover { color: var(--hl-primary); }

.hl-stat-num {
  font-weight: 700;
  color: var(--hl-text);
}

.hl-post-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px 8px 10px;
}

@media (max-width: 520px) {
  .hl-post-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .hl-post-actions {
    grid-template-columns: 1fr;
  }
  .hl-action-btn {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.hl-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  background: transparent;
  border: none;
  color: var(--hl-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  pointer-events: none;
}

.hl-action-ico { font-size: 1rem; }

.hl-action-btn--real {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hl-action-btn--real:hover {
  background: var(--hl-bg-hover);
  color: var(--hl-primary);
}

.hl-action-btn--real.is-active {
  color: var(--hl-blush);
}

.hl-action-btn--link {
  text-align: center;
}

.hl-post-actions--live {
  position: relative;
  z-index: 10;
}

.hl-post-stats--live {
  position: relative;
  z-index: 10;
}

.hl-post--single .hl-post-body,
.hl-post--single .hl-post-header {
  z-index: 5;
}

/* Commentaires */
.hl-comments {
  padding: 18px;
  border-top: 1px solid var(--hl-border);
  position: relative;
  z-index: 10;
}

.hl-comments-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hl-text);
  margin-bottom: 6px;
}

.hl-comments-hint {
  font-size: 0.8rem;
  color: var(--hl-text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.hl-comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.hl-comment {
  display: flex;
  gap: 10px;
  animation: hl-slide-up 0.45s ease-out both;
}

.hl-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--hl-mid), var(--hl-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hl-off);
}

.hl-comment-bubble {
  flex: 1;
  min-width: 0;
  background: var(--hl-bg-hover);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
}

.hl-comment-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hl-text);
}

.hl-comment-time {
  display: block;
  font-size: 0.68rem;
  color: var(--hl-text-muted);
  margin: 3px 0 6px;
}

.hl-comment-text {
  font-size: 0.86rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
}

.hl-comment-admin-form {
  margin-top: 8px;
}

.hl-comment-admin-delete {
  border: 1px solid rgba(231, 213, 189, 0.55);
  background: rgba(231, 213, 189, 0.12);
  color: var(--hl-off);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.hl-comment-admin-delete:hover {
  background: rgba(231, 213, 189, 0.22);
  border-color: rgba(231, 213, 189, 0.75);
}

.hl-comment-empty {
  text-align: center;
  font-size: 0.86rem;
  color: var(--hl-text-muted);
  padding: 12px;
  margin-bottom: 8px;
}

.hl-composer {
  background: var(--hl-bg-hover);
  border-radius: var(--hl-radius-sm);
  padding: 14px;
  border: 1px solid var(--hl-border);
}

.hl-composer-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hl-text-muted);
  margin-bottom: 10px;
}

.hl-composer-input,
.hl-composer-textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  background: var(--hl-bg-card);
  color: var(--hl-text);
  font-family: inherit;
  font-size: 0.88rem;
}

.hl-composer-textarea {
  border-radius: 12px;
  min-height: 88px;
  resize: vertical;
}

.hl-composer-input:focus,
.hl-composer-textarea:focus {
  outline: none;
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 2px rgba(158, 198, 208, 0.2);
}

.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hl-btn--primary {
  background: linear-gradient(135deg, var(--hl-sky), var(--hl-mid));
  color: var(--hl-navy);
  margin-top: 6px;
}

.hl-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hl-post--empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.hl-empty-msg {
  color: var(--hl-text-muted);
  margin-bottom: 1rem;
}

.hl-back-link {
  text-align: center;
}
.hl-back-link a,
.hl-admin-foot a {
  color: var(--hl-primary);
  font-weight: 600;
  text-decoration: none;
}
.hl-back-link a:hover,
.hl-admin-foot a:hover { text-decoration: underline; }

.hl-back-link--footer {
  padding: 16px;
  border-top: 1px solid var(--hl-border);
  margin-top: 8px;
}

.hl-admin-foot {
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
}

/* Pied global */
.blog-footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: rgba(26, 30, 28, 0.95);
  border-top: 1px solid var(--hl-border);
  color: var(--hl-text-muted);
  font-size: 0.78rem;
}

.blog-footer a {
  color: var(--hl-primary);
  font-weight: 600;
  text-decoration: none;
  margin: 0 0.25rem;
}

.blog-footer a:hover { text-decoration: underline; }

/* Flash & honeypot */
.blog-flash {
  padding: 0.75rem 1rem;
  border-radius: var(--hl-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.86rem;
}

.blog-flash.ok {
  background: rgba(158, 198, 208, 0.15);
  color: var(--hl-pale);
  border: 1px solid var(--hl-sky);
}

.blog-flash.err {
  background: rgba(231, 213, 189, 0.12);
  color: var(--hl-blush);
  border: 1px solid var(--hl-blush);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Connexion & hero texte */
.connexion-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.blog-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--hl-text);
  margin-bottom: 0.45rem;
}

.blog-hero p {
  font-size: 0.88rem;
  color: var(--hl-text-muted);
  line-height: 1.55;
}

.blog-admin-login {
  background: var(--hl-bg-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 1.75rem;
  box-shadow: var(--hl-shadow);
}

.blog-form-row { margin-bottom: 1rem; }
.blog-form-row label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hl-text-muted);
  margin-bottom: 0.35rem;
}
.blog-form-row input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  background: var(--hl-bg-hover);
  color: var(--hl-text);
  font-family: inherit;
  font-size: 0.9rem;
}
.blog-form-row input:focus {
  outline: none;
  border-color: var(--hl-primary);
}

.blog-form-submit {
  width: 100%;
  padding: 0.65rem;
  background: linear-gradient(135deg, var(--hl-sky), var(--hl-mid));
  color: var(--hl-navy);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.blog-form-submit:hover { filter: brightness(1.05); }

.blog-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
}

.blog-form-submit--auto {
  width: auto;
  min-width: 7rem;
}

.blog-form-submit--danger {
  background: linear-gradient(135deg, #7a3e45, #5c2f34);
  color: var(--hl-off);
}

.blog-form-submit--danger:hover {
  filter: brightness(1.08);
}

/* Blocs formulaire admin (modération, etc.) */
.blog-form {
  background: var(--hl-bg-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.blog-form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--hl-text);
  margin-bottom: 0.65rem;
}

/* Admin */
.blog-admin-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.hl-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.hl-admin-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  color: var(--hl-text);
  margin-bottom: 0.35rem;
}

.hl-admin-subtitle {
  font-size: 0.88rem;
  color: var(--hl-text-muted);
  max-width: 620px;
  line-height: 1.5;
}

.hl-admin-top-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hl-admin-btn {
  width: auto;
  padding: 0.58rem 0.9rem;
}

.hl-admin-btn--mid {
  background: var(--hl-mid);
  color: var(--hl-off);
}

.hl-admin-btn--muted {
  background: var(--hl-text-muted);
  color: var(--hl-bg-deep);
}

.hl-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hl-admin-stat-card {
  background: var(--hl-bg-card);
  border: 1px solid var(--hl-border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
}

.hl-admin-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hl-text-muted);
  font-weight: 700;
}

.hl-admin-stat-value {
  font-size: 1.35rem;
  color: var(--hl-primary);
  font-weight: 700;
  margin-top: 0.25rem;
}

.hl-admin-stat-note {
  font-size: 0.8rem;
  color: var(--hl-text-muted);
  margin-top: 0.2rem;
}

.hl-admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--hl-radius);
}

.hl-admin-link-code {
  font-size: 0.8rem;
  color: var(--hl-primary);
  text-decoration: none;
  word-break: break-all;
}

.hl-admin-link-code:hover {
  text-decoration: underline;
}

.hl-admin-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hl-admin-status.is-published {
  background: rgba(158, 198, 208, 0.15);
  color: var(--hl-pale);
  border: 1px solid var(--hl-sky);
}

.hl-admin-status.is-draft {
  background: rgba(231, 213, 189, 0.15);
  color: var(--hl-blush);
  border: 1px solid var(--hl-blush);
}

@media (max-width: 760px) {
  .hl-admin-stats {
    grid-template-columns: 1fr;
  }
}

.hl-admin-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 1rem;
  align-items: start;
}

.hl-admin-editor-form {
  background: var(--hl-bg-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 1rem;
  box-shadow: var(--hl-shadow);
}

.hl-admin-preview-wrap {
  position: sticky;
  top: 84px;
}

.hl-admin-preview-head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hl-text-muted);
  margin-bottom: 0.5rem;
}

.hl-admin-preview {
  margin-bottom: 0;
  box-shadow: none;
}

.hl-admin-preview-images:empty {
  display: none;
}

.hl-admin-note {
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--hl-text-muted);
}

.hl-admin-subnote {
  font-size: 0.82rem;
  color: var(--hl-text-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.hl-admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.hl-admin-image-card {
  margin: 0;
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--hl-bg-hover);
}

.hl-admin-image-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.hl-admin-image-caption {
  font-size: 0.74rem;
  padding: 0.4rem 0.45rem 0.5rem;
  color: var(--hl-text-muted);
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .hl-admin-editor {
    grid-template-columns: 1fr;
  }
  .hl-admin-preview-wrap {
    position: static;
  }
}

.blog-admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--hl-bg-card);
  border-radius: var(--hl-radius);
  overflow: hidden;
  border: 1px solid var(--hl-border);
  box-shadow: var(--hl-shadow);
}

.blog-admin-table th,
.blog-admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hl-border);
  font-size: 0.86rem;
  color: var(--hl-text-muted);
}

.blog-admin-table th {
  background: var(--hl-bg-hover);
  font-weight: 700;
  color: var(--hl-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-admin-actions a {
  color: var(--hl-primary);
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.blog-admin-form .blog-form-row textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  background: var(--hl-bg-hover);
  color: var(--hl-text);
  font-family: inherit;
}

.blog-empty {
  text-align: center;
  color: var(--hl-text-muted);
  padding: 2rem;
}
