﻿/* =====================================================================
   BLOG KMG — Livre interactif Turn.js
   Palette : #0d0b07 fond · #c9a96e or · #f8f3e8 crème · #2a2218 texte
===================================================================== */

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

:root {
  --gold:       #c9a96e;
  --gold-light: #e8cc80;
  --gold-dark:  #8c7a3c;
  --gold-pale:  rgba(201,169,110,.16);
  --cream:      #fbf5e8;
  --cream-mid:  #f1e8d4;
  --cream-dark: #dfd1b8;
  --paper-edge: #cab894;
  --bg:         #0d0b07;
  --bg2:        #171208;
  --text-page:  #2a2218;
  --text-dim:   #e8d8b0;
  /* Taille des pages — auto-adaptée à la largeur d'écran */
  --page-w: var(--book-page-w, clamp(280px, calc((100vw - 340px) / 2), 420px));
  --page-h: calc(var(--page-w) * 1.455);
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: #e8d8b0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── BURGER OVERLAY ──────────────────────────────────────── */
#blog-burger-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 11900;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
#blog-burger-overlay.active { opacity: 1; visibility: visible; }

/* ─── BURGER PANEL ────────────────────────────────────────── */
#blog-burger-panel {
  position: fixed; top: 0; left: 0;
  width: 290px; height: 100vh;
  background: #130f08;
  border-right: 1px solid rgba(201,169,110,.25);
  z-index: 12000;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 28px 24px 40px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
#blog-burger-panel.active { transform: translateX(0); }

.burger-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 30px;
}
.burger-logo { width: 52px; height: 52px; object-fit: contain; }

#blog-burger-close {
  background: none;
  border: 1px solid rgba(201,169,110,.3);
  color: var(--gold); width: 34px; height: 34px;
  border-radius: 50%; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#blog-burger-close:hover { background: var(--gold-pale); }

.burger-site-label {
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700;
  padding: 0 4px 8px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(201,169,110,.15);
}
.burger-divider { height: 1px; background: rgba(201,169,110,.12); margin: 18px 0 14px; }

.burger-nav ul { list-style: none; }
.burger-nav li + li { margin-top: 2px; }
.burger-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; color: rgba(232,216,176,.75);
  text-decoration: none; font-size: .82rem; letter-spacing: .04em;
  border-radius: 6px; transition: background .2s, color .2s;
}
.burger-nav a i { width: 16px; color: var(--gold-dark); font-size: .85rem; }
.burger-nav a:hover, .burger-nav a.active {
  background: var(--gold-pale); color: var(--gold);
}
.burger-nav a:hover i, .burger-nav a.active i { color: var(--gold); }

/* ─── NAVBAR ──────────────────────────────────────────────── */
.blog-navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 22px;
  padding: 0 36px; height: 66px;
  background: rgba(13,11,7,.97);
  border-bottom: 1px solid rgba(201,169,110,.18);
  backdrop-filter: blur(12px);
}
.blog-burger-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 6px 4px; flex-shrink: 0;
}
.blog-burger-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: all .3s;
}
.blog-logo-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.blog-logo-link img { width: 42px; height: 42px; object-fit: contain; }
.blog-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.blog-logo-text strong { font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .12em; }
.blog-logo-text small  { font-size: .55rem; color: rgba(201,169,110,.5); letter-spacing: .14em; }

.blog-nav-cats { display: flex; list-style: none; margin-left: auto; }
.blog-nav-cats a {
  display: block; padding: 0 14px; line-height: 66px;
  color: #e8d8b0; text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.blog-nav-cats a:hover, .blog-nav-cats a.active {
  color: var(--gold); border-bottom-color: var(--gold);
}

/* ─── HERO ────────────────────────────────────────────────── */
.blog-hero {
  text-align: center; padding: 48px 40px 40px;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(201,169,110,.06) 0%, transparent 70%),
    linear-gradient(180deg, #0d0b07 0%, #171208 100%);
}
.blog-eyebrow {
  display: block; font-size: .72rem; letter-spacing: .45em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.blog-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 400;
  color: var(--gold-light); line-height: 1.1; margin-bottom: 16px;
}
.blog-hero-sub {
  font-size: .88rem; color: var(--text-dim); line-height: 1.75;
  max-width: 480px; margin: 0 auto;
}

/* ─── LAYOUT PRINCIPAL ────────────────────────────────────── */
.blog-layout {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 24px; padding: 40px 24px 56px;
}

/* ─── SIDEBAR ─────────────────────────────────────────────── */
.blog-sidebar { flex: 0 0 188px; padding-top: 16px; }
.sidebar-title {
  font-size: .64rem; letter-spacing: .35em; color: var(--gold);
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,169,110,.25);
}
.sidebar-cats { list-style: none; }
.sidebar-cats li + li { margin-top: 2px; }
.sidebar-cat {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 10px 10px 12px; border-radius: 6px;
  text-decoration: none; color: #e8d8b0;
  font-size: .67rem; letter-spacing: .09em; font-weight: 600;
  border-left: 3px solid transparent; transition: all .2s; cursor: pointer;
}
.sidebar-cat i { width: 14px; font-size: .78rem; color: var(--gold-dark); flex-shrink: 0; }
.sidebar-cat:hover { background: var(--gold-pale); color: rgba(232,216,176,.9); }
.sidebar-cat:hover i { color: var(--gold); }
.sidebar-cat.active { background: rgba(201,169,110,.13); color: var(--gold-light); border-left-color: var(--gold); }
.sidebar-cat.active i { color: var(--gold); }

/* ─── BOOK SCALE WRAPPER ──────────────────────────────────── */
.book-scale-wrap {
  display: flex; justify-content: center; align-items: flex-start;
}

/* ─── BLOG BOOK ZONE ──────────────────────────────────────── */
.blog-book-zone {
  display: flex; align-items: center; gap: 16px;
  flex: 0 0 auto;
}
.btn-flipbook {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.45);
  background: rgba(13,11,7,.9); color: var(--gold);
  font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .25s;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.btn-flipbook:hover { background: rgba(201,169,110,.15); border-color: var(--gold); transform: scale(1.08); }
.btn-flipbook.disabled-btn { opacity: .3; cursor: default; pointer-events: none; }

/* ─── BOOK COVER — couverture visible + liserés dorés ────── */
.book-cover {
  position: relative;
  background: linear-gradient(135deg, #120c05 0%, #060403 100%);
  padding: 10px;
  border: 1px solid rgba(201,169,110,.55);
  border-radius: 3px;
  /* Ombres portées réalistes sous le livre */
  box-shadow:
    0 0 0 3px rgba(201,169,110,.07),   /* halo doré extérieur */
    0 55px 110px rgba(0,0,0,.95),       /* ombre principale */
    0 28px 55px rgba(0,0,0,.80),        /* ombre secondaire */
    0 10px 24px rgba(0,0,0,.65);        /* ombre de contact */
}
/* Liseré intérieur double-bordure luxe */
.book-cover::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(201,169,110,.22);
  pointer-events: none; z-index: 0;
  border-radius: 1px;
}
/* Tranche droite du livre (épaisseur papier, sans effet métal) */
.book-cover::after {
  content: '';
  position: absolute;
  right: -5px; top: 14px; bottom: 14px; width: 6px;
  background: linear-gradient(to right,
    rgba(240,226,194,.62) 0%,
    rgba(178,145,88,.34) 64%,
    rgba(54,38,18,.42) 100%
  );
  border-radius: 0 2px 2px 0;
}

/* ─── BOOK SHADOW WRAPPER ─────────────────────────────────── */
.book-shadow-wrapper {
  position: relative;
}

/* Reliure centrale — ombre naturelle douce (PAS métal) */
.book-shadow-wrapper::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 30px;
  transform: translateX(-50%);
  background:
    linear-gradient(to right,
      rgba(0,0,0,.18) 0%,
      rgba(35,23,10,.28) 38%,
      rgba(0,0,0,.45) 50%,
      rgba(35,23,10,.28) 62%,
      rgba(0,0,0,.18) 100%
    );
  box-shadow: 0 0 18px rgba(0,0,0,.34);
  z-index: 200;
  pointer-events: none;
}

/* ─── FLIPBOOK (conteneur Turn.js) ───────────────────────── */
.flipbook {
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  position: relative;
}

/* ─── PAGES ───────────────────────────────────────────────── */
.page {
  width: var(--page-w);
  height: var(--page-h);
  overflow: hidden;
  position: absolute; top: 0;
  background-color: var(--cream);
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Page de garde technique : elle ne doit jamais être visible. */
.page-guard {
  background: #0d0b07 !important;
  pointer-events: none;
}

/* Pages gauches — gradient courbure vers la reliure */
.page-is-left,
.page.even,
.page:nth-child(even) {
  background: linear-gradient(
    to right,
    var(--paper-edge) 0%,
    var(--cream-dark) 5%,
    var(--cream-mid) 13%,
    var(--cream) 25%,
    var(--cream) 84%,
    #eadfc8 96%,
    #d8c5a2 100%
  );
}
/* Pages droites — gradient courbure vers la reliure */
.page-is-right,
.page.odd,
.page:nth-child(odd) {
  background: linear-gradient(
    to left,
    var(--paper-edge) 0%,
    var(--cream-dark) 5%,
    var(--cream-mid) 13%,
    var(--cream) 25%,
    var(--cream) 84%,
    #eadfc8 96%,
    #d8c5a2 100%
  );
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(120,92,48,.075) 0 1px, transparent 1.4px),
    radial-gradient(circle at 76% 64%, rgba(120,92,48,.06) 0 1px, transparent 1.6px),
    linear-gradient(115deg, rgba(255,255,255,.38), transparent 45%, rgba(125,88,34,.08));
  background-size: 16px 16px, 21px 21px, 100% 100%;
  mix-blend-mode: multiply;
  opacity: .42;
}

.page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.3), transparent 18%, transparent 82%, rgba(92,66,30,.10)),
    linear-gradient(to right, rgba(0,0,0,.08), transparent 14%, transparent 86%, rgba(0,0,0,.08));
}

.page-inner {
  width: 100%; height: 100%;
  padding: 24px 20px 18px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  z-index: 2;
}

/* ─── PAGE FOLIO (numérotation discrète) ─────────────────── */
.page-folio {
  position: absolute; bottom: 12px;
  font-family: 'Playfair Display', serif;
  font-size: .6rem; letter-spacing: .06em;
  color: rgba(139,115,77,.42);
  pointer-events: none;
}
.folio-left  { left: 16px; }
.folio-right { right: 16px; }

/* ─── PAGE KMG PRÉSENTATION ───────────────────────────────── */
.page-presentation.page-is-left {
  background:
    radial-gradient(circle at 50% 18%, rgba(201,169,110,.18), transparent 34%),
    linear-gradient(145deg, #2a1a0d 0%, #120b05 48%, #050403 100%) !important;
}
.page-presentation::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(232,204,128,.10) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 70%, rgba(255,245,214,.08) 0 1px, transparent 1.6px),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%, rgba(0,0,0,.25));
  background-size: 20px 20px, 26px 26px, 100% 100%;
  opacity: .62;
}
.page-presentation::after {
  background: linear-gradient(to right, rgba(255,255,255,.05), transparent 30%, rgba(0,0,0,.28));
  box-shadow: inset 0 0 0 1px rgba(201,169,110,.18);
}
.page-presentation .page-inner { padding: 22px 22px 18px; }
.page-presentation-inner {
  align-items: center; justify-content: center;
  gap: 0; text-align: center;
}
.pres-ornement-top {
  font-size: .68rem; letter-spacing: .45em;
  color: rgba(232,204,128,.66); margin-bottom: 14px;
}
.pres-logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; }
.pres-titles { margin-bottom: 4px; }
.pres-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(.9rem, 2.5vw, 1.15rem);
  font-weight: 700; color: #f4dfad;
  letter-spacing: .05em; margin-bottom: 4px;
}
.pres-subtitle {
  font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-light);
  font-weight: 600;
}
.pres-separator {
  width: 50px; height: 1px; margin: 12px auto;
  background: linear-gradient(to right, transparent, rgba(232,204,128,.72), transparent);
}
.pres-desc {
  font-size: .7rem; color: rgba(248,233,194,.75); line-height: 1.65;
  text-align: center; padding: 0 6px; margin-bottom: 10px;
}
.pres-services {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px; margin-bottom: 10px;
}
.pres-services span {
  font-size: .58rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(248,233,194,.82); font-weight: 600;
}
.pres-dot { color: var(--gold-light); }

.btn-lire-pres {
  background: rgba(232,204,128,.08) !important;
  border: 1px solid rgba(232,204,128,.56) !important;
  color: #f4dfad !important;
  font-size: .6rem !important; padding: 8px 14px !important;
}
.btn-lire-pres:hover { background: rgba(232,204,128,.16) !important; transform: none !important; }

/* ─── PAGE SOMMAIRE ───────────────────────────────────────── */
.page-sommaire .page-inner { padding: 26px 22px 16px; }

.sommaire-header {
  text-align: center; margin-bottom: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.sommaire-heading { display: flex; align-items: center; gap: 10px; }
.sommaire-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .42em; color: var(--text-page); text-transform: uppercase;
}
.sommaire-ornement { color: var(--gold); font-size: .7rem; }
.sommaire-deco-line {
  width: 60%; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}
.sommaire-list { list-style: none; flex: 1; overflow: hidden; }

.sommaire-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 4px 5px 2px;
  border-bottom: 1px solid rgba(139,115,77,.13);
  cursor: pointer; border-radius: 3px;
  transition: background .18s, padding-left .18s;
}
.sommaire-item:last-child { border-bottom: none; }
.sommaire-item:hover { background: rgba(201,169,110,.09); padding-left: 6px; }
.sommaire-num {
  font-family: 'Playfair Display', serif;
  font-size: .7rem; font-weight: 700; color: var(--gold); min-width: 20px; flex-shrink: 0;
}
.sommaire-info { flex: 1; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.sommaire-cat { font-size: .5rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.sommaire-titre {
  font-size: .66rem; color: var(--text-page); font-weight: 500; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sommaire-arrow { font-size: .5rem; color: rgba(139,115,77,.38); flex-shrink: 0; transition: color .2s; }
.sommaire-item:hover .sommaire-arrow { color: var(--gold); }
.sommaire-footer { text-align: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(139,115,77,.14); }
.sommaire-brand { font-size: .58rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(139,115,77,.45); }

/* ─── PAGE ARTICLE ────────────────────────────────────────── */
.page-num-badge {
  position: absolute; top: 14px; right: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: rgba(201,169,110,.3);
  letter-spacing: .06em; z-index: 10;
}
.article-img-wrap {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* tu peux tester avec visible si besoin */
}
.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}.page:hover .article-img-wrap img { transform: scale(1.04); }
/* Fondu bas de l'image */
.article-img-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 45px;
  background: linear-gradient(to bottom, transparent, rgba(248,243,232,.65)); pointer-events: none;
}
.article-body {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding-top: 10px; overflow: hidden;
}
.article-cat-badge { font-size: .56rem; letter-spacing: .28em; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.article-titre {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(.78rem, 2vw, .96rem); font-weight: 700;
  color: var(--text-page); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-extrait {
  font-size: .68rem; color: #5c4c38; line-height: 1.58;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.article-body--with-secondary .article-extrait {
  -webkit-line-clamp: 2;
  flex: 0 0 auto;
}
.article-mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 6px;
}
.article-mini-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(139,115,77,.24);
  box-shadow: 0 6px 14px rgba(60,42,18,.16);
}
.article-mini-gallery img:only-child {
  grid-column: 1 / -1;
  max-width: 58%;
  justify-self: center;
}

/* Bouton sur toutes les pages article */
.btn-lire {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  background: linear-gradient(135deg, #a08840, #e8cc80, #b49c5c);
  color: #150f02; font-size: .6rem; font-weight: 700; letter-spacing: .2em;
  text-decoration: none; text-transform: uppercase; border-radius: 2px;
  margin-top: auto; width: fit-content;
  transition: filter .2s, transform .2s;
  border: none; cursor: pointer;
}
.btn-lire:hover { filter: brightness(1.1); transform: translateX(3px); }
.btn-lire i { font-size: .55rem; }

/* Pages DROITES → bouton aligné à droite */
.page-is-right .article-body .btn-lire,
.page-is-right .btn-lire:not(.btn-lire-pres):not(.btn-lire-fin) {
  align-self: flex-end;
}

/* ─── PAGES DE FIN / TRANSITION ──────────────────────────── */
.page-closing-note .page-inner,
.page-transition .page-inner { padding: 28px 24px 18px; }
.page-closing-inner,
.page-transition-inner { justify-content: center; gap: 0; }
.closing-ornement,
.transition-ornement { font-size: .75rem; color: var(--gold); text-align: center; margin-bottom: 12px; }
.closing-heading,
.transition-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(.95rem, 2.5vw, 1.1rem); font-weight: 700;
  color: var(--text-page); text-align: center; margin-bottom: 8px;
}
.closing-sep,
.transition-sep {
  width: 50px; height: 1px; margin: 0 auto 14px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}
.closing-text,
.transition-text { font-size: .7rem; color: #5c4c38; line-height: 1.65; margin-bottom: 14px; }
.closing-checklist { list-style: none; margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.closing-checklist li { display: flex; align-items: center; gap: 8px; font-size: .68rem; color: var(--text-page); font-weight: 500; }
.closing-checklist i { color: var(--gold); font-size: .6rem; }

/* ─── PAGE FIN ────────────────────────────────────────────── */
.page-fin.page-is-right {
  background:
    radial-gradient(circle at 50% 18%, rgba(201,169,110,.18), transparent 34%),
    linear-gradient(145deg, #2a1a0d 0%, #120b05 48%, #050403 100%) !important;
}
.page-fin::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(232,204,128,.10) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 70%, rgba(255,245,214,.08) 0 1px, transparent 1.6px),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%, rgba(0,0,0,.25));
  background-size: 20px 20px, 26px 26px, 100% 100%;
  opacity: .62;
}
.page-fin::after {
  background: linear-gradient(to left, rgba(255,255,255,.05), transparent 30%, rgba(0,0,0,.28));
  box-shadow: inset 0 0 0 1px rgba(201,169,110,.18);
}
.page-fin .page-inner { padding: 28px 24px 18px; }
.page-fin-inner { justify-content: center; align-items: center; gap: 0; text-align: center; }
.fin-ornement-top { font-size: .75rem; color: rgba(232,204,128,.66); margin-bottom: 14px; }
.fin-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 400; font-style: italic;
  color: #f4dfad; margin-bottom: 8px;
}
.fin-sep {
  width: 50px; height: 1px; margin: 0 auto 16px;
  background: linear-gradient(to right, transparent, rgba(232,204,128,.72), transparent);
}
.fin-text { font-size: .7rem; color: rgba(248,233,194,.75); line-height: 1.68; margin-bottom: 18px; }
.fin-logo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px;
}
.fin-logo { width: 56px; opacity: .92; }
.fin-brand { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(248,233,194,.72); }
.btn-lire-fin {
  background: rgba(232,204,128,.08) !important;
  border: 1px solid rgba(232,204,128,.56) !important;
  color: #f4dfad !important;
  font-size: .6rem !important;
}
.btn-lire-fin:hover { background: rgba(232,204,128,.16) !important; transform: none !important; }

/* ─── HINTS DROITE ────────────────────────────────────────── */
.blog-hints {
  flex: 0 0 144px; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding-top: calc((var(--page-h) / 2) + 68px);
  text-align: center;
}
.hint-icon-wrap {
  width: 54px; height: 54px; border: 1px solid rgba(201,169,110,.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.35rem;
  animation: hint-float 2.4s ease-in-out infinite;
  background: rgba(201,169,110,.04);
}
@keyframes hint-float {
  0%,100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(-4px); opacity: 1; }
}
.hint-label { font-size: .6rem; letter-spacing: .22em; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.hint-sub   { font-size: .57rem; color: var(--text-dim); line-height: 1.6; }
.btn-back-top {
  margin-top: 24px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.35);
  background: rgba(201,169,110,.06); color: var(--gold); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.btn-back-top:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateY(-3px); }
.hint-back-label { font-size: .54rem; letter-spacing: .2em; color: var(--text-dim); text-transform: uppercase; }

/* ─── BOTTOM FEATURES ─────────────────────────────────────── */
.blog-features {
  display: flex; justify-content: center;
  border-top: 1px solid rgba(201,169,110,.12);
  background: rgba(0,0,0,.35); padding: 26px 28px;
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; flex: 1; max-width: 300px;
}
.feature-item + .feature-item { border-left: 1px solid rgba(201,169,110,.12); }
.feature-icon-wrap {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid rgba(201,169,110,.28); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; background: rgba(201,169,110,.05);
}
.feature-text h4 { font-size: .6rem; letter-spacing: .26em; font-weight: 700; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.feature-text p  { font-size: .66rem; color: var(--text-dim); line-height: 1.55; }

/* ─── FOOTER EXISTANT DU SITE, ADAPTÉ AU BLOG ────────────── */
body.blog-livre-page footer {
  width: 100%;
  margin: 0;
  padding: 34px 28px 28px;
  text-align: center;
  color: var(--gold-light);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(201,169,110,.10), transparent 62%),
    linear-gradient(180deg, #100b05 0%, #060403 100%);
  border-top: 1px solid rgba(201,169,110,.18);
}
body.blog-livre-page footer .footer-content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
body.blog-livre-page footer .footer-logo img {
  width: 82px;
  max-width: 82px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
}
body.blog-livre-page footer .footer-title-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
}
body.blog-livre-page footer .footer-title-container::before,
body.blog-livre-page footer .footer-title-container::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 320px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,.75), transparent);
}
body.blog-livre-page footer .footer-title {
  margin: 0;
  color: var(--gold-light);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
body.blog-livre-page footer .footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
body.blog-livre-page footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.blog-livre-page footer .footer-social a img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin: 0;
  opacity: .86;
  filter: sepia(.25) saturate(.9);
  transition: opacity .2s ease, transform .2s ease;
}
body.blog-livre-page footer .footer-social a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}
body.blog-livre-page footer .footer-nav {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}
body.blog-livre-page footer .footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
}
body.blog-livre-page footer .footer-nav ul li { margin: 0; }
body.blog-livre-page footer .footer-nav ul li a,
body.blog-livre-page footer .footer-copyright,
body.blog-livre-page footer .footer-copyright p,
body.blog-livre-page footer .footer-copyright a {
  color: rgba(232,216,176,.62);
}
body.blog-livre-page footer .footer-nav ul li a {
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}
body.blog-livre-page footer .footer-nav ul li a:hover,
body.blog-livre-page footer .footer-copyright a:hover {
  color: var(--gold-light);
}
body.blog-livre-page footer .footer-copyright {
  font-size: .68rem;
  line-height: 1.55;
}
body.blog-livre-page footer .footer-copyright p + p { margin-top: 4px; }
body.blog-livre-page footer .footer-legal {
  text-decoration: none;
  color: rgba(201,169,110,.72) !important;
}

/* ─── TURN.JS — OVERRIDES ─────────────────────────────────── */


.turn-page,
.page-wrapper {
  background: var(--cream) !important;
  opacity: 1 !important;
}
.page-wrapper[page="1"],
.page-wrapper[page="2"] {
  background: #100905 !important;
}
.turn-page-gradient {
  background: linear-gradient(
    to right,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,.06) 34%,
    transparent 60%
  ) !important;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */

/* Masquer sidebar + hints + nav-cats sur tablette */
@media (max-width: 1200px) {
  .blog-sidebar, .blog-hints, .blog-nav-cats { display: none; }
  .blog-layout { padding: 28px 12px 48px; }
}

@media (max-width: 700px) {
  :root { --page-w: 280px; }
  .blog-book-zone { position: relative; gap: 0; }
  .btn-flipbook {
    position: absolute;
    top: 50%;
    z-index: 350;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(13,11,7,.78);
  }
  .btn-flipbook:hover { transform: translateY(-50%) scale(1.04); }
  .btn-prev { left: 6px; }
  .btn-next { right: 6px; }
  .book-cover { padding: 8px; }
  .page-inner { padding: 18px 15px 14px; }
  .page-sommaire .page-inner,
  .page-closing-note .page-inner,
  .page-transition .page-inner,
  .page-fin .page-inner { padding: 18px 16px 14px; }
  .article-img-wrap { height: 118px; }
  .article-extrait { -webkit-line-clamp: 3; }
}

/* Ajuster hero */
@media (max-width: 900px) {
  .blog-hero { padding: 34px 20px 28px; }
  .article-img-wrap { height: clamp(118px, calc(var(--page-h) * .30), 160px); }
}

/* Tablette : features en 2×2 */
@media (max-width: 900px) {
  .blog-features { flex-wrap: wrap; padding: 20px 16px; }
  .feature-item { flex: 1 1 calc(50% - 32px); max-width: calc(50% - 32px); }
  .feature-item:nth-child(2n+1) { border-left: none; }
  .feature-item:nth-child(3),
  .feature-item:nth-child(4) { border-top: 1px solid rgba(201,169,110,.12); padding-top: 16px; }
}

/* Très petit écran : navbar réduite */
@media (max-width: 540px) {
  .blog-navbar { padding: 0 14px; gap: 10px; }
  .blog-logo-text small { display: none; }
  .blog-layout { padding: 18px 8px 36px; }
  .blog-features { flex-direction: column; flex-wrap: nowrap; padding: 20px 16px; }
  .feature-item { max-width: 100%; flex: unset; border-left: none !important; border-top: 1px solid rgba(201,169,110,.12); padding: 14px 0 0; }
  .feature-item:first-child { border-top: none; }
  body.blog-livre-page footer { padding: 28px 18px 24px; }
  body.blog-livre-page footer .footer-title-container { gap: 12px; }
  body.blog-livre-page footer .footer-title-container::before,
  body.blog-livre-page footer .footer-title-container::after { max-width: 74px; }
  body.blog-livre-page footer .footer-social { gap: 14px; }
  body.blog-livre-page footer .footer-nav ul { gap: 8px 14px; }
  body.blog-livre-page footer .footer-nav ul li a { font-size: .66rem; }
}
