/* Blog : chrome commun et palette anthracite / crème / or.
   Aucune règle ne cible les pages, la couverture ou la géométrie du livre. */
html body#top.blog-premium {
  background: var(--kmg-cream) !important;
  color: var(--kmg-ink);
}

/* Bases du menu commun, isolées des anciennes feuilles globales du site. */
html body#top.blog-premium header nav.navbar { display: none !important; }
html body#top.blog-premium header nav.navbar ul { list-style: none; }
html body#top.blog-premium header nav.navbar a { text-decoration: none; }
html body#top.blog-premium header nav.navbar > ul > li > a { white-space: nowrap; }
html body#top.blog-premium header nav.navbar .has-submenu { position: relative; }
html body#top.blog-premium header nav.navbar .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
html body#top.blog-premium header nav.navbar .has-submenu:is(:hover, :focus-within) > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
html body#top.blog-premium header nav.navbar .submenu a { display: block; }
html body#top.blog-premium header nav.navbar > ul > li > a[aria-current="page"]:not(.btn-contact) {
  background: var(--kmg-gold-fill) !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}
@media (min-width: 1025px) {
  html body#top.blog-premium header nav.navbar { display: block !important; }
  html body#top.blog-premium .kmg-burger,
  html body#top.blog-premium #blog-burger-overlay,
  html body#top.blog-premium #blog-burger-panel { display: none !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  html body#top.blog-premium {
    --kmg-logo-h: 120px;
    --kmg-header-h: 96px;
    --kmg-hero-x: 28px;
  }
  html body#top.blog-premium > header { padding-left: 176px !important; padding-right: 20px !important; }
  html body#top.blog-premium header nav.navbar > ul { gap: 0 !important; }
  html body#top.blog-premium header nav.navbar > ul > li > a:not(.btn-contact) { padding: 9px 9px !important; font-size: .8rem !important; }
  html body#top.blog-premium header nav.navbar a.btn-contact { min-width: 160px !important; min-height: 44px !important; padding: 11px 16px !important; gap: 8px !important; }
  html body#top.blog-premium header nav.navbar a.btn-contact span { font-size: .8rem !important; }
}
html body#top.blog-premium header .logo img {
  animation: logoSpinIn 1.4s ease-out forwards;
  transform-origin: center;
}
@keyframes logoSpinIn {
  0% { rotate: -360deg; scale: .8; opacity: 0; }
  60% { rotate: 8deg; scale: 1.04; opacity: 1; }
  75% { rotate: -4deg; scale: 1.01; }
  88% { rotate: 2deg; scale: 1; }
  100% { rotate: 0deg; scale: 1; opacity: 1; }
}
html body#top.blog-premium.kmg-out-hero > header { visibility: hidden; }
html body#top.blog-premium .kmg-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
html body#top.blog-premium #blog-burger-overlay {
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 11900;
}
html body#top.blog-premium #blog-burger-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html body#top.blog-premium #blog-burger-panel {
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  padding: 64px 14px 22px;
  display: block;
  transform: translateX(-105%);
  box-shadow: 2px 0 12px rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 12000;
}
html body#top.blog-premium #blog-burger-panel.active { transform: translateX(0); }
html body#top.blog-premium #blog-burger-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  width: auto;
  padding: 8px 4px 16px;
  border: 0;
  background: transparent;
  color: var(--kmg-gold);
  font-size: 24px;
  cursor: pointer;
}
html body#top.blog-premium .kmg-burger-list,
html body#top.blog-premium .kmg-burger-sub { list-style: none; margin: 0; padding: 0; }
html body#top.blog-premium .kmg-burger-list { display: flex; flex-direction: column; gap: 4px; }
html body#top.blog-premium .kmg-burger-list > li { border-bottom: 1px solid rgba(232, 204, 128, .15); padding: 2px 0; }
html body#top.blog-premium .kmg-burger-list > li:last-child { border-bottom: 0; }
html body#top.blog-premium :is(.kmg-burger-link, .kmg-burger-acc-btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  background: none;
  color: var(--kmg-gold);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .3px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
html body#top.blog-premium .kmg-burger-sub {
  display: none;
  margin: 4px 0 8px;
  padding: 4px 0 8px 14px;
  border-left: 1px solid rgba(232, 204, 128, .25);
  background: rgba(0, 0, 0, .12);
}
html body#top.blog-premium .kmg-burger-sub.open { display: flex; flex-direction: column; gap: 2px; }
html body#top.blog-premium .kmg-burger-sub a {
  display: block;
  padding: 10px 8px;
  color: #d4c4a0;
  font-size: .92rem;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 204, 128, .12);
}
html body#top.blog-premium .kmg-burger-sub li:last-child a { border-bottom: 0; }
html body#top.blog-premium .kmg-burger-sub a:hover { color: #fff; background: rgba(232, 204, 128, .15); }
html body#top.blog-premium .kmg-burger-link[aria-current="page"] { color: var(--kmg-light); }

/* Les catégories restent des liens existants, accessibles aussi sur mobile. */
html body#top.blog-premium .blog-category-nav {
  padding: calc(var(--kmg-logo-h) + 32px) var(--kmg-gutter) 0;
  background: var(--kmg-cream);
}
html body#top.blog-premium .blog-category-nav .blog-nav-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
}
html body#top.blog-premium .blog-category-nav a {
  padding: 8px 15px;
  border: 1px solid rgba(140, 113, 53, .35);
  border-radius: 999px;
  background: rgba(232, 204, 128, .045);
  color: var(--kmg-ink);
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s, color .2s;
}
html body#top.blog-premium .blog-category-nav a:is(.active, :hover) {
  background: var(--kmg-gold-fill);
  color: var(--kmg-ink);
  border-color: var(--kmg-gold);
}
html body#top.blog-premium .blog-hero { background: var(--kmg-cream); }
html body#top.blog-premium .blog-eyebrow { color: #806422; }
html body#top.blog-premium .blog-hero-title { color: var(--kmg-ink); }
html body#top.blog-premium .blog-hero-sub { color: var(--kmg-ink-soft); }
/* Hero du livre : haut anthracite, vague dorée puis lecture sur crème. */
html body#top.blog-livre-page.blog-premium :is(.blog-category-nav, .blog-hero) { background: var(--kmg-anth-800); }
html body#top.blog-livre-page.blog-premium .blog-category-nav a { color: var(--kmg-light); border-color: rgba(232, 204, 128, .3); }
html body#top.blog-livre-page.blog-premium .blog-category-nav a:is(.active, :hover) { color: var(--kmg-ink); }
html body#top.blog-livre-page.blog-premium .blog-eyebrow { color: var(--kmg-gold); }
html body#top.blog-livre-page.blog-premium .blog-hero-title { color: var(--kmg-light); }
html body#top.blog-livre-page.blog-premium .blog-hero-sub { color: rgba(246, 240, 227, .78); }
/* Deux photos existantes, fondu lent et voile anthracite aux reflets dorés. */
html body#top.blog-premium .blog-hero-shell { position: relative; background: var(--kmg-anth-800); }
html body#top.blog-premium .blog-hero-background { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
html body#top.blog-premium .blog-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
html body#top.blog-premium .blog-hero-photo.is-active { opacity: 1; }
html body#top.blog-premium .blog-hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(232, 204, 128, .14), transparent 62%),
    linear-gradient(180deg, rgba(18, 17, 15, .76) 0%, rgba(22, 20, 17, .68) 55%, rgba(18, 17, 15, .82) 100%);
}
html body#top.blog-livre-page.blog-premium .blog-hero-shell :is(.blog-category-nav, .blog-hero, .blog-hero-wave) { position: relative; z-index: 1; background: transparent; }
@media (prefers-reduced-motion: reduce) {
  html body#top.blog-premium .blog-hero-photo { transition: none; }
}
html body#top.blog-premium .blog-hero-wave {
  position: relative;
  height: clamp(56px, 7.6vw, 110px);
  margin: -1px 0;
  background: var(--kmg-anth-800);
  line-height: 0;
  pointer-events: none;
}
html body#top.blog-premium .blog-hero-wave svg { display: block; width: 100%; height: 100%; }
html body#top.blog-premium .blog-hero-wave__fill { fill: var(--kmg-cream); }
html body#top.blog-premium .blog-hero-wave__line { fill: none; stroke: url(#blog-hero-gold); stroke-width: 3px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(232, 204, 128, .3)); }
html body#top.blog-premium .blog-hero-wave { background: linear-gradient(transparent calc(100% - 2px), var(--kmg-cream) 0); }
html body#top.blog-premium :is(.sidebar-cat, .hint-label, .hint-back-label) { color: var(--kmg-ink); }
html body#top.blog-premium .sidebar-cat.active { color: #806422; }
html body#top.blog-premium :is(.sidebar-title, .sidebar-cat i, .hint-icon-wrap i) { color: #806422; }
html body#top.blog-premium .hint-sub { color: var(--kmg-ink-soft); }
html body#top.blog-premium .hint-icon-wrap { background: rgba(180, 156, 92, .08); border-color: rgba(140, 113, 53, .35); }
html body#top.blog-premium .blog-features { background: var(--kmg-cream); border-top: 0; }
html body#top.blog-premium .feature-text h4 { color: #8c7135; }
html body#top.blog-premium .feature-text p { color: var(--kmg-ink-soft); }
html body#top.blog-premium .feature-icon-wrap { background: rgba(180, 156, 92, .08); border-color: rgba(180, 156, 92, .4); }
html body#top.blog-premium .feature-icon-wrap i { color: #8c7135; }

/* Lecture sur crème : mêmes contenus et mise en page, textes anthracite. */
html body#top.blog-premium .art-page { background: var(--kmg-cream); }
html body#top.blog-premium :is(.art-related-card, .art-nav-card) { background: #fbf7ef; border-color: rgba(140, 113, 53, .25); }
html body#top.blog-premium :is(.art-title, .art-section-title, .art-intro p, .art-body strong, .art-body h2, .art-body h3, .art-body h4, .art-related h2, .art-related-body h3, .art-nav-card strong, .art-not-found h1) { color: var(--kmg-ink); }
html body#top.blog-premium :is(.art-summary, .art-meta, .art-body p, .art-body li, .art-pro-tip p, .art-conclusion p, .art-related-body p, .art-not-found p, .article-split-text p) { color: var(--kmg-ink-soft); }
html body#top.blog-premium :is(.art-kicker, .art-category-badge, .art-meta i, .art-pro-tip-label, .art-pro-tip-label i, .art-conclusion-label, .art-related-kicker, .art-related-body span, .art-nav-card span, .art-body a) { color: #806422; }
html body#top.blog-premium .art-page figure:not(.art-visual-frame) figcaption { color: var(--kmg-ink-soft); }
html body#top.blog-premium .art-section[data-n]::before { color: rgba(140, 113, 53, .12); }
html body#top.blog-premium :is(.art-pro-tip, .art-conclusion, .art-section--framed) { background: #eee2cc; border-color: rgba(140, 113, 53, .3); box-shadow: 0 12px 30px rgba(65, 42, 20, .08); }
html body#top.blog-premium .art-visual-frame { box-shadow: 0 24px 56px rgba(65, 42, 20, .18); }
html body#top.blog-premium :is(.art-back-link, .art-related-all) { background: var(--kmg-gold-fill); color: var(--kmg-ink); border-color: rgba(140, 113, 53, .35); }

/* Neutraliser seulement les anciennes finitions du footer du blog. */
html body#top.blog-premium > footer .footer-logo img { max-width: none; filter: none; }
html body#top.blog-premium > footer { --blog-chrome-rem: 15px; }
html body#top.blog-premium > footer .kmg-footer-name { font-size: calc(1.35 * var(--blog-chrome-rem)) !important; }
html body#top.blog-premium > footer .kmg-footer-tag { font-size: calc(.78 * var(--blog-chrome-rem)) !important; }
html body#top.blog-premium > footer .kmg-footer-desc { font-size: calc(.76 * var(--blog-chrome-rem)) !important; }
html body#top.blog-premium > footer :is(.kmg-footer-h, .footer-title) { font-size: calc(.85 * var(--blog-chrome-rem)) !important; }
html body#top.blog-premium > footer .footer-nav a { font-size: calc(.8 * var(--blog-chrome-rem)) !important; }
html body#top.blog-premium > footer .kmg-footer-list li { font-size: calc(.8 * var(--blog-chrome-rem)); }
html body#top.blog-premium > footer .footer-social a { font-size: calc(.95 * var(--blog-chrome-rem)); }
html body#top.blog-premium > footer :is(.kmg-footer-bottom p, .kmg-footer-legal a.footer-legal) { font-size: calc(.76 * var(--blog-chrome-rem)) !important; }
html body#top.blog-premium > footer .footer-admin-link { color: var(--kmg-gold); }
html body#top.blog-premium > footer .footer-title { white-space: normal; }
html body#top.blog-premium > footer .footer-nav a { text-transform: none; letter-spacing: 0; }
html body#top.blog-premium > footer .footer-nav ul { gap: 6px !important; }
html body#top.blog-premium > footer .footer-title-container { max-width: none; }
html body#top.blog-premium :is(header, .kmg-burger-panel, .blog-category-nav, footer, .art-page) :is(button, a):focus-visible,
html body#top.blog-premium .kmg-burger:focus-visible { outline: 2px solid var(--kmg-gold); outline-offset: 4px; }
html body#top.blog-article-page .kmg-curve--cf { background: linear-gradient(var(--kmg-cream) calc(100% - 2px), var(--kmg-footer) 0); }

@media (max-width: 991px) {
  html body#top.blog-premium > footer { --blog-chrome-rem: 14.5px; }
}
@media (max-width: 599px) {
  html body#top.blog-premium > footer { --blog-chrome-rem: 14px; }
}
@media (max-width: 480px) {
  html body#top.blog-premium > footer .kmg-footer-list li { font-size: calc(.74 * var(--blog-chrome-rem)); }
  html body#top.blog-premium > footer :is(.kmg-footer-bottom p, .kmg-footer-legal a.footer-legal) { font-size: 12px !important; }
}

@media (max-width: 540px) {
  html body#top.blog-premium .blog-category-nav { padding-inline: 16px; }
  html body#top.blog-premium .blog-category-nav .blog-nav-cats { gap: 6px; }
  html body#top.blog-premium .blog-category-nav a { padding: 7px 11px; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html body#top.blog-premium header .logo img { animation: none; }
}

/* Boutons des vagues : même diamètre et même reflet que les autres refontes.
   Les calques sont hors des SVG décoratifs et des conteneurs du livre. */
html body#top.blog-premium .blog-wave-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 100;
}
html body#top.blog-premium .blog-wave-button {
  position: absolute;
  left: var(--blog-wave-x, 0px);
  top: var(--blog-wave-y, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--kmg-gold);
  border-radius: 50%;
  background: var(--kmg-anth-800);
  color: var(--kmg-gold);
  box-shadow: 0 6px 18px rgba(20, 19, 17, .35), 0 0 16px rgba(232, 204, 128, .35);
  transform: translate(-50%, -50%);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  pointer-events: auto;
  transition: box-shadow .25s ease;
}
html body#top.blog-premium .blog-wave-button[hidden] { display: none; }
html body#top.blog-premium .blog-wave-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: transform .25s ease;
}
html body#top.blog-premium .blog-wave-button:hover svg { transform: translateY(3px); }
html body#top.blog-premium .blog-wave-button--up:hover svg { transform: translateY(-3px); }
html body#top.blog-premium .blog-wave-button:focus-visible { outline: 3px solid var(--kmg-gold); outline-offset: 5px; }
html body#top.blog-premium [data-blog-wave-focus] { outline: none; }
html body#top.blog-premium .blog-wave-button::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -80%;
  width: 62%;
  height: 170%;
  transform: skewX(-20deg);
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .12) 42%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .12) 58%, transparent 100%);
  pointer-events: none;
  animation: kmg-btn-mirror 3.8s ease-in-out infinite;
}
@media (max-width: 1024px) {
  html body#top.blog-premium .blog-wave-button { width: 48px; height: 48px; }
}
@media (max-width: 360px) {
  html body#top.blog-premium .blog-wave-button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html body#top.blog-premium .blog-wave-button,
  html body#top.blog-premium .blog-wave-button svg { transition: none; }
  html body#top.blog-premium .blog-wave-button::after { animation: none; opacity: 0; }
}
